';
}
/**
* Ends the pane.
*
* @return string HTML to end the slider div.
* @since 11.1
*
* @deprecated 12.1
*/
public function endPane()
{
return '
';
}
/**
* Creates a tab panel with title text and starts that panel.
*
* @param string $text The name of the tab.
* @param string $id The tab identifier.
*
* @return string HTML to start the tab panel div.
* @since 11.1
*
* @deprecated 12.1
*/
public function startPanel($text, $id)
{
return ''
.'
'
.'
';
}
/**
* Ends a tab page.
*
* @return string HTML to end the tab divs.
* @since 11.1
*
* @deprecated 12.1
*/
public function endPanel()
{
return '
';
}
/**
* Load the javascript behavior and attach it to the document.
*
* @param array $params Associative array of values.
*
* @return
* @since 11.1
*
* @deprecated 12.1
*/
protected function _loadBehavior($params = array())
{
// Include mootools framework.
JHtml::_('behavior.framework', true);
$document = JFactory::getDocument();
$options = '{';
$opt['onActive'] = 'function(toggler, i) { toggler.addClass(\'pane-toggler-down\'); toggler.removeClass(\'pane-toggler\');i.addClass(\'pane-down\');i.removeClass(\'pane-hide\'); }';
$opt['onBackground'] = 'function(toggler, i) { toggler.addClass(\'pane-toggler\'); toggler.removeClass(\'pane-toggler-down\');i.addClass(\'pane-hide\');i.removeClass(\'pane-down\'); }';
$opt['duration'] = (isset($params['duration'])) ? (int)$params['duration'] : 300;
$opt['display'] = (isset($params['startOffset']) && ($params['startTransition'])) ? (int)$params['startOffset'] : null ;
$opt['show'] = (isset($params['startOffset']) && (!$params['startTransition'])) ? (int)$params['startOffset'] : null ;
$opt['opacity'] = (isset($params['opacityTransition']) && ($params['opacityTransition'])) ? 'true' : 'false' ;
$opt['alwaysHide'] = (isset($params['allowAllClose']) && (!$params['allowAllClose'])) ? 'false' : 'true';
foreach ($opt as $k => $v)
{
if ($v) {
$options .= $k.': '.$v.',';
}
}
if (substr($options, -1) == ',') {
$options = substr($options, 0, -1);
}
$options .= '}';
$js = ' window.addEvent(\'domready\', function(){ new Fx.Accordion($$(\'.panel h3.pane-toggler\'), $$(\'.panel div.pane-slider\'), '.$options.'); });';
$document->addScriptDeclaration($js);
}
}