From: cash Date: Tue, 8 Feb 2011 12:20:45 +0000 (+0000) Subject: added a class variable to title view X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=304ca66699b7c5ccfd2d62604479e3b6ad496a03;p=lorea%2Felgg.git added a class variable to title view git-svn-id: http://code.elgg.org/elgg/trunk@8072 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/engine/lib/views.php b/engine/lib/views.php index bc9a6fd14..21409bab4 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -1010,7 +1010,7 @@ function elgg_view_entity_annotations(ElggEntity $entity, $full = true) { * This is a shortcut for {@elgg_view layout/elements/title}. * * @param string $title The page title - * @param string $submenu Should a submenu be displayed? (default false, use not recommended and deprecated) + * @param string $submenu Should a submenu be displayed? (deprecated) * * @return string The HTML (etc) */ 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 @@ " . $vars['title'] . ""; +$class= ''; +if (isset($vars['class'])) { + $class = " class=\"{$vars['class']}\""; +} -echo $display; \ No newline at end of file +echo "{$vars['title']}";