openclassify/addons/default/visiosoft/base-theme/resources/views/partials/assets.twig
2020-02-03 12:07:00 +03:00

39 lines
1.1 KiB
Twig

{#
Main CSS can be found in metadata.twig
#}
{# Core Theme Components #}
{{ asset_add("theme.js", "theme::js/popper.min.js") }}
{{ asset_add("theme.js", "theme::js/bootstrap.min.js") }}
{{ asset_add("theme.js", "theme::js/modal_include.js") }}
{{ asset_add("theme.js", "theme::js/select2.js") }}
{{ asset_add("theme.js", "theme::js/params.js") }}
{{ asset_add("theme.js", "theme::js/intlTelInput.min.js") }}
{{ asset_add("theme.js", "theme::js/utils.js") }}
{# Theme Scripts #}
{#{{ asset_add("theme.js", "theme::js/plugins/*") }}#}
{{ asset_add("theme.js", "theme::js/theme/initialize.js") }}
{{ asset_script("theme.js") }}
{# Include Scripts Loaded From Outside #}
<script type="text/javascript">
{% for script in asset_inlines("scripts.js", ["min"]) %}
{{ script|raw }}
{% endfor %}
</script>
<script type="text/javascript">
{% for script in asset_inlines("customjs.js") %}
{{ script|raw }}
{% endfor %}
</script>
{# Include Styles Loaded From Outside #}
<style type="text/css">
{% for style in asset_inlines("styles.css", ["min"]) %}
{{ style|raw }}
{% endfor %}
</style>