Elgg  Version 1.11
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)
 
 $exact_match = elgg_extract('exact_match', $vars, false)
 
 $show_access = elgg_extract('show_access', $vars, true)
 
 $owner = elgg_get_page_owner_entity()
 
 $widget_types = elgg_get_widget_types()
 
 $context = elgg_get_context()
 
 $widgets = elgg_get_widgets($owner->guid, $context)
 
if(elgg_can_edit_widget_layout($context)) if(isset($vars['content'])) $widget_class = "elgg-col-1of{$num_columns}"
 

Variable Documentation

◆ $context

$context = elgg_get_context()

Definition at line 21 of file widgets.php.

◆ $exact_match

$exact_match = elgg_extract('exact_match', $vars, false)

Definition at line 14 of file widgets.php.

◆ $num_columns

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

Elgg widgets layout.

@uses $vars['content'] Optional display box at the top of layout @uses $vars['num_columns'] Number of widget columns for this layout (3) @uses $vars['show_add_widgets'] Display the add widgets button and panel (true) @uses $vars['exact_match'] Widgets must match the current context (false) @uses $vars['show_access'] Show the access control (true)

Definition at line 12 of file widgets.php.

◆ $owner

Definition at line 17 of file widgets.php.

◆ $show_access

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

Definition at line 15 of file widgets.php.

◆ $show_add_widgets

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

Definition at line 13 of file widgets.php.

◆ $widget_class

if (elgg_can_edit_widget_layout( $context)) if (isset( $vars[ 'content'])) $widget_class = "elgg-col-1of{$num_columns}"

Definition at line 45 of file widgets.php.

◆ $widget_types

$widget_types = elgg_get_widget_types()

Definition at line 19 of file widgets.php.

◆ $widgets

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

Definition at line 24 of file widgets.php.