From bd95789569f6fb56874e0b688acf45ae1dfeab32 Mon Sep 17 00:00:00 2001 From: Skywt2003 Date: Tue, 10 Aug 2021 22:07:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BA=95=E9=83=A8=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E6=98=BE=E7=A4=BA=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- footer.php | 16 +++++++++------- functions.php | 3 +++ homepage.php | 14 ++++++++------ 3 files changed, 20 insertions(+), 13 deletions(-) diff --git a/footer.php b/footer.php index 0cbf761..dc9fa50 100644 --- a/footer.php +++ b/footer.php @@ -18,17 +18,19 @@

- options->nisInfo != "") {?> + options->nisInfo != ""): ?> options->nisInfo ?> - | - options->icpInfo != "") {?> - options->icpInfo ?> | - Sitemap | - Links + | + options->icpInfo != ""): ?> + options->icpInfo ?> + + options->bottomLinks != ""): ?> + {name}', $links_num=0, $sort=$this->options->bottomLinks); ?> +

© options->title(); ?> ♥ to($stat); ?>publishedPostsNum() ?> Posts Words crafted

-

Powered by Typecho | Theme Sky by SkyWT

+

Powered by Typecho | Theme Sky by SkyWT

diff --git a/functions.php b/functions.php index b003af6..061691a 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); + $bottomLinks = new Typecho_Widget_Helper_Form_Element_Text('bottomLinks', NULL, NULL, _t('底部链接'), _t('(需要配合友情链接插件使用)网站底部的链接分类名称')); + $form->addInput($bottomLinks); + $oldPosts = new Typecho_Widget_Helper_Form_Element_Radio('oldPosts', array('able' => _t('启用'), 'disable' => _t('禁用'), diff --git a/homepage.php b/homepage.php index 4ea6fd8..dd90215 100644 --- a/homepage.php +++ b/homepage.php @@ -105,14 +105,16 @@ $this->need('functions.php'); // 不知道为啥,似乎模版页面不会自

- options->nisInfo != "") {?> + options->nisInfo != ""): ?> options->nisInfo ?> - | - options->icpInfo != "") {?> - options->icpInfo ?> | - Sitemap | - Links + | + options->icpInfo != ""): ?> + options->icpInfo ?> + + options->bottomLinks != ""): ?> + {name}', $links_num=0, $sort=$this->options->bottomLinks); ?> +

© options->title(); ?> ♥ to($stat); ?>publishedPostsNum() ?> Posts Words crafted

Powered by Typecho | Theme Sky by SkyWT