-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCDFUThemePlugin.inc.php
More file actions
58 lines (52 loc) · 1.53 KB
/
Copy pathCDFUThemePlugin.inc.php
File metadata and controls
58 lines (52 loc) · 1.53 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
50
51
52
53
54
55
56
57
58
<?php
/**
* @file plugins/themes/default/DefaultChildThemePlugin.inc.php
*
* Copyright (c) 2014-2016 Simon Fraser University Library
* Copyright (c) 2003-2016 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class DefaultChildThemePlugin
* @ingroup plugins_themes_default
*
* @brief Default theme
*/
import('lib.pkp.classes.plugins.ThemePlugin');
class CDFUThemePlugin extends ThemePlugin {
/**
* Initialize the theme's styles, scripts and hooks. This is only run for
* the currently active theme.
*
* @return null
*/
public function init() {
$this->setParent('defaultthemeplugin');
$this->removeOption('baseColour');
$this->removeOption('typography');
//$this->modifyStyle('stylesheet', array('addLess' => array('styles/cdfu.less')));
$this->addStyle('cdfu', 'styles/cdfu.less');
$additionalLessVariables = array();
$additionalLessVariables[] = '@text-bg-base: #333;';
$additionalLessVariables[] = '@bg-base:: #fff;';
$additionalLessVariables[] = '@primary: #06c;';
$additionalLessVariables[] = '@primary-lift: #06c;';
if (!empty($additionalLessVariables)) {
$this->modifyStyle('stylesheet', array('addLessVariables' => join($additionalLessVariables)));
}
}
/**
* Get the display name of this plugin
* @return string
*/
function getDisplayName() {
return __('plugins.themes.cdfu.name');
}
/**
* Get the description of this plugin
* @return string
*/
function getDescription() {
return __('plugins.themes.cdfu.description');
}
}
?>