Actions

API16

JHtmlTabs/panel

From Joomla! Documentation

< API16:JHtmlTabs
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Begins the display of a new panel.

[<! removed edit link to red link >]

<! 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/tabs.php

Importing

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

Source Body

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 edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />