Commit | Line | Data |
---|---|---|
8da0d3c1 | 1 | {**************************************************************************} |
2 | {* *} | |
8d84c630 | 3 | {* Copyright (C) 2003-2009 Polytechnique.org *} |
8da0d3c1 | 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 | ||
8da0d3c1 | 23 | {config_load file="mails.conf" section="mails_ax"} |
5b21237d | 24 | {if $mail_part eq 'head'} |
8da0d3c1 | 25 | {from full=#from#} |
26 | {subject text=$am->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} | |
5b21237d | 29 | {elseif $mail_part eq 'text'} |
30 | {if !$is_mail} | |
8da0d3c1 | 31 | <pre style="width : 72ex; margin: auto"> |
32 | {/if} | |
33 | ==================================================================== | |
34 | {$am->title()} | |
35 | ==================================================================== | |
36 | ||
d5e60905 | 37 | {$am->head($user, 'text')} |
8da0d3c1 | 38 | |
39 | {$am->body('text')} | |
40 | ||
41 | {$am->signature('text')} | |
42 | ||
43 | -------------------------------------------------------------------- | |
a7de4ef7 | 44 | Cette lettre est envoyée par l'AX grâce aux outils de Polytechnique.org. |
8da0d3c1 | 45 | |
ec896627 | 46 | {if $is_mail} |
71b21455 | 47 | archives : <https://www.polytechnique.org/ax> |
48 | ne plus recevoir : <https://www.polytechnique.org/ax/out{if $hash}/{$hash}{/if}> | |
ec896627 FB |
49 | {else} |
50 | archives : <https://www.polytechnique.org/ax> | |
51 | ne plus recevoir : <https://www.polytechnique.org/ax/out{if $hash}/{$hash}{/if}> | |
52 | {/if} | |
8da0d3c1 | 53 | |
54 | {if !$is_mail} | |
55 | </pre> | |
56 | {/if} | |
5b21237d | 57 | {elseif $mail_part eq 'html'} |
8da0d3c1 | 58 | {if $is_mail} |
493b6abe | 59 | <?xml version="1.0" encoding="utf-8"?> |
8da0d3c1 | 60 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
61 | <html xmlns="http://www.w3.org/1999/xhtml"> | |
62 | <head> | |
183a157b | 63 | <title>Lettre d'information de l'AX</title> |
8da0d3c1 | 64 | <style type="text/css"> |
a46f274c | 65 | {literal} |
66 | body { background-color: #ddd; color: #000; } | |
67 | {/literal} | |
8da0d3c1 | 68 | <!-- |
8da0d3c1 | 69 | {$am->css()} |
70 | --> | |
71 | </style> | |
72 | </head> | |
73 | <body> | |
a46f274c | 74 | <div class="ax_background"> |
8da0d3c1 | 75 | {/if} |
76 | <div class='ax_mail'> | |
77 | <div class="title">{$am->title()}</div> | |
d5e60905 | 78 | <div class="intro">{$am->head($user, 'html')|smarty:nodefaults}</div> |
8da0d3c1 | 79 | <div class="body">{$am->body('html')|smarty:nodefaults}</div> |
80 | <div class="signature">{$am->signature('html')|smarty:nodefaults}</div> | |
81 | <div class="foot1"> | |
a7de4ef7 | 82 | Cette lettre est envoyée par l'AX grâce aux outils de Polytechnique.org. |
8da0d3c1 | 83 | </div> |
84 | <div class="foot2"> | |
85 | [<a href="https://www.polytechnique.org/ax">archives</a> | | |
4e25428d | 86 | <a href="https://www.polytechnique.org/ax/out{if $hash}/{$hash}{/if}">ne plus recevoir</a>] |
8da0d3c1 | 87 | </div> |
88 | </div> | |
89 | {if $is_mail} | |
a46f274c | 90 | </div> |
8da0d3c1 | 91 | </body> |
92 | </html> | |
93 | {/if} | |
94 | {/if} | |
95 | ||
a7de4ef7 | 96 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |