diff --git a/plugin.php b/plugin.php index fcb514a..8452a31 100644 --- a/plugin.php +++ b/plugin.php @@ -7,6 +7,7 @@ class PluginBluditToc extends Plugin { $this->dbFields = array( 'title' => 'On this page', 'navbarHeight' => 80, + 'maxLevel' => 4, ); } @@ -15,6 +16,7 @@ class PluginBluditToc extends Plugin { $title = htmlspecialchars($this->getValue('title'), ENT_QUOTES, 'UTF-8'); $navbarHeight = (int) $this->getValue('navbarHeight'); + $maxLevel = (int) $this->getValue('maxLevel'); $h = ''; @@ -23,6 +25,16 @@ class PluginBluditToc extends Plugin { $h .= ''; $h .= ''; + $h .= '