From 1414987474e8d9a96e640ba9378d447677cfc387 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 22 Jul 2009 11:52:09 +0000 Subject: nav links in html helper --- user_guide/helpers/html_helper.html | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'user_guide') 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

The HTML Helper file contains functions that assist in working with HTML.

+

Loading this Helper

@@ -68,17 +78,18 @@ HTML Helper

The following functions are available:

-

br()

+

br()

Generates line break tags (<br />) based on the number you submit. Example:

echo br(3);

The above would produce: <br /><br /><br />

-

heading()

+

heading()

Lets you create HTML <h1> tags. The first parameter will contain the data, the second the size of the heading. Example:

echo heading('Welcome!', 3);

The above would produce: <h3>Welcome!</h3>

-

img()

+ +

img()

Lets you create HTML <img /> tags. The first parameter contains the image source. Example:

echo img('images/picture.jpg');
// gives <img src="http://site.com/images/picture.jpg" />
@@ -98,7 +109,8 @@ second the size of the heading. Example:


img($image_properties);
// <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" />

-

link_tag()

+ +

link_tag()

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. echo link_tag('css/mystyles.css');
// gives <link href="http://site.com/css/mystyles.css" rel="stylesheet" type="text/css" />

@@ -123,12 +135,12 @@ echo link_tag('css/mystyles.css');
echo link_tag($link);
// <link href="http://site.com/css/printer.css" rel="stylesheet" type="text/css" media="print" />

-

nbs()

+

nbs()

Generates non-breaking spaces (&nbsp;) based on the number you submit. Example:

echo nbs(3);

The above would produce: &nbsp;&nbsp;&nbsp;

-

ol()  and  ul()

+

ol()  and  ul()

Permits you to generate ordered or unordered HTML lists from simple or multi-dimensional arrays. Example:

@@ -252,7 +264,7 @@ echo ul($list, $attributes); -

meta()

+

meta()

Helps you generate meta tags. You can pass strings to the function, or simple arrays, or multidimensional ones. Examples:

@@ -290,7 +302,7 @@ echo meta($meta); -

doctype()

+

doctype()

Helps you generate document type declarations, or DTD's. XHTML 1.0 Strict is used by default, but many doctypes are available.

-- cgit v1.2.3-24-g4f1b