dbFields = array( 'title' => 'On this page', 'navbarHeight' => 80, 'minWidth' => 1280, ); } public function form() { global $L; $title = htmlspecialchars($this->getValue('title'), ENT_QUOTES, 'UTF-8'); $navbarHeight = (int) $this->getValue('navbarHeight'); $minWidth = (int) $this->getValue('minWidth'); $h = ''; $h .= '
'; $h .= ''; $h .= ''; $h .= '
'; $h .= '
'; $h .= ''; $h .= ''; $h .= '' . $L->get('Pixel offset applied to heading anchors to clear a fixed navbar.') . ''; $h .= '
'; $h .= '
'; $h .= ''; $h .= ''; $h .= '' . $L->get('Below this width the mobile floating button is shown instead.') . ''; $h .= '
'; return $h; } public function siteHead() { return '' . PHP_EOL; } public function siteBodyBegin() { $title = htmlspecialchars($this->getValue('title'), ENT_QUOTES, 'UTF-8'); return '' . PHP_EOL; } public function siteBodyEnd() { $title = json_encode($this->getValue('title')); $navbarHeight = (int) $this->getValue('navbarHeight'); $minWidth = (int) $this->getValue('minWidth'); return '' . PHP_EOL; } }