From 5c5e436bace1f1b0ca3f1c89ef6fc20e7218a780 Mon Sep 17 00:00:00 2001 From: XIGE <710062962@qq.com> Date: Mon, 23 Feb 2026 20:06:11 +0800 Subject: [PATCH] 1.0 --- Plugin.php | 879 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 879 insertions(+) create mode 100644 Plugin.php diff --git a/Plugin.php b/Plugin.php new file mode 100644 index 0000000..b10dd6a --- /dev/null +++ b/Plugin.php @@ -0,0 +1,879 @@ +beforeRender = array('TocPlugin_Plugin', 'injectToc'); + Typecho_Plugin::factory('Widget_Archive')->footer = array('TocPlugin_Plugin', 'footer'); + return _t('插件已激活'); + } + + /** + * 禁用插件 + */ + public static function deactivate() + { + return _t('插件已禁用'); + } + + /** + * 插件配置面板 + * + * @param Typecho_Widget_Helper_Form $form + */ + public static function config(Typecho_Widget_Helper_Form $form) + { + // 目录功能配置 + // echo '
本文无标题结构
'; + } else { + $html .= self::renderTocItems($toc); + } + + $html .= '