From 6fbacea7340b0739c23be0a7d073782c64eee78d Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 9 Jun 2011 22:15:56 +0000 Subject: Fixes #3489 added input/output views for tag and location git-svn-id: http://code.elgg.org/elgg/trunk@9163 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/output/location.php | 14 ++++++++++++++ views/default/output/tag.php | 30 ++++++++++++++++++++++++++++++ views/default/output/tags.php | 2 +- 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 views/default/output/location.php create mode 100644 views/default/output/tag.php (limited to 'views/default/output') diff --git a/views/default/output/location.php b/views/default/output/location.php new file mode 100644 index 000000000..e3619d2e1 --- /dev/null +++ b/views/default/output/location.php @@ -0,0 +1,14 @@ +location; + unset($vars['entity']); +} + +echo elgg_view('output/tag', $vars); diff --git a/views/default/output/tag.php b/views/default/output/tag.php new file mode 100644 index 000000000..abae9c4b2 --- /dev/null +++ b/views/default/output/tag.php @@ -0,0 +1,30 @@ + $url, 'text' => $vars['value'], 'rel' => 'tag')); +} diff --git a/views/default/output/tags.php b/views/default/output/tags.php index 57cb21ea7..6dedfacc7 100644 --- a/views/default/output/tags.php +++ b/views/default/output/tags.php @@ -10,7 +10,7 @@ */ if (isset($vars['entity'])) { - $defaults['value'] = $vars['entity']->tags; + $vars['tags'] = $vars['entity']->tags; unset($vars['entity']); } -- cgit v1.2.3