Elgg  Version 1.9
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 = elgg_get_context()

Definition at line 21 of file widgets.php.

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

Definition at line 14 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)

Definition at line 12 of file widgets.php.

Definition at line 17 of file widgets.php.

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

Definition at line 15 of file widgets.php.

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

Definition at line 13 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 45 of file widgets.php.

$widget_types = elgg_get_widget_types()

Definition at line 19 of file widgets.php.

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

Definition at line 24 of file widgets.php.