2021-10-26 11:25:48 +02:00
|
|
|
#CACHE{0}
|
2021-10-29 17:04:05 +02:00
|
|
|
|
|
|
|
<BOUCLE_annonce(ARTICLES){page=annonce}>
|
|
|
|
<article class="annonce texte_accueil">
|
|
|
|
<header class="cartouche">
|
2022-12-02 14:20:04 +01:00
|
|
|
|
2021-10-29 17:04:05 +02:00
|
|
|
<h1><span class="#EDIT{titre} article__titre">[(#TITRE)]</span>[
|
|
|
|
<small class="#EDIT{soustitre} soustitre">(#SOUSTITRE)</small>
|
|
|
|
]</h1>
|
2022-12-02 14:20:04 +01:00
|
|
|
|
2021-10-29 17:04:05 +02:00
|
|
|
</header>
|
2021-10-29 17:14:20 +02:00
|
|
|
[(#PS|oui)<div class="flex flex2">]
|
|
|
|
<div class="main">
|
2021-10-29 17:04:05 +02:00
|
|
|
[<div class="chapo #EDIT{chapo}">(#CHAPO|image_reduire{800,*})</div>]
|
|
|
|
[<div class="texte #EDIT{texte}">(#TEXTE|image_reduire{800,*})</div>]
|
|
|
|
[</div><div class="aside">
|
2021-10-29 17:11:08 +02:00
|
|
|
<div class="ps #EDIT{ps}">(#PS|image_reduire{400,*})</div>
|
|
|
|
</div>]
|
2021-10-29 17:04:05 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</article>
|
|
|
|
</BOUCLE_annonce>
|
2021-10-31 21:15:11 +01:00
|
|
|
[(#REM)
|
|
|
|
15h15 = horaire de publication = date de publication de l'article
|
|
|
|
15h30 = horaire de début = pour l'instant dans le code
|
|
|
|
17h00 = horaire de fin = pour l'instant dans le code
|
|
|
|
]
|
|
|
|
<BOUCLE_emissions(RUBRIQUES){composition=emissions}>[(#REM)
|
|
|
|
on détermine la dernière émission même si la date est dans le futur, forcée par statut=publie
|
2021-11-23 18:09:47 +01:00
|
|
|
]<BOUCLE_quand(ARTICLES){id_rubrique}{!par date}{statut=publie}{0,1}>[(#REM)
|
2022-12-02 14:20:04 +01:00
|
|
|
on connait la date de publication, donc on determine début_emission et fin_emission
|
2021-11-23 18:09:47 +01:00
|
|
|
ensuite inclusion en statique pour la gestion du cache indépendante - à vérifier...
|
|
|
|
]
|
|
|
|
[(#SET{debut_emission,[(#DATE|annee)-][(#DATE|mois)-][(#DATE|jour|libreavous_aveczerod) ]15:30:00})]
|
|
|
|
[(#SET{fin_emission,[(#DATE|annee)-][(#DATE|mois)-][(#DATE|jour|libreavous_aveczerod) ]17:00:00})]
|
2021-10-26 11:25:48 +02:00
|
|
|
|
2021-11-23 18:09:47 +01:00
|
|
|
[(#ENV{date}|<={#GET{fin_emission}}|oui) [(#REM) inclure l'émission prochaine et en cours ]
|
2022-02-01 17:02:44 +01:00
|
|
|
#INCLURE{fond=inclure/emission_encours,env,id_article,debut_emission=#GET{debut_emission},fin_emission=#GET{fin_emission}}#SET{prochaine,#ID_ARTICLE}
|
2021-11-23 18:09:47 +01:00
|
|
|
][(#ENV{date}|>={#GET{fin_emission}}|oui) [(#REM) inclure la dernière émission ]
|
2022-01-18 15:40:51 +01:00
|
|
|
#INCLURE{fond=inclure/derniere_emission,debut_emission=#GET{debut_emission},fin_emission=#GET{fin_emission},emission_heroine=oui}
|
2021-10-31 21:15:11 +01:00
|
|
|
]
|
2021-11-23 18:09:47 +01:00
|
|
|
|
|
|
|
</BOUCLE_quand>
|
2021-10-26 11:25:48 +02:00
|
|
|
</BOUCLE_emissions>
|
2021-11-23 18:09:47 +01:00
|
|
|
|
2021-07-30 00:11:35 +02:00
|
|
|
<B_accueil>
|
|
|
|
<article class="texte_accueil">
|
|
|
|
<BOUCLE_accueil(ARTICLES){page=accueil}>
|
2021-09-14 12:12:19 +02:00
|
|
|
<h2 class="visuallyhidden">#TITRE</h2>
|
2021-09-03 09:08:35 +02:00
|
|
|
<div class="flex flex2">
|
2021-07-30 00:11:35 +02:00
|
|
|
<div class="main">
|
|
|
|
[<div class="#EDIT{chapo} chapo surlignable">(#CHAPO|adaptive_images{#CONST{_CONTENT_WIDTH}})</div>]
|
|
|
|
[<div class="#EDIT{texte} texte surlignable">(#TEXTE|adaptive_images{#CONST{_CONTENT_WIDTH}})</div>]
|
|
|
|
</div>
|
2021-09-03 09:08:35 +02:00
|
|
|
[<aside class="aside">
|
|
|
|
<div class="#EDIT{ps} ps surlignable">(#PS|adaptive_images{#CONST{_CONTENT_WIDTH}})</div>
|
|
|
|
</aside>]
|
|
|
|
</div>
|
2021-07-30 00:11:35 +02:00
|
|
|
<footer>
|
|
|
|
[<div class="notes"><h2><:info_notes:></h2>(#NOTES)</div>]
|
|
|
|
</footer>
|
|
|
|
</BOUCLE_accueil>
|
|
|
|
</article>
|
|
|
|
</B_accueil>
|
|
|
|
[<div id="descriptif_site_spip" class="#EDIT{meta-descriptif_site} texte_accueil">(#DESCRIPTIF_SITE_SPIP)</div>]
|
|
|
|
[(#DESCRIPTIF_SITE_SPIP|non)<div class="texte_accueil">#NOM_SITE_SPIP</div>]
|
|
|
|
<//B_accueil>
|
|
|
|
|
2021-09-28 10:53:32 +02:00
|
|
|
[(#GET{prochaine}|oui)
|
2021-09-28 17:20:18 +02:00
|
|
|
<div class="derniere_emission">
|
|
|
|
<h2><:libreavous:derniere_emission:></h2>
|
|
|
|
<INCLURE{fond=inclure/derniere_emission,prochaine=#GET{prochaine}} />
|
|
|
|
</div>
|
2021-09-28 10:53:32 +02:00
|
|
|
]
|
2022-12-02 14:20:04 +01:00
|
|
|
|
|
|
|
<B_selection>
|
|
|
|
<div class="liste articles emissions emissions_selectionaccueil">
|
|
|
|
<h2>[(#CONFIG{libreavous/selectionaccueiltitre}|sinon{<:libreavous:selection_d_emissions:>}) ]<span class="controlcarousel"><span class="avant disabled"></span><span class="ensuite"></span></span></h2>
|
|
|
|
<div class="owl-theme owl-carousel [ (#TOTAL_BOUCLE|>={3}|oui)owlselectionaccueil]">
|
|
|
|
<BOUCLE_selection(ARTICLES){id_article IN #CONFIG{libreavous/selectionaccueil}|picker_selected{article}}>
|
|
|
|
<div data-item="#COMPTEUR_BOUCLE"><INCLURE{fond=inclure/resume/emission,id_article} /></div>
|
|
|
|
</BOUCLE_selection>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
[(#TOTAL_BOUCLE|>={3}|oui)
|
|
|
|
<script>
|
|
|
|
jQuery(function($){
|
|
|
|
var owl = $('.owl-carousel');
|
|
|
|
owl.owlCarousel({
|
|
|
|
loop:false,
|
|
|
|
margin:30,
|
|
|
|
items: 3,
|
|
|
|
slideBy: 3,
|
|
|
|
dots: false,
|
|
|
|
nav: false,
|
|
|
|
onTranslated: callback,
|
|
|
|
responsive : {
|
|
|
|
// breakpoint from 0 up
|
|
|
|
0 : {
|
|
|
|
items: 1,
|
|
|
|
},
|
|
|
|
// breakpoint from 480 up
|
|
|
|
560 : {
|
|
|
|
items: 2,
|
|
|
|
},
|
|
|
|
// breakpoint from 768 up
|
|
|
|
768 : {
|
|
|
|
items: 3,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
// Go to the next item
|
|
|
|
$('.ensuite').click(function() {
|
|
|
|
owl.trigger('next.owl.carousel');
|
|
|
|
})
|
|
|
|
// Go to the previous item
|
|
|
|
$('.avant').click(function() {
|
|
|
|
owl.trigger('prev.owl.carousel');
|
|
|
|
// owl.trigger('prev.owl.carousel', [100]);
|
|
|
|
})
|
|
|
|
function callback(event) {
|
|
|
|
var totalItems = $('.owl-item').length;
|
|
|
|
var firstitemactive = $('.owl-item.active').first().find('div').attr('data-item');
|
|
|
|
var lastitemactive = $('.owl-item.active').last().find('div').attr('data-item');
|
|
|
|
if (lastitemactive == totalItems) {
|
|
|
|
$('.ensuite').addClass('disabled');
|
|
|
|
}
|
|
|
|
if (lastitemactive < totalItems) {
|
|
|
|
$('.ensuite').removeClass('disabled');
|
|
|
|
}
|
|
|
|
if (firstitemactive == 1) {
|
|
|
|
$('.avant').addClass('disabled');
|
|
|
|
}
|
|
|
|
if (firstitemactive > 1) {
|
|
|
|
$('.avant').removeClass('disabled');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
]
|
|
|
|
</div>
|
|
|
|
</B_selection>
|
|
|
|
|
|
|
|
|
2021-09-28 10:53:32 +02:00
|
|
|
<INCLURE{fond=inclure/liste/emissions-precedentes,ajax,env,nb=6,prochaine=#GET{prochaine}} />
|
2021-09-08 11:29:22 +02:00
|
|
|
|
2021-07-30 00:11:35 +02:00
|
|
|
[(#MODELE{bouton,lienobjet=rubrique,lienidobjet=1,class=center taille130,texte=Toutes les émissions})]
|