{if $type=='index'&&$page=='1'} /*判断首页*/
{if $type=='category'} /*判断分类页*/
{if $type=='article'} /*判断内容页*/
{if $type=='page'} /*判断独立页面*/
{if $type=='author'} /*判断用户页*/
{if $type=='date'} /*判断日期页*/
{if $type=='tag'} /*判断标签页*/2021年11月01日
{if $type=='index'&&$page=='1'} /*判断首页*/
{if $type=='category'} /*判断分类页*/
{if $type=='article'} /*判断内容页*/
{if $type=='page'} /*判断独立页面*/
{if $type=='author'} /*判断用户页*/
{if $type=='date'} /*判断日期页*/
{if $type=='tag'} /*判断标签页*/2021年10月16日
/**
* 加载插件
*/
function InstallPlugin_shaonian() {
global $zbp;//将zbp全局操作类注册全局变量,使用zbp全局操作类的功能函数
if (!$zbp->Config('shaonian')->HasKey('Version')) {//判断是否之前有写入过信息
$array = array(
'LOGO' => $zbp->host . 'zb_users/theme/yangmaoguai/style/images/logo.png',
'FAVICON' => $zbp->host . 'zb_users/theme/yangmaoguai/style/images/favicon.ico',
'THUMB' => $zbp->host . 'zb_users/theme/yangmaoguai/style/images/thumb.png',
'MY_FOOTER' => '',
'ZAN_ZHU' => '',
);
foreach ($array as $value => $intro) {
$zbp->Config('shaonian')->$value = $intro;
}
$zbp->SaveConfig('shaonian');//执行保存操作
}
}Powered By Z-BlogPHP 1.7.5
Copyright VZZW.COM.All Rights Reserved.
湘ICP备2021010131号-2 51LA统计