Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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_guid = elgg_extract('owner_guid', $vars)
 
 $page_owner = elgg_get_page_owner_entity()
 
if($owner_guidelse
 
if(!$owner) if($owner->guid!=$page_owner->
guid) 
$context = elgg_get_context()
 
 $widget_types
 
 $widgets = elgg_get_widgets($owner->guid, $context)
 
 $layout_attrs
 
if(elgg_can_edit_widget_layout($context))
if(isset($vars['content'])) 
$widget_class = "elgg-col-1of{$num_columns}"
 

Variable Documentation

if (!$owner) if ($owner->guid!=$page_owner->guid) $context = elgg_get_context()

Definition at line 36 of file widgets.php.

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

Definition at line 15 of file widgets.php.

$layout_attrs
Initial value:
'class' => 'elgg-layout-widgets',
'data-page-owner-guid' => $owner->guid,
))
$owner
Definition: crop.php:8
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed HTML/XML attributes Returns a concatenated...
Definition: output.php:139

Definition at line 48 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) $vars['owner_guid'] Widget owner GUID (optional, defaults to page owner GUID)

Definition at line 13 of file widgets.php.

Definition at line 17 of file widgets.php.

$page_owner = elgg_get_page_owner_entity()

Definition at line 19 of file widgets.php.

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

Definition at line 16 of file widgets.php.

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

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

$widget_types
Initial value:
'context' => $context,
'exact' => $exact_match,
'container' => $owner,
])
$exact_match
Definition: widgets.php:15
$owner
Definition: crop.php:8
if(!$owner) if($owner->guid!=$page_owner->guid) $context
Definition: widgets.php:36
elgg_get_widget_types($context="", $exact=false)
Get the widget types for a context.
Definition: widgets.php:140

Definition at line 38 of file widgets.php.

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

Definition at line 46 of file widgets.php.

if ($owner_guid) else
Initial value:
{
$owner
Definition: crop.php:8
$page_owner
Definition: widgets.php:19

Definition at line 22 of file widgets.php.