Skip to content
Extraits de code Groupes Projets
Valider 5d4c554b rédigé par real3t@gmail.com's avatar real3t@gmail.com
Parcourir les fichiers

Fil d'Ariane en position haute pour :

* D'autres pages d'Agenda (dont une agenda_programmation non terminée, un problème avec ENUM qui date d'une version pour SPIP 2.1)
parent cbcaaa86
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -343,6 +343,8 @@ img_pack/soyezcreateurs_help-48.png -text ...@@ -343,6 +343,8 @@ img_pack/soyezcreateurs_help-48.png -text
inc/sc_agenda.php -text inc/sc_agenda.php -text
inc/sc_article.php -text inc/sc_article.php -text
/inc_mots_article.html -text /inc_mots_article.html -text
inclure/agenda_programmation.html -text
inclure/agenda_programmation_fonctions.php -text
inclure/entravaux.html -text inclure/entravaux.html -text
inclure/mesfavoris.html -text inclure/mesfavoris.html -text
/inscription_evenement.html -text /inscription_evenement.html -text
...@@ -480,6 +482,9 @@ noisettes/cartouches/themes.html -text ...@@ -480,6 +482,9 @@ noisettes/cartouches/themes.html -text
noisettes/cartouches/themes_agenda_mensuel.html -text noisettes/cartouches/themes_agenda_mensuel.html -text
noisettes/cartouchetitre/401.html -text noisettes/cartouchetitre/401.html -text
noisettes/cartouchetitre/404.html -text noisettes/cartouchetitre/404.html -text
noisettes/cartouchetitre/agenda_calendrier.html -text
noisettes/cartouchetitre/agenda_calendrier_dyn.html -text
noisettes/cartouchetitre/agenda_programmation.html -text
noisettes/cartouchetitre/antichrono.html -text noisettes/cartouchetitre/antichrono.html -text
noisettes/cartouchetitre/article.html -text noisettes/cartouchetitre/article.html -text
noisettes/cartouchetitre/meteo.html -text noisettes/cartouchetitre/meteo.html -text
......
...@@ -20,17 +20,10 @@ ...@@ -20,17 +20,10 @@
<INCLURE{fond=noisettes/header/header} <INCLURE{fond=noisettes/header/header}
{title=(#TITRE|attribut_html|texte_script) - (#GET{date}|affdate_mois_annee)} {title=(#TITRE|attribut_html|texte_script) - (#GET{date}|affdate_mois_annee)}
{titretop=#GET{titretop}} {titretop=#GET{titretop}}
{id_rubrique}
{date_ev=#ENV{'date_ev'}}{month=#ENV{'month'}}{year=#ENV{'year'}}
{type=agenda_calendrier}
> >
<nav id="miettesdepain">
<h2 class="nocontent offscreen">Fil d'Ariane</h2>
<ul>
<li><a href="#URL_SITE_SPIP" title="<:soyezcreateurs:accueil_site|attribut_html:>"><:soyezcreateurs:accueil:></a></li>
<BOUCLE_plan(HIERARCHIE){id_rubrique}>
<li><a href="[(#URL_PAGE{agenda_calendrier}|parametre_url{'id_rubrique', #ID_RUBRIQUE}|parametre_url{'date_ev', [(#GET{date_th, [(#ENV{date})]}|annee)]'-[(#GET{date_th,[(#ENV{date})]}|mois)]-01'}|parametre_url{'id_mot', [(#ENV{id_mot,''}|urlencode)]})]"[ title="(#DESCRIPTIF|supprimer_tags|attribut_html)"]>[(#TITRE)]</a></li>
</BOUCLE_plan>
<li>[(#TITRE)]</li>
</ul>
</nav>
<div class="texte"> <div class="texte">
<main id="main" role="main"> <main id="main" role="main">
<!-- Une : contenu de la rubrique --> <!-- Une : contenu de la rubrique -->
......
...@@ -21,17 +21,10 @@ ...@@ -21,17 +21,10 @@
{title=(#TITRE|attribut_html|texte_script) - (#GET{date}|affdate_mois_annee)} {title=(#TITRE|attribut_html|texte_script) - (#GET{date}|affdate_mois_annee)}
{titretop=#GET{titretop}} {titretop=#GET{titretop}}
{wdcalendar=oui} {wdcalendar=oui}
{id_rubrique}
{date_ev=#ENV{'date_ev'}}{month=#ENV{'month'}}{year=#ENV{'year'}}
{type=agenda_calendrier_dyn}
> >
<nav id="miettesdepain">
<h2 class="nocontent offscreen">Fil d'Ariane</h2>
<ul>
<li><a href="#URL_SITE_SPIP" title="<:soyezcreateurs:accueil_site|attribut_html:>"><:soyezcreateurs:accueil:></a></li>
<BOUCLE_plan(HIERARCHIE){id_rubrique}>
<li><a href="[(#URL_PAGE{agenda_calendrier}|parametre_url{'id_rubrique', #ID_RUBRIQUE}|parametre_url{'date_ev', [(#ENV{date_ev, [(#ENV{date})]}|annee)]'-[(#ENV{date_ev,[(#ENV{date})]}|mois)]-01'}|parametre_url{'id_mot', [(#ENV{id_mot,''}|urlencode)]})]"[ title="(#DESCRIPTIF|supprimer_tags|attribut_html)"]>[(#TITRE)]</a></li>
</BOUCLE_plan>
<li>[(#TITRE)]</li>
</ul>
</nav>
<div class="texte"> <div class="texte">
<main id="main" role="main"> <main id="main" role="main">
......
...@@ -7,17 +7,11 @@ ...@@ -7,17 +7,11 @@
<INCLURE{fond=noisettes/header/header} <INCLURE{fond=noisettes/header/header}
{title=(#TITRE|attribut_html|texte_script) - (#GET{periode})} {title=(#TITRE|attribut_html|texte_script) - (#GET{periode})}
{titretop=#GET{titretop}} {titretop=#GET{titretop}}
{id_rubrique}
{date_debut}{jour_debut}{duree}
{type=agenda_programmation}
> >
<nav id="miettesdepain">
<h2 class="nocontent offscreen">Fil d'Ariane</h2>
<ul>
<li><a href="#URL_SITE_SPIP" title="<:soyezcreateurs:accueil_site|attribut_html:>"><:soyezcreateurs:accueil:></a></li>
<BOUCLE_plan(HIERARCHIE){id_rubrique}>
<li><a href="[(#URL_PAGE{agenda_programmation}|parametre_url{'id_rubrique', #ID_RUBRIQUE})]"[ title="(#DESCRIPTIF|supprimer_tags|attribut_html)"]>[(#TITRE)]</a></li>
</BOUCLE_plan>
<li>[(#TITRE)]</li>
</ul>
</nav>
<div class="texte"> <div class="texte">
<main id="main" role="main"> <main id="main" role="main">
<!-- Une : contenu de la rubrique --> <!-- Une : contenu de la rubrique -->
......
[(#REM) Trouver, par rapport à la date du jour, la date de début de la période ]
[(#SET{date_debut,[(#ENV{date_debut,#DATE}|programmation_debut{#ENV{jour_debut}}|affdate{'Y-m-d'})]})]
<table summary="En colonne les jours de la semaine, en ligne, le nom des films et à l’intersection, l’heure de projection" class="spip">
<caption>Programmation</caption>
<thead><tr class="row_first"><th scope="col">Du [(#GET{date_debut}|affdate{'j/n'})] au [(#GET{date_debut}|programmation_datedecalejours{[(#ENV{duree,7}|moins{1})]}|affdate{'j/n'})]<br />[Semaine (#GET{date_debut}|affdate{'W'})]</th>
[(#REM) Affiche la première ligne du tableau donnant les jours concernés ]
<BOUCLE_Jours(ENUM){0,#ENV{duree,7}}>
[(#SET{lejour,[(#GET{date_debut}|programmation_datedecalejours{#VALEUR})]})]
<th scope="col"><abbr title="[(#GET{lejour}|nom_jour|ucfirst)]">[(#GET{lejour}|nom_jour|substr{0,2}|ucfirst)]</abbr><br />[(#GET{lejour}|affdate{'j/n'})]</th>
</BOUCLE_Jours>
</tr></thead>
<B_Films>
<tbody>
[(#REM) Récupérer le liste des évenements entre la date de début et sur la durée choisie.
Ne prendre qu'un événement par article ]
<BOUCLE_Films(EVENEMENTS){id_rubrique?}{id_article?}{date_debut>=(#GET{date_debut}|affdate{'Y-m-d'})}{date_debut<(#GET{date_debut}|programmation_datedecalejours{(#ENV{duree,7})}|affdate{'Y-m-d'})}{fusion evenements.id_article}{par titre}>
<tr class="[(#COMPTEUR_BOUCLE|alterner{row_even,row_odd})]">
<td>[(#ID_ARTICLE|<>{#ENV{id_article}}|?{<a href="[(#URL_ARTICLE{#ID_ARTICLE})]">})]#TITRE[(#ID_ARTICLE|<>{#ENV{id_article}}|?{</a>})]</td>
[(#REM) Lister les événements de l'article, jour par jour sur la période. ]
<BOUCLE_JoursFilm(ENUM){0,#ENV{duree,7}}>
[(#SET{lejour,[(#GET{date_debut}|programmation_datedecalejours{#VALEUR})]})]
<B_HorraireFilm><td>
<BOUCLE_HorraireFilm(EVENEMENTS){id_article=#_Films:ID_ARTICLE}{date_debut>=(#GET{lejour}|affdate{'Y-m-d'})}{date_debut<(#GET{lejour}|programmation_datedecalejours{1}|affdate{'Y-m-d'})}{par date_debut}{"<br />"}>
[(#DATE_DEBUT|affdate{'H:i'})]
</BOUCLE_HorraireFilm>
</td></B_HorraireFilm>
<td> </td>
<//B_HorraireFilm>
</BOUCLE_JoursFilm>
</tr>
</BOUCLE_Films>
</tbody>
</table>
</B_Films>
<tbody>
<tr class="row_even">
<td colspan="[(#ENV{duree,7}|plus{1})]">Pas encore de programmation cette semaine.</td>
</tr>
</tbody>
</table>
<//B_Films>
[<div style="float:right;">
<a href="(#SELF|parametre_url{date_debut,[(#GET{date_debut}|programmation_datedecalejours{-1}|affdate{'Y-m-d'})]})" class='ajax preload'>Semaine précédente</a>] | [<a href="(#SELF|parametre_url{date_debut,[(#GET{date_debut}|programmation_datedecalejours{+7}|affdate{'Y-m-d'})]})" class='ajax preload'>Semaine suivante</a>
</div>]
\ No newline at end of file
<?php
function programmation_datedecalejours($date,$decalage) {
return date('Y-m-d H:i:s',mktime(affdate($date,"H"), affdate($date,"i"), affdate($date,"s"), affdate($date,"m"), affdate($date,"d")+$decalage, affdate($date,"Y")));
}
function programmation_debut($date, $jour_debut = 3) {
$jour_semaine = affdate($date,'w');
if ($jour_semaine >= $jour_debut) {
$decalage = $jour_debut - $jour_semaine;
} else {
$decalage = $jour_debut - $jour_semaine - 7;
}
$date_debut = programmation_datedecalejours($date,$decalage);
return $date_debut;
}
\ No newline at end of file
<BOUCLE_rubrique_principal(RUBRIQUES) {id_rubrique}>
[(#ENV{'date_ev'}|!={''}|non)
[(#ENV{'month'}|oui)
[(#ENV{'year'}|oui)
#SET{'date', #ENV{'year'}|concat{'-'#ENV{'month'}}|concat{'-01 00:00:00'}}
#SET{'date_th', #ENV{'year'}|concat{'-'#ENV{'month'}}|concat{'-01'}}
]
]
[(#ENV{'month'}|non)
#SET{'date', #ENV{date}}
#SET{'date_th', #ENV{date}|affdate{'Y-m-d'}
]
]
[(#ENV{'date_ev'}|!={''}|oui)
#SET{'date', #ENV{date_ev}|concat{' 00:00:00'}}
#SET{'date_th', #ENV{date_ev}}
]
[(#SET{titretop,[(#TITRE|attribut_html|sc_nettoyer_marqueur|texte_script)]})]
<nav id="miettesdepain">
<h2 class="nocontent offscreen">Fil d'Ariane</h2>
<ul>
<li><a href="#URL_SITE_SPIP" title="<:soyezcreateurs:accueil_site|attribut_html:>"><:soyezcreateurs:accueil:></a></li>
<BOUCLE_plan(HIERARCHIE){id_rubrique}>
<li><a href="[(#URL_PAGE{agenda_calendrier}|parametre_url{'id_rubrique', #ID_RUBRIQUE}|parametre_url{'date_ev', [(#GET{date_th, [(#ENV{date})]}|annee)]'-[(#GET{date_th,[(#ENV{date})]}|mois)]-01'}|parametre_url{'id_mot', [(#ENV{id_mot,''}|urlencode)]})]"[ title="(#DESCRIPTIF|supprimer_tags|attribut_html)"]>[(#TITRE)]</a></li>
</BOUCLE_plan>
<li>[(#TITRE)]</li>
</ul>
</nav>
</BOUCLE_rubrique_principal>
#FILTRE{mini_html}
\ No newline at end of file
<BOUCLE_rubrique_principal(RUBRIQUES) {id_rubrique}>
[(#ENV{'date_ev'}|!={''}|non)
[(#ENV{'month'}|oui)
[(#ENV{'year'}|oui)
#SET{'date', #ENV{'year'}|concat{'-'#ENV{'month'}}|concat{'-01 00:00:00'}}
#SET{'date_th', #ENV{'year'}|concat{'-'#ENV{'month'}}|concat{'-01'}}
]
]
[(#ENV{'month'}|non)
#SET{'date', #ENV{date}}
#SET{'date_th', #ENV{date}|affdate{'Y-m-d'}
]
]
[(#ENV{'date_ev'}|!={''}|oui)
#SET{'date', #ENV{date_ev}|concat{' 00:00:00'}}
#SET{'date_th', #ENV{date_ev}}
]
<nav id="miettesdepain">
<h2 class="nocontent offscreen">Fil d'Ariane</h2>
<ul>
<li><a href="#URL_SITE_SPIP" title="<:soyezcreateurs:accueil_site|attribut_html:>"><:soyezcreateurs:accueil:></a></li>
<BOUCLE_plan(HIERARCHIE){id_rubrique}>
<li><a href="[(#URL_PAGE{agenda_calendrier_dyn}|parametre_url{'id_rubrique', #ID_RUBRIQUE}|parametre_url{'date_ev', [(#ENV{date_ev, [(#ENV{date})]}|annee)]'-[(#ENV{date_ev,[(#ENV{date})]}|mois)]-01'}|parametre_url{'id_mot', [(#ENV{id_mot,''}|urlencode)]})]"[ title="(#DESCRIPTIF|supprimer_tags|attribut_html)"]>[(#TITRE)]</a></li>
</BOUCLE_plan>
<li>[(#TITRE)]</li>
</ul>
</nav>
</BOUCLE_rubrique_principal>
#FILTRE{mini_html}
\ No newline at end of file
<BOUCLE_rubrique_principal(RUBRIQUES) {id_rubrique}>
[(#REM) Trouver, par rapport à la date du jour, la date de début de la période ]
[(#SET{date_debut,[(#ENV{date_debut,#DATE}|programmation_debut{#ENV{jour_debut}}|affdate{'Y-m-d'})]})]
[(#SET{periode,[(#GET{date_debut}|agenda_affdate_debut_fin{[(#GET{date_debut}|programmation_datedecalejours{[(#ENV{duree,7}|moins{1})]})],non, abbr}|typo)]})]
<nav id="miettesdepain">
<h2 class="nocontent offscreen">Fil d'Ariane</h2>
<ul>
<li><a href="#URL_SITE_SPIP" title="<:soyezcreateurs:accueil_site|attribut_html:>"><:soyezcreateurs:accueil:></a></li>
<BOUCLE_plan(HIERARCHIE){id_rubrique}>
<li><a href="[(#URL_PAGE{agenda_programmation}|parametre_url{'id_rubrique', #ID_RUBRIQUE})]"[ title="(#DESCRIPTIF|supprimer_tags|attribut_html)"]>[(#TITRE)]</a></li>
</BOUCLE_plan>
<li>[(#TITRE)]</li>
</ul>
</nav>
</BOUCLE_rubrique_principal>
#FILTRE{mini_html}
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter