From 0b2b43ca3c2aa88a6e00f969ddf0a69b11726f4c Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Tue, 30 Nov 2004 09:34:51 +0000 Subject: [PATCH] make use of tidy everywhere, BEWARE OF THE FACT THAT YOU HAVE TO DO : apt-get install libtidy-dev php4-dev pear install tidy as root to make it work (done on jam.) beware2 : with that, you will have a tidy.so in the /usr/lib/php/modules (or sth like that) that is not packaged ... If I have some time, I'll do some local pacakge for that. --- include/conf.d/lists.globals.inc.php | 4 +-- include/xorg/smarty.plugins.inc.php | 3 +- install.d/lists/platal.mrc | 5 +-- plugins/block.tidy.php | 60 ++++++++++++++++++++++++++++++++++++ templates/listes/archives.tpl | 33 +++++++++++++++++++- templates/login.tpl | 4 ++- 6 files changed, 101 insertions(+), 8 deletions(-) create mode 100644 plugins/block.tidy.php diff --git a/include/conf.d/lists.globals.inc.php b/include/conf.d/lists.globals.inc.php index d796709..54b4156 100644 --- a/include/conf.d/lists.globals.inc.php +++ b/include/conf.d/lists.globals.inc.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: lists.globals.inc.php,v 1.1 2004-11-28 22:51:28 x2000habouzit Exp $ + $Id: lists.globals.inc.php,v 1.2 2004-11-30 09:34:51 x2000habouzit Exp $ ***************************************************************************/ // {{{ class ListsConfig @@ -28,7 +28,7 @@ class ListsConfig var $rpchost = 'localhost'; var $rpcport = 119; - var $spool = '***'; + var $spool = '/var/spool/platal/archives/'; } // }}} diff --git a/include/xorg/smarty.plugins.inc.php b/include/xorg/smarty.plugins.inc.php index 0053dce..fb7d096 100644 --- a/include/xorg/smarty.plugins.inc.php +++ b/include/xorg/smarty.plugins.inc.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: smarty.plugins.inc.php,v 1.3 2004-11-24 10:12:47 x2000habouzit Exp $ + $Id: smarty.plugins.inc.php,v 1.4 2004-11-30 09:34:52 x2000habouzit Exp $ ***************************************************************************/ // {{{ function block_dynamic() @@ -129,6 +129,5 @@ function at_to_globals($tpl_source, &$smarty) } // }}} - // vim:set et sw=4 sts=4 sws=4 foldmethod=marker: ?> diff --git a/install.d/lists/platal.mrc b/install.d/lists/platal.mrc index 85d1373..dfadc57 100644 --- a/install.d/lists/platal.mrc +++ b/install.d/lists/platal.mrc @@ -5,7 +5,7 @@ %d-%m-%y -25 +50 @@ -121,7 +121,7 @@ MY-SUBJNA - +précedent @@ -350,6 +350,7 @@ subject:strong + - - - $MSGLOCALDATE$ $MY-SUBJ$ diff --git a/plugins/block.tidy.php b/plugins/block.tidy.php new file mode 100644 index 0000000..655485e --- /dev/null +++ b/plugins/block.tidy.php @@ -0,0 +1,60 @@ + diff --git a/templates/listes/archives.tpl b/templates/listes/archives.tpl index 99f98de..7ebe61c 100644 --- a/templates/listes/archives.tpl +++ b/templates/listes/archives.tpl @@ -17,7 +17,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: archives.tpl,v 1.2 2004-11-29 21:42:08 x2000habouzit Exp $ + $Id: archives.tpl,v 1.3 2004-11-30 09:34:55 x2000habouzit Exp $ ***************************************************************************} {dynamic} @@ -33,6 +33,35 @@ {if $archs}

Archives de la liste {$smarty.request.liste}

+ +

Triés par fils de discussion

+ + + + + + + {foreach from=$archs item=m key=y} + + + {foreach from=$range item=i} + + {if $i eq 6}{/if} + {/foreach} + + {/foreach} +
Année + Mois +
{$y} + {if $m[$i]} + [{"0000-$i-01"|date_format:"%b"}] + {else} + [   ] + {/if} +
+ +

Triés par date

+ @@ -57,7 +86,9 @@ {/foreach}
Année
{elseif $url} +{tidy} {include file="$url"} +{/tidy} {/if} {/if} diff --git a/templates/login.tpl b/templates/login.tpl index c9fcfd5..845bcf1 100644 --- a/templates/login.tpl +++ b/templates/login.tpl @@ -17,7 +17,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: login.tpl,v 1.14 2004-11-13 15:56:35 x2000habouzit Exp $ + $Id: login.tpl,v 1.15 2004-11-30 09:34:54 x2000habouzit Exp $ ***************************************************************************} @@ -89,7 +89,9 @@ + {tidy} {$ev.texte|smarty:nodefaults|nl2br} + {/tidy}

Annonce proposée par -- 2.1.4