33 if (isset(
$vars[
'base_url']) &&
$vars[
'base_url']) {
34 $base_url =
$vars[
'base_url'];
35 }
else if (isset(
$vars[
'baseurl']) &&
$vars[
'baseurl']) {
37 $base_url =
$vars[
'baseurl'];
38 } elseif (
elgg_is_xhr() && !empty($_SERVER[
'HTTP_REFERER'])) {
39 $base_url = $_SERVER[
'HTTP_REFERER'];
70 $pages[
'prev'][
'disabled'] =
true;
80 $pages[] = [
'text' =>
'...',
'disabled' =>
true];
96 $pages[] = [
'text' =>
'...',
'disabled' =>
true];
118 $pages[
'next'][
'disabled'] =
true;
130 if (!$href && !$disabled) {
132 if ($page_offset <= 0) {
139 if ($href && !$disabled) {
143 'is_trusted' =>
true,
149 $element_options = array();
151 $element_options[
'class'] =
'elgg-state-disabled';
elgg_http_add_url_query_elements($url, array $elements)
Sets elements in a URL's query string.
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_is_xhr()
Checks whether the request was requested via ajax.
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg_in_context($context)
Check if this context exists anywhere in the stack.
elgg echo
Translates a string.
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
if(file_exists($welcome)) $vars