API16:JButtonSeparator/render
From Joomla! Documentation
<! removed transcluded page call, red link never existed >
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 transcluded page call, red link never existed >
Examples
Code Examples