<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

Dedecms留言板调用head.htm

时间:2020-12-14

第一部:我们需要打开"/include/common.func.php",这个文件5.6版本默认存在,5.7的不存在我们可以建一个,这个文件功能是用来解析模版的

也可以打开"include/extend.func.php"文件。

在该文件中加入一个函数,代码如下:

  1. function pasterTempletDiy($path)

  2. {

  3. require_once(DEDEINC."/arc.partview.class.php");

  4. global$cfg_basedir,$cfg_templets_dir;

  5. $tmpfile = $cfg_basedir.$cfg_templets_dir."/".$path;//模版文件的路径

  6. $dtp = new PartView();

  7. $dtp->SetTemplet($tmpfile);

  8. $dtp->Display();

  9. }

第二步,打开留言本的模版文件,默认的是/templets/plus/guestbook.htm

找到"<body>",

用以下代码替换原来的调用头部代码

  1. <?php

  2.   pasterTempletDiy("default/head.htm");

  3. ?>

    0
    首页
    案例
    关于
    联系