diff --git a/action/choisir_banniere.php b/action/choisir_banniere.php
new file mode 100644
index 0000000..c9fb90e
--- /dev/null
+++ b/action/choisir_banniere.php
@@ -0,0 +1,53 @@
+ ''),'id_document IN ('.join(',',$Tid_docs).')');
+ }
+
+ // mettre en bannière la photo choisie
+ sql_updateq('spip_documents', array('credits' => 'une'),'id_document = '.$id_document);
+
+ // Cache
+ include_spip('inc/invalideur');
+ suivre_invalideur("id='id_article/$id_article'");
+}
+
diff --git a/css/_sq_balint.scss b/css/_sq_balint.scss
index b130a63..195d44c 100644
--- a/css/_sq_balint.scss
+++ b/css/_sq_balint.scss
@@ -810,14 +810,14 @@ body{
}
.btn_poubelle{
color: red;
- :hover{
- color: #ee9e9e;
+ &:hover{
+ color: #b30000;
}
}
.btn_une{
- color: black;
- :hover{
- color: grey;
+ color: grey;
+ &:hover{
+ color: black;
}
}
.boutons_actions {
@@ -827,18 +827,19 @@ body{
justify-content: space-around;
align-items: center;
background-color: $gris-clair;
- i.green {
- padding: .6rem;
- color: rgb(28, 158, 28);
+ i {
+ padding:0 0.6rem;
}
a {
margin: 0;
}
.premier-plan{
+ color: rgb(28, 158, 28);
display: flex;
flex-direction: row;
align-items: center;
padding: 0.2rem;
+ font-size: 1rem;
}
}
}
diff --git a/css/mon_site.css b/css/mon_site.css
index e1857ff..cd8ea03 100644
--- a/css/mon_site.css
+++ b/css/mon_site.css
@@ -12799,16 +12799,16 @@ body {
color: red;
}
-.docs-article .btn_poubelle :hover {
- color: #ee9e9e;
+.docs-article .btn_poubelle:hover {
+ color: #b30000;
}
.docs-article .btn_une {
- color: black;
+ color: grey;
}
-.docs-article .btn_une :hover {
- color: grey;
+.docs-article .btn_une:hover {
+ color: black;
}
.docs-article .boutons_actions {
@@ -12824,9 +12824,8 @@ body {
background-color: #f2f2f2;
}
-.docs-article .boutons_actions i.green {
- padding: .6rem;
- color: #1c9e1c;
+.docs-article .boutons_actions i {
+ padding: 0 0.6rem;
}
.docs-article .boutons_actions a {
@@ -12834,6 +12833,7 @@ body {
}
.docs-article .boutons_actions .premier-plan {
+ color: #1c9e1c;
display: -webkit-box;
display: flex;
-webkit-box-orient: horizontal;
@@ -12842,6 +12842,7 @@ body {
-webkit-box-align: center;
align-items: center;
padding: 0.2rem;
+ font-size: 1rem;
}
.titre_img {
diff --git a/inclure/choix_ville.html b/inclure/choix_ville.html
index 1f08f67..1d2a64c 100644
--- a/inclure/choix_ville.html
+++ b/inclure/choix_ville.html
@@ -1,5 +1,5 @@
- [(#REM) On affiche ensuite les groupes réguliers, par ville]
+ [(#REM) On affiche les groupes réguliers, par ville]
@@ -9,7 +9,7 @@
-[(#REM) on affiche un groupe ponctuel pour les pays n'ayant pas de groupe régulier]
+[(#REM) on affiche ensuite un groupe ponctuel pour les pays n'ayant pas de groupe régulier]
[
(#TITRE|sinon{"Groupes ponctuels"})
]
diff --git a/inclure/editer_docs_article.html b/inclure/editer_docs_article.html
index f9799f1..2b04566 100644
--- a/inclure/editer_docs_article.html
+++ b/inclure/editer_docs_article.html
@@ -14,17 +14,26 @@
[
(#TITRE|sinon{[(#SESSION{statut}|=={0minirezo}|oui)Double cliquez pour ajouter un titre]})
]
+ [(#INFO_ID_SECTEUR{article,#ENV{id_article}}|=={#CONFIG{balint/id_rub_groupes}}|oui)
+
+ [(#TYPE_DOCUMENT|in_array{#LISTE{JPEG,PNG,GIF}}|oui)
+ [(#COMPTEUR_BOUCLE|=={#TOTAL_BOUCLE}|oui)
+ Photo du groupe
+ ]
+ ]
+
+ ]
Supprimer
diff --git a/inclure/groupe-detail.html b/inclure/groupe-detail.html
index 91f9f7a..f4bb9e5 100644
--- a/inclure/groupe-detail.html
+++ b/inclure/groupe-detail.html
@@ -1,9 +1,12 @@
-[(#REM) On affiche tous les groupes appartenant à la même Ville]
+[(#REM) On récupère l'id_rubrique s'il n'a pas été passé en paramètre]
+[(#ENV{id_rubrique,#INFO_ID_RUBRIQUE{article,#ENV{id_article}}}|setenv{id_rubrique})]
+[(#REM) On affiche tous les groupes appartenant à la même Ville]
#SET{ville,#INFO_SURTITRE{article,#ENV{id_article}}}
[(#REM) On récupère les id de tous les groupes de la ville pour les actualités et les images]
[(#SET{groupes,#ARRAY})]
+
[(#SET{groupes,#GET{groupes}|push{#ID_ARTICLE}})]
@@ -11,7 +14,7 @@
Retour
-
+
[(#FICHIER|image_recadre{1200:300,-,focus}|image_reduire{1200,300})]
[(#CHEMIN{img/ville.png}|image_recadre{1200:300,-,focus}|image_reduire{1200,300})]
@@ -32,9 +35,17 @@
[(#TITRE)
]
[(#AUTORISER{modifier, article, #ID_ARTICLE})
Mettre à jour le groupe
- ]
+ ]
-
+
+
+
+ [(#FICHIER|image_recadre{400:250,-,focus}|image_reduire{400,250})]
+
+
+
+
+
[
Adresse : (#SOUSTITRE)
]
[
Fréquence : (#DESCRIPTIF|textebrut)
]
#TEXTE
diff --git a/inclure/photo_article.html b/inclure/photo_article.html
index 027c45f..1806bb7 100644
--- a/inclure/photo_article.html
+++ b/inclure/photo_article.html
@@ -1,7 +1,15 @@
#CACHE{0}
[(#ENV{id_article}|=={0}|oui) [(#SESSION{id_auteur}|mult{-1}|setenv{id_article})] ]
+
+[(#REM) On récupère les id de tous les groupes de la ville pour les actualités et les images]
+#SET{ville,#INFO_SURTITRE{article,#ENV{id_article}}}
+[(#SET{groupes,#ARRAY})]
+
+ [(#SET{groupes,#GET{groupes}|push{#ID_ARTICLE}})]
+
+
-
+
[(#FICHIER|balise_img{#TITRE}|image_recadre{720:360,-,focus,transparent}|image_reduire{720,360})]