| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2011 Polytechnique.org *} |
| 4 | {* http://opensource.polytechnique.org/ *} |
| 5 | {* *} |
| 6 | {* This program is free software; you can redistribute it and/or modify *} |
| 7 | {* it under the terms of the GNU General Public License as published by *} |
| 8 | {* the Free Software Foundation; either version 2 of the License, or *} |
| 9 | {* (at your option) any later version. *} |
| 10 | {* *} |
| 11 | {* This program is distributed in the hope that it will be useful, *} |
| 12 | {* but WITHOUT ANY WARRANTY; without even the implied warranty of *} |
| 13 | {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} |
| 14 | {* GNU General Public License for more details. *} |
| 15 | {* *} |
| 16 | {* You should have received a copy of the GNU General Public License *} |
| 17 | {* along with this program; if not, write to the Free Software *} |
| 18 | {* Foundation, Inc., *} |
| 19 | {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} |
| 20 | {* *} |
| 21 | {**************************************************************************} |
| 22 | |
| 23 | {config_load file="mails.conf" section="mails_fx"} |
| 24 | {if $mail_part eq 'head'} |
| 25 | {from full=#from#} |
| 26 | {subject text=$issue->title(true)} |
| 27 | {if isset(#replyto#)}{add_header name='Reply-To' value=#replyto#}{/if} |
| 28 | {if isset(#retpath#)}{add_header name='Return-Path' value=#retpath#}{/if} |
| 29 | {elseif $mail_part eq 'text'} |
| 30 | {if !$is_mail} |
| 31 | <pre style="width : 72ex; margin: auto"> |
| 32 | {/if} |
| 33 | ==================================================================== |
| 34 | {$issue->title()} |
| 35 | ==================================================================== |
| 36 | |
| 37 | {$issue->head($user, 'text')} |
| 38 | |
| 39 | {$issue->signature('text')} |
| 40 | |
| 41 | -------------------------------------------------------------------- |
| 42 | {if $is_mail} |
| 43 | Pour faire un don : <http://fondationx.fr/fond/paiement.php> |
| 44 | {else} |
| 45 | Pour faire un don : <http://fondationx.fr/fond/paiement.php> |
| 46 | {/if} |
| 47 | Cette lettre est envoyée par la FX grâce aux outils de Polytechnique.org. |
| 48 | |
| 49 | {if $is_mail} |
| 50 | archives : <https://www.polytechnique.org/fxletter> |
| 51 | ne plus recevoir : <https://www.polytechnique.org/fxletter/out/{if $hash}{$hash}{else}nohash{/if}/{$issue->id}> |
| 52 | {else} |
| 53 | archives : <https://www.polytechnique.org/fxletter> |
| 54 | ne plus recevoir : <https://www.polytechnique.org/fxletter/out/{if $hash}{$hash}{else}nohash{/if}/{$issue->id}> |
| 55 | {/if} |
| 56 | |
| 57 | {if !$is_mail} |
| 58 | </pre> |
| 59 | {/if} |
| 60 | {elseif $mail_part eq 'html'} |
| 61 | {if $is_mail} |
| 62 | <?xml version="1.0" encoding="utf-8"?> |
| 63 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
| 64 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 65 | <head> |
| 66 | <title>Lettre d'information de la Fondation de l'École polytechnique</title> |
| 67 | <style type="text/css"> |
| 68 | {literal} |
| 69 | body { background-color: #ddd; color: #000; } |
| 70 | {/literal} |
| 71 | <!-- |
| 72 | {$issue->css()} |
| 73 | --> |
| 74 | </style> |
| 75 | </head> |
| 76 | <body> |
| 77 | <div class="fx_background"> |
| 78 | {/if} |
| 79 | <div class='fx_mail'> |
| 80 | <div class="title">{$issue->title()}</div> |
| 81 | <div class="intro">{$issue->head($user, 'html')|smarty:nodefaults}</div> |
| 82 | <div class="signature">{$issue->signature('html')|smarty:nodefaults}</div> |
| 83 | <div class="give"><a href="http://fondationx.fr/fond/paiement.php">Faire un don</a></div> |
| 84 | <div class="foot1"> |
| 85 | Cette lettre est envoyée par la FX grâce aux outils de Polytechnique.org. |
| 86 | </div> |
| 87 | <div class="foot2"> |
| 88 | [<a href="https://www.polytechnique.org/fxletter">archives</a> | |
| 89 | <a href="https://www.polytechnique.org/fxletter/out/{if $hash}{$hash}{else}nohash{/if}/{$issue->id}">ne plus recevoir</a>] |
| 90 | </div> |
| 91 | </div> |
| 92 | {if $is_mail} |
| 93 | </div> |
| 94 | </body> |
| 95 | </html> |
| 96 | {/if} |
| 97 | {/if} |
| 98 | |
| 99 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |