Extensions to the html helper.
- Latest version: 0.3.3.
Create a paragraph element.
- @param string $data content of the paragraph.
- @param string $class class of this paragraph.
- @return string a string with the generated HTML.
Create a div element.
- @param string $data content of the div (default: '').
- @param string $class class of this div (default: '').
- @param string $id id of this div (default: '').
- @param string $style optional style of this div (default: '').
- @param string $itemtype if supplied, outputs an itemscope associated with the supplied item type (default: '').
- @param string $itemprop if supplied, outputs an itemprop (default: '').
- @return string a string with the generated HTML.
Create a span element.
You can use the $itemscope and $itemprop parameters to generate schema.org structured data elements.
- @param string $data content of the span (default: '').
- @param string $class class of this span (default: '').
- @param string $id id of this span (default: '').
- @param string $style optional style of this span (default: '').
- @param string $itemtype if supplied, outputs an itemscope associated with the supplied item type (default: '').
- @param string $itemprop if supplied, outputs an itemprop (default: '').
- @return string a string with the generated HTML.
Open a div.
- @param string $class class of this div (default: '').
- @param string $id id of this div (default: '').
- @param string $style optional style of this div (default: '').
- @param string $itemtype if supplied, outputs an itemscope associated with the supplied item type (default: '').
- @param string $itemprop if supplied, outputs an itemprop (default: '').
- @return string a string with the generated HTML.
Open a span.
- @param string $class class of this span (default: '').
- @param string $id id of this span (default: '').
- @param string $style optional style of this span (default: '').
- @param string $itemtype if supplied, outputs an itemscope associated with the supplied item type (default: '').
- @param string $itemprop if supplied, outputs an itemprop (default: '').
- @return string a string with the generated HTML.
Close a div.
- @return string a string with the generated HTML.
Close a span.
- @return string a string with the generated HTML.
Generate a hr tag.
- @return string a string with the generated HTML.
Generate one or more br tags.
- @return string a string with the generated HTML.
Script
Generates a script inclusion of a JavaScript file.
Based on the CodeIgniters original Link Tag.
- @author Isern Palaus (ipalaus@ipalaus.es), Viktor Rutberg (wishie@gmail.com)
- @param mixed $src javascript sources or an array (default: '').
- @param string $language language (default: 'javascript').
- @param string $type meta type (default: 'text/javascript').
- @param boolean $index_page should index_page be added to the javascript path (default: FALSE).
- @return string