Tweaks to login page template (Closes FS#771) [alk]
[platal.git] / templates / axletter / letter.tpl
index 32fcea5..3f0bb05 100644 (file)
 {*                                                                        *}
 {**************************************************************************}
 
-{if !$html_version}
-{if $is_mail}
 {config_load file="mails.conf" section="mails_ax"}
+{if $mail_part eq 'head'}
 {from full=#from#}
 {subject text=$am->title(true)}
 {if isset(#replyto#)}{add_header name='Reply-To' value=#replyto#}{/if}
 {if isset(#retpath#)}{add_header name='Return-Path' value=#retpath#}{/if}
-{else}
+{elseif $mail_part eq 'text'}
+{if !$is_mail}
 <pre style="width : 72ex; margin: auto">
 {/if}
 ====================================================================
 {$am->signature('text')}
 
 --------------------------------------------------------------------
-Cette lettre est envoyée par l'AX grâce aux outils de Polytechnique.org.
+Cette lettre est envoyée par l'AX grâce aux outils de Polytechnique.org.
 
-archives         : [https://www.polytechnique.org/ax]
-ne plus recevoir : [https://www.polytechnique.org/ax/out{if $hash}/{$hash}{/if}]
+archives         : <https://www.polytechnique.org/ax>
+ne plus recevoir : <https://www.polytechnique.org/ax/out{if $hash}/{$hash}{/if}>
 
 {if !$is_mail}
 </pre>
 {/if}
-{else}
+{elseif $mail_part eq 'html'}
 {if $is_mail}
-<?xml version="1.0" encoding="iso-8859-15"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml"> 
   <head>  
@@ -74,7 +74,7 @@ ne plus recevoir : [https://www.polytechnique.org/ax/out{if $hash}/{$hash}{/if}]
       <div class="body">{$am->body('html')|smarty:nodefaults}</div>
       <div class="signature">{$am->signature('html')|smarty:nodefaults}</div>
       <div class="foot1">
-        Cette lettre est envoyée par l'AX grâce aux outils de Polytechnique.org.
+        Cette lettre est envoyée par l'AX grâce aux outils de Polytechnique.org.
       </div>
       <div class="foot2">
         [<a href="https://www.polytechnique.org/ax">archives</a>&nbsp;|
@@ -88,4 +88,4 @@ ne plus recevoir : [https://www.polytechnique.org/ax/out{if $hash}/{$hash}{/if}]
 {/if}
 {/if}
 
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}