Subversion Repositories Applications.papyrus

Rev

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

Rev Author Line No. Line
2094 drzraf 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 class="contributions">
33
							<div id="texte_contribution">
34
								<h4 class="categorie"><?=$page['category']?></h4>
35
								<?php
36
									// Préparation de la variable de date en chaîne de caractères
37
									$date_string = "";
38
									$date_string .= $GLOBALS['jours'][date ('w', $date)];
39
									$date_string .= ' '.date ('d', $date);
40
									$date_string .= ' '.$GLOBALS['mois'][date('n',  $date)];
41
									$date_string .= ' '.date ('Y', $date);
42
								?>
43
								<h3><a href="<?=$page['url']?>" class="lien_ext"><?=$titre_page?></a></h3>
44
								<span class="sous-titre"><?=$date_string?></span>
45
							</div>
46
						</div>
47
 
48
 
49
 
50
    				<?php endforeach; ?>
51
  				<?php endforeach; ?>
52
				</div>
53
		<?php endif; ?>
54
	</div>
55
 
56
 
57
 
58
<!-- SYNDICATION - FIN -->