1、按栏目名称调用TDK:
首页网站title:<?php $cr=$empire->fetch1("select bname from phome_enewsclass where classid='".$GLOBALS[navclassid]."' limit 1"); echo $cr['bname']; ?>-<?=$class_r[$GLOBALS['topcid']]['classname']?>
封面页网站title: [!--pagetitle--]-<?=$class_r[$GLOBALS['topcid']]['classname']?>
列表页网站title : [!--pagetitle--]-<?=$class_r[$GLOBALS['topcid']]['classname']?>
内容页网站title: [!--pagetitle--]-<?=$class_r[$GLOBALS['topcid']]['classname']?>
2、首页用自定义备用资料调用TDK
<title><?=$GLOBALS['site_r'][$GLOBALS['siteid']][data1]?></title>
<meta name="keywords" content="<?=$GLOBALS['site_r'][$GLOBALS['siteid']][data2]?>" />
<meta name="description" content="<?=$GLOBALS['site_r'][$GLOBALS['siteid']][data3]?>" />
列表页TDK调用
<title>[!--pagetitle--] - <?=$GLOBALS['site_r'][$GLOBALS['siteid']][data4]?></title>
<meta name="keywords" content="[!--pagekey--]" />
<meta name="description" content="[!--pagedes--]" />
内容页TDK调用
<title>[!--pagetitle--] - <?=$GLOBALS['site_r'][$GLOBALS['siteid']][data4]?></title>
<meta name="keywords" content="[!--pagekey--]" />
<meta name="description" content="[!--smalltext--]" />
3、首页链接:
<?=$GLOBALS['site_r'][$GLOBALS['siteid']]['url']?>
4、面包屑导航:
首页链接: <?=$GLOBALS['site_r'][$GLOBALS['siteid']]['url']?>
当前栏目链接: <?=classUrl($navclassid)?>
当前栏目名称: [!--class.name--]
文章标题: [!--title--]
5、友情链接
调用20条友情链接:<?=dp_zqLink(20)?>
6、TAG调用:
[e:loop={"select * from {$dbtbpre}enewstags where classid='$GLOBALS[topcid]' order by tagid desc limit 30",0,24,0}]
<a href="<?=tagUrl($bqr['tagid'],$bqr['classid'])?>" target="_blank"><?=$bqr['tagname']?></a>
[/e:loop]
7、导航调用
[e:loop={"select classid,classname,bname from {$dbtbpre}enewsclass where bclassid='$GLOBALS[topcid]' and showclass=0 order by myorder",0,24,0}]
<a href="<?=classUrl($bqr['classid'])?>" target="_blank"><?=$bqr['classname']?></a>
[/e:loop]
8、跳转
<script type="text/javascript" rel="nofollow" src="<?=$public_r['add_tiaozhuan']?>"></script>
9、首页文章调用标签
时间:<?=date("Y-m-d",$bqr[newstime])?> 标题:<?=$bqr['title']?> 文章链接:<?=$bqsr['titleurl']?>
内容简介:<?=esub($bqr[smalltext],60,'...')?>... 图片:<?=$bqr[titlepic]?$bqr[titlepic]:'/e/data/images/suo.jpg'?>
(1)发布时间排序
[e:loop={'selfinfo',8,0,0,'','newstime DESC'}]
[/e:loop]
(2)点击量排序
[e:loop={'selfinfo',8,0,0,'','onclick DESC'}]
[/e:loop]
(3)随机调用本栏目
[e:loop={'selfinfo',8,0,0,'','rand()'}]
[/e:loop]
翻页标签:<div class="fanye"> [!--show.listpage--]</div>
翻页CSS样式: .fanye{
text-align: center;
margin-top: 20px;
}
.fanye a{
padding:3px 6px;
margin:0 3px 0 0;
border:1px solid #aaa;
color:#000;
text-decoration: none;
}
.fanye a.current{
background:#aaa;
color:#fff;
}
.fanye a:hover{
background:#aaa;
color:#fff;
}
6、站群配置,site_r数组中的数据说明
<?=$GLOBALS['site_r'][indexdomain]?> 非站群首页域名
<?=$GLOBALS['site_r'][opencache]?> 是否开启网站缓存功能,1开启,0关闭
<?=$GLOBALS['site_r'][cachepath]?> 缓存总目录名
<?=$GLOBALS['site_r'][mobtemp]?> 开启移动设备模板组,1开启,0关闭
<?=$GLOBALS['site_r'][mobtempid]?> 移动模板组ID
<?=$GLOBALS['site_r'][sitemap_pass]?> SiteMap密钥
<?=$GLOBALS['site_r'][sitemap_cachetime]?> SiteMap缓存时间
<?=$GLOBALS['site_r'][sitemap_max]?> SiteMap单文件链接最大数
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][id]?> 站点id(与$GLOBALS['siteid']相同)
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][name]?> 网站名
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][url]?> 网站地址
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][domain]?> 网站域名
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][classid]?> 绑定栏目ID(与$GLOBALS['topcid']相同)
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][addtime]?> 添加此网站的时间
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][cachetime]?> 动态页缓存时间
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][data1]?> 备用资料一
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][data2]?> 备用资料二
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][data3]?> 备用资料三
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][re_list_0]?> 栏目页无分页URL规则
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][re_list_1]?> 栏目页有分页URL规则
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][re_article_0]?> 内容页无分页URL规则
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][re_article_1]?> 内容页有分页URL规则
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][re_tag_0]?> TAG无分页URL规则
<?=$GLOBALS['site_r'][$GLOBALS['siteid']][re_tag_1]?> TAG有分页URL规则
灵动标签调用多个栏目信息
[e:loop={'4,5',8,0,0,'','newstime DESC'}]
<div class='news_item_time'><span class='a'><?=date("d",$bqr[newstime])?></span><span class='b'><?=date("Y-m",$bqr[newstime])?></span></div>
<div class='news_item_title'><a href='<?=$bqsr['titleurl']?>'><?=$bqr['title']?></a></div>
[/e:loop]
data3文本框填入:中华||人民||共和国||万岁万万岁
模板页头切割:
<?php
$data3=explode("||",$site_r[$GLOBALS['siteid']]['data3']);
?>
模板中调用:
<?=$data3[0]?>==中华
<?=$data3[1]?>==人民
<?=$data3[2]?>==共和国
<?=$data3[3]?>==万岁万万岁
审核文章:http://127.0.0.4/e/dongpo/zhanqun/autoCheck.php?topcid=1&pass=asdfcd321