Home  >  Article  >  CMS Tutorial  >  Let's learn together how to add ellipsis after intercepting the long title of Empire CMS

Let's learn together how to add ellipsis after intercepting the long title of Empire CMS

silencement
silencementforward
2019-12-02 16:10:502247browse

Let's learn together how to add ellipsis after intercepting the long title of Empire CMS

Modify e/class/connect.php and modify the following code:

The code is as follows:

//字符截取函数
function sub($string,$start=0,$length,$mode=false,$dot=''){

After modification:

The code is as follows:

//字符截取函数
function sub($string,$start=0,$length,$mode=false,$dot='…'){

Recommended to study "Empirecms Tutorial"

The above is the detailed content of Let's learn together how to add ellipsis after intercepting the long title of Empire CMS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:www.word666.com/cms. If there is any infringement, please contact admin@php.cn delete