diff options
Diffstat (limited to 'user_guide')
-rw-r--r-- | user_guide/helpers/html_helper.html | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/user_guide/helpers/html_helper.html b/user_guide/helpers/html_helper.html index ec924241a..94a98b93c 100644 --- a/user_guide/helpers/html_helper.html +++ b/user_guide/helpers/html_helper.html @@ -60,6 +60,16 @@ HTML Helper <p>The HTML Helper file contains functions that assist in working with HTML.</p> +<ul> + <li><a href="#br">br()</a></li> + <li><a href="#heading">heading()</a></li> + <li><a href="#img">img()</a></li> + <li><a href="#link_tag">link_tag()</a></li> + <li><a href="#nbs">nbs()</a></li> + <li><a href="#ol_and_ul">ol() and ul()</a></li> + <li><a href="#meta">meta()</a></li> + <li><a href="#doctype">doctype()</a></li> +</ul> <h2>Loading this Helper</h2> @@ -68,17 +78,18 @@ HTML Helper <p>The following functions are available:</p> -<h2>br()</h2> +<h2><a name="br"></a>br()</h2> <p>Generates line break tags (<br />) based on the number you submit. Example:</p> <code>echo br(3);</code> <p>The above would produce: <br /><br /><br /></p> -<h2>heading()</h2> +<h2><a name="heading"></a>heading()</h2> <p>Lets you create HTML <h1> tags. The first parameter will contain the data, the second the size of the heading. Example:</p> <code>echo heading('Welcome!', 3);</code> <p>The above would produce: <h3>Welcome!</h3></p> -<h2>img()</h2> + +<h2><a name="img"></a>img()</h2> <p>Lets you create HTML <img /> tags. The first parameter contains the image source. Example:</p> <code>echo img('images/picture.jpg');<br /> // gives <img src="http://site.com/images/picture.jpg" /></code> @@ -98,7 +109,8 @@ second the size of the heading. Example:</p> <br /> img($image_properties);<br /> // <img src="http://site.com/index.php/images/picture.jpg" alt="Me, demonstrating how to eat 4 slices of pizza at one time" class="post_images" width="200" height="200" title="That was quite a night" rel="lightbox" /></code></p> -<h2>link_tag()</h2> + +<h2><a name="link_tag"></a>link_tag()</h2> <p>Lets you create HTML <link /> tags. This is useful for stylesheet links, as well as other links. The parameters are href, with optional rel, type, title, media and index_page. index_page is a TRUE/FALSE value that specifics if the href should have the page specified by $config['index_page'] added to the address it creates.<code> echo link_tag('css/mystyles.css');<br /> // gives <link href="http://site.com/css/mystyles.css" rel="stylesheet" type="text/css" /></code></p> @@ -123,12 +135,12 @@ echo link_tag('css/mystyles.css');<br /> echo link_tag($link);<br /> // <link href="http://site.com/css/printer.css" rel="stylesheet" type="text/css" media="print" /></code></p> -<h2>nbs()</h2> +<h2><a name="nbs"></a>nbs()</h2> <p>Generates non-breaking spaces (&nbsp;) based on the number you submit. Example:</p> <code>echo nbs(3);</code> <p>The above would produce: &nbsp;&nbsp;&nbsp;</p> -<h2>ol() and ul()</h2> +<h2><a name="ol_and_ul"></a>ol() and ul()</h2> <p>Permits you to generate ordered or unordered HTML lists from simple or multi-dimensional arrays. Example:</p> @@ -252,7 +264,7 @@ echo ul($list, $attributes);</code> -<h2>meta()</h2> +<h2><a name="meta"></a>meta()</h2> <p>Helps you generate meta tags. You can pass strings to the function, or simple arrays, or multidimensional ones. Examples:</p> @@ -290,7 +302,7 @@ echo meta($meta); </code> -<h2>doctype()</h2> +<h2><a name="doctype"></a>doctype()</h2> <p>Helps you generate document type declarations, or DTD's. XHTML 1.0 Strict is used by default, but many doctypes are available.</p> |