summaryrefslogtreecommitdiffstats
path: root/user_guide/helpers/html_helper.html
diff options
context:
space:
mode:
authorGreg Aker <greg.aker@ellislab.com>2011-04-18 16:40:19 +0200
committerGreg Aker <greg.aker@ellislab.com>2011-04-18 16:40:19 +0200
commit826429cf40a9624788b92d2e6e4b7659e1b0d8a1 (patch)
tree7a9b7a97a815a1ed51fbf3e058377958cbb4b1c9 /user_guide/helpers/html_helper.html
parentbffb7769c6f31b7a47355d4eb66f5ac1d85c2a2e (diff)
Added an optional third parameter to heading() which allows adding html attributes to the rendered heading tag.
Diffstat (limited to 'user_guide/helpers/html_helper.html')
-rw-r--r--user_guide/helpers/html_helper.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/user_guide/helpers/html_helper.html b/user_guide/helpers/html_helper.html
index 1a0529f7b..308013d51 100644
--- a/user_guide/helpers/html_helper.html
+++ b/user_guide/helpers/html_helper.html
@@ -89,6 +89,11 @@ second the size of the heading. Example:</p>
<code>echo heading('Welcome!', 3);</code>
<p>The above would produce: &lt;h3>Welcome!&lt;/h3></p>
+<p>Additionally, in order to add attributes to the heading tag such as HTML classes, ids or inline styles, a third parameter is available.</p>
+<code>echo heading('Welcome!', 3, 'class="pink"')</code>
+<p>The above code produces: &lt;h3 class="pink">Welcome!<&lt;h3></p>
+
+
<h2><a name="img"></a>img()</h2>
<p>Lets you create HTML &lt;img /&gt; tags. The first parameter contains the image source. Example:</p>
<code>echo img('images/picture.jpg');<br />