Elgg  Version 6.1
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\Event $event) {
23 
25  return;
26  }
27 
28  /* @var $return MenuItems */
29  $return = $event->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\Event $event) {
52  if (_elgg_services()->config->remove_branding) {
53  return;
54  }
55 
56  /* @var $return MenuItems */
57  $return = $event->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_get_release()
Get the current Elgg release.
static registerRSS(\Elgg\Event $event)
Add the rss menu item.
Definition: Footer.php:22
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(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
static factory(array $options)
Create an ElggMenuItem from an associative array.
_elgg_has_rss_link()
Should the RSS view of this URL be linked to?
Definition: views.php:1291
elgg_get_current_url()
Returns the current page&#39;s complete URL.
elgg_http_add_url_query_elements(string $url, array $elements)
Sets elements in a URL&#39;s query string.
Definition: elgglib.php:183
static registerElggBranding(\Elgg\Event $event)
Add Elgg branding.
Definition: Footer.php:51
_elgg_services()
Get the global service provider.
Definition: elgglib.php:353
Models an event passed to event handlers.
Definition: Event.php:11