/** * 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; }
/** * Creates a panes and loads the javascript behavior for it. * * @param string The pane identifier. * @param array An array of options. * @return string * @since 1.6 */ public static function start($group = 'sliders', $params = array()) { JHtmlSliders::_loadBehavior($group, $params); array_push(JHtmlSliders::$opened, false); return '<div id="' . $group . '" class="pane-sliders">'; }