From 6f7e647be149d77bf9eb70af911f6aff187d1da1 Mon Sep 17 00:00:00 2001 From: spleenftw Date: Thu, 4 Jun 2026 11:28:44 +0200 Subject: [PATCH] Update siteHead and siteBodyBegin methods to use HTML link and script tags directly --- languages/en.json | 6 ++++++ plugin.php | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 languages/en.json diff --git a/languages/en.json b/languages/en.json new file mode 100644 index 0000000..1bf2520 --- /dev/null +++ b/languages/en.json @@ -0,0 +1,6 @@ +{ + "plugin-bludit-toc": { + "name": "Table of Contents", + "description": "Sticky ToC sidebar (desktop) and floating drawer (mobile) generated from the article's h2/h3/h4 headings." + } +} diff --git a/plugin.php b/plugin.php index 4f9c794..a8b3997 100644 --- a/plugin.php +++ b/plugin.php @@ -60,7 +60,7 @@ class PluginBluditToc extends Plugin { */ public function siteHead() { $url = DOMAIN_PLUGINS . $this->directoryName . '/toc.css'; - return HTML::style($url) . PHP_EOL; + return '' . PHP_EOL; } /** @@ -87,7 +87,7 @@ class PluginBluditToc extends Plugin { $url = DOMAIN_PLUGINS . $this->directoryName . '/toc.js'; $out = '' . PHP_EOL; - $out .= HTML::script($url) . PHP_EOL; + $out .= '' . PHP_EOL; return $out; } }