From 7ed0abc99f037bd8e7a4babf0cee3dd2a49a25e1 Mon Sep 17 00:00:00 2001 From: Skywt2003 Date: Fri, 19 Nov 2021 16:38:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=B4=E9=83=A8=E5=92=8C?= =?UTF-8?q?=E9=A1=B5=E8=84=9A=E6=B7=BB=E5=8A=A0=E4=BB=A3=E7=A0=81=E7=9A=84?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- footer.php | 1 + functions.php | 6 ++++++ header.php | 2 ++ homepage.php | 3 +++ 4 files changed, 12 insertions(+) diff --git a/footer.php b/footer.php index 4c0eec2..392b359 100644 --- a/footer.php +++ b/footer.php @@ -65,6 +65,7 @@

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

Powered by Typecho | Theme Sky by SkyWT

+ options->footerCode(); ?> diff --git a/functions.php b/functions.php index f6c62ac..5cfe874 100644 --- a/functions.php +++ b/functions.php @@ -27,6 +27,12 @@ function themeConfig($form) { $bottomLinks = new Typecho_Widget_Helper_Form_Element_Text('bottomLinks', NULL, NULL, _t('底部链接'), _t('(需要配合友情链接插件使用)网站底部的链接分类名称')); $form->addInput($bottomLinks); + $headerCode = new Typecho_Widget_Helper_Form_Element_Textarea('headerCode', NULL, NULL, _t('头部代码'), _t('在头部添加的代码')); + $form->addInput($headerCode); + + $footerCode = new Typecho_Widget_Helper_Form_Element_Textarea('footerCode', NULL, NULL, _t('页脚代码'), _t('在页脚添加的代码')); + $form->addInput($footerCode); + $oldPosts = new Typecho_Widget_Helper_Form_Element_Radio('oldPosts', array('able' => _t('启用'), 'disable' => _t('禁用'), diff --git a/header.php b/header.php index b64083e..2ce0df1 100644 --- a/header.php +++ b/header.php @@ -48,6 +48,8 @@ + options->headerCode(); ?> + header(); ?> + options->headerCode(); ?> + header(); ?>

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

Powered by Typecho | Theme Sky by SkyWT

+ options->footerCode(); ?>