Elgg  Version 2.3
content.php
Go to the documentation of this file.
1 <?php
6 elgg_register_menu_item('admin_control_panel', [
7  'name' => 'flush',
8  'text' => elgg_echo('admin:cache:flush'),
9  'href' => 'action/admin/site/flush_cache',
10  'is_action' => true,
11  'link_class' => 'elgg-button elgg-button-action',
12 ]);
13 
15 $is_locked = $mutex->isLocked('upgrade');
16 
17 if (!$is_locked) {
18  elgg_register_menu_item('admin_control_panel', [
19  'name' => 'upgrade',
20  'text' => elgg_echo('upgrade'),
21  'href' => 'upgrade.php',
22  'link_class' => 'elgg-button elgg-button-action',
23  ]);
24 } else {
25  elgg_register_menu_item('admin_control_panel', [
26  'name' => 'unlock_upgrade',
27  'text' => elgg_echo('upgrade:unlock'),
28  'href' => 'action/admin/site/unlock_upgrade',
29  'is_action' => true,
30  'link_class' => 'elgg-button elgg-button-action',
31  'confirm' => elgg_echo('upgrade:unlock:confirm'),
32  ]);
33 }
34 
35 echo elgg_view_menu('admin_control_panel', [
36  'class' => 'elgg-menu-hz',
37  'item_class' => 'mrm',
38 ]);
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:48
$is_locked
Definition: content.php:15
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
Definition: autoloader.php:17
elgg_view_menu($menu, array $vars=array())
Render a menu.
Definition: views.php:775
$mutex
Definition: content.php:14