forked from gmulibdigital/OJS2-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMPGThemePlugin.inc.php
55 lines (46 loc) · 1.16 KB
/
MPGThemePlugin.inc.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* @file plugins/themes/mpg/MPGThemePlugin.inc.php
*
* Copyright (c) 2013-2015 Simon Fraser University Library
* Copyright (c) 2003-2015 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class MPGThemePlugin
* @ingroup plugins_themes_mpg
*
* @brief "mpg" theme plugin
*/
import('classes.plugins.ThemePlugin');
class MPGThemePlugin extends ThemePlugin {
/**
* Get the name of this plugin. The name must be unique within
* its category.
* @return String name of plugin
*/
function getName() {
return 'MPGThemePlugin';
}
function getDisplayName() {
return 'Mason Publishing Theme';
}
function getDescription() {
return 'mpg layout';
}
function getLocaleFilename($locale) {
return null; // No locale data
}
function activate(&$templateMgr) {
$templateMgr->template_dir[0] = Core::getBaseDir()
. DIRECTORY_SEPARATOR
. 'plugins'
. DIRECTORY_SEPARATOR
. 'themes'
. DIRECTORY_SEPARATOR
. 'mpg'
. DIRECTORY_SEPARATOR
. 'templates';
$templateMgr->compile_id = 'mpgTheme';
}
}
?>