JHtmlImage: Difference between revisions
From Joomla! Documentation
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: | ||
{{subst:Description:JHtmlImage}} | |||
{{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> | ||
{{subst:SeeAlso:JHtmlImage}} | |||
{{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 />