Skip to content
Extraits de code Groupes Projets
Valider 03e96e97 rédigé par RealET's avatar RealET :kissing_cat:
Parcourir les fichiers

Un modèle de NewsLetter Nouveautés

parent 89372af4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
<BOUCLE_rem(CONDITION){si #REM}>
<!-- titre=<multi>[fr]Nouveautés (SoyezCréateurs)[en]New Stories (SoyezCréateurs)</multi> -->
</BOUCLE_rem>
#CACHE{0}#HTTP_HEADER{Content-type: text/html; charset=#CHARSET}
#SET{c_header,(#CONFIG{soyezcreateurs_couleurs/header_lettre,02265a}|replace{#,''})}
#SET{c_header_bk,(#CONFIG{soyezcreateurs_couleurs/header_lettre_bk,ffffff}|replace{#,''})}
#SET{c_titraille_links,(#CONFIG{soyezcreateurs_couleurs/titraille_lettre,02265a}|replace{#,''})}
<BOUCLE_Lettre(NEWSLETTERS){id_newsletter}{statut?}{lang_select}>
#SET{nouveautes,''}
<BOUCLE_hasnewarticles(ARTICLES){date<=#DATE}{date>#DATE_REDAC}{0,1}>#SET{nouveautes,' '}</BOUCLE_hasnewarticles>
<BOUCLE_hasnewbreves(BREVES){date_heure<=#DATE}{date_heure>#DATE_REDAC}{0,1}>#SET{nouveautes,' '}</BOUCLE_hasnewbreves>
<BOUCLE_si(CONDITION){si #GET{nouveautes}}>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>[(#TITRE|textebrut)] - [(#NOM_SITE_SPIP|
replace{<sub>.*</sub>,''}|
replace{<sup>.*</sup>,''}|textebrut)]</title>
<style type="text/css" media="screen">
[(#REM) Recuperation des CSS par defaut de SPIP ]
[(#INCLURE{#CHEMIN{spip_style.css}}|compacte{css})]
body {
margin: 0;
padding: 0;
background-color: #ffffff;
}
td.permission {
padding: 20px 0 20px 0;
}
td.permission p {
font-family: 'Lucida Grande', sans-serif;
font-size: 10px;
font-weight: normal;
color: #151515;
}
td.permission p a {
font-family: 'Lucida Grande', sans-serif;
font-size: 10px;
font-weight: normal;
color: ##GET{c_titraille_links};
}
td.header {
background-repeat: no-repeat;
background-position: top center;
background-color: ##GET{c_header_bk};
height: 130px;
}
td.header h1 {
font-family: Georgia, serif;
font-size: 30px;
font-weight: normal;
color: #333333;
margin-left: 50px;
margin-bottom: 24px;
}
table.content {
background-color: #f5f5f5;
}
td.sidebar a {
font-family: 'Lucida Grande', sans-serif;
font-size: 11px;
font-weight: normal;
color: ##GET{c_titraille_links};
text-decoration: none;
}
td.sidebar h3 a {
font-size: 20px;
font-weight: normal;
}
td.sidebar ul {
margin: 0 0 0 24px;
padding: 0;
}
td.sidebar ul li {
font-family: 'Lucida Grande', sans-serif;
font-size: 12px;
font-weight: normal;
color: #333333;
}
td.sidebar ul li a {
font-family: 'Lucida Grande', sans-serif;
font-size: 12px;
font-weight: normal;
color: ##GET{c_titraille_links};
}
td.sidebar h3 {
font-family: 'Lucida Grande', sans-serif;
font-size: 16px;
font-weight: bold;
color: #333333;
margin: 10px 0 14px 0;
padding: 0;
}
td.sidebar h3.buttons {
font-family: 'Lucida Grande', sans-serif;
font-size: 16px;
font-weight: bold;
color: #333333;
margin: 0 0 4px 0;
padding: 0;
}
td.sidebar h4 {
font-family: 'Lucida Grande', sans-serif;
font-size: 13px;
font-weight: bold;
color: #333333;
margin: 0 0 2px 0;
padding: 0;
}
td.sidebar p {
font-family: 'Lucida Grande', sans-serif;
font-size: 11px;
font-weight: normal;
color: #505050;
margin: 0 0 13px 0;
padding: 0;
}
td.sidebar p.buttons {
font-family: 'Lucida Grande', sans-serif;
font-size: 11px;
font-weight: normal;
color: #505050;
margin: 0 0 4px 0;
padding: 0;
}
td.border {
border-right: 2px solid #e0e0e0;
}
td.mainbar a {
font-family: 'Lucida Grande', sans-serif;
font-size: 12px;
font-weight: normal;
color: ##GET{c_titraille_links};
text-decoration: none;
}
td.mainbar h1 {
font-family: 'Lucida Grande', sans-serif;
font-size: 24px;
font-weight: bold;
color: ##GET{c_titraille_links};
margin: 0 0 4px 0;
padding: 0 0 4px 0;
border-bottom: 1px solid #cbcbcb;
}
td.mainbar h2 {
font-family: 'Lucida Grande', sans-serif;
font-size: 16px;
font-weight: bold;
color: ##GET{c_titraille_links};
margin: 0 0 4px 0;
padding: 0 0 4px 0;
border-bottom: 1px solid #cbcbcb;
}
td.mainbar h3 {
font-family: Georgia, serif;
font-size: 16px;
font-weight: normal;
color: #333333;
margin: 10px 0 14px 0;
padding: 0;
}
td.mainbar p {
font-family: 'Lucida Grande', sans-serif;
font-size: 12px;
font-weight: normal;
color: #333333;
margin: 0 0 16px 0;
padding: 0;
}
td.mainbar p.top {
font-family: 'Lucida Grande', sans-serif;
font-size: 10px;
font-weight: bold;
color: ##GET{c_titraille_links};
margin: 0 0 30px 0;
padding: 0;
}
td.mainbar p.top a {
font-family: 'Lucida Grande', sans-serif;
font-size: 10px;
font-weight: bold;
color: ##GET{c_titraille_links};
}
td.mainbar ul {
font-family: 'Lucida Grande', sans-serif;
font-size: 12px;
font-weight: normal;
color: #333333;
margin: 0 0 20px 24px;
padding: 0;
}
td.footer {
padding: 20px 0 20px 0;
}
td.footer p {
font-family: 'Lucida Grande', sans-serif;
font-size: 10px;
font-weight: normal;
color: #151515;
}
.datepublication {
text-align: right;
margin-bottom: .5em;
}
.suite {
text-align: right;
margin-top: .5em;
}
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<table width="580" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="header" align="left" valign="bottom">
[(#SET{imgheader,[(#CHEMIN{lettres/header_newsletter_#LST_ID.jpg}|sinon{#CHEMIN{lettres/header_newsletter.jpg}}|sinon{[(#CHEMIN{lettres/header.jpg}|
image_sepia{#GET{c_header_bk}}|
appliquer_filtre{image_smush_debrayer,force=true}|
image_masque{[(#_Lettre:TITRE|
replace{<sub>.*</sub>,''}|
replace{<sup>.*</sup>,''}|
image_typo{police=AndBasR.ttf,largeur=460,couleur=#GET{c_header},taille=32,padding=20}|
image_format{png}|
image_recadre{580,110,center left,transparent}|
image_recadre{580,130,top left,transparent}|
extraire_attribut{src})],
mode=normal}|
image_masque{[(#LOGO_SITE_SPIP_NORMAL|
image_aplatir{png,#GET{c_header_bk}}|
image_reduire{0,100}|
image_recadre{570,105,bottom right,transparent}|
image_recadre{580,130,top left,transparent}|
extraire_attribut{src})],
mode=normal}|appliquer_filtre{image_smush_embrayer,force=true}|appliquer_filtre{image_smush,force=true}|extraire_attribut{src})]})]})]
<img src="[(#GET{imgheader})]" alt="[(#_Lettre:TITRE|replace{<sub>.*</sub>,''}|replace{<sup>.*</sup>,''})]" width="[(#GET{imgheader}|largeur)]" height="[(#GET{imgheader}|hauteur)]" />
</td>
</tr>
<tr>
<td>
<table width="580" height="130" border="0" cellspacing="16" cellpadding="0" class="content">
<tr>
<td class="mainbar" align="left" valign="top" width="354">
<h3>[(#DATE|affdate)]</h3>
<!-- CutHere -->
<BOUCLE_nouveautes(ARTICLES){date<=#DATE}{date>#DATE_REDAC}{!par date}{0,5}{"<br />"}>
<a href="[(#ARTICLE_URL)]"><h1>#TITRE</h1></a>
<div class="datepublication"><i>Publié le [(#DATE|affdate)]</i></div>
[<div class="soustitre"><span>(#SOUSTITRE)</span></div>]
[<div class="chapo">(#CHAPO|sinon{#DESCRIPTIF}|image_reduire{316,0})</div>]
[(#TEXTE|textebrut|couper{300})]
<br /><div class="suite"><a href="[(#ARTICLE_URL)]" title="[(#TITRE|attribut_html)]"><big><b>Lire la suite</b></big></a></div>
</BOUCLE_nouveautes>
<!-- /CutHere -->
<p class="top"><a href="#top" title="<:soyezcreateurs:retourtop|attribut_html:>"><:soyezcreateurs:retourtop:></a> <img src="[(#CHEMIN{lettres/top-arrow.gif}|image_sepia{#GET{c_header_bk}}|extraire_attribut{src})]" alt="Back to top" width="8" height="8" /></p>
</td>
<td class="border" width="2">&nbsp;</td>
<td class="sidebar" align="left" valign="top" width="192">
<h2><a href="#URL_SITE_SPIP" title="[(#DESCRIPTIF_SITE_SPIP|attribut_html)]">[(#NOM_SITE_SPIP|replace{<sub>.*</sub>,''}|replace{<sup>.*</sup>,''})]</a></h2>
<h3>#_Lettre:TITRE</h3>
[<div>(#_Lettre:CHAPO)</div>]
[<div>(#_Lettre:TEXTE)</div>]
[(#INCLURE{fond=noisettes/cartouches/sommaire_cartouche,nombres_alanune=#CONFIG{soyezcreateurs_couleurs/nombres_alanune,4},nombres_quoideneuf=#CONFIG{soyezcreateurs_couleurs/nombres_quoideneuf,5}}|replace{'h2>','h3>'})]
<img src="#CHEMIN{lettres/hr-small.gif}" alt="Small hr" width="192" height="28" />
<BOUCLE_ArticlesDessousBreves(RUBRIQUES){titre_mot = DessousBreves }><B_art_recents>
<h3 [title="(#DESCRIPTIF|supprimer_tags|attribut_html)"]>#TITRE</h3>
<ul>
<BOUCLE_art_recents(ARTICLES) {id_rubrique}{!par date} {lang} {0,(#CONFIG{soyezcreateurs/nombres_dessousbreves,10})}>
<li><a href="[(#ARTICLE_URL)]" title="[(#DESCRIPTIF|supprimer_tags|attribut_html)][ ((#INCLURE{fond=noisettes/aff_datepublication,id_article}|supprimer_tags))]">[(#TITRE|image_reduire{200,0})]</a></li>
</BOUCLE_art_recents>
</ul>
</B_art_recents></BOUCLE_ArticlesDessousBreves>
<img src="#CHEMIN{lettres/hr-small.gif}" alt="Small hr" width="192" height="28" />
</B_ArticlesDessousBreves>
<h3 class="buttons">Transmettre</h3>
<p class="buttons">Vous connaissez quelqu'un qui serait intéressé par cet email ? N'hésitez pas à le lui transmettre.</p>
<img src="#CHEMIN{lettres/hr-small.gif}" alt="Small hr" width="192" height="28" />
<h3 class="buttons">Désabonnement</h3>
<p class="buttons">Vous pouvez vous <a href="@url_unsubscribe@" title="Desabonner">désabonner</a> de cette newsletter.</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="646" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="#CHEMIN{lettres/footer-tail.jpg}" alt="Footer" width="646" height="87" /></td>
</tr>
[<tr>
<td align="center" class="footer">(#CONFIG{soyezcreateurs/bandeau_contact}|propre)</td>
</tr>]
<tr>
<td class="permission" align="center">
<p>Vous avez re&ccedil;u ce courrier de la part du site&nbsp;:[ (#NOM_SITE_SPIP|supprimer_tags)]</p>
<p>Si ce courrier ne s'affiche pas, vous pouvez le <a href="#URL_NEWSLETTER">visualiser sur le site</a>.</p>
<p>Vous pouvez vous <a href="@url_unsubscribe@" title="Desabonner">désabonner</a> de cette newsletter.</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
</BOUCLE_si>
</BOUCLE_Lettre>
#FILTRE{newsletters_liens_absolus}
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter