帝国cms让控制面板模板头尾也支持标签调用的教程方法

2022-12-07 0 478

找到

=============================

//解析代码

function RepExeCode($string)

=============================

在这之前添加

//标签替换4function CustomNewsBq($name,$indextext){ global $empire,$dbtbpre,$public_r,$emod_r,$class_r,$class_zr,$fun_r,$navclassid,$navinfor,$class_tr,$level_r,$etable_r; $file=ECMS_PATH.'e/data/tmp/dt_temp'.$name.'.php'; $indextext=stripSlashes($indextext); $indextext=ReplaceTempvar($indextext);//替换全局模板变量 //替换标签 $indextext=DoRepEcmsLoopBq($indextext); $indextext=RepBq($indextext); //写文件 WriteFiletext($file,AddCheckViewTempCode().$indextext); //读取文件内容 ob_start(); include($file); $string=ob_get_contents(); ob_end_clean(); $string=RepExeCode($string);//解析代码 return $string;}

找到

WriteFiletext($file1,AddCheckViewTempCode().$r[0]);

改为

$tmplist= CustomNewsBq ("cp0",$r[0]);WriteFiletext($file1,$tmplist);

找到

WriteFiletext($file2,AddCheckViewTempCode().$r[1]);

改为

$tmplist= CustomNewsBq ("cp1",$r[1]);WriteFiletext($file2,$tmplist);

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

悠久资源 帝国CMS教程 帝国cms让控制面板模板头尾也支持标签调用的教程方法 https://www.u-9.cn/webyunying/empirecmssyjc/2240.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务

  • 0 +

    访问总数

  • 0 +

    会员总数

  • 0 +

    文章总数

  • 0 +

    今日发布

  • 0 +

    本周发布

  • 0 +

    运行天数

注册会员,众多资源免费下载