From dd9d55336d3791f4bdf106d99f2b0f567d3d0b42 Mon Sep 17 00:00:00 2001
From: "real3t@gmail.com" <>
Date: Sun, 17 Apr 2016 20:58:39 +0000
Subject: [PATCH] =?UTF-8?q?Int=C3=A9gration=20du=20plugin=20Campagnes=20()?=
 =?UTF-8?q?=20avec=203=20zones=20:=20-=20banheader=20:=20tout=20en=20haut?=
 =?UTF-8?q?=20de=20la=20page=20-=20bangoodiesavant=20:=20en=20mode=20commu?=
 =?UTF-8?q?niquant,=20avant=20les=20goodies=20-=20banlocalisationavant=20:?=
 =?UTF-8?q?=20en=20mode=20communiquant,=20au=20dessus=20de=20"Localisez-no?=
 =?UTF-8?q?us=20sur=20la=20carte"=20(la=20boussole)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 noisettes/header/header.html                   |  6 ++++++
 .../sommaire/sommaire_modecommuniquant.html    | 13 +++++++++++++
 paquet.xml                                     |  1 +
 stylessoyezcreateurs.css.html                  | 18 ++++++++++++++++++
 4 files changed, 38 insertions(+)

diff --git a/noisettes/header/header.html b/noisettes/header/header.html
index 9ad75adb..f2d950b9 100644
--- a/noisettes/header/header.html
+++ b/noisettes/header/header.html
@@ -126,6 +126,12 @@ CancelMonitorTextSize = false;
 <body[ id="(#ENV{idbody})"] class="[bodysecteur(#ENV{id_secteur}) ][bodyrubrique(#ENV{rubriqueencours}) ][bodyarticle(#ENV{id_article}) bodyarticle]">
 <div id="container">
   <div id="shadow">
+[(#PLUGIN{campagnes}|oui)
+  <div id="banheader">
+	  <span class="honest left"><:campagne:titre_campagne:></span>
+	  <INCLURE{fond=inclure/encart, identifiant=banheader}>  
+  </div>
+]
 #SET{noisetteheader,header_modeedito}
 [(#ENV{template}|=={'Sommaire'}|oui)
 	[(#CHEMIN{noisettes/header/header_mode#CONFIG{soyezcreateurs/mode_affichage,communiquant}.html}|oui)
diff --git a/noisettes/sommaire/sommaire_modecommuniquant.html b/noisettes/sommaire/sommaire_modecommuniquant.html
index f14342c2..92224e7d 100644
--- a/noisettes/sommaire/sommaire_modecommuniquant.html
+++ b/noisettes/sommaire/sommaire_modecommuniquant.html
@@ -97,6 +97,12 @@
 </div><!-- communiquant_content_central -->
 
 <div id="communiquant_content_extra">
+[(#PLUGIN{campagnes}|oui)
+  <div id="bangoodiesavant">
+	  <span class="honest"><:campagne:titre_campagne:></span>
+	  <INCLURE{fond=inclure/encart, identifiant=bangoodiesavant}>  
+  </div>
+]
 [(#CONFIG{soyezcreateurs/positiongoodies,extra}|=={extra}|oui)[(#INCLURE{fond=noisettes/sommaire/goodies})]]
 [(#CONFIG{soyezcreateurs/positionvideo,extra}|=={extra}|oui)[(#INCLURE{fond=noisettes/sommaire/video_alaune,largeurmax=[(#GET{Largeurcontent_extra}|moins{20})]})]]
 
@@ -110,6 +116,13 @@
 [(#REM) Sur le Web ]
 [(#CONFIG{soyezcreateurs/positionnouveautes,extra}|=={extra}|oui)[(#CONFIG{soyezcreateurs/nouveautes_web,oui}|=={oui}|oui)#INCLURE{fond=noisettes/sommaire/nouveautes}]]
 
+[(#PLUGIN{campagnes}|oui)
+  <div id="banlocalisationavant">
+	  <span class="honest"><:campagne:titre_campagne:></span>
+	  <INCLURE{fond=inclure/encart, identifiant=banlocalisationavant}>  
+  </div>
+]
+
 [(#CONFIG{soyezcreateurs/positionrecherche,header}|=={navigation}|oui)[(#INCLURE{fond=noisettes/header/cadre_recherche}{env}{id_recherche=cadre_recherche})]]
 #INCLURE{fond=noisettes/extra/ousommesnous}
 [(#CONFIG{soyezcreateurs/positionfluxrss,bottom}|=={bottom}|oui)<div class="centrer_div rss_bottom">
diff --git a/paquet.xml b/paquet.xml
index d52e0a4a..12373d9b 100644
--- a/paquet.xml
+++ b/paquet.xml
@@ -48,6 +48,7 @@
 	<utilise nom="AccesRestreint" compatibilite="[3.13.1;[" />
 	<utilise nom="article_pdf" compatibilite="[0.4.6;[" />
 	<utilise nom="Autorite" compatibilite="[0.10.8;[" />
+	<utilise nom="campagnes" compatibilite="[1.2.4;[" />
 	<utilise nom="clevermail" compatibilite="[3.0.11;[" />
 	<!--<utilise nom="comments" compatibilite="[3.3.2;[" />-->
 	<utilise nom="centre_image" compatibilite="[0.8.2;[" />
diff --git a/stylessoyezcreateurs.css.html b/stylessoyezcreateurs.css.html
index 61deef88..f7afda64 100644
--- a/stylessoyezcreateurs.css.html
+++ b/stylessoyezcreateurs.css.html
@@ -390,6 +390,24 @@ a:active { color: #GET{c_active}; }
 #clearbottom { height: 0; }
 
 /*************** STRUCTURE - HEADER */
+#banheader { padding: 0; text-align: center; background-color: #GET{c_header_bk};[(#CONFIG{soyezcreateurs_couleurs/transparenceheader,1}|!={1}|oui)background-color: rgba([(#GET{c_header_bk}|sc_rgb)], #CONFIG{soyezcreateurs_couleurs/transparenceheader,1});] color: #GET{c_header}; }
+#banheader a { display: inline-block!important; }
+.honest {
+    background-color: #efc439;
+    border-radius: 6px 6px 0 0;
+    color: #fff;
+    display: block;
+    font-size: 1em;
+    padding: 2px 6px;
+    width: 8em;
+}
+.honest.left {
+    border-radius: 0 0 6px 6px;
+    display: inline-block;
+    transform: rotate(90deg);
+    transform-origin: 0 0;
+    position: absolute;
+}
 #header { position: relative; background-color: #GET{c_header_bk};[(#CONFIG{soyezcreateurs_couleurs/transparenceheader,1}|!={1}|oui)background-color: rgba([(#GET{c_header_bk}|sc_rgb)], #CONFIG{soyezcreateurs_couleurs/transparenceheader,1});] color: #GET{c_header}; 
 	font-size: #CONFIG{soyezcreateurs_couleurs/fontsizeheader,1.2}em;
 	<BOUCLE_HeaderBanner(MOTS){type=_HeaderBanner}{0,1}> </BOUCLE_HeaderBanner>
-- 
GitLab