Elgg  Version 4.3
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_http_add_url_query_elements($url, array $elements)
Sets elements in a URL&#39;s query string.
Definition: elgglib.php:481
$count
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
elgg_view_message($type, $body, array $vars=[])
Wrapper function for the message display pattern.
Definition: views.php:965
elgg_get_current_url()
Returns the current page&#39;s complete URL.
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
$pagination
$items
This view provides a way back to other content in the list if a user reaches a listing page out of bo...
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:179