From 6cfba24ee9059a6c16386d6979185f8676b93c1b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Wed, 11 Dec 2013 00:05:30 +0100 Subject: [PATCH] Add draft of EP newsletter. --- configs/mails.conf | 4 ++ htdocs/css/nl.Ecole.css | 118 +++++++++++++++++++++++++++++++++ templates/newsletter/nl.Ecole.mail.tpl | 93 ++++++++++++++++++++++++++ 3 files changed, 215 insertions(+) create mode 100644 htdocs/css/nl.Ecole.css create mode 100644 templates/newsletter/nl.Ecole.mail.tpl diff --git a/configs/mails.conf b/configs/mails.conf index b888d66..36a2cd9 100644 --- a/configs/mails.conf +++ b/configs/mails.conf @@ -44,6 +44,10 @@ to=non-geoloc@staff.polytechnique.org from="AX" replyto=reponses@ax.polytechnique.org +[mails_ecole] +from="École polytechnique +replyto=reponses@ecole.polytechnique.org + [mails_fx] from="Fondation de l'Ecole polytechnique" replyto=reponses@fondationx.fr diff --git a/htdocs/css/nl.Ecole.css b/htdocs/css/nl.Ecole.css new file mode 100644 index 0000000..6a462e1 --- /dev/null +++ b/htdocs/css/nl.Ecole.css @@ -0,0 +1,118 @@ +/*************************************************************************** + * Copyright (C) 2003-2013 Polytechnique.org * + * http://opensource.polytechnique.org/ * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the Free Software * + * Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * + ***************************************************************************/ + + + +div.ax_mail { + margin : auto; + width : 72ex; + font-family : "Georgia", serif; + font-size : 10pt; + text-align : justify; + background-color : #fff; + color : #4a4a49; +} + +div.ax_mail a[href] { + background-color : #fff; + color : #546a77; +} + +div.ax_mail a[href]:hover { + background-color : #fff; + color : #546a77; +} + +div.ax_mail div.title { + margin : 0ex; + padding : 110px 1ex 1ex 1ex; + font-size : 120%; + font-weight : bold; + text-align : left; + color : #0a293b; + font-family: "Century Gothic", sans-serif; + background-repeat : no-repeat; + background-position : 0ex 0ex; + background-image: url(https://www.polytechnique.org/images/x_mail_header.jpg); +} + +div.ax_mail div.intro { + margin : 4ex 2ex 2ex 2ex; +} + +div.ax_mail div.body { + margin : 0; + padding : 0 20px; +} + +div.ax_mail div.body h1 { + margin : 4ex -20px 2ex -20px; + padding : 0.4ex 20px; + font-size : 100%; + font-weight : bold; + background-color : #fff; + color : #0a293b; + border-width : thin 0; + border-style : solid; + border-color : #a40000; +font-family: "Century Gothic", sans-serif; +} + +div.ax_mail div.body h2 { + margin : 2ex -20px 2ex -20px; + padding : 0.4ex 40px; + font-size : 100%; + font-weight : normal; + background-color : #fff; + color : #0a293b; + border-width : 0 0 thin 0; + border-style : dotted; + border-color : #a40000; +font-family: "Century Gothic", sans-serif; +} + +div.ax_mail div.signature { + margin : 2ex 2ex 0 0ex; + font-size : 90%; + font-style: italic; + text-align : right; + +} + +div.ax_mail div.foot1 { + margin : 2ex 0 0; + padding : 0.5ex 2ex; + font-size : 90%; + background-color : #fff; + color : #4a4a49; + border-width : thin 0; + border-style : solid; + border-color : #ddd; + text-align : center; +} + +div.ax_mail div.foot2 { + padding : 1ex 0; + font-size : 90%; + background-color : #fff; + color : #4a4a49; + text-align : center; +} + diff --git a/templates/newsletter/nl.Ecole.mail.tpl b/templates/newsletter/nl.Ecole.mail.tpl new file mode 100644 index 0000000..ee80a63 --- /dev/null +++ b/templates/newsletter/nl.Ecole.mail.tpl @@ -0,0 +1,93 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2013 Polytechnique.org *} +{* http://opensource.polytechnique.org/ *} +{* *} +{* This program is free software; you can redistribute it and/or modify *} +{* it under the terms of the GNU General Public License as published by *} +{* the Free Software Foundation; either version 2 of the License, or *} +{* (at your option) any later version. *} +{* *} +{* This program is distributed in the hope that it will be useful, *} +{* but WITHOUT ANY WARRANTY; without even the implied warranty of *} +{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} +{* GNU General Public License for more details. *} +{* *} +{* You should have received a copy of the GNU General Public License *} +{* along with this program; if not, write to the Free Software *} +{* Foundation, Inc., *} +{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} +{* *} +{**************************************************************************} + +{config_load file="mails.conf" section="mails_ecole"} +{if $mail_part eq 'head'} +{from full=#from#} +{subject text=$issue->title(true)} +{if isset(#replyto#)}{add_header name='Reply-To' value=#replyto#}{/if} +{if isset(#retpath#)}{add_header name='Return-Path' value=#retpath#}{/if} +{elseif $mail_part eq 'text'} +{if !$is_mail} +
+{/if}
+====================================================================
+{$issue->title()}
+====================================================================
+
+{$issue->head($user, 'text')}
+
+{$issue->signature('text')}
+
+--------------------------------------------------------------------
+Cette lettre est envoyée par l'École polytechnique grâce aux outils de Polytechnique.org.
+
+{if $is_mail}
+archives         : 
+ne plus recevoir : id}>
+{else}
+archives         : <https://www.polytechnique.org/epletter>
+ne plus recevoir : <https://www.polytechnique.org/epletter/out/{if $hash}{$hash}{else}nohash{/if}/{$issue->id}>
+{/if}
+
+{if !$is_mail}
+
+{/if} +{elseif $mail_part eq 'html'} +{if $is_mail} + + + + + Lettre d'information de l'École polytechnique + + + +
+{/if} +
+
{$issue->title()}
+
{$issue->head($user, 'html')|smarty:nodefaults}
+
{$issue->signature('html')|smarty:nodefaults}
+
+ Cette lettre est envoyée par l'AX grâce aux outils de Polytechnique.org. +
+ +
+{if $is_mail} +
+ + +{/if} +{/if} + +{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} -- 2.1.4