33 return strcmp($a->name, $b->name);
37 foreach (
$widgets as $column_widgets) {
38 foreach ($column_widgets as
$widget) {
44 'class' =>
'elgg-text-help',
52 $class[] =
'elgg-state-unavailable';
54 $class[] =
'elgg-state-available';
57 $class[] = $widget_type->multiple ?
'elgg-widget-multiple' :
'elgg-widget-single';
59 $action =
'<div class="elgg-widgets-add-actions elgg-level">';
60 if (!$widget_type->multiple) {
65 'class' =>
'elgg-button elgg-button-submit elgg-size-small',
79 if ($widget_type->description) {
84 'class' =>
'elgg-widgets-add-description',
88 'class' =>
'elgg-level',
97 $result .=
"<ul>$list_items</ul>";
elgg_entity_gatekeeper($guid, $type=null, $subtype=null, $validate_can_edit=false)
Can the viewer see this entity?
elgg_generate_action_url($action, array $query=[], $add_csrf_tokens=true)
Generate an action URL.
elgg_set_context_stack(array $stack)
Set the entire context stack.
foreach($widgets as $column_widgets) $result
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
elgg_set_page_owner_guid($guid)
Set the guid of the entity that owns this page.
elgg_in_context($context)
Check if this context exists anywhere in the stack.
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
elgg_view_module($type, $title, $body, array $vars=[])
Wrapper function for the module display pattern.
elgg_require_js($name)
Request that Elgg load an AMD module onto the page.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg echo
Translates a string.
elgg_ajax_gatekeeper()
Require that the current request be an XHR.
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
get_entity($guid)
Loads and returns an entity object from a guid.