Elgg
Version master
|
Go to the source code of this file.
Variables | |
$num_columns = (int) 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 = (int) elgg_extract('owner_guid', $vars) | |
$page_owner = elgg_get_page_owner_entity() | |
if($owner_guid) | else |
if(!$owner instanceof\ElggEntity) | $context = elgg_get_context() |
if(empty($page_owner)||$owner->guid!==$page_owner->guid) | $widgets = elgg_get_widgets($owner->guid, $context) |
$result = '' | |
$no_widgets = elgg_extract('no_widgets', $vars) | |
if(!empty($widgets)) if(!isset($widgets[$num_columns])) foreach($widgets as $index=> $column_widgets) | $grid = '' |
if (!$owner instanceof\ElggEntity) $context = elgg_get_context() |
Definition at line 28 of file widgets.php.
if (!empty($widgets)) if (!isset($widgets[$num_columns])) foreach ($widgets as $index=> $column_widgets) $grid = '' |
Definition at line 84 of file widgets.php.
$no_widgets = elgg_extract('no_widgets', $vars) |
Definition at line 43 of file widgets.php.
$num_columns = (int) 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.
$owner_guid = (int) elgg_extract('owner_guid', $vars) |
Definition at line 15 of file widgets.php.
$page_owner = elgg_get_page_owner_entity() |
Definition at line 17 of file widgets.php.
for ($column_index=1;$column_index<=$num_columns;$column_index++) $result = '' |
Definition at line 42 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.
if (empty($page_owner)||$owner->guid!==$page_owner->guid) $widgets = elgg_get_widgets($owner->guid, $context) |
Definition at line 40 of file widgets.php.
if ($owner_guid) else |
Definition at line 20 of file widgets.php.