找到會員目錄,默認(rèn)是member里面打開config.php加入函數(shù)
找到
require_once(DEDEINC.'/dedetemplate.class.php');
下面引入arc.partview.class.php
require_once(DEDEINC."/arc.partview.class.php");
引入后加入下面函數(shù)
function pasterTempletDiy($path)
{
global $cfg_basedir,$cfg_templets_skin;
$tmpfile = $cfg_basedir.$cfg_templets_skin."/".$path;//模版文件的路徑
$dtp = new PartView();
$dtp->SetTemplet($tmpfile);
$dtp->Display();
}
QQ圖片20201008165859
模板頭部模板
<?php pasterTempletDiy("head.htm"); ?>
模板尾部模板
<?php pasterTempletDiy("footer.htm"); ?>