diff --git a/composer.json b/composer.json index c9601fba..f2afbf59 100644 --- a/composer.json +++ b/composer.json @@ -11,6 +11,7 @@ "ext-json": "*", "ext-mbstring": "*", "doctrine/annotations": "^1.6", + "doctrine/doctrine-bundle": "^1.12", "florianv/swap": "^4.0", "friendsofsymfony/ckeditor-bundle": "^2.0", "gregwar/captcha-bundle": "dev-master", @@ -51,8 +52,7 @@ "twig/extra-bundle": "^3.0", "twig/inky-extra": "^3.0", "twig/intl-extra": "^3.0", - "webmozart/assert": "^1.4", - "doctrine/doctrine-bundle": "^1.12" + "webmozart/assert": "^1.4" }, "require-dev": { "dama/doctrine-test-bundle": "^5.0", diff --git a/composer.lock b/composer.lock index de13f4cf..97943c7c 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5b16a7920092123e0428568b1a22b433", + "content-hash": "9660d2f97bab13484c770ab738af0e6c", "packages": [ { "name": "clue/stream-filter", diff --git a/templates/base.html.twig b/templates/base.html.twig index 992613db..3099180a 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -4,7 +4,7 @@ - + @@ -37,14 +37,17 @@ {% set theme = app.user.theme %} {% endif %} + + {% if theme %} - + {% else %} - + {% endif %} - {{ encore_entry_link_tags('app') }} - + {% for css in encore_entry_css_files('app') %} + + {% endfor %} {% endblock %} @@ -116,8 +119,9 @@ {% endblock %} {% block javascripts %} - {{ encore_entry_script_tags('app') }} - + {% for js in encore_entry_js_files('app') %} + + {% endfor %} {% endblock %}