Elgg  Version 4.3
Footer.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Menus;
4 
6 
13 class Footer {
14 
22  public static function registerRSS(\Elgg\Hook $hook) {
23 
25  return;
26  }
27 
28  /* @var $return MenuItems */
29  $return = $hook->getValue();
30 
31  $return[] = \ElggMenuItem::factory([
32  'name' => 'rss',
33  'icon' => 'rss-square',
34  'text' => elgg_echo('feed:rss'),
35  'title' => elgg_echo('feed:rss:title'),
37  'view' => 'rss',
38  ]),
39  ]);
40 
41  return $return;
42  }
43 
51  public static function registerElggBranding(\Elgg\Hook $hook) {
52  if (_elgg_services()->config->remove_branding) {
53  return;
54  }
55 
56  /* @var $return MenuItems */
57  $return = $hook->getValue();
58 
59  $return[] = \ElggMenuItem::factory([
60  'name' => 'powered',
61  'text' => elgg_echo('elgg:powered'),
62  'href' => 'https://elgg.org',
63  'title' => 'Elgg ' . elgg_get_release(),
64  'section' => 'meta',
65  'priority' => 600,
66  ]);
67 
68  return $return;
69  }
70 }
elgg_http_add_url_query_elements($url, array $elements)
Sets elements in a URL&#39;s query string.
Definition: elgglib.php:481
elgg_get_release()
Get the current Elgg release.
elgg_is_logged_in()
Returns whether or not the user is currently logged in.
Definition: sessions.php:43
Register menu items to the footer menu.
Definition: Footer.php:13
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
static registerElggBranding(\Elgg\Hook $hook)
Add Elgg branding.
Definition: Footer.php:51
_elgg_has_rss_link()
Should the RSS view of this URL be linked to?
Definition: views.php:1345
static factory($options)
Create an ElggMenuItem from an associative array.
Models an event passed to hook handlers.
Definition: Hook.php:11
elgg_get_current_url()
Returns the current page&#39;s complete URL.
static registerRSS(\Elgg\Hook $hook)
Add the rss menu item.
Definition: Footer.php:22
_elgg_services()
Get the global service provider.
Definition: elgglib.php:638