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

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

Definition at line 46 of file default_widgets.php.

◆ $current_info

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

Definition at line 15 of file default_widgets.php.

◆ $list

$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

$tabs = []

Definition at line 16 of file default_widgets.php.

◆ $tabs_vars

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

Definition at line 31 of file default_widgets.php.

◆ $widget_context

$widget_context = get_input('widget_context')

Definition at line 7 of file default_widgets.php.

◆ else

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.