| 828 | 
           gduche | 
           1 | 
           <!-- SYNDICATION - DEBUT -->
  | 
        
        
            | 
            | 
           2 | 
           	<div class="flux_RSS">
  | 
        
        
            | 
            | 
           3 | 
           		<?php if ($erreurs || $informations) : ?>
  | 
        
        
            | 
            | 
           4 | 
           			<h1>Erreur</h1>
  | 
        
        
            | 
            | 
           5 | 
           			<div class="contenu_RSS">
  | 
        
        
            | 
            | 
           6 | 
           				<b>Impossible d'afficher le flux.</b><br />
  | 
        
        
            | 
            | 
           7 | 
              | 
        
        
            | 
            | 
           8 | 
           				<!-- Affichage des erreurs et messages d'information : -->
  | 
        
        
            | 
            | 
           9 | 
           				<?php if ($erreurs) : ?>
  | 
        
        
            | 
            | 
           10 | 
           					<?php foreach ($erreurs as $erreur) : ?>
  | 
        
        
            | 
            | 
           11 | 
           						<p class="pap_erreur"><?=$erreur;?></p>
  | 
        
        
            | 
            | 
           12 | 
           					<?php endforeach; ?>
  | 
        
        
            | 
            | 
           13 | 
           				<?php endif; ?>
  | 
        
        
            | 
            | 
           14 | 
              | 
        
        
            | 
            | 
           15 | 
           				<?php if ($informations) : ?>
  | 
        
        
            | 
            | 
           16 | 
           					<?php foreach ($informations as $information) : ?>
  | 
        
        
            | 
            | 
           17 | 
           						<p class="pap_info"><?=$information;?></p>
  | 
        
        
            | 
            | 
           18 | 
           					<?php endforeach; ?>
  | 
        
        
            | 
            | 
           19 | 
           				<?php endif; ?>
  | 
        
        
            | 
            | 
           20 | 
           			</div>
  | 
        
        
            | 
            | 
           21 | 
           		<?php else : ?>
  | 
        
        
            | 
            | 
           22 | 
           			<!-- Affichage du flux RSS -->
  | 
        
        
            | 
            | 
           23 | 
           			<?php $flux = array(); ?>
  | 
        
        
            | 
            | 
           24 | 
             				<?php foreach ($sites as $site) : ?>
  | 
        
        
            | 
            | 
           25 | 
             					<h1><?=$site['titre']?></h1>
  | 
        
        
            | 
            | 
           26 | 
             					<div class="contenu_RSS" <?=($site['id']!="") ? 'id="'.$site["id"].'"' : ""; ?>>
  | 
        
        
            | 
            | 
           27 | 
               				<?php foreach ($site['pages'] as $page) : ?>
  | 
        
        
            | 
            | 
           28 | 
               					<?php
  | 
        
        
            | 
            | 
           29 | 
           							//Traitement spécifique tela
  | 
        
        
            | 
            | 
           30 | 
           							// La ligne ci-dessous sert à enlever les "align=left" dans les images générées par spip
  | 
        
        
            | 
            | 
           31 | 
           							// TODO : enlever du flux RSS
  | 
        
        
            | 
            | 
           32 | 
           							$image = substr_replace($page['image'], ' ', strpos($page['image'], 'align='), 12);
  | 
        
        
            | 
            | 
           33 | 
           						?>
  | 
        
        
            | 
            | 
           34 | 
               					<?php
  | 
        
        
            | 
            | 
           35 | 
           							$date = strtotime($page['date']);
  | 
        
        
            | 
            | 
           36 | 
               						$titre_page = preg_replace('/^\d+-\d+ :/', '', $page['titre']);
  | 
        
        
            | 
            | 
           37 | 
               					?>
  | 
        
        
            | 
            | 
           38 | 
               					<div class="actualites1">
  | 
        
        
            | 
            | 
           39 | 
               						<a title="<?=$page['titre']?>" href="http://www.tela-botanica.org/appli:cel-img:0000<?=$page['guid']?>M"><img src="http://www.tela-botanica.org/appli:cel-img:0000<?=$page['guid']?>S" alt="<?=$page['titre']?>" /></a>
  | 
        
        
            | 
            | 
           40 | 
           						</div>
  | 
        
        
            | 
            | 
           41 | 
               				<?php endforeach; ?>
  | 
        
        
            | 
            | 
           42 | 
               				<img id="imgExtra" src="http://www.tela-botanica.org/appli:cel-img:0000<?=$sites[0]['pages'][7]['guid']?>M" />
  | 
        
        
            | 
            | 
           43 | 
              | 
        
        
            | 
            | 
           44 | 
              | 
        
        
            | 
            | 
           45 | 
               				</div>
  | 
        
        
            | 
            | 
           46 | 
             				<?php endforeach; ?>
  | 
        
        
            | 
            | 
           47 | 
           		<?php endif; ?>
  | 
        
        
            | 
            | 
           48 | 
           	</div>
  | 
        
        
            | 
            | 
           49 | 
              | 
        
        
            | 
            | 
           50 | 
              | 
        
        
            | 
            | 
           51 | 
              | 
        
        
            | 
            | 
           52 | 
           <!-- SYNDICATION - FIN -->
  |