forked from itkservice/flatPages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_admin.php
39 lines (34 loc) · 964 Bytes
/
_admin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
# -- BEGIN LICENSE BLOCK ----------------------------------
#
# This file is part of flatPages, a plugin for DotClear2.
# Copyright (c) 2010 Pep and contributors.
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK ------------------------------------
if (!defined('DC_CONTEXT_ADMIN')) return;
$_menu['Blog']->addItem(
__('FlatPages'),
'plugin.php?p=flatPages',
'index.php?pf=flatPages/icon.png',
preg_match('/plugin.php\?p=flatPages(&.*)?$/',$_SERVER['REQUEST_URI']),
$core->auth->check('contentadmin,pages',$core->blog->id)
);
$core->auth->setPermissionType('pages',__('manage flatpages'));
/**
*
*/
class flatpagesAdminBehaviors
{
/**
*
*/
public static function sitemapsDefineParts($map)
{
$map[__('FlatPages')] = 'flatpages';
}
}
$core->addBehavior('sitemapsDefineParts',array('flatpagesAdminBehaviors','sitemapsDefineParts'));
?>