1 | #CACHE{0} |
---|
2 | #HTTP_HEADER{Content-Type: text/html} |
---|
3 | [(#REM) |
---|
4 | /********************************************************** |
---|
5 | * Ce squelette pour spip-listes |
---|
6 | * Patron: nouveautes.html liste les dernieres nouveautes |
---|
7 | * Ce squelette affiche les articles et breves publies depuis la date passee en reference |
---|
8 | * Utilise une balise #DATE_MODIF_SITE |
---|
9 | * Precautions: |
---|
10 | * - ne pas envoyer des gabarits de plus de 10Ko |
---|
11 | * - ne pas placer de balises html <html><body> ni de fermeture </body></html> |
---|
12 | * ils seront ajoutes automatiquement a l'envoi du mail |
---|
13 | * - mettre les style CSS directement dans les balises pour etre sur qu'ils seront interpretes (meme par les webmails) |
---|
14 | * - les urls et liens images seront automatiquement converties en absolues |
---|
15 | * ex. rubrique5.html -> http://www.monsite.org/rubrique5.html |
---|
16 | * |
---|
17 | * La balise suivante est utile pour generer un message vide (non envoye) si il n'y a pas de nouveautes depuis la date indiquee |
---|
18 | * [ Affichage ici (#DATE_MODIF_SITE|strtotime|>{[(#ENV{date}|strtotime)]}|?{' ',''}) Affichage ici ] |
---|
19 | * |
---|
20 | ***********************************************************/ |
---|
21 | ] |
---|
22 | |
---|
23 | [ |
---|
24 | <div class="body" style="background: #fff;color: #ccc;font-family:'Trebuchet MS', Tahoma, Arial, Verdana,sans-serif;font-size: 0.9em;text-align: left;"> |
---|
25 | <div class="conteneur" style="width: 500px;background: #fff;color: #000;text-align: left;margin: 0 auto;padding: 15px;"> |
---|
26 | |
---|
27 | <h1 style="font-size: 1.2em;border-bottom: 1px solid #666;"><:spiplistes:abo_1_lettre:></h1> |
---|
28 | |
---|
29 | |
---|
30 | <p> |
---|
31 | <:spiplistes:nouveaute_intro:> <a href="#URL_SITE_SPIP" style="color: #f60;">#NOM_SITE_SPIP</a> [(#ENV{date}|date_depuis)] |
---|
32 | </p> |
---|
33 | (#DATE_MODIF_SITE|strtotime|>{[(#ENV{date}|strtotime)]}|?{' ',''}) |
---|
34 | ] |
---|
35 | |
---|
36 | <B_breves> |
---|
37 | <h2 class="titre" style="background: #EEE;border: 1px solid #CCC;padding: 0.5em;margin-bottom: 1em;font-weight: bold;text-align: center;"><:info_breves_02:></h2> |
---|
38 | <BOUCLE_breves(BREVES){age_relatif<0}{par date}{inverse}> |
---|
39 | [<h3 style="font-size: 1.27em;font-weight: bold;color: #000;">(#TITRE|supprimer_numero)</h3>] |
---|
40 | <span style="font-size:.8em">[<:spiplistes:publie:> (#DATE|affdate)]</span> |
---|
41 | <div style="margin-top: 5px;margin-bottom: 2em;border: 1px solid #ccc;padding: 0.9em;font-size: 0.82em;line-height: 1.4em;" > |
---|
42 | #INTRODUCTION |
---|
43 | <div class="extra" style="color: #666;"><a href="#URL_SITE_SPIP/#URL_BREVE"><:spiplistes:lire:></a></div> |
---|
44 | </div> |
---|
45 | </BOUCLE_breves> |
---|
46 | |
---|
47 | |
---|
48 | <B_articles> |
---|
49 | <h2 class="titre" style="background: #EEE;border: 1px solid #CCC;padding: 0.5em;margin-bottom: 1em;font-weight: bold;text-align: center;"><:info_articles:></h2> |
---|
50 | <BOUCLE_articles(ARTICLES){age_relatif<0}{par date}{inverse}> |
---|
51 | [<h3 style="font-size: 1.27em;font-weight: bold;color: #000;">(#TITRE|supprimer_numero)</h3>] |
---|
52 | <span style="font-size:.8em">[(#DATE|affdate)], <:par_auteur:> #LESAUTEURS</span> |
---|
53 | <div style="margin-top: 5px;margin-bottom: 2em;border: 1px solid #ccc;padding: 0.9em;font-size: 0.82em;line-height: 1.4em;" > |
---|
54 | #INTRODUCTION |
---|
55 | <div class="extra"><a href="#URL_SITE_SPIP/#URL_ARTICLE"><:spiplistes:article_entier:></a></div> |
---|
56 | </div> |
---|
57 | </BOUCLE_articles> |
---|
58 | |
---|
59 | |
---|
60 | [ |
---|
61 | (#DATE_MODIF_SITE|strtotime|>{[(#ENV{date}|strtotime)]}|?{' ',''}) |
---|
62 | </div> |
---|
63 | </div> |
---|
64 | ] |
---|