Subversion Repositories Sites.tela-botanica.org

Rev

Rev 828 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
828 gduche 1
<!-- SYNDICATION - DEBUT -->
2
	<div class="flux_simple">
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" id="<?=$site['id']?>">
27
    				<?php foreach ($site['pages'] as $page) : ?>
28
    					<?php
29
							$date = strtotime($page['date']);
30
    						$titre_page = preg_replace('/^\d+-\d+&nbsp;:/', '', $page['titre']);
31
    					?>
32
    					<div id="actualites1">
33
							<div id="texteActualites1">
34
								<?php
958 jpm 35
									// Pr�paration de la variable de date en cha�ne de caract�res
828 gduche 36
									$date_string = "";
37
									$date_string .= $GLOBALS['jours'][date ('w', $date)];
38
									$date_string .= ' '.date ('d', $date);
39
									$date_string .= ' '.$GLOBALS['mois'][date('n',  $date)];
40
									$date_string .= ' '.date ('Y', $date);
41
								?>
42
								<h3><a href="<?=$page['url']?>" class="lien_ext"><?=$titre_page?></a></h3>
958 jpm 43
								<p class="sous-titre"><?=$date_string?></p>
828 gduche 44
							</div>
45
						</div>
958 jpm 46
  						<br />
828 gduche 47
 
48
 
49
    				<?php endforeach; ?>
50
  				<?php endforeach; ?>
51
				</div>
52
		<?php endif; ?>
53
	</div>
54
 
55
 
56
 
57
<!-- SYNDICATION - FIN -->