Elgg  Version 1.11
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 = elgg_get_widget_types('all')
 
 $handler = $widget->handler
 
 $title = $widget->getTitle()
 
 $edit_area = ''
 
 $can_edit = $widget->canEdit()
 
if($can_edit) $controls
 
if(elgg_in_context('default_widgets')) else
 
 $widget_instance = preg_replace('/[^a-z0-9-]/i', '-', "elgg-widget-instance-$handler")
 
 $additional_class = elgg_extract('class', $vars, '')
 
if($additional_class) $widget_header =
 
 $widget_body =
 

Variable Documentation

◆ $additional_class

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

Definition at line 57 of file widget.php.

◆ $can_edit

$can_edit = $widget->canEdit()

Definition at line 25 of file widget.php.

◆ $controls

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

Definition at line 32 of file widget.php.

◆ $edit_area

$edit_area = ''

Definition at line 24 of file widget.php.

◆ $handler

$handler = $widget->handler

Definition at line 20 of file widget.php.

◆ $show_access

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

Definition at line 15 of file widget.php.

◆ $title

$title = $widget->getTitle()

Definition at line 22 of file widget.php.

◆ $widget

$widget = $vars['entity']

Widget object.

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

Definition at line 10 of file widget.php.

◆ $widget_body

$widget_body =

Definition at line 68 of file widget.php.

◆ $widget_header

if ( $additional_class) $widget_header =

Definition at line 62 of file widget.php.

◆ $widget_instance

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

Definition at line 50 of file widget.php.

◆ $widget_types

$widget_types = elgg_get_widget_types('all')

Definition at line 18 of file widget.php.

◆ else

if ( $can_edit) else
Initial value:
{
if (elgg_view_exists("widgets/$handler/content")) {
$content = elgg_view("widgets/$handler/content", $vars);
} else {
elgg_deprecated_notice("widgets use content as the display view", 1.8);
$content = elgg_view("widgets/$handler/view", $vars);
}
}
$widget_id = "elgg-widget-$widget->guid"
$content
Set robots.txt action.
Definition: set_robots.php:6
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
Definition: elgglib.php:1006
if(file_exists($welcome)) $vars
Definition: upgrade.php:93
elgg_view_exists($view, $viewtype='', $recurse=true)
Returns whether the specified view exists.
Definition: views.php:318

Definition at line 40 of file widget.php.