1971 |
aperonnet |
1 |
<!-- SYNDICATION - DEBUT -->
|
|
|
2 |
<h1 id="rss_titre_general">La botanique sur la toile</h1>
|
|
|
3 |
<?php if ($erreurs) : ?>
|
|
|
4 |
<?php foreach ($erreurs as $erreur) : ?>
|
|
|
5 |
<p class="pap_erreur"><?=$erreur;?></p>
|
|
|
6 |
<?php endforeach; ?>
|
|
|
7 |
<?php elseif ($informations) : ?>
|
|
|
8 |
<?php foreach ($informations as $information) : ?>
|
|
|
9 |
<p class="pap_info"><?=$information;?></p>
|
|
|
10 |
<?php endforeach; ?>
|
|
|
11 |
<?php else : ?>
|
|
|
12 |
<div class="rss">
|
|
|
13 |
<?php $flux = array(); ?>
|
|
|
14 |
<?php foreach ($sites as $site) : ?>
|
|
|
15 |
<?php foreach ($site['pages'] as $page) : ?>
|
|
|
16 |
<?php array_push ($flux, array ($page['url'], $page['titre'], $site['titre'], strtotime($page['date']))); ?>
|
|
|
17 |
<?php endforeach; ?>
|
|
|
18 |
<?php endforeach; ?>
|
|
|
19 |
|
|
|
20 |
<?php foreach ($flux as $key=>$row) : ?>
|
|
|
21 |
<?php $date_flux[$key] = $row[3]; ?>
|
|
|
22 |
<?php endforeach; ?>
|
|
|
23 |
|
|
|
24 |
<?php array_multisort($date_flux, SORT_DESC, $flux); ?>
|
|
|
25 |
|
|
|
26 |
<?php foreach ($flux as $key=>$news) : ?>
|
|
|
27 |
<h2 class="rss_titre_article"><a href="<?=$news[0];?>" class="lien_ext"><?php echo preg_replace('/^\d+-\d+ :/', '', $news[1]);?></a></h2>
|
|
|
28 |
<h1 class="rss_titre_site"><?= $news[2]; ?> - <span class="date"><?php echo $GLOBALS['jours'][date ('w', $news[3])].' '.date('d',$news[3]).
|
|
|
29 |
' '.$GLOBALS['mois'][date('n', $news[3])].' '.date ('Y', strtotime ($news[3])); ?></span></h1>
|
|
|
30 |
|
|
|
31 |
<?php endforeach; ?>
|
|
|
32 |
|
|
|
33 |
<!--
|
|
|
34 |
<?php foreach ($sites as $site) : ?>
|
|
|
35 |
<?php foreach ($site['pages'] as $page) : ?>
|
|
|
36 |
<h2 class="rss_titre_article"><a href="<?=$page['url'];?>" class="lien_ext"><?php echo preg_replace('/^\d+-\d+ :/', '', $page['titre']);?></a></h2>
|
|
|
37 |
<h1 class="rss_titre_site"><?= $site['titre']; ?> - <span class="date"><?php echo $GLOBALS['jours'][date ('w', strtotime ($page['date']))].' '.date('d', strtotime($page['date'])).
|
|
|
38 |
' '.$GLOBALS['mois'][date('n', strtotime ($page['date']))].' '.date('Y'); ?></span></h1>
|
|
|
39 |
|
|
|
40 |
<?php endforeach; ?>
|
|
|
41 |
<?php endforeach; ?>
|
|
|
42 |
-->
|
|
|
43 |
</div>
|
|
|
44 |
<?php endif; ?>
|
|
|
45 |
<!-- SYNDICATION - FIN -->
|