Modèle de newsletter » History » Version 5
Simon, 11/15/2023 06:28 PM
| 1 | 1 | Simon | h1. Modèle de newsletter |
|---|---|---|---|
| 2 | |||
| 3 | 2 | Simon | |
| 4 | 4 | Simon | Le template de la newsletter est situé dans `/newsletter/input/template.html`. La source au format HEML est également disponible dans le même dossier. |
| 5 | 2 | Simon | |
| 6 | 4 | Simon | Depuis la version v2.6, Linea21 propose un template basé sur le format HEML : https://heml.io/ |
| 7 | 1 | Simon | |
| 8 | 4 | Simon | Le code résultant assure une excellente compatibilité avec la plupart des clients mail. Il est généré via l'éditeur en ligne : https://heml.io/editor/ |
| 9 | |||
| 10 | 1 | Simon | h2. Personnaliser la newsletter |
| 11 | |||
| 12 | 4 | Simon | Nous vous conseillons fortement d'utiliser le format HEML et son éditeur associé pour définir vos propres templates - voir plus haut. |
| 13 | |||
| 14 | Copier-coller le template existant dans l'éditeur (https://heml.io/editor/) afin d'avoir une base et de tester vos rendus. |
||
| 15 | Vous trouverez également la documentation associé au langage HEML à l'adresse suivante : https://heml.io/docs/ |
||
| 16 | |||
| 17 | Nous vous conseillons fortement de conserver la source au format HEML. |
||
| 18 | |||
| 19 | 2 | Simon | Une fois le style défini, le conserver à l'état brouillon comme modèle dans le but de le copier-coller lors de chaque ajout de newsletter. |
| 20 | 3 | Simon | |
| 21 | 1 | Simon | A placer dans le champ texte lors de la création de l'email. |
| 22 | |||
| 23 | 5 | Simon | *Erratum : le projet HEML semble abandonné bien que fonctionnel. MJML (https://mjml.io/templates) semble une très bonne alternative. Des templates sont disponibles (https://mjml.io/templates) et un éditeur en ligne est accessible (https://mjml.io/try-it-live/)*. |
| 24 | |||
| 25 | 1 | Simon | |
| 26 | 2 | Simon | h2. Les modèles à disposition |
| 27 | |||
| 28 | 4 | Simon | h3. Modèle Châlons Agglo (non généré avec HEML - compatibilité restreinte) |
| 29 | 1 | Simon | |
| 30 | !newsletter-template-chalons.png! |
||
| 31 | |||
| 32 | <pre><code class="html"> |
||
| 33 | <!-- If you delete this meta tag, Half Life 3 will never be released. --><meta name="viewport" content="width=device-width" /><meta http-equiv="Content-Type" content="text/html; charset=##CHARSET##" /> |
||
| 34 | <title></title> |
||
| 35 | <link href="##CSSPATH##newsletter.css" rel="stylesheet" type="text/css" /><!-- HEADER --> |
||
| 36 | <table bgcolor="#FCAD35" class="head-wrap"> |
||
| 37 | <tbody> |
||
| 38 | <tr> |
||
| 39 | <td> </td> |
||
| 40 | <td class="header container"> |
||
| 41 | <div class="content"> |
||
| 42 | <table bgcolor="#FCAD35"> |
||
| 43 | <tbody> |
||
| 44 | <tr> |
||
| 45 | <td><img height="58" src="https://planclimat.chalons-agglo.fr/templates/public/chalons-agglo2019/images/logo-blanc.png" style="margin: 0; border: 0; padding: 0; display: block;" width="180" /></td> |
||
| 46 | <td align="right"> |
||
| 47 | <h6 class="collapse">##SITENAME##</h6> |
||
| 48 | </td> |
||
| 49 | </tr> |
||
| 50 | </tbody> |
||
| 51 | </table> |
||
| 52 | </div> |
||
| 53 | </td> |
||
| 54 | <td> </td> |
||
| 55 | </tr> |
||
| 56 | </tbody> |
||
| 57 | </table> |
||
| 58 | <!-- /HEADER --> |
||
| 59 | |||
| 60 | <p> </p> |
||
| 61 | <!-- BODY --> |
||
| 62 | |||
| 63 | <table class="body-wrap"> |
||
| 64 | <tbody> |
||
| 65 | <tr> |
||
| 66 | <td> </td> |
||
| 67 | <td bgcolor="#FFFFFF" class="container"> |
||
| 68 | <div class="content"> |
||
| 69 | <table> |
||
| 70 | <tbody> |
||
| 71 | <tr> |
||
| 72 | <td> |
||
| 73 | <h1 style="color: #d7087a; margin-bottom: 1em; font-weight: 700;font-size:26px">##TITLE##</h1> |
||
| 74 | <!-- !!!! WARNING !!!!! |
||
| 75 | keep at least the main div on your template --> |
||
| 76 | |||
| 77 | <div id="main"> |
||
| 78 | <p>Tandis que le COVID-19 semble faiblir, la bataille contre un autre fléau continue. Tout aussi imperceptible, mais tout aussi vulnérable aux changements de comportements : j’ai nommé, le changement climatique.</p> |
||
| 79 | |||
| 80 | <h2 align="center" style="background-color: #FCAD35; color:#ffffff; margin-top: 2em; font-weight: bold;font-size:16px;text-transform: uppercase;border-bottom:2px solid #FCAD35">Les actions avancent</h2> |
||
| 81 | |||
| 82 | <p>Code fiche action : date de l’étape réalisée, description des avancées, suite des opérations</p> |
||
| 83 | |||
| 84 | <h2 align="center" style="background-color: #FCAD35; color:#ffffff; margin-top: 2em; font-weight: bold;font-size:16px;text-transform: uppercase;border-bottom:2px solid #FCAD35">L'agglo délibère</h2> |
||
| 85 | |||
| 86 | <p>Délibération X : contenu / s’inscrit dans tel objectif du Plan Climat</p> |
||
| 87 | |||
| 88 | <h2 align="center" style="background-color: #FCAD35; color:#ffffff; margin-top: 2em; font-weight: bold;font-size:16px;text-transform: uppercase;border-bottom:2px solid #FCAD35">Initiatives</h2> |
||
| 89 | |||
| 90 | <table cellpadding="5" cellspacing="5" style="width:100%;" width="100%"> |
||
| 91 | <tbody> |
||
| 92 | <tr> |
||
| 93 | <td style="width:50%;vertical-align:top;" width="50%"> |
||
| 94 | <p style="text-align: center;"><strong>D’ici </strong></p> |
||
| 95 | |||
| 96 | <p>Portrait d’un acteur local, description d’un projet sur l’Agglo</p> |
||
| 97 | </td> |
||
| 98 | <td style="width:50%;vertical-align:top;" width="50%"> |
||
| 99 | <p style="text-align: center;"><strong>D’ailleurs</strong></p> |
||
| 100 | |||
| 101 | <p>Mettre en avant une bonne pratique qui s’inscrit dans l’actualité (locale ou nationale), issue du recueil Cit’ergie ou d’autres sources comme le CEREMA</p> |
||
| 102 | </td> |
||
| 103 | </tr> |
||
| 104 | </tbody> |
||
| 105 | </table> |
||
| 106 | |||
| 107 | <h2 align="center" style="background-color: #FCAD35; color:#ffffff; margin-top: 2em; font-weight: bold;font-size:16px;text-transform: uppercase;border-bottom:2px solid #FCAD35">Actualités</h2> |
||
| 108 | |||
| 109 | <table cellpadding="5" cellspacing="5" style="width:100%;" width="100%"> |
||
| 110 | <tbody> |
||
| 111 | <tr> |
||
| 112 | <td style="width:50%;vertical-align:top;" width="50%"> |
||
| 113 | <p style="text-align: center;"><strong>D’ici </strong></p> |
||
| 114 | |||
| 115 | <p>Les derniers articles de l'Union en lien avec une thmétique de Plan Climat</p> |
||
| 116 | </td> |
||
| 117 | <td style="width:50%;vertical-align:top;" width="50%"> |
||
| 118 | <p style="text-align: center;"><strong>D’ailleurs</strong></p> |
||
| 119 | |||
| 120 | <p>Les informations concernant les nouveaux textes de loi ou les nouveaux dispostifs nationaux (voir dans Localtis). Occasionnellement des tribunes issues de la newsletter Energy Cities ?</p> |
||
| 121 | </td> |
||
| 122 | </tr> |
||
| 123 | </tbody> |
||
| 124 | </table> |
||
| 125 | |||
| 126 | <h2 align="center" style="background-color: #FCAD35; color:#ffffff; margin-top: 2em; font-weight: bold;font-size:16px;text-transform: uppercase;border-bottom:2px solid #FCAD35">Evénements</h2> |
||
| 127 | |||
| 128 | <table cellpadding="5" cellspacing="5" style="width:100%;" width="100%"> |
||
| 129 | <tbody> |
||
| 130 | <tr> |
||
| 131 | <td style="width:50%;vertical-align:top;" width="50%"> |
||
| 132 | <p style="text-align: center;"><strong>D’ici</strong></p> |
||
| 133 | |||
| 134 | <p>► Au Mess des entrepreneurs (10 minutes à vélo depuis l’Agglomération, temps pour se garer compris !)</p> |
||
| 135 | </td> |
||
| 136 | <td style="width:50%;vertical-align:top;" width="50%"> |
||
| 137 | <p style="text-align: center;"><strong>D’ailleurs</strong></p> |
||
| 138 | |||
| 139 | <p>► A Orléans (3h30 en train en passant par Paris)</p> |
||
| 140 | </td> |
||
| 141 | </tr> |
||
| 142 | </tbody> |
||
| 143 | </table> |
||
| 144 | |||
| 145 | <h2 align="center" style="background-color: #FCAD35; color:#ffffff; margin-top: 2em; font-weight: bold;font-size:16px;text-transform: uppercase;border-bottom:2px solid #FCAD35">Appels à projets</h2> |
||
| 146 | |||
| 147 | <p>Les appels à projets reçus : porteur de l'AAP / structures éligibles / projets éligibles / date butoir de réponse / lien vers le cahier des charges ou site.</p> |
||
| 148 | |||
| 149 | <h2 align="center" style="background-color: #FCAD35; color:#ffffff; margin-top: 2em; font-weight: bold;font-size:16px;text-transform: uppercase;border-bottom:2px solid #FCAD35">Ressources</h2> |
||
| 150 | |||
| 151 | <p>Les derniers guides méthodologiques, outils, sites internet... A introduire par thématique (ex: EnR: nouveau guide du CEREMA pour l'installation de panneaux PV sur toiture).</p> |
||
| 152 | |||
| 153 | <p align="center" style="text-align:center; margin:0cm 0cm 8pt"><span style="font-size:11pt"><span style="line-height:normal"><span style="font-family:"Calibri",sans-serif"><span style="font-size:12.0pt"><span style="font-family:"Times New Roman",serif"><a href="https://planclimat.chalons-agglo.fr/"><img src="https://planclimat.chalons-agglo.fr/library/userfiles/autosave/newsletter-CGpGAoyDX59i.png" style="width:252px; height:240px" /></a></span></span><span style="font-size:12.0pt"><span style="font-family:"Times New Roman",serif"></span></span></span></span></span></p> |
||
| 154 | |||
| 155 | <p align="right" style="text-align:right; margin:0cm 0cm 8pt"><span style="font-size:11pt"><span style="line-height:normal"><span style="font-family:"Calibri",sans-serif"><i>N'hésitez pas à faire remonter vos informations en vue des prochaines lettres, à <u><span style="color:#4472c4">c.beucher@chalons-agglo.fr</span></u></i><span style="font-size:12.0pt"><span style="font-family:"Times New Roman",serif"></span></span></span></span></span></p> |
||
| 156 | </div> |
||
| 157 | </td> |
||
| 158 | </tr> |
||
| 159 | </tbody> |
||
| 160 | </table> |
||
| 161 | </div> |
||
| 162 | <!-- /content --></td> |
||
| 163 | <td> </td> |
||
| 164 | </tr> |
||
| 165 | </tbody> |
||
| 166 | </table> |
||
| 167 | <!-- /BODY --><!-- FOOTER --> |
||
| 168 | |||
| 169 | <table class="footer-wrap"> |
||
| 170 | <tbody> |
||
| 171 | <tr> |
||
| 172 | <td> </td> |
||
| 173 | <td class="container"><!-- content --> |
||
| 174 | <div class="content"> |
||
| 175 | <table> |
||
| 176 | <tbody> |
||
| 177 | <tr> |
||
| 178 | <td align="center"> |
||
| 179 | <p style="font-size:10px">##SITENAME##<br /> |
||
| 180 | <a href="https://planclimat.chalons-agglo.fr/" style="font-size:10px">https://planclimat.chalons-agglo.fr/</a> - <a href="mailto:##SITEMAIL##" style="font-size:10px">##SITEMAIL##</a></p> |
||
| 181 | </td> |
||
| 182 | </tr> |
||
| 183 | <tr> |
||
| 184 | <td align="center"> |
||
| 185 | <p style="font-size:10px">##UNSUBSCRIBE_LINK##</p> |
||
| 186 | </td> |
||
| 187 | </tr> |
||
| 188 | </tbody> |
||
| 189 | </table> |
||
| 190 | </div> |
||
| 191 | <!-- /content --></td> |
||
| 192 | <td> </td> |
||
| 193 | </tr> |
||
| 194 | </tbody> |
||
| 195 | </table> |
||
| 196 | <!-- /FOOTER --> |
||
| 197 | </code></pre> |