API16

JHtmlImage: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JHtmlImage}} ===Defined in=== ...
 
m clean up
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
{{subst:Description:JHtmlImage}}
<nowiki>[</nowiki>[[Description:JHtmlImage|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JHtmlImage}}


===Defined in===
===Defined in===
Line 22: Line 19:
<source lang="php">jimport( 'joomla.html.html.image' );</source>
<source lang="php">jimport( 'joomla.html.html.image' );</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JHtmlImage|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JHtmlImage}}
</span>
{{SeeAlso:JHtmlImage}}


===Examples===
===Examples===

Revision as of 14:06, 24 March 2017

{{subst:Description:JHtmlImage}}

Defined in

libraries/joomla/html/html/image.php

Methods

Method name Description
site Checks to see if an image exists in the current templates image directory. If it does it loads this image. Otherwise the default image is loaded. Also can be used in conjunction with the menulist param to create the chosen image load the default or use no image.
administrator Checks to see if an image exists in the current templates image directory if it does it loads this image. Otherwise the default image is loaded. Also can be used in conjunction with the menulist param to create the chosen image load the default or use no image

Importing

jimport( 'joomla.html.html.image' );


{{subst:SeeAlso:JHtmlImage}}

Examples

<CodeExamplesForm />