From d878f3ca9f5db367062707fea60c3ef0873d6e4f Mon Sep 17 00:00:00 2001 From: Pierre Cadeot Date: Fri, 5 Feb 2021 17:16:49 +0400 Subject: [PATCH] =?UTF-8?q?variable=20--themespath=20plus=20g=C3=A9n=C3=A9?= =?UTF-8?q?rique=20pour=20viser=20un=20fichier=20du=20dossier=20theme=20de?= =?UTF-8?q?=20son=20choix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CoreBundle/Resources/public/themes/metice/style.css | 4 ++-- .../Cadoles/CoreBundle/Resources/views/Include/head.html.twig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/themes/metice/style.css b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/themes/metice/style.css index 9fbb1d2b..ee463c12 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/themes/metice/style.css +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/themes/metice/style.css @@ -25,7 +25,7 @@ display: block; -moz-box-sizing: border-box; box-sizing: border-box; - background: url(var(--path) 'small-logo.svg') no-repeat; + background: url(var(--themespath) 'metice/small-logo.svg') no-repeat; width: 62px; /* Width of new image */ height: 23px; /* Height of new image */ padding-left: 62px; /* Equal to width of new image */ @@ -235,7 +235,7 @@ div.header { display: block; -moz-box-sizing: border-box; box-sizing: border-box; - background: url(var(--path) 'small-logo.svg') no-repeat; + background: url(var(--themespath) 'metice/small-logo.svg') no-repeat; width: 62px; /* Width of new image */ height: 23px; /* Height of new image */ padding-left: 62px; /* Equal to width of new image */ diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/Include/head.html.twig b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/Include/head.html.twig index 43f95836..efcc2b9e 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/Include/head.html.twig +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/Include/head.html.twig @@ -29,7 +29,7 @@ --fontfacebody: {{ app.session.get('fontfacebody') }}; --header: url(/{{ alias }}/{{ header }}); --logo: url(/{{ alias }}/{{ logo }}); - --path: url(/{{ alias }}/); + --themespath: url(/{{ alias }}/bundles/cadolescore/themes/); {% if not app.session.get('sublogo') is empty %} --sublogo: url(/{{ alias }}/{{ app.session.get('sublogo') }}); {% else %}