CategoriesPage/_admin.php

34 lines
956 B
PHP
Raw Normal View History

2013-10-28 15:39:42 +00:00
<?php
2013-11-01 10:55:10 +00:00
/* -- BEGIN LICENSE BLOCK ----------------------------------
2013-10-28 15:39:42 +00:00
#
# This file is part of Categories Page, a plugin for Dotclear 2.
#
2013-11-01 10:55:10 +00:00
# Copyright (c) 2013 Pierre Van Glabeke, Bernard Le Roux
2013-10-28 15:39:42 +00:00
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
2013-11-01 10:55:10 +00:00
# -- END LICENSE BLOCK ------------------------------------*/
if (!defined('DC_CONTEXT_ADMIN')) {
return;
}
2013-10-28 15:39:42 +00:00
2013-11-01 10:55:10 +00:00
categoriespageAdminBehaviors::main();
2013-10-28 15:39:42 +00:00
class categoriespageAdminBehaviors
{
2013-11-01 10:55:10 +00:00
public static function main() {
2013-11-01 12:25:31 +00:00
require_once '_widgets.php';
2013-11-01 10:55:10 +00:00
$menu = $GLOBALS['_menu'];
$core = $GLOBALS['core'];
$menu['Plugins']->addItem(
ConstCategoriesPage::NS,
'plugin.php?p='.ConstCategoriesPage::PARAM,
'index.php?pf='.ConstCategoriesPage::PARAM.'/icon.png',
preg_match('/plugin.php\?p='.ConstCategoriesPage::PARAM.'(&.*)?$/',$_SERVER['REQUEST_URI']),
$core->auth->isSuperAdmin());
}
2013-10-28 15:39:42 +00:00
}