top

DEDEBIZ会员中心调用主题模板

DEDEBIZ会员中心调用主题模板,打开system/extend.func.php,添加下面代码就可以了

/*会员中心调用主题模板<?php obtaintheme('head.htm');?>*/
if (!function_exists('obtaintheme')) {
    require_once DEDEINC."/archive/partview.class.php";
    function obtaintheme($path)
    {
        global $cfg_basedir, $cfg_templets_dir, $cfg_df_style;
        $tmpfile = $cfg_basedir.$cfg_templets_dir.'/'.$cfg_df_style.'/'.$path;
        $dtp = new PartView();
        $dtp->SetTemplet($tmpfile);
        $dtp->Display();
    }
}

 

以前的版本里有段代码,最近更新后,被删除了。我这边记录一下,以备后用。

THE END
icon
0
icon
打赏
icon
分享
icon
二维码
icon
海报