aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/elements
diff options
context:
space:
mode:
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>";