Sommaire pour les évènements
This commit is contained in:
parent
e5a0fc76a2
commit
114fa1eebd
34
css/main.css
34
css/main.css
@ -266,6 +266,40 @@ table {
|
||||
color: #203636;
|
||||
}
|
||||
|
||||
/* ----------------------------- */
|
||||
/* .sommaire-
|
||||
/* ----------------------------- */
|
||||
|
||||
.sommaire-Details {
|
||||
background-color: #eef4e5e8;
|
||||
margin: 3.5rem auto;
|
||||
}
|
||||
|
||||
.sommaire-Summary:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.sommaire-Summary {
|
||||
padding: 1rem;
|
||||
font-family: 'metropolislight';
|
||||
color: #203636;
|
||||
font-size: 1.7rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.sommaire-Liste {
|
||||
column-count: 3;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.sommaire-Liste li {
|
||||
list-style: none;
|
||||
padding-bottom: 3px;
|
||||
padding-top: 3px;
|
||||
border-bottom-width: thin;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-color: #cbddafe8;
|
||||
}
|
||||
|
||||
/* ----------------------------- */
|
||||
/* .footer-
|
||||
|
@ -59,6 +59,7 @@ class LefPays {
|
||||
$total_region = count($evenementParRegionArray);
|
||||
$lieux = new LefLieux($evenementParRegionArray);
|
||||
$region["evenements"] = $lieux->toArray();
|
||||
$region["total"] = $total_region;
|
||||
$this->total_pays += $total_region;
|
||||
$this->regions[] = $region;
|
||||
}
|
||||
|
@ -1,4 +1,21 @@
|
||||
#SET{repartition, #MES_REPARTITION{#ENV{tag}}}
|
||||
<details class="sommaire-Details">
|
||||
<summary class="sommaire-Summary">Sommaire</summary>
|
||||
<div>
|
||||
<ul class="sommaire-Liste">
|
||||
<BOUCLE_sommaire_repartition(DATA){source tableau, #GET{repartition/pays}}>
|
||||
<BOUCLE_sommaire_sousregions(DATA){source tableau, #VALEUR{sousregions}}>
|
||||
<li><a href="#region_[(#VALEUR{region_id})]">[(#VALEUR{name})] (#VALEUR{total})</a></li>
|
||||
</BOUCLE_sommaire_sousregions>
|
||||
</BOUCLE_sommaire_repartition>
|
||||
<BOUCLE_sommaire_internet(CONDITION){si #GET{repartition/internet/total}|>{0}}>
|
||||
<li><a href="#enligne">En ligne (#GET{repartition/internet/total})</a></li>
|
||||
</BOUCLE_sommaire_internet>
|
||||
</ul>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
|
||||
<BOUCLE_repartition(DATA){source tableau, #GET{repartition/pays}}>
|
||||
<h3 class="spip">#VALEUR{name}</h3>
|
||||
<B_evenementsnationaux>
|
||||
@ -23,7 +40,7 @@
|
||||
</B_evenementsnationaux>
|
||||
|
||||
<BOUCLE_sousregions(DATA){source tableau, #VALEUR{sousregions}}>
|
||||
<h4 class="spip">#VALEUR{name}</h4>
|
||||
<h4 class="spip" id="region_[(#VALEUR{region_id})]">#VALEUR{name}</h4>
|
||||
<BOUCLE_evenements(DATA) {source tableau, #VALEUR{evenements}}>
|
||||
<details class="evenement-Details"><summary class="evenement-Summary">[(#CLE|?{#CLE,'à l’échelle de la région})] <span class="evenement-Total">([(#VALEUR|count)])</span></summary>
|
||||
<table class="evenement-Table">
|
||||
|
@ -3,7 +3,7 @@
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<title>[(#NOM_SITE_SPIP|textebrut)] #TITRE</title>
|
||||
[<meta name="description" content="(#TEXTE{150}|attribut_html)">]
|
||||
[<meta name="description" content="(#INTRODUCTION|attribut_html)">]
|
||||
[<link rel="canonical" href="(#URL_RUBRIQUE|url_absolue)">]
|
||||
<INCLURE{fond=inclure/head}>
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user