<?php define('CURSCRIPT', 'about'); define('CURMODULE', 'index'); require './source/class/class_core.php'; $discuz = & discuz_core::instance(); $discuz->cachelist = $cachelist; $discuz->init(); loadcache('diytemplatename'); if($_GET['v']==1 || empty($_G[gp_v]) ){ $navtitle = 标题1; }elseif($_GET['v']==2){ $navtitle = 标题2; } elseif($_GET['v']==3){ $navtitle = 标题3; } elseif($_GET['v']==4){ $navtitle = 标题4; } $metakeywords = '这里定义单页的关键词'; $metadescription ='这里定义单页的描述内容'; include template('diy:about/about'); ?> |
{subtemplate common/header} <div id="pt" class="cl"> <div class="z"> <a href="index.php" class="nvhm">$_G[setting][bbname]</a><em>»</em>自定义页面 </div> </div> <style id="diy_style" type="text/css"></style> <div id="ct" class="wp cl n"> <div class="mn"> <div class="bm" style="padding:0 15px;"> <ul class="tb cl"> <li <!--{if empty($_G[gp_v]) || $_G[gp_v] == '1'}-->class="a"<!--{/if}-->><a href="about.php?v=1">内容1</a></li> <li <!--{if $_G[gp_v] == '2'}-->class="a"<!--{/if}-->><a href="about.php?v=2">内容2</a></li> <li <!--{if $_G[gp_v] == '3'}-->class="a"<!--{/if}-->><a href="about.php?v=3">内容3</a></li> <li <!--{if $_G[gp_v] == '4'}-->class="a"<!--{/if}-->><a href="about.php?v=4">内容4</a></li> </ul> <div class="datalist" style="margin:10px 0;"> <!--{if empty($_G[gp_v]) || $_G[gp_v] == '1'}--> 1 <!--{elseif $_G[gp_v] == '2'}--> 2 <!--{elseif $_G[gp_v] == '3'}--> 3 <!--{elseif $_G[gp_v] == '4'}--> 4 <!--{/if}--> </div> </div> </div> </div> {subtemplate common/footer} |
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: discuz 自定义页面多选项