15 uasort(
$widget_types, create_function(
'$a,$b',
'return strcmp($a->name,$b->name);'));
19 foreach ($column_widgets as
$widget) {
25 <
div class=
"elgg-widgets-add-panel hidden clearfix" id=
"widgets-add-panel">
34 $class =
'elgg-state-unavailable';
35 $tooltip =
elgg_echo(
'widget:unavailable');
37 $class =
'elgg-state-available';
38 $tooltip = $widget_type->description;
41 if ($widget_type->multiple) {
42 $class .=
' elgg-widget-multiple';
44 $class .=
' elgg-widget-single';
47 echo "<li title=\"$tooltip\" class=\"$class\" data-elgg-widget-type=\"$handler\">$widget_type->name</li>";
53 'name' =>
'widget_context',
57 'name' =>
'show_access',
58 'value' => (
int)
$vars[
'show_access']
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(isset($vars['id'])) $class
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg echo
Translates a string.
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
$widgets
Widget add panel.
if(file_exists($welcome)) $vars