Polly po-cket
Trang Chủ | Girl Xinh | Android
17:31:13
Thứ năm, 03/07/2025
↓↓ Mod Phân Trang Giống WordPress Cho Filelist Xtgem
- Thể loại: Xtgem
- Đăng lúc: 13:00 Chủ nhật, 21/09/2014
- Lượt xem: 470

Mod Phân Trang Giống WordPress Cho Filelist Xtgem

- Tạo file page.xt (tập tin văn bản gốc) ngang hàng index rồi dán code này vô.
<?php
<!--parser:xtscript-->
function 
paging_template $page;$active_page;$total_pages
if 
$page == 1
print <b><div class='wp-pagenavi'>
if 
$page == 2
print <a href="$surl?__filelist_page=$page"></a>
elseif (
$page+1) == $active_page
print <a href="$surl?__filelist_page=($page-1)">«</a><a href="$surl?__filelist_page=$page">$page</a>
elseif (
$page+2) == $active_page
print <a href="$surl?__filelist_page=1"></a>
elseif 
$page == $active_page 
print <span class='current'>$page</span>
elseif (
$page-1) == $active_page 
print <a href="$surl?__filelist_page=$page">$page</a>
elseif (
$page-2) == $active_page 
print <a title="Xem Trang $pagehref="$surl?__filelist_page=$page">$page</a> <class="nextpostslink" href="$surl?__filelist_page=($page-1)">»</a>
endif
if 
$page == $total_pages
print <class="last" title="Xem Trang $total_pageshref="$surl?__filelist_page=$total_pages"></a></div></b>
endif
endfunction
<!--/parser:xtscript-->
?>
- Sau đó dán code này vào _header nhé.
<?php
<xt id="include" file="/page.xt" />
?>
- Và hưởng thụ thành quả thôi.
Chúc bạn thành công!!!.
» Hướng dẫn fix full lỗi cho Xtgem theo chuẩn w3c
» Xem mã nguồn file "source"
» Gọi file Xtscript "include"
» Cấu trúc file Xtscript
» Xuất dữ liệu: Làm việc với Javascript
Xem thêm >>
Hướng dẫn fix full lỗi cho Xtgem theo chuẩn w3c
Tải Avatar 250 auto farm, auto câu cá thông minh, auto kim cương cải tiến
Cách build một class bằng Mobile Eclipse
Xem mã nguồn file "source"
Gọi file Xtscript "include"
Thanks Xtgem gave me a great web hosting !. So I always abide by the rules of you. Please contact me if I have any negligence.
Time Load : 0.0002/s
CPU Load: 3.2%