Elgg  Version 3.0
header.php File Reference

Go to the source code of this file.


 $widget = elgg_extract('entity', $vars)
 Widget object header. More...
if(!($widget instanceof\ElggWidget)) $title_text = $widget->getDisplayName()
 $url = $widget->getURL()
if(!empty($url)) $title = "<h3 class='elgg-widget-title'>{$title_text}</h3>"

Variable Documentation

Initial value:
= elgg_view('object/widget/elements/controls', [
'widget' => $widget,
'show_edit' => elgg_extract('show_edit', $vars, $widget->canEdit()),
Widget object header.
Definition: header.php:8
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
Definition: save.php:11
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246

Definition at line 24 of file header.php.

if (!empty($url)) $title = "<h3 class='elgg-widget-title'>{$title_text}</h3>"

Definition at line 23 of file header.php.

if (!($widget instanceof\ElggWidget)) $title_text = $widget->getDisplayName()

Definition at line 13 of file header.php.

$url = $widget->getURL()

Definition at line 14 of file header.php.

$widget = elgg_extract('entity', $vars)

Widget object header.

$vars['entity'] ElggWidget

Definition at line 8 of file header.php.