aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-25 10:23:45 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-25 10:23:45 +0000
commit4b7dde83b6b77f7d98efcbcbae38e816cf8c0b13 (patch)
tree76534950a7794104b95f7f5d67e6e7fb52fcac98
parentcdf654cfb8c76e32b801b422ac76753b689845c2 (diff)
downloadelgg-4b7dde83b6b77f7d98efcbcbae38e816cf8c0b13.tar.gz
elgg-4b7dde83b6b77f7d98efcbcbae38e816cf8c0b13.tar.bz2
added an all site tagcloud view, tagcloud.php will be customised to run in the sidebar.
git-svn-id: http://code.elgg.org/elgg/trunk@6199 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/tagcloud/all.php15
-rw-r--r--mod/tagcloud/tagcloud.php2
2 files changed, 16 insertions, 1 deletions
diff --git a/mod/tagcloud/all.php b/mod/tagcloud/all.php
new file mode 100644
index 000000000..0927e3683
--- /dev/null
+++ b/mod/tagcloud/all.php
@@ -0,0 +1,15 @@
+<?php
+/**
+ * Display site tagcloud
+ **/
+
+// Load Elgg engine
+require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+
+$tags = display_tagcloud(0, 100, 'tags');
+
+//select the correct canvas area
+$body = elgg_view_layout("one_column_with_sidebar", $tags);
+
+// Display page
+page_draw(sprintf(elgg_echo('tagcloud:site:title'),$page_owner->name),$body); \ No newline at end of file
diff --git a/mod/tagcloud/tagcloud.php b/mod/tagcloud/tagcloud.php
index c40cc095b..f5cd3e7ae 100644
--- a/mod/tagcloud/tagcloud.php
+++ b/mod/tagcloud/tagcloud.php
@@ -1,6 +1,6 @@
<?php
/**
- * Display site tagcloud
+ * Display sidebar tagcloud
**/
// Load Elgg engine