Elgg  Version master
no_results.php
Go to the documentation of this file.
1 <?php
8 $no_results = elgg_extract('no_results', $vars);
9 if (empty($no_results)) {
10  return;
11 }
12 
13 if ($no_results instanceof Closure) {
14  echo $no_results();
15  return;
16 }
17 
18 if ($no_results === true) {
19  $no_results = elgg_echo('notfound');
20 }
21 
22 echo elgg_format_element('p', ['class' => ['elgg-no-results']], $no_results);
$no_results
No results view.
Definition: no_results.php:8
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
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:254
$vars
Definition: theme.php:5
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145