aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/tags.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-15 15:16:07 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-15 15:16:07 +0000
commit71d39f1c4ca21bd25b9bda01451ae651cbbabb64 (patch)
tree93d67f848ed0bf60a26c57ca3c809985a8c55603 /views/default/output/tags.php
parent5a6d2bf8e397792fdc557b658e5ab5caea5d9f29 (diff)
downloadelgg-71d39f1c4ca21bd25b9bda01451ae651cbbabb64.tar.gz
elgg-71d39f1c4ca21bd25b9bda01451ae651cbbabb64.tar.bz2
Tidied up output views
git-svn-id: https://code.elgg.org/elgg/trunk@463 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/output/tags.php')
-rw-r--r--views/default/output/tags.php20
1 files changed, 18 insertions, 2 deletions
diff --git a/views/default/output/tags.php b/views/default/output/tags.php
index 39cee3280..d7df0ccf2 100644
--- a/views/default/output/tags.php
+++ b/views/default/output/tags.php
@@ -1,4 +1,22 @@
<?php
+
+ /**
+ * Elgg tags
+ * Displays a list of tags, separated by commas
+ *
+ * Tags can be a single string (for one tag) or an array of strings
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ * @uses $vars['tags'] The tags to display
+ *
+ */
+
if (!empty($vars['tags'])) {
$string = "";
@@ -16,8 +34,6 @@
}
if (is_string($tag)) {
$tagstr .= "<a href=\"{$vars['url']}search/?tag=".urlencode($tag) . "{$type}\">{$tag}</a>";
- } else {
- $tagstr .= "<a href=\"{$vars['url']}search/?tag=".urlencode($tag->value) . "{$type}\">{$tag->value}</a>";
}
}
echo $tagstr;