diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-24 11:55:53 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-24 11:55:53 +0000 |
commit | 4a0f40ed8817308a1be65395b5b53976e433f386 (patch) | |
tree | 469c40f77f6f50a85324d54b021e45baf5e6eb75 | |
parent | 0cd184937e3539f13250ca183e702302e0899bce (diff) | |
download | elgg-4a0f40ed8817308a1be65395b5b53976e433f386.tar.gz elgg-4a0f40ed8817308a1be65395b5b53976e433f386.tar.bz2 |
Introducing elgg_view_title
git-svn-id: https://code.elgg.org/elgg/trunk@1096 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/elgglib.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index b71c19f0a..f99480f10 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -447,7 +447,18 @@ }
}
-
+
+ /**
+ * Returns a view for the page title
+ *
+ * @param string $title The page title
+ * @return string The HTML (etc)
+ */
+ function elgg_view_title($title) {
+
+ return elgg_view('page_elements/title', array('title' => $title));
+
+ }
/**
* Sets an alternative function to handle templates, which will be passed to by elgg_view.
|