Plus ellipsis is not a perfect solution empire CMS automatically add an ellipsis after the universal tag title interception, did not reach the number of words
1. Open the e / class / connect.php search if (! Empty ($ subtitle) ) // intercept character is about 2224 lines in the following code is added
(! $ R & lt [title] R & lt = $ [oldtitle]) IF
{
$ = Sub value ($ value, 0, $ SUBTITLE, to false, '...');
}
after the code is modified as follows:
IF ( ! empty ($ subtitle)) // character taken
{
IF (R & lt $ [title] R & lt = $ [oldtitle])!
{
$ = Sub value ($ value, 0, $ SUBTITLE, to false, '...');
}
}
2. open e / class / t_functions.php search $ r [oldtitle] = $ r [title]; about 638 rows $ r [oldtitle] = $ r [title]; below plus $ r [title] = sub ($ r [title], 0, $ strlen, false); code as follows:
while($r=$empire->fetch($sql))
{
$r[oldtitle]=$r[title];
//修改
$r[title]=sub($r[title],0,$strlen,false)
Empire CMS universal tag title after intercepting automatically add the ellipsis
Guess you like
Origin www.cnblogs.com/surplus/p/11257530.html
Recommended
Ranking