Subversion Repositories eFlore/Applications.cel

Rev

Rev 627 | Rev 1451 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 627 Rev 879
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
	<head>
3
	<head>
4
		<title>Photographies publiques du CEL - Tela Botanica</title>
4
		<title>Photographies publiques du CEL - Tela Botanica</title>
5
		
5
		
6
		<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
6
		<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
7
		<meta http-equiv="Content-style-type" content="text/css" />
7
		<meta http-equiv="Content-style-type" content="text/css" />
8
		<meta http-equiv="Content-script-type" content="text/javascript" />
8
		<meta http-equiv="Content-script-type" content="text/javascript" />
9
		<meta http-equiv="Content-language" content="fr" />
9
		<meta http-equiv="Content-language" content="fr" />
10
		
10
		
11
		<meta name="revisit-after" content="15 days" />
11
		<meta name="revisit-after" content="15 days" />
12
        <meta name="robots" content="index,follow" />
12
        <meta name="robots" content="index,follow" />
13
        <meta name="author" content="Jean-Pascal MILCENT, Grégoire DUCHÉ" />
13
        <meta name="author" content="Jean-Pascal MILCENT, Grégoire DUCHÉ" />
14
        <meta name="keywords" content="Tela Botanica, photographie, CEL" />
14
        <meta name="keywords" content="Tela Botanica, photographie, CEL" />
15
        <meta name="description" content="Widget de présentation des dernières photo publiées sur le Carnet en Ligne de Tela Botanica" />
15
        <meta name="description" content="Widget de présentation des dernières photo publiées sur le Carnet en Ligne de Tela Botanica" />
16
 
16
 
17
		<!-- Spécial mobile -->
17
		<!-- Spécial mobile -->
18
		<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
18
		<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
19
		
19
		
20
		<!-- Favicones -->
20
		<!-- Favicones -->
21
		<link rel="icon" type="image/png" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.png" />
21
		<link rel="icon" type="image/png" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.png" />
22
		<link rel="shortcut icon" type="image/x-icon" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.ico" />
22
		<link rel="shortcut icon" type="image/x-icon" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.ico" />
23
		
23
		
24
		<!-- Feuilles de styles -->
24
		<!-- Feuilles de styles -->
25
		<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" />
25
		<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" />
26
		<link rel="stylesheet" type="text/css" href="<?=$url_css?>photo.css" media="screen" />
26
		<link rel="stylesheet" type="text/css" href="<?=$url_css?>photo.css" media="screen" />
27
		<style type="text/css">
27
		<style type="text/css">
28
			html {
28
			html {
29
				overflow:hidden;
29
				overflow:hidden;
30
			}
30
			}
31
			body{
31
			body{
32
				overflow:hidden;
32
				overflow:hidden;
33
				padding:0;
33
				padding:0;
34
				margin:0;
34
				margin:0;
35
				width:100%;
35
				width:100%;
36
				height:100%;
36
				height:100%;
37
				background-color:#4A4B4C;
37
				background-color:#4A4B4C;
38
				color:#CCC;
38
				color:#CCC;
39
			}
39
			}
40
			#cel-photo-contenu, #cel-galerie-photo{
40
			#cel-photo-contenu<?=$id?>, #cel-galerie-photo<?=$id?>{
41
				width:<?=(($colonne * 69))?>px;
41
				width:<?=(($colonne * 69))?>px;
42
			}
42
			}
43
			#cel-galerie-photo #cel-photo-extra img{
43
			#cel-galerie-photo<?=$id?> #cel-photo-extra<?=$id?> img{
44
				width:<?=(($colonne * 69)-6)?>px;
44
				width:<?=(($colonne * 69)-6)?>px;
45
			}
45
			}
46
		</style>
46
		</style>
47
		
47
		
48
		<!-- Javascript : bibliothèques -->
48
		<!-- Javascript : bibliothèques -->
49
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/1.4.4/jquery-1.4.4.min.js"></script>
49
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/1.6/jquery-1.6.min.js"></script>
50
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.js"></script>
50
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.js"></script>
51
	</head>
51
	</head>
52
	<body>
52
	<body>
53
		<!-- WIDGET:CEL:PHOTO - DEBUT -->
53
		<!-- WIDGET:CEL:PHOTO - DEBUT -->
54
		<div id="cel-photo-contenu">
54
		<div id="cel-photo-contenu<?=$id?>" class="cel-photo-contenu">
55
		<?php if (isset($erreurs) || isset($informations)) : ?>
55
		<?php if (isset($erreurs) || isset($informations)) : ?>
56
			<h1>Erreur &amp; informations</h1>
56
			<h1>Erreur &amp; informations</h1>
57
			<p>Impossible d'afficher le flux.</p>
57
			<p>Impossible d'afficher le flux.</p>
58
			<!-- Affichage des erreurs et messages d'information : -->
58
			<!-- Affichage des erreurs et messages d'information : -->
59
			<?php if ($erreurs) : ?>
59
			<?php if ($erreurs) : ?>
60
				<?php foreach ($erreurs as $erreur) : ?>
60
				<?php foreach ($erreurs as $erreur) : ?>
61
					<p class="erreur"><?=$erreur;?></p>
61
					<p class="erreur"><?=$erreur;?></p>
62
				<?php endforeach; ?>
62
				<?php endforeach; ?>
63
			<?php endif; ?>
63
			<?php endif; ?>
64
			
64
			
65
			<?php if ($informations) : ?>
65
			<?php if ($informations) : ?>
66
				<?php foreach ($informations as $information) : ?>
66
				<?php foreach ($informations as $information) : ?>
67
					<p class="info"><?=$information;?></p>
67
					<p class="info"><?=$information;?></p>
68
				<?php endforeach; ?>
68
				<?php endforeach; ?>
69
			<?php endif; ?>
69
			<?php endif; ?>
70
		<?php else : ?>
70
		<?php else : ?>
71
		 	<h1>
71
		 	<h1>
-
 
72
		 		<? if (!empty($titre)) : ?>
-
 
73
		 			<?=$titre?>
-
 
74
		 		<? else : ?>
72
		 		Dernières images du 
75
			 		Dernières images du 
73
		 		<a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
76
			 		<a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
74
		 			CEL
77
			 			CEL
75
		 		</a>
78
			 		</a>
-
 
79
		 		<? endif; ?>
76
		 		<a href="<?=$flux_rss_url?>" 
80
		 		<a href="<?=$flux_rss_url?>" 
77
					id="cel-photo-flux" 
81
					class="cel-photo-flux" 
78
					title="Suivre les images" 
82
					title="Suivre les images" 
79
					onclick="window.open(this.href);return false;">
83
					onclick="window.open(this.href);return false;">
80
					<img src="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
84
					<img src="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
81
				</a>
85
				</a>
82
		 	</h1>
86
		 	</h1>
83
			<div id="cel-galerie-photo">
87
			<div id="cel-galerie-photo<?=$id?>">
84
			<?php foreach ($items as $item) : ?>
88
			<?php foreach ($items as $item) : ?>
85
				<div class="cel-photo">
89
				<div class="cel-photo">
86
					<a href="<?=sprintf($item['url_tpl'], 'XL')?>" class="cel-img" title="<?=$item['titre']?> - Publiée le <?=$item['date']?> - GUID : <?=$item['guid']?>" rel="galerie-princ">
90
					<a href="<?=sprintf($item['url_tpl'], 'XL')?>" class="cel-img" title="<?=$item['titre']?> - Publiée le <?=$item['date']?> - GUID : <?=$item['guid']?>" rel="galerie-princ<?=$id?>">
87
						<img src="<?=sprintf($item['url_tpl'], 'CRX2S')?>" alt="<?=$item['titre']?>"/>
91
						<img src="<?=sprintf($item['url_tpl'], 'CRX2S')?>" alt="<?=$item['titre']?>"/>
88
					</a>
92
					</a>
89
					<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
93
					<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
90
						<strong>
94
						<strong>
91
							<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
95
							<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
92
								onclick="window.open(this.href);return false;"  
96
								onclick="window.open(this.href);return false;"  
93
								title="Cliquez pour accéder à la fiche eFlore">
97
								title="Cliquez pour accéder à la fiche eFlore">
94
								<?=$item['titre']?>
98
								<?=$item['titre']?>
95
							</a>
99
							</a>
96
						</strong><br />
100
						</strong><br />
97
						<span class="cel-img-date">Publiée le <?=$item['date']?></span>
101
						<span class="cel-img-date">Publiée le <?=$item['date']?></span>
98
		 			</div>
102
		 			</div>
99
				</div>
103
				</div>
100
			<?php endforeach; ?>
104
			<?php endforeach; ?>
101
			<?php if ($extra_actif) : ?>
105
			<?php if ($extra_actif) : ?>
102
				<div id="cel-photo-extra" class="cel-photo">
106
				<div id="cel-photo-extra<?=$id?>" class="cel-photo-extra cel-photo">
103
					<a href="<?=sprintf($extra['url_tpl'], 'XL')?>" class="cel-img" title="<?=$extra['titre']?> - Publiée le <?=$extra['date']?> - GUID : <?=$extra['guid']?>" rel="galerie-princ">
107
					<a href="<?=sprintf($extra['url_tpl'], 'XL')?>" class="cel-img" title="<?=$extra['titre']?> - Publiée le <?=$extra['date']?> - GUID : <?=$extra['guid']?>" rel="galerie-princ<?=$id?>">
104
						<img src="<?=sprintf($extra['url_tpl'], 'CRS')?>" alt="<?=$extra['titre']?>"/>
108
						<img src="<?=sprintf($extra['url_tpl'], 'CRS')?>" alt="<?=$extra['titre']?>"/>
105
					</a>
109
					</a>
106
				</div>
110
				</div>
107
			</div>
111
			</div>
108
			<?php endif ?>
112
			<?php endif ?>
-
 
113
			<p class="cel-photo-pieds discretion nettoyage">
-
 
114
				<span class="cel-photo-source">
-
 
115
					Source : 
-
 
116
					<a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
-
 
117
				 		CEL
-
 
118
				 	</a>
-
 
119
			 	</span>
109
			<p id="cel-photo-date-generation" class="discretion nettoyage">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></p>
120
			 	<span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
-
 
121
			 </p>
110
			<script type="text/Javascript">
122
			<script type="text/Javascript">
111
				//<![CDATA[
123
				//<![CDATA[
-
 
124
				$('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({
-
 
125
					transitionIn:'elastic',
-
 
126
					transitionOut:'elastic',
-
 
127
					speedIn	:600, 
-
 
128
					speedOut:200,
-
 
129
					overlayShow:true,
-
 
130
					titleShow:true,
-
 
131
					titlePosition:'inside',
112
				function formaterTitre(titre, currentArray, currentIndex, currentOpts) {
132
					titleFormat:function (titre, currentArray, currentIndex, currentOpts) {
113
					var motif = /GUID : ([0-9]+)$/;
133
						var motif = /GUID : ([0-9]+)$/;
114
					motif.exec(titre);
134
						motif.exec(titre);
115
					var guid = RegExp.$1;
135
						var guid = RegExp.$1;
116
					var info = $('#cel-info-'+guid).clone().html();
136
						var info = $('#cel-info-'+guid).clone().html();
117
					var tpl = 
137
						var tpl = 
118
						'<div id="cel-legende">'+
138
							'<div class="cel-legende">'+
119
						'<p id="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+	
139
							'<p class="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+	
120
						(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
140
							(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
121
						'<\/div>';
141
							'<\/div>';
122
					return tpl;
142
						return tpl;
123
				}
143
					}
124
					
-
 
125
				$(document).ready(function() {
-
 
126
					$('a.cel-img').attr('rel', 'galerie-princ').fancybox({
-
 
127
						transitionIn:'elastic',
-
 
128
						transitionOut:'elastic',
-
 
129
						speedIn	:600, 
-
 
130
						speedOut:200,
-
 
131
						overlayShow:true,
-
 
132
						titleShow:true,
-
 
133
						titlePosition:'inside',
-
 
134
						titleFormat:formaterTitre
-
 
135
					});
-
 
136
				});
144
				});
137
				//]]>
145
				//]]>
138
			</script>
146
			</script>
139
	   	<?php endif; ?>
147
	   	<?php endif; ?>
140
		</div>
148
		</div>
141
		<!-- WIDGET:CEL:PHOTO - FIN -->
149
		<!-- WIDGET:CEL:PHOTO - FIN -->
142
	</body>
150
	</body>
143
</html>
151
</html>