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
+ options->footerCode(); ?>