date->timeStamp)); $date2=date_create(date('c')); $days=date_diff($date1,$date2); ?> options->oldPosts == 'able' && $days->format('%a') > 365): ?> -
diff --git a/functions.php b/functions.php index f07e6c3..e419f0d 100644 --- a/functions.php +++ b/functions.php @@ -18,6 +18,9 @@ function themeConfig($form) { $notification = new Typecho_Widget_Helper_Form_Element_Text('notification', NULL, NULL, _t('网站公告'), _t('显示在首页,留空则不显示')); $form->addInput($notification); + $notificationIcon = new Typecho_Widget_Helper_Form_Element_Text('notificationIcon', NULL, NULL, _t('网站公告图标'), _t('显示在首页网站公告信息框前的 FontAwesome 图标代码,留空则不显示')); + $form->addInput($notificationIcon); + $bottomLinks = new Typecho_Widget_Helper_Form_Element_Text('bottomLinks', NULL, NULL, _t('底部链接'), _t('(需要配合友情链接插件使用)网站底部的链接分类名称')); $form->addInput($bottomLinks); diff --git a/index.php b/index.php index bbe380e..1017bf7 100644 --- a/index.php +++ b/index.php @@ -15,7 +15,10 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit;