aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-08 20:09:36 -0500
committercash <cash.costello@gmail.com>2011-12-08 20:09:36 -0500
commit1ec7692c1639e8415cd9984d9ad040ec28bd9755 (patch)
treeaddb8093c044e13cbbf33412d1670fb80a27f003 /views/default
parentcb20d84a4ce17c8071e8f474b82341ec1aec083d (diff)
downloadelgg-1ec7692c1639e8415cd9984d9ad040ec28bd9755.tar.gz
elgg-1ec7692c1639e8415cd9984d9ad040ec28bd9755.tar.bz2
Fixes #4185, #2111 adds control panel widget
Diffstat (limited to 'views/default')
-rw-r--r--views/default/widgets/control_panel/content.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/views/default/widgets/control_panel/content.php b/views/default/widgets/control_panel/content.php
new file mode 100644
index 000000000..d2db54bc6
--- /dev/null
+++ b/views/default/widgets/control_panel/content.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * Admin control panel widget
+ */
+
+elgg_register_menu_item('admin_control_panel', array(
+ 'name' => 'flush',
+ 'text' => elgg_echo('admin:cache:flush'),
+ 'href' => 'action/admin/site/flush_cache',
+ 'is_action' => true,
+ 'link_class' => 'elgg-button elgg-button-action',
+));
+
+elgg_register_menu_item('admin_control_panel', array(
+ 'name' => 'upgrade',
+ 'text' => elgg_echo('upgrade'),
+ 'href' => 'upgrade.php',
+ 'link_class' => 'elgg-button elgg-button-action',
+));
+
+echo elgg_view_menu('admin_control_panel', array(
+ 'class' => 'elgg-menu-hz',
+ 'item_class' => 'mrm',
+));