Dotclear

source: plugins/simpleMenu/_admin.php @ 2566:9bf417837888

Revision 2566:9bf417837888, 1.3 KB checked in by franck <carnet.franck.paul@…>, 12 years ago (diff)

Add some people in CREDITS, remove trailing spaces and tabs.

Line 
1<?php
2# -- BEGIN LICENSE BLOCK ---------------------------------------
3#
4# This file is part of Dotclear 2.
5#
6# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
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 -----------------------------------------
12if (!defined('DC_CONTEXT_ADMIN')) { return; }
13
14$core->addBehavior('adminDashboardIcons','simpleMenu_dashboard');
15$core->addBehavior('adminDashboardFavorites','simpleMenu_dashboard_favs');
16function simpleMenu_dashboard($core,$icons)
17{
18     $icons['simpleMenu'] = new ArrayObject(array(__('Simple menu'),'plugin.php?p=simpleMenu','index.php?pf=simpleMenu/icon.png'));
19}
20function simpleMenu_dashboard_favs($core,$favs)
21{
22     $favs->register('simpleMenu', array(
23          'title' => __('Simple menu'),
24          'url' => 'plugin.php?p=simpleMenu',
25          'small-icon' => 'index.php?pf=simpleMenu/icon-small.png',
26          'large-icon' => 'index.php?pf=simpleMenu/icon.png',
27          'permissions' => 'usage,contentadmin'
28     ));
29}
30
31$_menu['Blog']->addItem(__('Simple menu'),'plugin.php?p=simpleMenu','index.php?pf=simpleMenu/icon-small.png',
32                preg_match('/plugin.php\?p=simpleMenu(&.*)?$/',$_SERVER['REQUEST_URI']),
33                $core->auth->check('usage,contentadmin',$core->blog->id));
34
35require dirname(__FILE__).'/_widgets.php';
Note: See TracBrowser for help on using the repository browser.

Sites map