/** * Begins the display of a new panel. * * @param string $text Text to display. * @param string $id Identifier of the panel. * * @return string HTML to start a panel * * @since 11.1 */ public static function panel($text, $id) { $content = ''; if (self::$open) { $content .= '</div></div>'; } else { self::$open = true; } $content .= '<h3 class="pane-toggler title" id="' . $id . '"><a href="#' . $id . '"><span>' . $text . '</span></a></h3><div class="panel"><div class="pane-slider content">'; return $content; }