Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1970 → Rev 1971

/trunk/papyrus/applettes/inclure/inclure.php
29,7 → 29,7
// | Le fait que vous puissiez accéder à cet en-tête signifie que vous avez pris connaissance de la |
// | licence CeCILL, et que vous en avez accepté les termes. |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: inclure.php,v 1.4 2007-08-28 14:23:55 jp_milcent Exp $
// CVS : $Id: inclure.php,v 1.5 2008-11-19 09:26:48 aperonnet Exp $
/**
* Applette : Inclure
*
42,7 → 42,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2006
*@version $Revision: 1.4 $ $Date: 2007-08-28 14:23:55 $
*@version $Revision: 1.5 $ $Date: 2008-11-19 09:26:48 $
// +------------------------------------------------------------------------------------------------------+
*/
 
127,7 → 127,7
$tab_matches = '';
preg_match($GLOBALS['_INCLURE_']['site'][$options['interwiki']]['preg'], $contenu, $tab_matches);
$tab_encodage = '';
if (preg_match('/charset=(.+)"/Ui', $contenu, $tab_encodage) || preg_match('/encoding="(.+)"/Ui', $contenu, $tab_encodage)) {
if (preg_match('/charset=(.+)"/Ui', $contenu, $tab_encodage) || preg_match('/encoding="(.+)"/Ui', $contenu, $tab_encodage)) {
if (preg_match('/^(?:iso-8859-1|iso-8859-15)$/i', $GLOBALS['_INCLURE_']['encodage']) && preg_match('/utf-8/i', $tab_encodage[1])) {
$GLOBALS['_INCLURE_']['sortie'] = utf8_decode($tab_matches[1]);
} else {
162,6 → 162,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.4 2007-08-28 14:23:55 jp_milcent
* Amélioration de la gestion de l'inclusion.
*
* Revision 1.3 2007-08-28 14:14:13 jp_milcent
* Correction de bogues empéchant l'affichage.
*
/trunk/papyrus/applettes/syndication/squelettes/synd_liste_actu.tpl.html
New file
0,0 → 1,45
<!-- SYNDICATION - DEBUT -->
<h1 id="rss_titre_general">La botanique sur la toile</h1>
<?php if ($erreurs) : ?>
<?php foreach ($erreurs as $erreur) : ?>
<p class="pap_erreur"><?=$erreur;?></p>
<?php endforeach; ?>
<?php elseif ($informations) : ?>
<?php foreach ($informations as $information) : ?>
<p class="pap_info"><?=$information;?></p>
<?php endforeach; ?>
<?php else : ?>
<div class="rss">
<?php $flux = array(); ?>
<?php foreach ($sites as $site) : ?>
<?php foreach ($site['pages'] as $page) : ?>
<?php array_push ($flux, array ($page['url'], $page['titre'], $site['titre'], strtotime($page['date']))); ?>
<?php endforeach; ?>
<?php endforeach; ?>
<?php foreach ($flux as $key=>$row) : ?>
<?php $date_flux[$key] = $row[3]; ?>
<?php endforeach; ?>
<?php array_multisort($date_flux, SORT_DESC, $flux); ?>
<?php foreach ($flux as $key=>$news) : ?>
<h2 class="rss_titre_article"><a href="<?=$news[0];?>" class="lien_ext"><?php echo preg_replace('/^\d+-\d+&nbsp;:/', '', $news[1]);?></a></h2>
<h1 class="rss_titre_site"><?= $news[2]; ?> - <span class="date"><?php echo $GLOBALS['jours'][date ('w', $news[3])].' '.date('d',$news[3]).
' '.$GLOBALS['mois'][date('n', $news[3])].' '.date ('Y', strtotime ($news[3])); ?></span></h1>
<?php endforeach; ?>
 
<!--
<?php foreach ($sites as $site) : ?>
<?php foreach ($site['pages'] as $page) : ?>
<h2 class="rss_titre_article"><a href="<?=$page['url'];?>" class="lien_ext"><?php echo preg_replace('/^\d+-\d+&nbsp;:/', '', $page['titre']);?></a></h2>
<h1 class="rss_titre_site"><?= $site['titre']; ?> - <span class="date"><?php echo $GLOBALS['jours'][date ('w', strtotime ($page['date']))].' '.date('d', strtotime($page['date'])).
' '.$GLOBALS['mois'][date('n', strtotime ($page['date']))].' '.date('Y'); ?></span></h1>
 
<?php endforeach; ?>
<?php endforeach; ?>
-->
</div>
<?php endif; ?>
<!-- SYNDICATION - FIN -->
/trunk/papyrus/applettes/syndication/squelettes/synd_liste_evenement.tpl.html
New file
0,0 → 1,23
<!-- SYNDICATION - DEBUT -->
<?php if ($erreurs) : ?>
<?php foreach ($erreurs as $erreur) : ?>
<p class="pap_erreur"><?=$erreur;?></p>
<?php endforeach; ?>
<?php elseif ($informations) : ?>
<?php foreach ($informations as $information) : ?>
<p class="pap_info"><?=$information;?></p>
<?php endforeach; ?>
<?php else : ?>
<?php foreach ($sites as $site) : ?>
<?php foreach ($site['pages'] as $page) : ?>
<div class="menu_titre">
<h1 class="intituler_rubrique"><a class="lien_rss" href="<?=$page['url'];?>" <?=($site['ext'])? 'onclick="window.open(this.href); return false;"':'';?>><?=$page['titre'];?></a></h1>
<p class="date"><?php echo $page['category']; ?> début le <?php echo $GLOBALS['jours'][date ('w', strtotime ($page['date']))].' '.date('d', strtotime($page['date'])).
' '.$GLOBALS['mois'][date('n', strtotime ($page['date']))].' '.date ('Y', strtotime ($page['date'])); ?> par <?php echo $page['author']; ?></p>
<p class="descriptif_contenu"><?php echo substr($page['description'], 0, 400); ?></p>
</div>
<hr />
<?php endforeach; ?>
<?php endforeach; ?>
<?php endif; ?>
<!-- SYNDICATION - FIN -->