XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!
TRANG THEO XÂY DỰNG
Xtgems blog của filelist và chức năng phân trang nội dung
có thể sử dụng phân trang tùy chỉnh bởi một chức năng đặc biệt Xtscript
Code ví dụ:
<!--parser:xtscript-->
# Paging function
function paging_template $url;$page;$active_page;$total_pages;
# Only one page so exit
if $total_pages == 1
return
endif
# Paging container
if $page == 1
print <div class="custom_paging">
# First page button
if $page == $active_page
print <span>«</span>
elseif $page == 1
print <a href="$url">«</a>
endif
# Previous four pages buttons
if ($page 1) == $active_page or ($page 2) == $active_page or ($page 3) == $active_page or ($page 4) == $active_page
print <a href="$url">$page</a>
endif
# Current page button
if $page == $active_page
print <span>$page</span>
endif
# Next four pages buttons
if ($page-1) == $active_page or ($page-2) == $active_page or ($page-3) == $active_page or ($page-4) == $active_page
print <a href="$url">$page</a>
endif
# Last page button
if not $page == $total_pages
goto @skip
endif
if $page==$active_page
print <span>»</span></div>
else
print <a href="$url">»</a></div>
endif
@skip
endfunction
<!--/parser:xtscript-->
Code đã chạy:»
Thucdaik
Đăng lúc:13:21 13/11/2016
Chia sẻ:
Chia sẻ bài viết:
Link:
BBCode:
☆BÌNH LUẬN
0: php_network_getaddresses: getaddrinfo failed: Name or service not known