Login
·
Signup
Home
»
XtGem
»
Coding help
»
sir graham your urgent help needed here( xtblog custom pagination )
» View post
Mwebvendor
CloudVibe
If you using xtblog,,, try this one.
Replace the css classes.
<!--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 <nav class="pagination"> # First page button if $page == $active_page print <li class="active"><span>«</span></li> elseif $page == 1 print <li><a href="$url">«</a></li> endif # Previous four pages buttons if ($page+1) == $active_page or ($page+2) == $active_page print <li><a href="$url">$page</a></li> endif # Current page button if $page == $active_page print <li class="active"><span><b>$page</b></span></li> endif # Next four pages buttons if ($page-1) == $active_page or ($page-2) == $active_page print <li><a href="$url">$page</a></li> endif # Last page button if not $page == $total_pages goto @skip endif if $page==$active_page print <li class="active"><span>»</span></li></nav> else print <li><a href="$url">»</a></li></nav> endif @skip endfunction #</xt:code> var $blog=<xt:blog tzone="0" format="Y-m-d" show_time="1" display="4" entries_per_page="12" comments_per_page="20" comments_sort="-1" display_limit="50" display_symbol="..." version="2" show_searchbox="1" t_back_to_posts="HOME" t_comments="" t_comments_empty="" t_post_a_comment="" t_name="" t_comment="" t_post="" t_tags="" t_search="" t_created="" t_showing_tagged_posts="Showing videos:" t_no_entries_found="" t_no_search_results_found="" t_show_all_comments="" t_see_parent_thread="" t_show_all_replies="" t_show_replies="" t_reply="" t_posting_as="" t_comments_login_required="" t_login="" t_signup="" t_confirm_email="" t_report_spam="" t_hidden_comment="" /> # <xt:code> print $blog <!--/parser:xtscript-->
#
2016-12-07 05:20 (edited 2016-12-07 05:22 by
Mwebvendor
) ·
(0)
Home
»
XtGem
»
Coding help
»
sir graham your urgent help needed here( xtblog custom pagination )
» View post
Online: Guests: 1
Log in