API16:JHtmlSliders/panel
From Joomla! Documentation
Description
Begins the display of a new panel.
<! removed transcluded page call, red link never existed >
Syntax
static panel($text, $id)
| Parameter Name | Default Value | Description |
|---|---|---|
| $text | Text to display. | |
| $id | Identifier of the panel. |
Returns
string
Defined in
libraries/joomla/html/html/sliders.php
Importing
jimport( 'joomla.html.html.sliders' );
Source Body
public static function panel($text, $id)
{
if (JHtmlSliders::$opened[count(JHtmlSliders::$opened)-1])
{
$close = '</div></div>';
}
else
{
JHtmlSliders::$opened[count(JHtmlSliders::$opened)-1] = true;
$close = '';
}
return $close.'<div class="panel"><h3 class="jpane-toggler title" id="'.$id.'"><a href="#"><span>'.$text.'</span></a></h3><div class="jpane-slider content">';
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples