Old school Easter eggs.
home
»
a
»
b
»
c
»
paging
Log in
Photo 0044
483.62KB
2012-12-12 00:35:50
«
6
7
8
9
10
»
total pages = 10
Paging script
Custom paging xtscript for filelist and blog functions
<!--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 # Button class var $button_class= xt_button # Default button html assign $button=<a class="$button_class" href="$url">$page</a> # Paging container if $page == 1 print <div class="" style="margin:4px auto;text-align:center"> # First page button print <a class="$button_class" href="$url">«</a> endif # Previous four pages buttons if ($page+1) == $active_page print $button elseif ($page+2) == $active_page print $button elseif ($page+3) == $active_page print $button elseif ($page+4) == $active_page print $button # Current page button elseif $page == $active_page print <b class="$button_class" style="color:#00f !important;border:1px solid #f00 !important">$page</b> # Next four pages buttons elseif ($page-1) == $active_page print $button elseif ($page-2) == $active_page print $button elseif ($page-3) == $active_page print $button elseif ($page-4) == $active_page print $button endif # Last page button if $page == $total_pages print <a class="$button_class" href="$url">»</a></div> print total pages = $total_pages endif @end endfunction <!--/parser:xtscript-->
Filelist script
Template converter and filelist xtscript
<!--parser:xtscript--> # File list template var $template=<div style="float:left"><a href=".file_url." ><img class="xt_button" src=".file_url." style="height:48px;margin:4px" alt=".file_name_base_parsed." /></a></div><div style="float:left">.file_name_base_parsed.<br />.file_size.<br />.file_datetime.</div><br style="clear:both;" /> # Convert template var $template= call htmlspecialchars $val=$template # File list function print <xt:filelist sort_type="name" sort_dir="asc" folder="/a/b/c/test_folder" template="$template" filter="*.*" per_page="3" /> <!--/parser:xtscript-->
Xtgem Tutorial
Contact
©2024 3BIAP
ALE tights reversed