Elgg  Version master
Variables
default_widgets.php File Reference

Go to the source code of this file.

Variables

 $widget_context = get_input('widget_context')
 
 $list = elgg_trigger_event_results('get_list', 'default_widgets', [], [])
 
if(!$widget_context &&$list) $current_info = null
 
 $tabs = []
 
foreach($list as $info) $tabs_vars
 
if(!$current_info) else
 
 $content
 

Variable Documentation

$content
Initial value:
= elgg_view_layout('widgets', [
'num_columns' => $current_info['widget_columns'],
])
elgg_view_layout(string $layout_name, array $vars=[])
Displays a layout with optional parameters.
Definition: views.php:352
if(!$widget_context &&$list) $current_info

Definition at line 46 of file default_widgets.php.

if (!$widget_context &&$list) $current_info = null

Definition at line 15 of file default_widgets.php.

$list = elgg_trigger_event_results('get_list', 'default_widgets', [], [])
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 8 of file default_widgets.php.

$tabs = []

Definition at line 16 of file default_widgets.php.

foreach ($list as $info) $tabs_vars
Initial value:
= [
'tabs' => $tabs
]

Definition at line 31 of file default_widgets.php.

$widget_context = get_input('widget_context')

Definition at line 7 of file default_widgets.php.

if (!$current_info) else
Initial value:
{
elgg_set_page_owner_guid(int $guid)
Set the guid of the entity that owns this page.
Definition: pageowner.php:34

Definition at line 41 of file default_widgets.php.