40 unset(
$vars[
'pagination_before_options']);
42 unset(
$vars[
'pagination_after_options']);
70 $item_view_vars =
$vars;
71 $item_view_vars[
'list_item_index'] =
$index;
77 $list_item_vars =
$vars;
79 $list_item_vars[
'item'] =
$item;
89 $pagination_options[
'position'] =
'before';
103 $pagination_options[
'position'] =
'after';
elgg_http_add_url_query_elements($url, array $elements)
Sets elements in a URL's query string.
elgg_view_exists($view, $viewtype= '', $recurse=true)
Returns whether the specified view exists.
if(elgg_in_context('widget')) $pagination_before_options
if($pagination &&($position== 'after'||$position== 'both')) $limit
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
if(!$pagination &&$limit!==false &&!empty($items)&&count($items) >=$limit) $base_url
elgg_view_list_item($item, array $vars=[])
View an item in a list.
elgg_in_context($context)
Check if this context exists anywhere in the stack.
$items
View a list of items.
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
if(!$items) if(!is_array($items)||count($items)==0) $position
elgg_require_js($name)
Request that Elgg load an AMD module onto the page.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(in_array($pagination_behaviour, ['ajax-append', 'ajax-append-auto'])) $list_classes
foreach($items as $item) $result
elgg echo
Translates a string.
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($view, $vars=[], $viewtype= '')
Return a parsed view.
elgg_get_config($name, $default=null)
Get an Elgg configuration value.
$pagination_after_options
if(!empty($base_url)) $id