Actions

API16

JButtonSeparator/render

From Joomla! Documentation

< API16:JButtonSeparator
Revision as of 20:52, 12 May 2013 by JoomlaWikiBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

[<! removed edit link to red link >]

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

Contents

Syntax

render(&$definition)
Parameter Name Default Value Description
&$definition

Defined in

libraries/joomla/html/toolbar/button/separator.php

Importing

jimport( 'joomla.html.toolbar.button.separator' );

Source Body

public function render(&$definition)
{
        // Initialise variables.
        $class  = null;
        $style  = null;
 
        // Separator class name
        $class = (empty($definition[1])) ? 'spacer' : $definition[1];
        // Custom width
        $style = (empty($definition[2])) ? null : ' style="width:' .  intval($definition[2]) . 'px;"';
 
        return '<li class="' . $class . '"' . $style . ">\n</li>\n";
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />