pacman, rainbows, and roller s
Home

XT Pagination with Only Next and Prev Buttons



So here in this page we are providing Customized XT Pagination XTScript which will only have the Prev and Next Buttons without any link with page numbers.


<!--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 <div class="" style="margin:4px auto;text-align:center">
endif
# Previous 
if ($page+1) == $active_page
print <a class="xt_button" href="$url">prev</a>
# Next 
elseif ($page-1) == $active_page 
print <a class="xt_button" href="$url">next</a>
endif
if $page == $total_pages
print </div>
endif
@end
endfunction
<!--/parser:xtscript-->

Related Pages: