{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2006 Polytechnique.org *}
+{* Copyright (C) 2003-2007 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* *}
{**************************************************************************}
-{if !$html_version}
-{if $is_mail}
{config_load file="mails.conf" section="newsletter"}
+{if $mail_part eq 'head'}
{from full=#from#}
{subject text=$nl->title(true)}
-{if #replyto#}{add_header name='Reply-To' value=#replyto#}{/if}
-{if #retpath#}{add_header name='Return-Path' value=#retpath#}{/if}
-{else}
+{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}
<pre style="width : 72ex; margin: auto">
{/if}
====================================================================
{/foreach}
--------------------------------------------------------------------
-Cette lettre est envoyée à tous les Polytechniciens sur Internet par
-l'intermédiaire de Polytechnique.org.
+Cette lettre est envoyée à tous les Polytechniciens sur Internet par
+l'intermédiaire de Polytechnique.org.
-archives : [https://www.polytechnique.org/nl]
-écrire : [https://www.polytechnique.org/nl/submit]
-ne plus recevoir : [https://www.polytechnique.org/nl/out]
+archives : <https://www.polytechnique.org/nl>
+écrire : <https://www.polytechnique.org/nl/submit>
+ne plus recevoir : <https://www.polytechnique.org/nl/out>
-{if $is_mail}
+{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>
- <title></title>
+ <title>Lettre mensuelle de Polytechnique.org</title>
<style type="text/css">
- <!--
{literal}
body { background-color: #ddd; color: #000; }
{/literal}
- {$nl->getCss()}
+ <!--
+ {$nl->css()}
-->
</style>
</head>
<body>
+ <div class='nl_background'>
{/if}
<div class='nl'>
<div class="title">{$nl->title()}</div>
<a id="top_lnk"></a>
{foreach from=$nl->_arts key=cid item=arts name=cats}
<div class="lnk">
- <a href="{$prefix}#cat{$cid}"><strong>{$smarty.foreach.cats.iteration}. {$nl->_cats[$cid]}</strong></a>
+ <a href="{$prefix}#cat{$cid}"><strong>{$smarty.foreach.cats.iteration}. {$nl->_cats[$cid]}</strong></a><br />
{foreach from=$arts item=art}
- <a href="{$prefix}#art{$art->_aid}"> - {$art->title()|htmlentities}</a>
+ <a href="{$prefix}#art{$art->_aid}"> - {$art->title()}</a><br />
{/foreach}
</div>
{/foreach}
{/foreach}
{/foreach}
<div class="foot1">
- Cette lettre est envoyée à tous les Polytechniciens sur Internet par l'intermédiaire de lytechnique.org.
+ Cette lettre est envoyée à tous les Polytechniciens sur Internet par l'intermédiaire de Polytechnique.org.
</div>
<div class="foot2">
[<a href="https://www.polytechnique.org/nl">archives</a> |
- <a href="https://www.polytechnique.org/nl/submit">écrire dans la NL</a> |
+ <a href="https://www.polytechnique.org/nl/submit">écrire dans la NL</a> |
<a href="https://www.polytechnique.org/nl/out">ne plus recevoir</a>]
</div>
- </div>
+ </div>
{if $is_mail}
+ </div>
</body>
</html>
{/if}
{/if}
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}