send_newsletter.html

 1   <!DOCTYPE html>
 2   <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
 3   <head>
 4       <meta charset="utf-8"> <!-- utf-8 works for most cases -->
 5       <meta name="viewport" content="width=device-width"> <!-- Forcing initial-scale shouldn't be necessary -->
 6       <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Use the latest (edge) version of IE rendering engine -->
 7       <meta name="x-apple-disable-message-reformatting">  <!-- Disable auto-scale in iOS 10 Mail entirely -->
 8       <meta name="format-detection" content="telephone=no,address=no,email=no,date=no,url=no"> <!-- Tell iOS not to automatically link certain text strings. -->
 9       <meta name="color-scheme" content="light dark">
 10       <meta name="supported-color-schemes" content="light dark">
 11       <title>CiteLibre</title> <!-- The title tag shows in email notifications, like Android 4.4. -->
 12   
 13       <!-- What it does: Makes background images in 72ppi Outlook render at correct size. -->
 14       <!--[if gte mso 9]>
 15       <xml>
 16           <o:OfficeDocumentSettings>
 17               <o:PixelsPerInch>96</o:PixelsPerInch>
 18           </o:OfficeDocumentSettings>
 19       </xml>
 20       <![endif]-->
 21   
 22       <!-- Web Font / @font-face : BEGIN -->
 23       <!-- NOTE: If web fonts are not required, lines 23 - 41 can be safely removed. -->
 24   
 25       <!-- Desktop Outlook chokes on web font references and defaults to Times New Roman, so we force a safe fallback font. -->
 26       <!--[if mso]>
 27           <style>
 28               * {
 29                   font-family: sans-serif !important;
 30               }
 31           </style>
 32       <![endif]-->
 33   
 34       <!-- All other clients get the webfont reference; some will render the font and others will silently fail to the fallbacks. More on that here: https://web.archive.org/web/20190717120616/http://stylecampaign.com/blog/2015/02/webfont-support-in-email/ -->
 35       <!--[if !mso]><!-->
 36       <!-- insert web font reference, eg: <link href='https://fonts.googleapis.com/css?family=Roboto:400,700' rel='stylesheet' type='text/css'> -->
 37       <!--<![endif]-->
 38   
 39       <!-- Web Font / @font-face : END -->
 40   
 41       <!-- CSS Reset : BEGIN -->
 42       <style>
 43   
 44           /* What it does: Tells the email client that both light and dark styles are provided. A duplicate of meta color-scheme meta tag above. */
 45           :root {
 46             color-scheme: light dark;
 47             supported-color-schemes: light dark;
 48           }
 49   
 50           /* What it does: Remove spaces around the email design added by some email clients. */
 51           /* Beware: It can remove the padding / margin and add a background color to the compose a reply window. */
 52           html,
 53           body {
 54               margin: 0 auto !important;
 55               padding: 0 !important;
 56               height: 100% !important;
 57               width: 100% !important;
 58           }
 59   
 60           /* What it does: Stops email clients resizing small text. */
 61           * {
 62               -ms-text-size-adjust: 100%;
 63               -webkit-text-size-adjust: 100%;
 64           }
 65   
 66           /* What it does: Centers email on Android 4.4 */
 67           div[style*="margin: 16px 0"] {
 68               margin: 0 !important;
 69           }
 70   
 71           /* What it does: forces Samsung Android mail clients to use the entire viewport */
 72           #MessageViewBody, #MessageWebViewDiv{
 73               width: 100% !important;
 74           }
 75   
 76           /* What it does: Stops Outlook from adding extra spacing to tables. */
 77           table,
 78           td {
 79               mso-table-lspace: 0pt !important;
 80               mso-table-rspace: 0pt !important;
 81           }
 82   
 83           /* What it does: Fixes webkit padding issue. */
 84           table {
 85               border-spacing: 0 !important;
 86               border-collapse: collapse !important;
 87               table-layout: fixed !important;
 88               margin: 0 auto !important;
 89           }
 90   
 91           /* What it does: Uses a better rendering method when resizing images in IE. */
 92           img {
 93               -ms-interpolation-mode:bicubic;
 94           }
 95   
 96           /* What it does: Prevents Windows 10 Mail from underlining links despite inline CSS. Styles for underlined links should be inline. */
 97           a {
 98               text-decoration: none;
 99           }
 100   
 101           /* What it does: A work-around for email clients meddling in triggered links. */
 102           a[x-apple-data-detectors],  /* iOS */
 103           .unstyle-auto-detected-links a,
 104           .aBn {
 105               border-bottom: 0 !important;
 106               cursor: default !important;
 107               color: inherit !important;
 108               text-decoration: none !important;
 109               font-size: inherit !important;
 110               font-family: inherit !important;
 111               font-weight: inherit !important;
 112               line-height: inherit !important;
 113           }
 114   
 115           /* What it does: Prevents Gmail from displaying a download button on large, non-linked images. */
 116           .a6S {
 117               display: none !important;
 118               opacity: 0.01 !important;
 119           }
 120   
 121           /* What it does: Prevents Gmail from changing the text color in conversation threads. */
 122           .im {
 123               color: inherit !important;
 124           }
 125   
 126           /* If the above doesn't work, add a .g-img class to any image in question. */
 127           img.g-img + div {
 128               display: none !important;
 129           }
 130   
 131           /* What it does: Removes right gutter in Gmail iOS app: https://github.com/TedGoas/Cerberus/issues/89  */
 132           /* Create one of these media queries for each additional viewport size you'd like to fix */
 133   
 134           /* iPhone 4, 4S, 5, 5S, 5C, and 5SE */
 135           @media only screen and (min-device-width: 320px) and (max-device-width: 374px) {
 136               u ~ div .email-container {
 137                   min-width: 320px !important;
 138               }
 139           }
 140           /* iPhone 6, 6S, 7, 8, and X */
 141           @media only screen and (min-device-width: 375px) and (max-device-width: 413px) {
 142               u ~ div .email-container {
 143                   min-width: 375px !important;
 144               }
 145           }
 146           /* iPhone 6+, 7+, and 8+ */
 147           @media only screen and (min-device-width: 414px) {
 148               u ~ div .email-container {
 149                   min-width: 414px !important;
 150               }
 151           }
 152       </style>
 153       <!-- CSS Reset : END -->
 154       <!-- Progressive Enhancements : BEGIN -->
 155       <style>
 156   	    /* What it does: Hover styles for buttons */
 157   	    .button-td,
 158   	    .button-a {
 159   	        transition: all 100ms ease-in;
 160   	    }
 161   	    .button-td-primary:hover,
 162   	    .button-a-primary:hover {
 163   	        background: #555555 !important;
 164   	        border-color: #555555 !important;
 165   	    }
 166   
 167   	    /* Media Queries */
 168   	    @media screen and (max-width: 600px) {
 169   
 170   	        /* What it does: Adjust typography on small screens to improve readability */
 171   	        .email-container p {
 172   	            font-size: 17px !important;
 173   	        }
 174   
 175   	    }
 176   
 177           /* Dark Mode Styles : BEGIN */
 178           @media (prefers-color-scheme: dark) {
 179   			.email-bg {
 180   				background: #111111 !important;
 181   			}
 182               .darkmode-bg {
 183                   background: #ffffff !important;
 184               }
 185   			h1,
 186   			h2,
 187   			h3,
 188   			p,
 189   			li,
 190   			.darkmode-text,
 191   			.email-container a:not([class]) {
 192   				color: #F7F7F9 !important;
 193   			}
 194   			td.button-td-primary,
 195   			td.button-td-primary a {
 196   				background: #ffffff !important;
 197   				border-color: #ffffff !important;
 198   				color: #ffffff !important;
 199   			}
 200   			td.button-td-primary:hover,
 201   			td.button-td-primary a:hover {
 202   				background: #cccccc !important;
 203   				border-color: #cccccc !important;
 204   			}
 205   			.footer td {
 206   				color: #aaaaaa !important;
 207   			}
 208               .darkmode-fullbleed-bg {
 209                   background-color: #0F3016 !important;
 210               }
 211   		}
 212           /* Dark Mode Styles : END */
 213       </style>
 214       <!-- Progressive Enhancements : END -->
 215   </head>
 216   <!--
 217   	The email background color (#ffffff) is defined in three places:
 218   	1. body tag: for most email clients
 219   	2. center tag: for Gmail and Inbox mobile apps and web versions of Gmail, GSuite, Inbox, Yahoo, AOL, Libero, Comcast, freenet, Mail.ru, Orange.fr
 220   	3. mso conditional: For Windows 10 Mail
 221   -->
 222   <body width="100%" style="margin: 0; padding: 0 !important; mso-line-height-rule: exactly; background-color: #ffffff;" class="email-bg">
 223   	<center role="article" aria-roledescription="email" lang="fr" style="width: 100%; background-color: #ffffff;" class="email-bg">
 224   	<!--[if mso | IE]>
 225   	<table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #ffffff;" class="email-bg">
 226   	<tr>
 227   	<td>
 228   	<![endif]-->
 229   	<!-- Visually Hidden Preheader Text : BEGIN -->
 230   	<div style="max-height:0; overflow:hidden; mso-hide:all;" aria-hidden="true">
 231   	<!-- (Optional) This text will appear in the inbox preview, but not the email body. It can be used to supplement the email subject line or even summarize the email's contents. Extended text preheaders (~490 characters) seems like a better UX for anyone using a screenreader or voice-command apps like Siri to dictate the contents of an email. If this text is not included, email clients will automatically populate it using the text (including image alt text) at the start of the email's body. -->
 232   	</div>
 233   	<!-- Visually Hidden Preheader Text : END -->
 234   	<!-- Create white space after the desired preview text so email clients don’t pull other distracting text into the inbox preview. Extend as necessary. -->
 235   	<!-- Preview Text Spacing Hack : BEGIN -->
 236   	<div style="display: none; font-size: 1px; line-height: 1px; max-height: 0px; max-width: 0px; opacity: 0; overflow: hidden; mso-hide: all; font-family: sans-serif;">
 237   	&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;
 238   	</div>
 239   	<!-- Preview Text Spacing Hack : END -->
 240   	<!--
 241   		Set the email width. Defined in two places:
 242   		1. max-width for all clients except Desktop Windows Outlook, allowing the email to squish on narrow but never go wider than 600px.
 243   		2. MSO tags for Desktop Windows Outlook enforce a 600px width.
 244   	-->
 245   	<div style="max-width: 600px; margin: 0 auto;" class="email-container">
 246   	<!--[if mso]>
 247   	<table align="center" role="presentation" cellspacing="0" cellpadding="0" border="0" width="600">
 248   	<tr>
 249   	<td>
 250   	<![endif]-->
 251   	<!-- Email Body : BEGIN -->
 252   	<table align="center" role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="margin: auto;">
 253   	<!-- Email Header : BEGIN -->
 254   	<tr>
 255   		<td style="padding: 20px 0; text-align: center">
 256   			<img src="${base_url}/images/Lutece-logo.png" width="600" height="" alt="alt_text" border="0" style="width: 100%; max-width: 600px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; line-height: 15px; color: #555555; margin: auto; display: block;" class="g-img">
 257   		</td>
 258   	</tr>
 259   	<!-- Email Header : END -->
 260   	${newsletter_content}
 261   	<!-- Email Footer Usnubscribe : BEGIN -->
 262   	<table align="center" role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="margin: auto;" class="footer">
 263   		<tr>
 264   			<td style="padding: 0 20px; font-family: sans-serif; font-size: 12px; line-height: 15px; text-align: center; color: #ffffff;">
 265   				<#if unsubscribe?exists>
 266   		            <#if unsubscribe = "TRUE">
 267   						<p>
 268   							#i18n{newsletter.send_newsletter.labelToUnsubscribe}<br/>
 269                               <a style="color: #ffffff; text-decoration: underline;" href="${base_url}jsp/site/Portal.jsp?page=newsletter&action=confirm_unsubscribe&subscriber_email=${subscriber_email}&newsletter_id=${newsletter_id}&unsubscribe_key=${unsubscribe_key}" class="newsletter">
 270                               #i18n{newsletter.send_newsletter.labelToUnsubscribe} #i18n{newsletter.send_newsletter.labelClickHere}
 271                               </a>
 272                           </p>
 273   				    </#if>
 274   				</#if>
 275   			</td>
 276   		</tr>
 277   	</table>
 278   	<!-- Email Footer Unsubscribe : END -->
 279   	<!--[if mso]>
 280   	</td>
 281   	</tr>
 282   	</table>
 283   	<![endif]-->
 284       </div>
 285       <!--[if mso | IE]>
 286       </td>
 287       </tr>
 288       </table>
 289       <![endif]-->
 290       </center>
 291   </body>
 292   </html>