Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Menus
AdminFooter.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Menus
;
4
5
use
Elgg\Menu\MenuItems
;
6
13
class
AdminFooter
{
14
22
public
static
function
registerHelpResources
(\
Elgg
\
Event
$event) {
23
if
(!
elgg_is_admin_logged_in
()) {
24
return
;
25
}
26
27
/* @var $return MenuItems */
28
$return = $event->getValue();
29
30
$return[] =
\ElggMenuItem::factory
([
31
'name'
=>
'faq'
,
32
'text'
=>
elgg_echo
(
'admin:footer:faq'
),
33
'href'
=>
'http://learn.elgg.org/en/stable/appendix/faqs.html'
,
34
]);
35
36
$return[] =
\ElggMenuItem::factory
([
37
'name'
=>
'manual'
,
38
'text'
=>
elgg_echo
(
'admin:footer:manual'
),
39
'href'
=>
'http://learn.elgg.org/en/stable/admin/index.html'
,
40
]);
41
42
$return[] =
\ElggMenuItem::factory
([
43
'name'
=>
'community_forums'
,
44
'text'
=>
elgg_echo
(
'admin:footer:community_forums'
),
45
'href'
=>
'https://elgg.org/groups/all/'
,
46
]);
47
48
$return[] =
\ElggMenuItem::factory
([
49
'name'
=>
'blog'
,
50
'text'
=>
elgg_echo
(
'admin:footer:blog'
),
51
'href'
=>
'https://elgg.org/blog/all'
,
52
]);
53
54
return
$return;
55
}
56
}
Elgg\Menus\AdminFooter
Register menu items for the admin_footer menu.
Definition:
AdminFooter.php:13
elgg_is_admin_logged_in
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
Definition:
sessions.php:52
Elgg\Menus\AdminFooter\registerHelpResources
static registerHelpResources(\Elgg\Event $event)
Add links to Elgg help resources.
Definition:
AdminFooter.php:22
elgg_echo
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition:
languages.php:17
ElggMenuItem\factory
static factory(array $options)
Create an ElggMenuItem from an associative array.
Definition:
ElggMenuItem.php:130
MenuItems
Elgg
Definition:
ActionsService.php:3
Elgg\Menus
Definition:
AdminControlPanel.php:3
Elgg\Event
Models an event passed to event handlers.
Definition:
Event.php:11
Generated on Wed Dec 4 2024 00:00:21 for Elgg by
1.8.11