API16

JHtmlSliders/panel

From Joomla! Documentation

< API16:JHtmlSliders
Revision as of 17:51, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Begins the display of a new panel. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</n...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

[Edit Descripton]

Template:Description:JHtmlSliders/panel

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/sliders.php

Importing[edit]

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

Source Body[edit]

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">';
}

[Edit See Also] Template:SeeAlso:JHtmlSliders/panel

Examples[edit]

<CodeExamplesForm />