Elgg  Version 1.9
Variables
tagcloud_block.php File Reference

Go to the source code of this file.

Variables

 $owner_guid = elgg_extract('owner_guid', $vars, ELGG_ENTITIES_ANY_VALUE)
 Display content-based tags. More...
 
if(!$owner_guid$owner_entity = get_entity($owner_guid)
 
if($owner_entity &&elgg_instanceof($owner_entity, 'group')) $type = 'object'
 
 $options
 
 $title = elgg_echo('tagcloud')
 
if(is_array($options['subtype'])&&count($options['subtype']) > 1) else
 
if(!$cloud) $cloud = '<p class="small">'
 

Variable Documentation

$cloud = '<p class="small">'

Definition at line 50 of file tagcloud_block.php.

$options
Initial value:
= array(
'type' => $type,
'subtype' => elgg_extract('subtypes', $vars, ELGG_ENTITIES_ANY_VALUE),
'owner_guid' => $owner_guid,
'threshold' => 0,
'limit' => elgg_extract('limit', $vars, 50),
'tag_name' => 'tags',
)
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1464
if($owner_entity &&elgg_instanceof($owner_entity, 'group')) $type
const ELGG_ENTITIES_ANY_VALUE
Definition: elgglib.php:2134
$owner_guid
Display content-based tags.
if(file_exists($welcome)) $vars
Definition: upgrade.php:93

Definition at line 25 of file tagcloud_block.php.

if (!$owner_guid) $owner_entity = get_entity($owner_guid)

Definition at line 17 of file tagcloud_block.php.

Display content-based tags.

Generally used in a sidebar. Does not work with groups currently.

$vars['subtypes'] Object subtype string or array of subtypes $vars['owner_guid'] The owner of the content being tagged $vars['limit'] The maxinum number of tags to display

Definition at line 12 of file tagcloud_block.php.

Definition at line 34 of file tagcloud_block.php.

if ($owner_entity &&elgg_instanceof($owner_entity, 'group')) $type = 'object'

Definition at line 23 of file tagcloud_block.php.

if (is_array($options['subtype'])&&count($options['subtype']) > 1) else
Initial value:
{
elgg_view_tagcloud(array $options=array())
Create a tagcloud for viewing.
Definition: views.php:1317
$options
if(!$cloud) $cloud

Definition at line 42 of file tagcloud_block.php.