Difference between revisions of "JButtonSeparator/render"
From Joomla! Documentation
< API15:JButtonSeparator
(New page:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JButtonSeparator...) |
(No difference)
|
Revision as of 17:23, 22 March 2010
The "API15" 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.
Template:Description:JButtonSeparator/render
Syntax[edit]
render(&$definition)
Parameter Name | Default Value | Description |
---|---|---|
Defined in[edit]
libraries/joomla/html/toolbar/button/separator.php
Importing[edit]
jimport( 'joomla.html.toolbar.button.separator' );
Source Body[edit]
function render( &$definition )
{
/*
* Initialize variables
*/
$html = null;
$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 '<td class="' . $class . '"' . $style . ">\n</td>\n";
}
[Edit See Also] Template:SeeAlso:JButtonSeparator/render
Examples[edit]
<CodeExamplesForm />