Actions

API15

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...)
 
m (removing red link to edit, no existant pages)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JButtonSeparator/render|Edit Descripton]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
  
{{Description:JButtonSeparator/render}}
+
<! removed transcluded page call, red link never existed >
  
 
===Syntax===
 
===Syntax===
Line 15: Line 14:
 
!Description
 
!Description
 
|-
 
|-
|  
+
| &$definition
 
|  
 
|  
 
|   
 
|   
Line 46: Line 45:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JButtonSeparator/render|Edit See Also]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JButtonSeparator/render}}
+
<! removed transcluded page call, red link never existed >
  
 
===Examples===
 
===Examples===
Line 61: Line 60:
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
[[Category:Archived pages API15]]

Latest revision as of 08:47, 12 May 2013

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

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

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

Examples

<CodeExamplesForm />