Merci, Marc m'a donné également ces références. Je l'ai installé, tout
fonctionne impecable.
J'utilise les deux fichiers (en pièces jointes) placés dans un dossier
"squelettes" à la racine, puis j'ajoute les lignes suivantes dans les
pages "sommaire", "article", "brève", ... où l'agenda doit apparaître :
-------------------------------------------------------------------------
<link href="#CHEMIN{agenda_mini.css}" rel="stylesheet" type="text/css"
media="screen" />
-------------------------------------------------------------------------
<INCLURE{fond=agenda_mini} {id_rubrique=76}>
-------------------------------------------------------------------------
Ensuite dans la partie privée, je créé une rubrique dans laquelle seront
écrits les articles qui doivent apparaître dans l'agenda. Je saisi alors
une date de publication antérieure qui correspond à la date de l'événement.
Cordialement
//_Vincent BRICAIRE_//
//http://vincent.bricaire.free.fr//// //; //http://amemunster.free.fr//
------------------------------------------------------------------------
#CACHE{7200}
Agenda <#URL_RUBRIQUE>
date("Ymd", mkdate($M, $D - 31, $Y)) && $date < date("Ymd", mkdate($M,
$D + 31, $Y))) { if (!isset($events[$date])) { $events[$date] = array();
} $events[$date] = array('link' => '#URL_ARTICLE', 'title' =>
'[(#TITRE|texte_script)]', 'logo' => ""); }
$titulo='[(#TITRE|texte_script)]'; ?>
<< '.$mes.' '.$Y.' >>
<'.preparation_URL('#SELF',$calendrier_mois_plus,$calendrier_annee_plus).'>';
?>
'.$days[$i%7].''; } $TempD = 1; if(date('w', mkdate($M, 1, $Y)) != 1) {
echo '
'; $tmp = ''; while(date('w', mkdate($M, $TempD, $Y)) != 1) { $TempD--;
$case = ''; $case .= date('j', mkdate($M, $TempD, $Y)); $date =
date('Ymd', mkdate($M, $TempD, $Y)); $case .= ''; $tmp = $case.$tmp; }
echo $tmp; } $TempD = 1; while((date('m', mkdate($M, $TempD, $Y)) == $M)
|| (date('w', mkdate($M, $TempD, $Y)) != 1)) { if(date('w', mkdate($M,
$TempD, $Y)) == 1) { echo '
'; } echo ''; $date = date('Ymd', mkdate($M, $TempD, $Y)); if
(isset($events[$date])) { echo ''. date('j', mkdate($M, $TempD, $Y)) .'
<'.$events[$date]['link'].'>'; } else { echo date('j', mkdate($M,
$TempD, $Y)); } echo ''; $TempD++; } ?>
[(#DATE_REDAC|jour)-][(#DATE_REDAC|mois):] #TITRE <#URL_ARTICLE>
'; $test_boucle++;} ?> Aucun événement à venir pour ce mois dans l'agenda
"; }?>
Aucun événement à venir pour ce mois dans l'agenda
------------------------------------------------------------------------
/*
* AGENDA
*/
.cabecera_agenda {
background-color:#999999;
padding:2px;
color:#999999;
font-family:"Trebuchet MS";
font-size:12px;
font-weight: bolder;
text-align:center;
border-top-color: #000000;
}
.agenda_ a{
font-size: 10px;
font-weight: bold;
text-decoration: none;
color: #fff;/*color: #000;
border: 1px solid #999;
background-color: #eee;
padding: 2px 3px;*/
}
.agenda_ a:hover{
text-decoration: none;
border: 1px;
border-top-color: #000000;
border-right-color: #000000;
border-bottom-color: #000000;
}
.agenda_mini a{
display: block;
font-size: 13px;
font-weight: bold;
text-decoration: none;
color: #fff;
background-color: #FFFFFF;
}
.agenda_mini a:hover{
display: block;
text-decoration: none;
background-color: #cccccc;*/
/*color: #000;
border: 1px solid #666;
background-color: #ddd;*/
}
.calendar_head {
text-align: center;
font-size: 11px;
color: #630;
font-family: "Trebuchet MS";
}
.calendar_this_day {
background-color: #FFCC66;
font-weight:bold;
}
.calendar_this_month {
background-color: #fefefe;
}
.calendar_not_this_month {
background: #ececec;
color:#FFCC66;
font-family: "Trebuchet MS";
}
.formbuscar_ag {
font-family: "Trebuchet MS";
width: 128px;
font-size: 11px;
border: 1px solid #eeeeee;
color:#99CC33;
padding: 0px;
margin: 0px;
}
.botonbuscar_ag {
font-size: 11px;
font-family: "Trebuchet MS";
border: 1px solid #eeeeee;
background: #ffffff;
color:#FF6600;
margin: 0px;
padding: 0px;
}
.formbuscar_cabecera {
font-family: "Trebuchet MS";
width: 128px;
font-size: 9px;
border: 1px solid #CCCCCC;
color:#99CC33;
padding: 0px;
margin: 0px;
font-weight:bold;
}
.botonbuscar_cabecera {
font-size: 9px;
font-family: "Trebuchet MS";
color:#FF6600;
margin: 0px;
padding: 0px;
border:0px;
}
.small {
font-family:"Trebuchet MS";
font-size:16px;
font-color:#666666;
}
.small_plus {
font-family:"Trebuchet MS";
font-size:11px;
font-color:#666666;
}
.small_mini {
font-family:"Trebuchet MS";
font-size:11px;
font-color:#999999;
text-align:center;
font-style:normal;
}
.calendar_head_mini {
background-color: #FFCC66;
text-align: center;
font-size: 10px;
color: #EEE;
font-family: "Trebuchet MS";
font-style:normal;
}
.boton_agenda A {
display: block;
margin: 0px;
padding: 2px;
background-color:#999999;
color:#FFFFFF;
text-decoration: none;
font-size:11px;
font-weight:bold;
font-family:"Trebuchet MS";
background-attachment: fixed;
}
.boton_agenda A:hover {
display: block;
margin: 0px;
padding: 2px;
background-color:#CCCCCC;
color:#000000;
text-decoration: none;
font-size:11px;
font-weight:bold;
font-family:"Trebuchet MS";
}
------------------------------------------------------------------------
_______________________________________________
liste spip
spip@rezo.net - désabonnement : spip-off@rezo.net
Infos et archives : http://listes.rezo.net/mailman/listinfo/spip
Documentation de SPIP : http://www.spip.net/
irc://irc.freenode.net/spip
FAQ : http://www.spip-contrib.net/spikini/FaQ