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' => [], 'css' => [],
'js' => [], 'js' => [],
'fonts' => [], 'fonts' => [],
'require-jquery' => false,
'bootstrap-js' => false,
'favicon' => '<base_url>themes/daux/img/favicon.png', 'favicon' => '<base_url>themes/daux/img/favicon.png',
'templates' => $theme_folder . DIRECTORY_SEPARATOR . 'templates', 'templates' => $theme_folder . DIRECTORY_SEPARATOR . 'templates',
]; ];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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