本站资源均来自互联网,仅供学习与参考,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
Copyright @ 2015-2020 织梦园 版权所有
Power by DedeCms
鲁ICP备15039853号-1
鲁公网安备 37132302000249号
模板标签 TAG标签 网站地图 XML地图 今日更新 返回顶部
首先友情链接的模板页在“templets>plus>flink-list.htm(友情链接列表) / flink-add.htm(申请加入)
进入后修将相应的html代码修改成
<?php
pasterTempletDiy("demo/head.htm"); //这里的demo/head.html就是你头部文件的地址,demo为模板文件夹
?>
再修改根目录下include文件夹中的common.func.php文件在其中加入这段代码
大功告成!
function pasterTempletDiy($path) { require_once(DEDEINC."/arc.partview.class.php"); global $cfg_basedir,$cfg_templets_dir; $tmpfile = $cfg_basedir.$cfg_templets_dir."/".$path;//模版文件的路径 $dtp = new PartView(); $dtp->SetTemplet($tmpfile); $dtp->Display(); } function pasterTempletDiy2($path) { require_once(DEDEINC."/arc.partview.class.php"); global $cfg_basedir,$cfg_templets_dir; $tmpfile = $cfg_basedir.$cfg_templets_dir."/".$path;//模版文件的路径 $dtp = new PartView(); $dtp->SetTemplet($tmpfile); $temstr = $dtp->GetResult(); return $temstr; } |
大功告成!