40 unset(
$vars[
'pagination_before_options']);
42 unset(
$vars[
'pagination_after_options']);
71 $item_view_vars =
$vars;
72 $item_view_vars[
'list_item_index'] =
$index;
78 $list_item_vars =
$vars;
80 $list_item_vars[
'item'] =
$item;
90 $pagination_options[
'position'] =
'before';
104 $pagination_options[
'position'] =
'after';
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_in_context(string $context)
Check if this context exists anywhere in the stack.
if(elgg_in_context('widget')) $pagination_before_options
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
if($pagination &&($position== 'after'||$position== 'both')) $limit
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(!$pagination &&$limit!==false &&!empty($items)&&count($items) >=$limit) $base_url
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
elgg_view_list_item($item, array $vars=[])
View an item in a list.
elgg_import_esm(string $name)
Helper functions for external files like css/js.
$items
View a list of items.
if(!$items) if(!is_array($items)||count($items)==0) $position
elgg_http_add_url_query_elements(string $url, array $elements)
Sets elements in a URL's query string.
if($pagination) $container_classes
if(in_array($pagination_behaviour, ['ajax-append', 'ajax-append-auto'])) $list_classes
foreach($items as $item) $result
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
if(empty($list_item_view)||!elgg_view_exists($list_item_view)) $index
elgg_build_hmac($data)
Get an HMAC token builder/validator object.
elgg_view_exists(string $view, string $viewtype= '', bool $recurse=true)
Returns whether the specified view exists.
$pagination_after_options
if(!empty($base_url)) $id