Elgg  Version 3.0
Variables
widgets.php File Reference

Go to the source code of this file.

Variables

 $num_columns = elgg_extract('num_columns', $vars, 3)
 Elgg widgets layout. More...
 
 $show_add_widgets = elgg_extract('show_add_widgets', $vars, true)
 
 $show_access = elgg_extract('show_access', $vars, true)
 
 $owner_guid = elgg_extract('owner_guid', $vars)
 
 $page_owner = elgg_get_page_owner_entity()
 
if($owner_guidelse
 
if(!$owner) if($owner->guid!=$page_owner->guid) $context = elgg_get_context()
 
 $widgets = elgg_get_widgets($owner->guid, $context)
 
 $result = ''
 
 $no_widgets = elgg_extract('no_widgets', $vars)
 
if($widgets) if(!isset($widgets[$num_columns])) foreach($widgets as $index=> $column_widgets) $grid = ''
 

Variable Documentation

if (!$owner) if ($owner->guid!=$page_owner->guid) $context = elgg_get_context()

Definition at line 33 of file widgets.php.

if ($widgets) if (!isset($widgets[$num_columns])) foreach ($widgets as $index=> $column_widgets) $grid = ''

Definition at line 78 of file widgets.php.

$no_widgets = elgg_extract('no_widgets', $vars)

Definition at line 38 of file widgets.php.

$num_columns = elgg_extract('num_columns', $vars, 3)

Elgg widgets layout.

$vars['no_widgets'] Optional string or Closure that will be show if there are no widgets $vars['num_columns'] Number of widget columns for this layout (3) $vars['show_add_widgets'] Display the add widgets button and panel (true) $vars['show_access'] Show the access control (true) $vars['owner_guid'] Widget owner GUID (optional, defaults to page owner GUID)

Definition at line 12 of file widgets.php.

Definition at line 15 of file widgets.php.

$page_owner = elgg_get_page_owner_entity()

Definition at line 17 of file widgets.php.

$result = ''

Definition at line 37 of file widgets.php.

$show_access = elgg_extract('show_access', $vars, true)

Definition at line 14 of file widgets.php.

$show_add_widgets = elgg_extract('show_add_widgets', $vars, true)

Definition at line 13 of file widgets.php.

$widgets = elgg_get_widgets($owner->guid, $context)

Definition at line 35 of file widgets.php.

if ($owner_guid) else
Initial value:
{
$owner
Definition: crop.php:7
$page_owner
Definition: widgets.php:17

Definition at line 20 of file widgets.php.