Home > CMS Tutorial > Empire CMS > 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
Release: 2019-12-02 16:10:50
forward
2275 people have browsed it

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=''){
Copy after login

After modification:

The code is as follows:

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

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!

Related labels:
source:www.word666.com/cms
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template