From 09e8e9e8a510603f9108a7d4d07bf150f68b078e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Fri, 5 Jul 2024 09:53:04 +0800 Subject: [PATCH] fix toc --- functions.php | 4 -- post.php | 153 ++++++++++++++++++++++---------------------------- 2 files changed, 67 insertions(+), 90 deletions(-) diff --git a/functions.php b/functions.php index 7b96732..fbcde58 100644 --- a/functions.php +++ b/functions.php @@ -47,10 +47,6 @@ function themeConfig($form) { array('0'=> _t('否'), '1'=> _t('是')), '0', _t('是否显示复制链接'), _t('选择“是”将在文章页面显示复制链接。')); $form->addInput($showshare); - $showtoc = new Typecho_Widget_Helper_Form_Element_Radio('showtoc', - array('0'=> _t('否'), '1'=> _t('是')), - '0', _t('是否显示文章目录'), _t('选择“是”将在文章页面显示文章目录(仅在宽度大于1400px的设备中显示)。')); - $form->addInput($showtoc); $showtime = new Typecho_Widget_Helper_Form_Element_Radio('showtime', array('0'=> _t('否'), '1'=> _t('是')), '0', _t('是否显示页面加载时间'), _t('选择“是”将在页脚显示加载时间。')); diff --git a/post.php b/post.php index 72056e1..8017c41 100644 --- a/post.php +++ b/post.php @@ -36,8 +36,74 @@

title() ?>

content(); ?>
- + options->donate): ?> +
@@ -150,90 +216,5 @@ -options->showtoc): ?> - - - - need('footer.php'); ?> \ No newline at end of file