-
装修装饰设计类网站织梦...
-
床上生活用品类网站织梦...
-
包装袋设计类网站织梦模...
-
硅胶制品类网站织梦模板...
-
财税记账工商注册认证类...
-
齿轮减速机设备类网站织...
-
车载仪器仪表设备类网站...
-
环保新能源企业集团类网...
-
移动POS机刷卡机类网站织...
-
货物运输汽车贸易类网站...
-
生活资讯百科门户类网站...
-
娱乐新闻资讯类网站织梦...
-
环球新闻时报资讯类网站...
-
网络建站设计类网站织梦...
-
工商资质注册办理类网站...
-
家装建材瓷砖类网站织梦...
-
五金电器出口英文外贸类...
-
物联网灯箱标识类网站织...
-
风景摄影类网站织梦模板...
-
中英双语律师事务所类网...
打开/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();
}
加上上面的函数之后,也就可以调用主站下的/templets/default/所有模板文件
{dede:arclist titlelen='100' row='15' orderby='rand'}<li><a href="[field:arcurl/]" title="[field:title/]">[field:title/]</a></li>{/dede:arclist}
自定义gezhan.php文件,内容如下
<?phprequire_once("../../include/common.inc.php");?>
读取公共文件
{dede:include filename=''head.htm/}
就使用
<?php pasterTempletDiy("gezhan/head.htm");?>