Elgg  Version 5.1
out_of_bounds.php
Go to the documentation of this file.
1 <?php
6 $items = elgg_extract('items', $vars);
7 $pagination = (bool) elgg_extract('pagination', $vars);
8 $count = (int) elgg_extract('count', $vars);
9 
10 if (!empty($items) || !$pagination || empty($count)) {
11  return;
12 }
13 
14 $link = elgg_view('output/url', [
15  'text' => elgg_echo('list:out_of_bounds:link'),
16  'href' => elgg_http_add_url_query_elements(elgg_get_current_url(), ['offset' => null]),
17 ]);
18 
19 echo elgg_view_message('notice', elgg_echo('list:out_of_bounds'), ['link' => $link]);
if(!empty($items)||!$pagination||empty($count)) $link
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
$count
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
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:177
elgg_get_current_url()
Returns the current page&#39;s complete URL.
elgg_http_add_url_query_elements(string $url, array $elements)
Sets elements in a URL&#39;s query string.
Definition: elgglib.php:181
$vars
Definition: theme.php:5
elgg_view_message(string $type, string $body, array $vars=[])
Wrapper function for the message display pattern.
Definition: views.php:961
$pagination
$items
This view provides a way back to other content in the list if a user reaches a listing page out of bo...