Login
·
Signup
Home
»
XtGem
»
Tips and code snippets
»
[ask] how to create breadcrumb for FILELIST ? (orang indo masuk :3)
» View post
Graham
Vivo
in my script you add this
var $spc=call chr $val=32
var $linktext=call str_replace $subject=$linktext;$search=_;$replace=$spc
<!--parser:xtscript--> /* INITIALIZE VARS */ var $path= <xt:url type="path" />/ var $offset=0 var $len=call strlen $val=$path var $button_class= xt_button xt_text small var $button_style= padding:0 1px !important;margin:01px !important /* HOME LINK*/ print <a href="/"><span class="$button_class" style="$button_style">home</span></a> /* MAIN LOOP START*/ @loop var $strt = call strpos $haystack=$path;$needle=/;$offset=$offset var $end= call strpos $haystack=$path;$needle=/;$offset=($strt+1) var $link=call substr $val=$path;$start=0;$length=$end var $linktext=call substr $val=$path;$start=($strt+1);$length=($end-$strt-1) var $spc=call chr $val=32 var $linktext=call str_replace $subject=$linktext;$search=_;$replace=$spc /* EXIT IF INDEX FILE */ if $linktext == index goto @end endif /* LINKS */ print <span class="$button_class" style="$button_style">»</span><a href="$link"><span class="$button_class" style="$button_style">$linktext</span></a> /* MAIN LOOP END */ var $offset=($strt+1) if $end < ($len-1) goto @loop endif /* END */ @end <!--/parser:xtscript-->
#
2016-10-26 08:48 (edited 2016-10-26 08:50 by
Graham
) ·
(1)
Home
»
XtGem
»
Tips and code snippets
»
[ask] how to create breadcrumb for FILELIST ? (orang indo masuk :3)
» View post
Online: Guests: 1
Log in