JButtonPopup/fetchButton: Difference between revisions
From Joomla! Documentation
New page:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JButtonPopup/fe... |
m removing red link to edit, no existant pages |
||
| Line 1: | Line 1: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 74: | Line 73: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Examples=== | ===Examples=== | ||
| Line 89: | Line 88: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API16]] | |||
Revision as of 02:52, 13 May 2013
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
fetchButton($type='Popup', $name= '', $text= '', $url= '', $width=640, $height=480, $top=0, $left=0)
| Parameter Name | Default Value | Description |
|---|---|---|
| $type | 'Popup' | |
| $name | ||
| $text | ||
| $url | ||
| $width | 640 | |
| $height | 480 | |
| $top | 0 | |
| $left | 0 |
Defined in
libraries/joomla/html/toolbar/button/popup.php
Importing
jimport( 'joomla.html.toolbar.button.popup' );
Source Body
public function fetchButton($type='Popup', $name = '', $text = '', $url = '', $width=640, $height=480, $top=0, $left=0)
{
JHtml::_('behavior.modal');
$text = JText::_($text);
$class = $this->fetchIconClass($name);
$doTask = $this->_getCommand($name, $url, $width, $height, $top, $left);
$html = "<a class=\"modal\" href=\"$doTask\" rel=\"{handler: 'iframe', size: {x: $width, y: $height}}\">\n";
$html .= "<span class=\"$class\">\n";
$html .= "</span>\n";
$html .= "$text\n";
$html .= "</a>\n";
return $html;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />