亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        帝國cms萬能標簽標題截取后自動加入省略號的方法

        字號:


            帝國CMS萬能標簽標題截取后自動加入省略號,沒有達到字數(shù)的則不加省略號完美解決方案
            1.打開e/class/connect.php 搜索 if(!empty($subtitle))//截取字符 大約在2224行 在下面加入代碼
            if($r[title] != $r[oldtitle])
            {
            $value=sub($value,0,$subtitle,false,'...');
            }
            修改后代碼如下:
            if(!empty($subtitle))//截取字符
            {
            if($r[title] != $r[oldtitle])
            {
            $value=sub($value,0,$subtitle,false,'...');
            }
            }
            2. 打開e/class/t_functions.php 搜索$r[oldtitle]=$r[title]; 大約在638行 在$r[oldtitle]=$r[title];下面加$r[title]=sub($r[title],0,$strlen,false); 代碼如下:
            while($r=$empire->fetch($sql))
            {
            $r[oldtitle]=$r[title];
            //修改
            $r[title]=sub($r[title],0,$strlen,false);