JHTML: Difference between revisions
From Joomla! Documentation
No edit summary |
m preparing for archive only |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/html/html.php | libraries/joomla/html/html.php | ||
| Line 19: | Line 14: | ||
|- | |- | ||
|[[API15:JHTML/image|image]] | |[[API15:JHTML/image|image]] | ||
|Write a </ | |Write a </img> element | ||
|- | |- | ||
|[[API15:JHTML/iframe|iframe]] | |[[API15:JHTML/iframe|iframe]] | ||
| Line 46: | Line 41: | ||
<source lang="php">jimport( 'joomla.html.html' );</source> | <source lang="php">jimport( 'joomla.html.html' );</source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JHTML | category=JHTML | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 00:38, 25 March 2017
Defined in
libraries/joomla/html/html.php
Methods
| Method name | Description |
|---|---|
| _ | Class loader method |
| link | Write a element |
| image | Write a </img> element |
| iframe | Write a <iframe></iframe> element |
| script | Write a <script></script> element |
| stylesheet | Write a <link rel="stylesheet" style="text/css"> element |
| date | Returns formated date according to current local and adds time offset |
| tooltip | Creates a tooltip with an image as button |
| calendar | Displays a calendar control field |
| addIncludePath | Add a directory where JHTML should search for helpers. You may either pass a string or an array of directories. |
Importing
jimport( 'joomla.html.html' );
Examples
Code Examples