Login
·
Signup
Home
»
XtGem
»
Coding help
»
Blog Pagination Need Help
» View post
Graham
TECRIDIBLE
In that style
<!--parser:xtscript-->#<? function paging_template $url;$page;$active_page;$total_pages; if $total_pages == 1 goto @end endif if $page > 1 goto @next endif print <div class="w3-container w3-dark-grey w3-padding-32 w3-margin-top" style="clear:both"> if $active_page == 1 print <div style="float:left"><span class="w3-button w3-black w3-disabled w3-padding-large w3-margin-bottom">PREV</span></div> endif @next if ($page+1) == $active_page print <div style="float:left"><span><a class="w3-button w3-black w3-padding-large w3-margin-bottom" href="$url">«PREV</a></span></div> elseif ($page-1) == $active_page print <div style="float:right"><span><a class="w3-button w3-black w3-padding-large w3-margin-bottom" href="$url">NEXT»</a></span></div> endif if $page < $total_pages goto @end endif if $active_page==$total_pages print <div style="float:right"><span class="w3-button w3-black w3-disabled w3-padding-large w3-margin-bottom">NEXT</span></div> endif print </div> @end endfunction #?><!--/parser:xtscript-->
#
2018-02-19 13:09 (edited 2018-02-19 14:39 by
Graham
) ·
(1)
Home
»
XtGem
»
Coding help
»
Blog Pagination Need Help
» View post
Online: Guests: 1
Log in