Subversion Repositories Sites.tela-botanica.org

Rev

Rev 1029 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1029 Rev 1033
Line 5... Line 5...
5
?>
5
?>
6
<!-- SYNDICATION - DEBUT -->
6
<!-- SYNDICATION - DEBUT -->
7
<!-- Penser aux inclusions ci dessous si nécessaire : --> 
7
<!-- Penser aux inclusions ci dessous si nécessaire : --> 
8
<!-- <script type="text/javascript" src="/commun/jquery/1.4.2/jquery-1.4.2.min.js"></script> -->
8
<!-- <script type="text/javascript" src="/commun/jquery/1.4.2/jquery-1.4.2.min.js"></script> -->
9
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.pack.js"></script>
9
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.pack.js"></script>
10
<link rel="stylesheet" type="text/css" href="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.css" media="screen" /> /-->
10
<link rel="stylesheet" type="text/css" href="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.css" media="screen" />
11
<div class="flux_RSS">
11
<div class="flux_RSS">
12
	<?php if ($erreurs || $informations) : ?>
12
	<?php if ($erreurs || $informations) : ?>
13
		<h1>Erreur</h1>
13
		<h1>Erreur</h1>
14
			<div class="contenu_RSS">
14
			<div class="contenu_RSS">
15
				<b>Impossible d'afficher le flux.</b><br />
15
				<b>Impossible d'afficher le flux.</b><br />
Line 44... Line 44...
44
							// Formatage date
44
							// Formatage date
45
							$timestamp = strtotime($page['date']);
45
							$timestamp = strtotime($page['date']);
46
							$page['date'] = strftime('%A %d %B %Y', $timestamp);
46
							$page['date'] = strftime('%A %d %B %Y', $timestamp);
Line 47... Line 47...
47
 
47
 
48
    						$titre_page = preg_replace('/^\d+-\d+&nbsp;:/', '', $page['titre']);
48
    						$titre_page = preg_replace('/^\d+-\d+&nbsp;:/', '', $page['titre']);
49
							$tpl_url = preg_replace('/[SML]\.jpg$/', '%s.jpg', $page['guid']);
49
							$tpl_url = preg_replace('/(XS|[SML]|X(?:[23]|)L|CR(?:|X2)S|C(?:|X)S)\.jpg$/', '%s.jpg', $page['guid']);
50
							$guid = $page['guid'];
50
							$guid = $page['guid'];
51
							if (preg_match('/appli:cel-img:([0-9]+)[SML]\.jpg$/', 	$page['guid'], $match)) {
51
							if (preg_match('/appli:cel-img:([0-9]+)[SML]\.jpg$/', 	$page['guid'], $match)) {
52
  								$guid = (int) $match[1];
52
  								$guid = (int) $match[1];
53
							}
53
							}
54
						?>
54
						?>
55
    					<div class="actualites1">
55
    					<div class="actualites1">
56
    						<a href="<?=sprintf($tpl_url, L)?>" class="image-lien" 
56
    						<a href="<?=sprintf($tpl_url, 'XL')?>" class="image-lien" 
57
    							title="<?=$titre_page?> - Publiée le <?=$page['date']?> - GUID : <?=$guid?>" 
57
    							title="<?=$titre_page?> - Publiée le <?=$page['date']?> - GUID : <?=$guid?>" 
58
    							rel="galerie-princ">
58
    							rel="galerie-princ">
59
    							<img src="<?=sprintf($tpl_url, S)?>" alt="<?=$titre_page?>"/>
59
    							<img src="<?=sprintf($tpl_url, 'CRX2S')?>" alt="<?=$titre_page?>"/>
Line 60... Line 60...
60
    						</a>
60
    						</a>
61
    						
61
    						
62
    						<div style="display: none;">
62
    						<div style="display: none;">
Line 80... Line 80...
80
						// Formatage date
80
						// Formatage date
81
						$timestamp = strtotime($page['date']);
81
						$timestamp = strtotime($page['date']);
82
						$page['date'] = strftime('%A %d %B %Y', $timestamp);
82
						$page['date'] = strftime('%A %d %B %Y', $timestamp);
Line 83... Line 83...
83
 
83
 
84
    					$titre_page = preg_replace('/^\d+-\d+&nbsp;:/', '', $page['titre']);
84
    					$titre_page = preg_replace('/^\d+-\d+&nbsp;:/', '', $page['titre']);
85
						$tpl_url = preg_replace('/[SML]\.jpg$/', '%s.jpg', $page['guid']);
85
						$tpl_url = preg_replace('/(XS|[SML]|X(?:[23]|)L|CR(?:|X2)S|C(?:|X)S)\.jpg$/', '%s.jpg', $page['guid']);
86
						$guid = $page['guid'];
86
						$guid = $page['guid'];
87
						if (preg_match('/appli:cel-img:([0-9]+)[SML]\.jpg$/', 	$page['guid'], $match)) {
87
						if (preg_match('/appli:cel-img:([0-9]+)(XS|[SML]|X(?:[23]|)L|CR(?:|X2)S|C(?:|X)S)\.jpg$/', 	$page['guid'], $match)) {
88
  							$guid = (int) $match[1];
88
  							$guid = (int) $match[1];
89
						}
89
						}
90
    				?>
90
    				?>
91
    				<div class="actualites1">
91
    				<div class="actualites1">
92
   						<a href="<?=sprintf($tpl_url, L)?>" class="image-lien" 
92
   						<a href="<?=sprintf($tpl_url, 'XL')?>" class="image-lien" 
93
   							title="<?=$titre_page?> - Publiée le <?=$page['date']?> - GUID : <?=$guid?>" 
93
   							title="<?=$titre_page?> - Publiée le <?=$page['date']?> - GUID : <?=$guid?>" 
94
   							rel="galerie-princ">
94
   							rel="galerie-princ">
95
   							<img id="imgExtra" src="<?=sprintf($tpl_url, M)?>" alt="<?=$titre_page?>"/>
95
   							<img id="imgExtra" src="<?=sprintf($tpl_url, 'CRS')?>" alt="<?=$titre_page?>"/>
96
   						</a>
96
   						</a>
Line 97... Line 97...
97
					</div>
97
					</div>
98
					
98