1 | 当前位置{dede:field name='position'/} |
1 2 3 4 | {dede:field name='position' runphp='yes'} $a=mb_strlen(@me);//计算字符串的长度 @me=cn_substr(@me,$a-2,-1);//截取字符 {/dede:field} |
1 2 3 4 5 6 7 8 9 10 11 | {dede:field name='position' runphp='yes'} $tc=" > "; $tf=split($tc,@me); $tn=count($tf); for($iij=0;$iij<($tn-1);$iij++){ if($iij==($tn-2)){$tf[$iij]=strip_tags($tf[$iij]);} $tl=$tl.$tf[$iij]; } @me=$tl; echo @me; {/dede:field} |
如果还需要分隔符的话,就把$tl=$tl.$tf[$iij]; 换成$tl=$tl."空格分隔符空格".$tf[$iij];
1 2 | 您当前所在的位置:本站首页 >{dede:channel type='top' currentstyle="~typename~"} {/dede:channel} > |
1 2 | dede:channel currentstyle=" ~typename~"} {/dede:channel} |
热点文章
最新文章