JHTML: Difference between revisions
From Joomla! Documentation
New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JHTML}}
===Defined in===
libraries... |
m preparing for archive only |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/html/html.php | libraries/joomla/html/html.php | ||
| Line 11: | Line 6: | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |||
|[[API15:JHTML/_|_]] | |||
|Class loader method | |||
|- | |- | ||
|[[API15:JHTML/link|link]] | |[[API15:JHTML/link|link]] | ||
| Line 16: | 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 39: | Line 37: | ||
|Add a directory where JHTML should search for helpers. You may either pass a string or an array of directories. | |Add a directory where JHTML should search for helpers. You may either pass a string or an array of directories. | ||
|} | |} | ||
===Importing=== | ===Importing=== | ||
<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