aboutsummaryrefslogtreecommitdiff
path: root/mod/tagcloud/tagcloud.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/tagcloud/tagcloud.php')
-rw-r--r--mod/tagcloud/tagcloud.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/mod/tagcloud/tagcloud.php b/mod/tagcloud/tagcloud.php
new file mode 100644
index 000000000..564e839e3
--- /dev/null
+++ b/mod/tagcloud/tagcloud.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * Display site tagcloud
+ **/
+
+// Load Elgg engine
+require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+
+$title = elgg_view_title(elgg_echo('tagcloud:site:title'));
+$tags = "<div class='tagcloud site'>".display_tagcloud(0, 100, 'tags')."</div>";
+
+//select the correct canvas area
+$body = elgg_view_layout("one_column_with_sidebar", $title . $tags, $sidebar);
+
+// Display page
+page_draw(sprintf(elgg_echo('tagcloud:site:title'),$page_owner->name),$body); \ No newline at end of file