aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/elements
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-08 12:20:45 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-08 12:20:45 +0000
commit304ca66699b7c5ccfd2d62604479e3b6ad496a03 (patch)
tree2296bdbf13badb6ab537a3cea5db05e66975c188 /views/default/layout/elements
parentaf5896f771aa0d260659930dcb1d1f050e935ff9 (diff)
downloadelgg-304ca66699b7c5ccfd2d62604479e3b6ad496a03.tar.gz
elgg-304ca66699b7c5ccfd2d62604479e3b6ad496a03.tar.bz2
added a class variable to title view
git-svn-id: http://code.elgg.org/elgg/trunk@8072 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout/elements')
-rw-r--r--views/default/layout/elements/title.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/views/default/layout/elements/title.php b/views/default/layout/elements/title.php
index 5354352c9..19f47f4e6 100644
--- a/views/default/layout/elements/title.php
+++ b/views/default/layout/elements/title.php
@@ -1,9 +1,14 @@
<?php
/**
* Elgg title element
+ *
* @uses $vars['title'] The page title
+ * @uses $vars['class'] Optional class for heading
*/
-$display = "<h2>" . $vars['title'] . "</h2>";
+$class= '';
+if (isset($vars['class'])) {
+ $class = " class=\"{$vars['class']}\"";
+}
-echo $display; \ No newline at end of file
+echo "<h2{$class}>{$vars['title']}</h2>";