Elgg  Version 6.1
header.php
Go to the documentation of this file.
1 <?php
8 elgg_require_css('admin/users/header');
9 
10 elgg_register_menu_item('title', [
11  'name' => 'users:add',
12  'text' => elgg_echo('admin:users:add'),
13  'href' => 'admin/users/add',
14  'link_class' => 'elgg-button elgg-button-action',
15  'icon' => 'plus',
16 ]);
17 
18 echo elgg_view('navigation/filter', [
19  'filter_id' => 'admin/users',
20  'filter_value' => elgg_extract('filter', $vars, 'all'),
21 ]);
22 
24  'mbl',
25 ];
27 if (!(bool) elgg_extract('show_search_form', $vars, !empty($search_query))) {
28  $search_class[] = 'hidden';
29 }
30 
31 echo elgg_view_form('admin/users/search', [
32  'method' => 'GET',
33  'action' => elgg_get_current_url(),
34  'disable_security' => true,
35  'class' => $search_class,
36  'role' => 'search',
37  'aria-label' => elgg_echo('aria:label:admin:users:search'),
38 ], [
39  'additional_search_fields' => elgg_extract('additional_search_fields', $vars, []),
40 ]);
elgg_view_form(string $action, array $form_vars=[], array $body_vars=[])
Definition: views.php:1033
elgg_require_css(string $view)
Register a CSS view name to be included in the HTML head.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
$search_class
Definition: header.php:23
$vars
Definition: header.php:13
get_input(string $variable, $default=null, bool $filter_result=true)
Parameter input functions.
Definition: input.php:20
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:256
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
elgg_get_current_url()
Returns the current page&#39;s complete URL.
$search_query
Definition: header.php:26
elgg_register_menu_item(string $menu_name, array|\ElggMenuItem $menu_item)
Elgg navigation library Functions for managing menus and other navigational elements.
Definition: navigation.php:83