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 .= '