Elgg
Version 2.3
|
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) | |
$exact_match = elgg_extract('exact_match', $vars, false) | |
$show_access = elgg_extract('show_access', $vars, true) | |
$owner_guid = elgg_extract('owner_guid', $vars) | |
$page_owner = elgg_get_page_owner_entity() | |
if($owner_guid) | else |
if(!$owner) if($owner->guid!=$page_owner->guid) | $context = elgg_get_context() |
$widget_types | |
$widgets = elgg_get_widgets($owner->guid, $context) | |
$layout_attrs | |
if(elgg_can_edit_widget_layout($context)) if(isset($vars['content'])) | $widget_class = "elgg-col-1of{$num_columns}" |
if (!$owner) if ($owner->guid!=$page_owner->guid) $context = elgg_get_context() |
Definition at line 36 of file widgets.php.
$exact_match = elgg_extract('exact_match', $vars, false) |
Definition at line 15 of file widgets.php.
$layout_attrs |
Definition at line 48 of file widgets.php.
$num_columns = elgg_extract('num_columns', $vars, 3) |
Elgg widgets layout.
$vars['content'] Optional display box at the top of layout $vars['num_columns'] Number of widget columns for this layout (3) $vars['show_add_widgets'] Display the add widgets button and panel (true) $vars['exact_match'] Widgets must match the current context (false) $vars['show_access'] Show the access control (true) $vars['owner_guid'] Widget owner GUID (optional, defaults to page owner GUID)
Definition at line 13 of file widgets.php.
$owner_guid = elgg_extract('owner_guid', $vars) |
Definition at line 17 of file widgets.php.
$page_owner = elgg_get_page_owner_entity() |
Definition at line 19 of file widgets.php.
$show_access = elgg_extract('show_access', $vars, true) |
Definition at line 16 of file widgets.php.
$show_add_widgets = elgg_extract('show_add_widgets', $vars, true) |
Definition at line 14 of file widgets.php.
if (elgg_can_edit_widget_layout($context)) if (isset($vars['content'])) $widget_class = "elgg-col-1of{$num_columns}" |
Definition at line 72 of file widgets.php.
$widget_types |
Definition at line 38 of file widgets.php.
$widgets = elgg_get_widgets($owner->guid, $context) |
Definition at line 46 of file widgets.php.
if ($owner_guid) else |
Definition at line 22 of file widgets.php.