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 preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/html/html/image.php | libraries/joomla/html/html/image.php | ||
| Line 22: | Line 17: | ||
<source lang="php">jimport( 'joomla.html.html.image' );</source> | <source lang="php">jimport( 'joomla.html.html.image' );</source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JHtmlImage | category=JHtmlImage | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 01:46, 25 March 2017
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' );
Examples
Code Examples