标题显示

来源:互联网 发布:淘宝图片空间多图复制 编辑:程序博客网 时间:2024/04/29 17:25
1.文章页文章位置显示
{dede:field name='position'/} {dede:field name='title'/}

2.文章页<title>中标题倒序显示
<title>{dede:field name='title'/}-{dede:field name='position' runphp='yes'}
    $tc="-"; //分隔符
    $tw=$GLOBALS['cfg_list_symbol']; //调用位置分隔符
    @me=html2text(@me); //去除html标签
    $tf=split($tw,@me); //分解成数组
    for($ta=(count($tf)-2);$ta>=1;$ta--){ //循环赋值给$tk
        $tk.=trim($tf[$ta]).$tc;
    }
    $tk=substr($tk,0,-1);
    @me=$tk; //赋值给@me
{/dede:field}-{dede:global name='cfg_webname'/}</title>