帝国cms首页内容也文章页html代码压缩一行的方法

此方式使用于静态生成模式

首页

\e\class\functions.php找到function NewsBq函数

底部添加 $string =compressHtml($string);

栏目页搜索

//-------------- 生成区 ----------------------
//取得列表模板
function GetListTemp($tempid){
    global $empire;
    $r=$empire->fetch1("select temptext,subnews,listvar,rownum,showdate,modid,subtitle,docode from ".GetTemptb("enewslisttemp")." where tempid='$tempid'");
    $r[temptext]=InfoNewsBq('list'.$tempid,$r[temptext]);
    $r[temptext] =compressHtml($r[temptext]);
    return $r;
}


本文由网友投稿或聚码屋整理自网络,如转载请注明出处:https://www.ym3.net/2540.html

本站发布的内容若侵犯到您的权益,请邮件联系 cnzz8#outlook.com  删除,我们将及时处理!

本站大部分下载资源收集于网络,不保证其完整性以及安全性,请下载后自行测试。

本站资源仅供学习和交流使用,版权归资源原作者所有,请在下载后24小时之内自觉删除。

若作商业用途,请购买正版,由于未及时购买和付费发生的侵权行为,与本站无关。

 游客 发表评论

请先登录OR注册后评论

请先登录

还没有评论,快来说点什么吧~

返回顶部