API16

JHtmlTabs/panel

From Joomla! Documentation

< API16:JHtmlTabs

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Begins the display of a new panel.


<! removed transcluded page call, red link never existed >

Syntax[edit]

static panel($text, $id)
Parameter Name Default Value Description
$text Text to display.
$id Identifier of the panel.

Returns[edit]

string

Defined in[edit]

libraries/joomla/html/html/tabs.php

Importing[edit]

jimport( 'joomla.html.html.tabs' );

Source Body[edit]

public static function panel($text, $id)
{
        if (JHtmlTabs::$opened[count(JHtmlTabs::$opened)-1])
        {
                $close = '</dd>';
        }
        else
        {
                JHtmlTabs::$opened[count(JHtmlTabs::$opened)-1] = true;
                $close = '';
        }

        return $close.'<dt class="'.$id.'"><span>'.$text.'</span></dt><dd>';
}


<! removed transcluded page call, red link never existed >

Examples[edit]

Code Examples[edit]