diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-01 00:57:18 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-01 00:57:18 +0000 |
commit | ad6e04d0bbf812dfe048f1fdbde7aa5c787b6d1a (patch) | |
tree | 31318b4d53199abede8b03a47b1ff79add545ea3 /mod/tagcloud/views/default/widgets/tagcloud/content.php | |
parent | 3bda294ee00663362db778fef320f866bc3a28e5 (diff) | |
download | elgg-ad6e04d0bbf812dfe048f1fdbde7aa5c787b6d1a.tar.gz elgg-ad6e04d0bbf812dfe048f1fdbde7aa5c787b6d1a.tar.bz2 |
Fixes #2555 content.php is the new display view for widgets
git-svn-id: http://code.elgg.org/elgg/trunk@7484 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/tagcloud/views/default/widgets/tagcloud/content.php')
-rw-r--r-- | mod/tagcloud/views/default/widgets/tagcloud/content.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mod/tagcloud/views/default/widgets/tagcloud/content.php b/mod/tagcloud/views/default/widgets/tagcloud/content.php new file mode 100644 index 000000000..5ed71d66a --- /dev/null +++ b/mod/tagcloud/views/default/widgets/tagcloud/content.php @@ -0,0 +1,14 @@ +<?php + +$num_items = $vars['entity']->num_items; +if (!isset($num_items)) { + $num_items = 30; +} + +$options = array( + 'owner_guid' => elgg_get_page_owner_guid(), + 'threshold' => 1, + 'limit' => $num_items, + 'tag_name' => 'tags', +); +echo elgg_view_tagcloud($options); |