From 325de094d005c8854e5e8ce48ccdc370873394ee Mon Sep 17 00:00:00 2001 From: Pierre Cadeot Date: Fri, 5 Feb 2021 10:20:14 +0400 Subject: [PATCH] ajout d'une variable --path : chemin d'acces au theme --- .../CoreBundle/Resources/public/themes/metice/style.css | 4 ++-- .../Cadoles/CoreBundle/Resources/views/Include/head.html.twig | 1 + 2 files changed, 3 insertions(+), 2 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 595966aa..9fbb1d2b 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(/ninegate/bundles/cadolescore/themes/metice2021/small-logo.svg) no-repeat; + background: url(var(--path) '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(/ninegate/bundles/cadolescore/themes/metice2021/small-logo.svg) no-repeat; + background: url(var(--path) '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 73309bdc..43f95836 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,6 +29,7 @@ --fontfacebody: {{ app.session.get('fontfacebody') }}; --header: url(/{{ alias }}/{{ header }}); --logo: url(/{{ alias }}/{{ logo }}); + --path: url(/{{ alias }}/); {% if not app.session.get('sublogo') is empty %} --sublogo: url(/{{ alias }}/{{ app.session.get('sublogo') }}); {% else %}