aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/cloud_generic_index/content.php
blob: d87e70b1633f468db263819bab027dbe1c17edb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

$maintype = "object";
$subtype = $vars["entity"]->widget_subtype;

if ($subtype == 'user') {$maintype='user'; $subtype='';}
if ($subtype == 'group') {$maintype='group'; $subtype='';}

$num_items = $vars['entity']->num_items;
if (!isset($num_items))
    $num_items = 20;
	
$metadata_name = $vars['entity']->metadata_name;
if (!isset($metadata_name))
    $metadata_name = "";

$threshold = $vars['entity']->threshold;
if (!isset($threshold))
    $threshold = 1;
	
$widget_group = $vars["entity"]->widget_group;
if (!isset($widget_group)) $widget_group = "";



$body = elgg_view_tagcloud($threshold, $num_items, $metadata_name, $maintype, $subtype, $widget_group , -1);;
echo $body;
	
?>