From bf23774d422903f54a54da23e1f9d081d4fbeb68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Tue, 9 Jul 2024 15:11:25 +0800 Subject: [PATCH] 1.0 --- functions.php | 6 ++++-- head.php | 6 +++++- page.php | 5 +---- post.php | 2 +- postlist.php | 3 +-- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/functions.php b/functions.php index 17fb837..68cdf09 100644 --- a/functions.php +++ b/functions.php @@ -17,6 +17,10 @@ function themeConfig($form) { array('0'=> _t('否'), '1'=> _t('是')), '0', _t('是否在侧边栏显示按日期归档'), _t('选择“是”将展示。')); $form->addInput($showgd); + $showmod = new Typecho_Widget_Helper_Form_Element_Radio('showmod', + array('0'=> _t('否'), '1'=> _t('是')), + '0', _t('是否使用魔改风格'), _t('选择“是”将展示。')); + $form->addInput($showmod); $instagramurl = new Typecho_Widget_Helper_Form_Element_Text('instagramurl', NULL, NULL, _t('Instagram'), _t('会在个人信息显示')); $form->addInput($instagramurl); $telegramurl = new Typecho_Widget_Helper_Form_Element_Text('telegramurl', NULL, NULL, _t('电报'), _t('会在个人信息显示')); @@ -27,8 +31,6 @@ function themeConfig($form) { $form->addInput($twitterurl); $mastodonurl = new Typecho_Widget_Helper_Form_Element_Text('mastodonurl', NULL, NULL, _t('mastodon'), _t('会在个人信息显示')); $form->addInput($mastodonurl); - $sitemapurl = new Typecho_Widget_Helper_Form_Element_Text('sitemapurl', NULL, NULL, _t('sitemap'), _t('会在页脚显示')); - $form->addInput($sitemapurl); $cnavatar = new Typecho_Widget_Helper_Form_Element_Text('cnavatar', NULL, 'https://cravatar.cn/avatar/', _t('Gravatar镜像'), _t('默认https://cravatar.cn/avatar/,建议保持默认')); $form->addInput($cnavatar); $imgurl = new Typecho_Widget_Helper_Form_Element_Text('imgurl', NULL, NULL, _t('分类图片目录'), _t('在目录下放入对应分类mid的jpg图片')); diff --git a/head.php b/head.php index 7e49c16..d63f7dd 100644 --- a/head.php +++ b/head.php @@ -13,7 +13,11 @@ 'author' => _t('%s 发布的文章') ], '', ' - '); ?>options->title(); ?> - +options->showmod):?> + + + + diff --git a/page.php b/page.php index 06ef767..4e26a88 100644 --- a/page.php +++ b/page.php @@ -12,7 +12,6 @@ -
- - +