Weezy
Aliyujega <!--parser:xtscript-->
# Paging function
function paging_template $url;$page;$active_page;$total_pages;
# Only one page so exit
if $total_pages == 1
goto @end
endif
# Paging container
if $page == 1
print <table align="center" width=100%"><td width="50%" align="left">
endif
# Previous
if ($page+1) == $active_page
print <a class="full" href="$url"><b>« Previous</b></a></td>
# Next
elseif ($page-1) == $active_page
print <td width="50%" align="right"><a class="full" href="$url"><b>Next »</b></a>
endif
if $page == $total_pages
print </td></tr></table>
endif
@end
endfunction
<!--/parser:xtscript-->
Copy code
Online:
Guests: 1