mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
add setting in chill.yaml to enable or disable new assets (bootstrap, ckeditor and forkawesome)
This commit is contained in:
@@ -29,11 +29,15 @@
|
||||
<title>{{ installation.name }} - {% block title %}{% endblock %}</title>
|
||||
<link rel="shortcut icon" href="{{ asset('build/images/favicon.ico') }}" type="image/x-icon">
|
||||
<link rel="stylesheet" href="{{ asset('build/chill.css') }}"/>
|
||||
|
||||
<link rel="stylesheet" href="{{ asset('build/bootstrap.css') }}" type="text/css"/>
|
||||
<link rel="stylesheet" href="{{ asset('build/forkawesome.css') }}" type="text/css"/>
|
||||
<link rel="stylesheet" href="{{ asset('build/ckeditor5.css') }}" type="text/css"/>
|
||||
|
||||
{% if active_bootstrap == 1 %}
|
||||
<link rel="stylesheet" href="{{ asset('build/bootstrap.css') }}" type="text/css"/>
|
||||
{% endif %}
|
||||
{% if active_forkawesome == 1 %}
|
||||
<link rel="stylesheet" href="{{ asset('build/forkawesome.css') }}" type="text/css"/>
|
||||
{% endif %}
|
||||
{% if active_ckeditor == 1 %}
|
||||
<link rel="stylesheet" href="{{ asset('build/ckeditor5.css') }}" type="text/css"/>
|
||||
{% endif %}
|
||||
{% block css%}<!-- nothing added to css -->{% endblock %}
|
||||
</head>
|
||||
|
||||
@@ -149,10 +153,15 @@
|
||||
|
||||
<script type="text/javascript" src="{{ asset('build/runtime.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ asset('build/chill.js') }}"></script>
|
||||
|
||||
<script text="text/javascript" src="{{ asset('build/bootstrap.js') }}"></script>
|
||||
<script text="text/javascript" src="{{ asset('build/ckeditor5.js') }}"></script>
|
||||
|
||||
{% if active_bootstrap == 1 %}
|
||||
<script type="text/javascript" src="{{ asset('build/bootstrap.js') }}"></script>
|
||||
{% endif %}
|
||||
{% if active_forkawesome == 1 %}
|
||||
<script type="text/javascript" src="{{ asset('build/forkawesome.js') }}"></script>
|
||||
{% endif %}
|
||||
{% if active_ckeditor == 1 %}
|
||||
<script type="text/javascript" src="{{ asset('build/ckeditor5.js') }}"></script>
|
||||
{% endif %}
|
||||
<script type="text/javascript">
|
||||
chill.initPikaday('{{ app.request.locale }}');
|
||||
chill.emulateSticky();
|
||||
@@ -160,7 +169,6 @@
|
||||
$('.select2').select2({allowClear: true});
|
||||
chill.categoryLinkParentChildSelect();
|
||||
</script>
|
||||
|
||||
{% block js%}<!-- nothing added to js -->{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user