* 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">&laquo;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&raquo;</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-->

Copy code
2018-02-19 23:09 (edited 2018-02-20 00:39 by Graham ) · (1)

Online: Guests: 1