diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-18 17:43:36 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-18 17:43:36 +0000 |
commit | 412d337ee7f1463dc4ea4cf1d23415b10749f996 (patch) | |
tree | 385fe8b798eec769f0714ed03d5ba41511354dd4 /views/default/page/elements/title.php | |
parent | 17cc9374679465a035f4721eff0c3ae87225e9eb (diff) | |
download | elgg-412d337ee7f1463dc4ea4cf1d23415b10749f996.tar.gz elgg-412d337ee7f1463dc4ea4cf1d23415b10749f996.tar.bz2 |
Refs #2950: layout/elements => page/elements
git-svn-id: http://code.elgg.org/elgg/trunk@8285 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page/elements/title.php')
-rw-r--r-- | views/default/page/elements/title.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/views/default/page/elements/title.php b/views/default/page/elements/title.php new file mode 100644 index 000000000..19f47f4e6 --- /dev/null +++ b/views/default/page/elements/title.php @@ -0,0 +1,14 @@ +<?php +/** + * Elgg title element + * + * @uses $vars['title'] The page title + * @uses $vars['class'] Optional class for heading + */ + +$class= ''; +if (isset($vars['class'])) { + $class = " class=\"{$vars['class']}\""; +} + +echo "<h2{$class}>{$vars['title']}</h2>"; |