aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/views/default/theme_preview/components
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-29 22:40:43 -0400
committerCash Costello <cash.costello@gmail.com>2012-06-29 22:40:43 -0400
commit70ae31f40ae081cd807f72ad8c8a9c9b4d87a098 (patch)
treeef6d607611f6ddb77504304394925a891d4b2054 /mod/developers/views/default/theme_preview/components
parentb1adaebc1c624e0fd8f7e1c65a0b8f0501259b0e (diff)
downloadelgg-70ae31f40ae081cd807f72ad8c8a9c9b4d87a098.tar.gz
elgg-70ae31f40ae081cd807f72ad8c8a9c9b4d87a098.tar.bz2
Fixes #3041 adds tags and tagcloud to theme sandbox
Diffstat (limited to 'mod/developers/views/default/theme_preview/components')
-rw-r--r--mod/developers/views/default/theme_preview/components/tagcloud.php17
-rw-r--r--mod/developers/views/default/theme_preview/components/tags.php5
2 files changed, 22 insertions, 0 deletions
diff --git a/mod/developers/views/default/theme_preview/components/tagcloud.php b/mod/developers/views/default/theme_preview/components/tagcloud.php
new file mode 100644
index 000000000..3cbf34745
--- /dev/null
+++ b/mod/developers/views/default/theme_preview/components/tagcloud.php
@@ -0,0 +1,17 @@
+<?php
+
+$tags = array(
+ (object)array('tag' => 'php', 'total' => 2),
+ (object)array('tag' => 'elgg', 'total' => 8),
+ (object)array('tag' => 'javascript', 'total' => 3),
+ (object)array('tag' => 'css', 'total' => 4),
+ (object)array('tag' => 'html', 'total' => 1),
+ (object)array('tag' => 'framework', 'total' => 4),
+ (object)array('tag' => 'social', 'total' => 3),
+ (object)array('tag' => 'web', 'total' => 7),
+ (object)array('tag' => 'code', 'total' => 2),
+);
+
+echo '<div style="width: 200px;">';
+echo elgg_view('output/tagcloud', array('value' => $tags));
+echo '</div>';
diff --git a/mod/developers/views/default/theme_preview/components/tags.php b/mod/developers/views/default/theme_preview/components/tags.php
new file mode 100644
index 000000000..04df9511a
--- /dev/null
+++ b/mod/developers/views/default/theme_preview/components/tags.php
@@ -0,0 +1,5 @@
+<?php
+
+echo elgg_view('output/tags', array(
+ 'value' => array('one', 'two', 'three', 'four', 'cinco'),
+));