| [532] | 1 | <?php |
|---|
| 2 | # -- BEGIN LICENSE BLOCK --------------------------------------- |
|---|
| 3 | # |
|---|
| 4 | # This file is part of Dotclear 2. |
|---|
| 5 | # |
|---|
| [1179] | 6 | # Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear |
|---|
| [532] | 7 | # Licensed under the GPL version 2.0 license. |
|---|
| 8 | # See LICENSE file or |
|---|
| 9 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
|---|
| 10 | # |
|---|
| 11 | # -- END LICENSE BLOCK ----------------------------------------- |
|---|
| 12 | if (!defined('DC_CONTEXT_ADMIN')) { return; } |
|---|
| 13 | |
|---|
| 14 | $core->addBehavior('adminDashboardIcons','simpleMenu_dashboard'); |
|---|
| 15 | $core->addBehavior('adminDashboardFavs','simpleMenu_dashboard_favs'); |
|---|
| 16 | function simpleMenu_dashboard($core,$icons) |
|---|
| 17 | { |
|---|
| [534] | 18 | $icons['simpleMenu'] = new ArrayObject(array(__('Simple menu'),'plugin.php?p=simpleMenu','index.php?pf=simpleMenu/icon.png')); |
|---|
| [532] | 19 | } |
|---|
| 20 | function simpleMenu_dashboard_favs($core,$favs) |
|---|
| 21 | { |
|---|
| 22 | $favs['simpleMenu'] = new ArrayObject(array('simpleMenu','Simple menu','plugin.php?p=simpleMenu', |
|---|
| 23 | 'index.php?pf=simpleMenu/icon-small.png','index.php?pf=simpleMenu/icon.png', |
|---|
| 24 | 'usage,contentadmin',null,null)); |
|---|
| 25 | } |
|---|
| 26 | |
|---|
| [1292] | 27 | $_menu['Blog']->addItem(__('Simple menu'),'plugin.php?p=simpleMenu','index.php?pf=simpleMenu/icon-small.png', |
|---|
| [532] | 28 | preg_match('/plugin.php\?p=simpleMenu(&.*)?$/',$_SERVER['REQUEST_URI']), |
|---|
| 29 | $core->auth->check('usage,contentadmin',$core->blog->id)); |
|---|
| [587] | 30 | |
|---|
| 31 | require dirname(__FILE__).'/_widgets.php'; |
|---|
| [532] | 32 | ?> |
|---|