搜索
首页php教程php手册discuz3.2 自定义带diy单页面

discuz3.2自定义带diy单页面 单页包括该单页的php文件和该单页的模板(.htm)文件,比如:index2.php、index2.htm 无 ?phprequire './source/class/class_core.php';//引入系统核心文件$discuz = discuz_core::instance();//以下代码为创建及初始化对象$discu

discuz3.2  自定义带diy单页面

单页包括该单页的php文件和该单页的模板(.htm)文件,比如:index2.php、index2.htm
<?php
require './source/class/class_core.php';//引入系统核心文件
$discuz = & discuz_core::instance();//以下代码为创建及初始化对象
$discuz->cachelist = $cachelist;
$discuz->init();
include template('diy:forum/index2');//调用单页模版文件
?>
{subtemplate common/header}
<div id="pt" class="wp">
        <a href="index.php" class="nvhm">$_G[setting][bbname]</a> ? 导航 面包屑
</div>
<style id="diy_style" type="text/css"></style>
<div id="ct" class="wp cl w">
        <div class="mn mw">
                <div class="content">
                     <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
                     <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
                     <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
                </div>
        </div>
</div>
{subtemplate common/footer}
{subtemplate common/header}
<div id="pt" class="wp"><a href="index.php" class="nvhm">$_G[setting][bbname]</a> ? 会员风采</div>
<div id="ct" class="wp cl n">
        <div class="mn">
            <div class="bm">
                        <h1 id="img-class-vm-lazy-src-static-imghwm-default-png-data-src-static-image-feed-profile-gif-alt-profile-分类浏览"><img class="vm lazy"  src="/static/imghwm/default1.png"  data-src="static/image/feed/profile.gif"  alt="profile"> 分类浏览</h1>
                        <div class="datalist" style="margin:10px 0;">
                               这里是正文区域代码
                        </div>
                </div>
        </div>
        <!--边栏区域代码开始-->
        <div id="psd" class="sd">
        <div class="bn">
                <p><strong>栏目名称</p>
                <p><a href="#">边栏菜单名称</a></p>
                <p><a href="#">边栏菜单名称</a></p>
                <p><a href="#">边栏菜单名称</a></p>
        </div>
        <div class="bn">
                <p><strong>管理面板</strong></p>
                <p><a href="#">添加分类</a></p>
                <p><a href="#">管理分类</a></p>
                <p><a href="#">返回会员风采</a></p>
        </div>
        <div class="bn" style="border-bottom:none;">
                <p><strong>版权信息</strong></p>
                <p>作者:峰子</p>
                <p>版权:</p>
                <p>网站:</p>
        </div>
        </div>
        <!--边栏区域代码结束-->
</div>
{subtemplate common/footer}



//其中:边栏区域代码中,每个<div class="bn">区块为一个边栏菜单区域;
声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

Video Face Swap

Video Face Swap

使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热工具

禅工作室 13.0.1

禅工作室 13.0.1

功能强大的PHP集成开发环境

SublimeText3汉化版

SublimeText3汉化版

中文版,非常好用

MinGW - 适用于 Windows 的极简 GNU

MinGW - 适用于 Windows 的极简 GNU

这个项目正在迁移到osdn.net/projects/mingw的过程中,你可以继续在那里关注我们。MinGW:GNU编译器集合(GCC)的本地Windows移植版本,可自由分发的导入库和用于构建本地Windows应用程序的头文件;包括对MSVC运行时的扩展,以支持C99功能。MinGW的所有软件都可以在64位Windows平台上运行。

PhpStorm Mac 版本

PhpStorm Mac 版本

最新(2018.2.1 )专业的PHP集成开发工具

SublimeText3 Mac版

SublimeText3 Mac版

神级代码编辑软件(SublimeText3)