[0] | 1 | <?php |
---|
| 2 | # -- BEGIN LICENSE BLOCK --------------------------------------- |
---|
| 3 | # |
---|
| 4 | # This file is part of Dotclear 2. |
---|
| 5 | # |
---|
[270] | 6 | # Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear |
---|
[0] | 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','blogroll_dashboard'); |
---|
[3] | 15 | $core->addBehavior('adminDashboardFavs','blogroll_dashboard_favs'); |
---|
[0] | 16 | function blogroll_dashboard($core,$icons) |
---|
| 17 | { |
---|
| 18 | $icons['blogroll'] = new ArrayObject(array(__('Blogroll'),'plugin.php?p=blogroll','index.php?pf=blogroll/icon.png')); |
---|
| 19 | } |
---|
[3] | 20 | function blogroll_dashboard_favs($core,$favs) |
---|
| 21 | { |
---|
[324] | 22 | $favs['blogroll'] = new ArrayObject(array('blogroll','Blogroll','plugin.php?p=blogroll', |
---|
[3] | 23 | 'index.php?pf=blogroll/icon-small.png','index.php?pf=blogroll/icon.png', |
---|
| 24 | 'usage,contentadmin',null,null)); |
---|
| 25 | } |
---|
[0] | 26 | |
---|
| 27 | $_menu['Plugins']->addItem(__('Blogroll'),'plugin.php?p=blogroll','index.php?pf=blogroll/icon-small.png', |
---|
| 28 | preg_match('/plugin.php\?p=blogroll(&.*)?$/',$_SERVER['REQUEST_URI']), |
---|
| 29 | $core->auth->check('usage,contentadmin',$core->blog->id)); |
---|
| 30 | |
---|
| 31 | $core->auth->setPermissionType('blogroll',__('manage blogroll')); |
---|
| 32 | |
---|
| 33 | require dirname(__FILE__).'/_widgets.php'; |
---|
| 34 | ?> |
---|