2021-09-08 22:53:13 +00:00
|
|
|
<?php
|
2021-09-08 23:02:10 +00:00
|
|
|
/**
|
|
|
|
* @brief noodles, a for Dotclear 2
|
|
|
|
*
|
|
|
|
* @package Dotclear
|
|
|
|
* @subpackage \u
|
|
|
|
*
|
|
|
|
* @author JC Denis
|
|
|
|
*
|
|
|
|
* @copyright Jean-Christian Denis
|
|
|
|
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
*/
|
2021-09-08 22:53:13 +00:00
|
|
|
|
|
|
|
if (!defined('DC_CONTEXT_ADMIN')){return;}
|
|
|
|
|
|
|
|
# Admin menu
|
|
|
|
$_menu['Plugins']->addItem(
|
2021-09-08 23:02:10 +00:00
|
|
|
__('Noodles'),
|
|
|
|
'plugin.php?p=noodles','index.php?pf=noodles/icon.png',
|
|
|
|
preg_match('/plugin.php\?p=noodles(&.*)?$/',$_SERVER['REQUEST_URI']),
|
|
|
|
$core->auth->check('admin',$core->blog->id)
|
|
|
|
);
|