remove bootstrap-js and require-jquery as theme options

This commit is contained in:
Stéphane Goetz 2015-08-09 22:19:06 +02:00
parent 3db09add7e
commit 9dca1e09c0
7 changed files with 6 additions and 22 deletions

View File

@ -47,8 +47,6 @@ class DauxHelper
'css' => [],
'js' => [],
'fonts' => [],
'require-jquery' => false,
'bootstrap-js' => false,
'favicon' => '<base_url>themes/daux/img/favicon.png',
'templates' => $theme_folder . DIRECTORY_SEPARATOR . 'templates',
];

View File

@ -41,11 +41,7 @@
<!-- jQuery -->
<?php
if ($params['theme']['require-jquery']) {
echo '<script src="' . $base_url . 'themes/daux/js/jquery-1.11.3.min.js' . '"></script>';
}
?>
<?= '<script src="' . $base_url . 'themes/daux/js/jquery-1.11.3.min.js' . '"></script>' ?>
<!-- hightlight.js -->
<script src="<?= $base_url; ?>themes/daux/js/highlight.min.js"></script>

View File

@ -2,7 +2,5 @@
"favicon": "<theme_url>img/favicon-blue.png",
"css": ["<theme_url>css/theme.css"],
"fonts": ["//fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700&subset=latin,cyrillic-ext,cyrillic"],
"js": [],
"require-jquery": true,
"bootstrap-js": false
"js": []
}

View File

@ -2,7 +2,5 @@
"favicon": "<theme_url>img/favicon-green.png",
"css": ["<theme_url>css/theme.css"],
"fonts": ["//fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700&subset=latin,cyrillic-ext,cyrillic"],
"js": [],
"require-jquery": true,
"bootstrap-js": false
"js": []
}

View File

@ -2,7 +2,5 @@
"favicon": "<theme_url>img/favicon-navy.png",
"css": ["<theme_url>css/theme.css"],
"fonts": ["//fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700&subset=latin,cyrillic-ext,cyrillic"],
"js": [],
"require-jquery": true,
"bootstrap-js": false
"js": []
}

View File

@ -2,7 +2,5 @@
"favicon": "<theme_url>img/favicon-red.png",
"css": ["<theme_url>css/theme.css"],
"fonts": ["//fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700&subset=latin,cyrillic-ext,cyrillic"],
"js": [],
"require-jquery": true,
"bootstrap-js": false
"js": []
}

View File

@ -2,7 +2,5 @@
"favicon": "<theme_url>img/favicon.png",
"css": ["<theme_url>css/theme.css"],
"fonts": ["//fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700&subset=latin,cyrillic-ext,cyrillic"],
"js": [],
"require-jquery": true,
"bootstrap-js": false
"js": []
}