Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
Variables
widget.php File Reference

Go to the source code of this file.

Variables

 $widget = $vars['entity']
 Widget object. More...
 
if(!elgg_instanceof($widget,
'object', 'widget')) 
$show_access = elgg_extract('show_access', $vars, true)
 
 $widget_types
 
 $handler = $widget->handler
 
 $title = $widget->getTitle()
 
 $edit_area = ''
 
 $can_edit = $widget->canEdit()
 
if($can_edit) $controls
 
 $content = elgg_view('object/widget/elements/content', $vars)
 
 $widget_id = "elgg-widget-$widget->guid"
 
 $widget_instance = preg_replace('/[^a-z0-9-]/i', '-', "elgg-widget-instance-$handler")
 
if($can_edit) else
 
 $additional_class = elgg_extract('class', $vars, '')
 
if($additional_class) $widget_header
 
 $widget_body
 

Variable Documentation

$additional_class = elgg_extract('class', $vars, '')

Definition at line 50 of file widget.php.

$can_edit = $widget->canEdit()

Definition at line 28 of file widget.php.

$content = elgg_view('object/widget/elements/content', $vars)

Definition at line 40 of file widget.php.

if ($can_edit) $controls
Initial value:
= elgg_view('object/widget/elements/controls', array(
'widget' => $widget,
'show_edit' => $edit_area != '',
))
$widget
Widget object.
Definition: widget.php:10
$edit_area
Definition: widget.php:27
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342

Definition at line 35 of file widget.php.

$edit_area = ''

Definition at line 27 of file widget.php.

$handler = $widget->handler

Definition at line 23 of file widget.php.

if (!elgg_instanceof($widget, 'object', 'widget')) $show_access = elgg_extract('show_access', $vars, true)

Definition at line 15 of file widget.php.

$title = $widget->getTitle()

Definition at line 25 of file widget.php.

$widget = $vars['entity']

Widget object.

$vars['entity'] ElggWidget $vars['show_access'] Show the access control in edit area? (true) $vars['class'] Optional additional CSS class

Definition at line 10 of file widget.php.

$widget_body
Initial value:
= <<<BODY
<div class="elgg-widget-content" id="elgg-widget-content-$widget->guid">
</div>
BODY
$content
Definition: widget.php:40
$edit_area
Definition: widget.php:27

Definition at line 61 of file widget.php.

if ($additional_class) $widget_header
Initial value:
= <<<HEADER
<div class="elgg-widget-handle clearfix"><h3 class="elgg-widget-title">$title</h3>
</div>
HEADER
if($can_edit) $controls
Definition: widget.php:35
elgg module widget elgg head h3
$title
Definition: widget.php:25

Definition at line 55 of file widget.php.

$widget_id = "elgg-widget-$widget->guid"

Definition at line 42 of file widget.php.

$widget_instance = preg_replace('/[^a-z0-9-]/i', '-', "elgg-widget-instance-$handler")

Definition at line 43 of file widget.php.

$widget_types
Initial value:
'context' => 'all',
'container' => $widget->getContainerEntity(),
])
$widget
Widget object.
Definition: widget.php:10
elgg_get_widget_types($context="", $exact=false)
Get the widget types for a context.
Definition: widgets.php:140

Definition at line 18 of file widget.php.

if ($can_edit) else
Initial value:
{
$widget_class = "elgg-state-fixed $widget_instance"
if(elgg_can_edit_widget_layout($context)) if(isset($vars['content'])) $widget_class
Definition: widgets.php:72

Definition at line 46 of file widget.php.