Elgg  Version 4.3
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($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:135
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:547
elgg echo
Translates a string.
Definition: deprecated.js:530
$vars['head']
Definition: html.php:24