remove bootstrap-js and require-jquery as theme options
This commit is contained in:
parent
3db09add7e
commit
9dca1e09c0
@ -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',
|
||||||
];
|
];
|
||||||
|
@ -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>
|
||||||
|
@ -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
|
|
||||||
}
|
}
|
||||||
|
@ -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
|
|
||||||
}
|
}
|
||||||
|
@ -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
|
|
||||||
}
|
}
|
||||||
|
@ -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
|
|
||||||
}
|
}
|
||||||
|
@ -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
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user