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

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

Definition at line 50 of file tagcloud_block.php.

◆ $options

$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',
)
const ELGG_ENTITIES_ANY_VALUE
Definition: elgglib.php:2134
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
$owner_guid
Display content-based tags.
if($owner_entity &&elgg_instanceof($owner_entity, 'group')) $type
if(file_exists($welcome)) $vars
Definition: upgrade.php:93

Definition at line 25 of file tagcloud_block.php.

◆ $owner_entity

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

Definition at line 17 of file tagcloud_block.php.

◆ $owner_guid

Display content-based tags.

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

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

Definition at line 12 of file tagcloud_block.php.

◆ $title

Definition at line 34 of file tagcloud_block.php.

◆ $type

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

Definition at line 23 of file tagcloud_block.php.

◆ else

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

Definition at line 42 of file tagcloud_block.php.