API15

JHTML/iframe: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Write a <iframe></iframe> element <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki...
 
m preparing for archive only
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JHTML/iframe|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>


{{Description:JHTML/iframe}}
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 52: Line 52:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JHTML/iframe|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>
{{SeeAlso:JHTML/iframe}}
<! removed transcluded page call, red link never existed >


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=iframe
  category=iframe
  category=JHTML
  category=JHTML
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API15]]

Latest revision as of 00:38, 25 March 2017

Description

Write a <iframe></iframe> element

[<! removed edit link to red link >]

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

Syntax

iframe($url, $name, $attribs=null, $noFrames= '')
Parameter Name Default Value Description
$url The relative URL to use for the src attribute
$name The target attribute to use
$attribs null An associative array of attributes to add
$noFrames The message to display if the iframe tag is not supported

Defined in

libraries/joomla/html/html.php

Importing

jimport( 'joomla.html.html' );

Source Body

function iframe( $url, $name, $attribs = null, $noFrames = '' )
{
        if (is_array( $attribs )) {
                $attribs = JArrayHelper::toString( $attribs );
        }

        return '<iframe src="'.$url.'" '.$attribs.' name="'.$name.'">'.$noFrames.'</iframe>';
}

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

Examples

Code Examples