diff options
Diffstat (limited to 'views/default/widgets/control_panel/content.php')
| -rw-r--r-- | views/default/widgets/control_panel/content.php | 24 | 
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', +)); | 
