0aa9ac74f45182efb2423adb2eafbf105427a222
[platal.git] / templates / axletter / letter.mail.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2010 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_ax"}
24 {if $mail_part eq 'head'}
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}
29 {elseif $mail_part eq 'text'}
30 {if !$is_mail}
31 <pre style="width : 72ex; margin: auto">
32 {/if}
33 ====================================================================
34 {$am->title()}
35 ====================================================================
36
37 {$am->head($user, 'text')}
38
39 {$am->body('text')}
40
41 {$am->signature('text')}
42
43 --------------------------------------------------------------------
44 Cette lettre est envoyée par l'AX grâce aux outils de Polytechnique.org.
45
46 {if $is_mail}
47 archives         : <https://www.polytechnique.org/ax>
48 ne plus recevoir : <https://www.polytechnique.org/ax/out{if $hash}/{$hash}{/if}>
49 {else}
50 archives         : &lt;https://www.polytechnique.org/ax&gt;
51 ne plus recevoir : &lt;https://www.polytechnique.org/ax/out{if $hash}/{$hash}{/if}&gt;
52 {/if}
53
54 {if !$is_mail}
55 </pre>
56 {/if}
57 {elseif $mail_part eq 'html'}
58 {if $is_mail}
59 <?xml version="1.0" encoding="utf-8"?>
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>
63     <title>Lettre d'information de l'AX</title>
64     <style type="text/css">
65       {literal}
66       body      { background-color: #ddd; color: #000; }
67       {/literal}
68     <!--
69       {$am->css()}
70     -->
71     </style>
72   </head>
73   <body>
74     <div class="ax_background">
75 {/if}
76     <div class='ax_mail'>
77       <div class="title">{$am->title()}</div>
78       <div class="intro">{$am->head($user, 'html')|smarty:nodefaults}</div>
79       <div class="body">{$am->body('html')|smarty:nodefaults}</div>
80       <div class="signature">{$am->signature('html')|smarty:nodefaults}</div>
81       <div class="foot1">
82         Cette lettre est envoyée par l'AX grâce aux outils de Polytechnique.org.
83       </div>
84       <div class="foot2">
85         [<a href="https://www.polytechnique.org/ax">archives</a>&nbsp;|
86         <a href="https://www.polytechnique.org/ax/out{if $hash}/{$hash}{/if}">ne plus recevoir</a>]
87       </div>
88     </div>
89 {if $is_mail}
90     </div>
91   </body>
92 </html>
93 {/if}
94 {/if}
95
96 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}