Elgg  Version 1.11
content.php
Go to the documentation of this file.
1 <?php
6 elgg_register_menu_item('admin_control_panel', array(
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 = $upgrader->isUpgradeLocked();
16 
17 if (!$is_locked) {
18  elgg_register_menu_item('admin_control_panel', array(
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', array(
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', array(
36  'class' => 'elgg-menu-hz',
37  'item_class' => 'mrm',
38 ));
elgg_view_menu($menu_name, array $vars=array())
Render a menu.
Definition: views.php:692
$upgrader
Definition: content.php:14
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:43
elgg_register_menu_item($menu_name, $menu_item)
Register an item for an Elgg menu.
Definition: navigation.php:92
$is_locked
Definition: content.php:15