|
Open Journal Systems
3.3.0
|
16 import(
'lib.pkp.classes.plugins.ThemePlugin');
26 $this->
addOption(
'bootstrapTheme',
'radio', array(
27 'label' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.label',
28 'description' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.description',
30 'bootstrap3' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.bootstrap3',
31 'cerulean' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.cerulean',
32 'cleanblog' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.cleanblog',
33 'cosmo' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.cosmo',
34 'cyborg' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.cyborg',
35 'darkly' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.darkly',
36 'flatly' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.flatly',
37 'journal' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.journal',
38 'lumen' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.lumen',
39 'paper' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.paper',
40 'readable' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.readable',
41 'sandstone' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.sandstone',
42 'simplex' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.simplex',
43 'slate' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.slate',
44 'spacelab' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.spacelab',
45 'superhero' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.superhero',
46 'united' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.united',
47 'yeti' =>
'plugins.themes.bootstrap3.options.bootstrapTheme.yeti',
51 $bootstrapTheme = $this->
getOption(
'bootstrapTheme');
52 if (empty($bootstrapTheme) || $bootstrapTheme ===
'bootstrap3') {
53 $this->
addStyle(
'bootstrap',
'styles/bootstrap.less');
55 $this->
addStyle(
'bootstrapTheme-' . $bootstrapTheme,
'styles/' . $bootstrapTheme .
'.less');
61 $this->
addStyle(
'bootstrap-rtl',
'//cdn.rawgit.com/morteza/bootstrap-rtl/v3.3.4/dist/css/bootstrap-rtl.min.css', array(
'baseUrl' =>
''));
63 $this->
addStyle(
'bootstrap-rtl',
'styles/bootstrap-rtl.min.css');
71 $jquery =
'//ajax.googleapis.com/ajax/libs/jquery/' . CDN_JQUERY_VERSION .
'/jquery' . $min .
'.js';
72 $jqueryUI =
'//ajax.googleapis.com/ajax/libs/jqueryui/' . CDN_JQUERY_UI_VERSION .
'/jquery-ui' . $min .
'.js';
75 $jquery =
$request->getBaseUrl() .
'/lib/pkp/lib/vendor/components/jquery/jquery' . $min .
'.js';
76 $jqueryUI =
$request->getBaseUrl() .
'/lib/pkp/lib/vendor/components/jqueryui/jquery-ui' . $min .
'.js';
80 $this->
addScript(
'jQuery', $jquery, array(
'baseUrl' =>
''));
81 $this->
addScript(
'jQueryUI', $jqueryUI, array(
'baseUrl' =>
''));
82 $this->
addScript(
'jQueryTagIt',
$request->getBaseUrl() .
'/lib/pkp/js/lib/jquery/plugins/jquery.tag-it.js', array(
'baseUrl' =>
''));
85 $this->
addScript(
'bootstrap',
'bootstrap/js/bootstrap.min.js');
96 return __(
'plugins.themes.bootstrap3.name');
104 return __(
'plugins.themes.bootstrap3.description');
Abstract class for theme plugins.
addScript($name, $script, $args=array())
addOption($name, $type, $args=array())
static getLocaleDirection($locale)
static getVar($section, $key, $default=null)
addStyle($name, $style, $args=array())