-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
49 lines (41 loc) · 1.6 KB
/
Copy pathindex.php
File metadata and controls
49 lines (41 loc) · 1.6 KB
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
40
41
42
43
44
45
46
47
48
49
<?php
/*
* Wolf CMS - Content Management Simplified. <http://www.wolfcms.org>
* Copyright (C) 2008-2010 Martijn van der Kleijn <martijn.niji@gmail.com>
*
* MultiEdit Plugin for Wolf CMS
* Provides convenient interface to quickly edit multiple pages metadata.
*
* @package Plugins
* @subpackage multiedit
*
* @author Marek Murawski <http://marekmurawski.pl>
* @copyright Marek Murawski, 2012
* @license http://www.gnu.org/licenses/gpl.html GPLv3 license
*/
/* Security measure */
if ( !defined('IN_CMS') ) {
exit();
}
Plugin::setInfos(array(
'id' => 'multiedit',
'title' => 'MultiEdit',
'description' => __('Provides convenient interface to quickly edit multiple pages metadata.'),
'version' => '0.3.1',
'license' => 'GPL',
'author' => 'Marek Murawski',
'website' => 'http://marekmurawski.pl/',
'update_url' => 'http://marekmurawski.pl/static/wolfplugins/plugin-versions.xml',
'require_wolf_version' => '0.7.3' // 0.7.5SP-1 fix -> downgrading requirement to 0.7.3
));
if ( defined('CMS_BACKEND') ) {
Plugin::addController('multiedit', 'MultiEdit', 'multiedit_view');
Plugin::addJavascript('multiedit', 'js/helpers.js');
} else {
function getMultiEdit($page_id) {
if ( AuthUser::hasPermission('multiedit_frontend') ) {
$frontView = new View('../../plugins/multiedit/views/frontend/editor', array( 'page_id' => $page_id ));
echo $frontView;
}
}
}