Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1495 Rev 2515
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
 
-
 
17
		<!-- OpenGraph pour Facebook, Pinterest, Google+ -->
-
 
18
		<meta property="og:type" content="website" />
-
 
19
		<meta property="og:title" content="Widget photo du CeL" />
-
 
20
		<meta property="og:site_name" content="Tela Botanica" />
-
 
21
		<meta property="og:description" content="Mini-galerie photo des observations publiques du Carnet en Ligne" />
-
 
22
		<meta property="og:image" content="http://resources.tela-botanica.org/tb/img/256x256/carre_englobant.png" />
-
 
23
		<meta property="og:image:type" content="image/png" /> 
-
 
24
		<meta property="og:image:width" content="256" /> 
-
 
25
		<meta property="og:image:height" content="256" />
-
 
26
		<meta property="og:locale" content="fr_FR" />
16
 
27
 
17
		<!-- Spécial mobile -->
28
		<!-- Spécial mobile -->
18
		<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
29
		<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
19
		
30
		
20
		<!-- Favicones -->
31
		<!-- Favicones -->
21
		<link rel="icon" type="image/png" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.png" />
32
		<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" />
33
		<link rel="shortcut icon" type="image/x-icon" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.ico" />
23
		
34
		
24
		<!-- Feuilles de styles -->
35
		<!-- 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" />
36
		<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" />
37
		<link rel="stylesheet" type="text/css" href="<?=$url_css?>photo.css" media="screen" />
27
		<style type="text/css">
38
		<style type="text/css">
28
			html {
39
			html {
29
				overflow:hidden;
40
				overflow:hidden;
30
			}
41
			}
31
			body{
42
			body{
32
				overflow:hidden;
43
				overflow:hidden;
33
				padding:0;
44
				padding:0;
34
				margin:0;
45
				margin:0;
35
				width:100%;
46
				width:100%;
36
				height:100%;
47
				height:100%;
37
				background-color:#DDDDDD;
48
				background-color:#DDDDDD;
38
				color:black;
49
				color:black;
39
			}
50
			}
40
			#cel-photo-contenu<?=$id?>, #cel-galerie-photo<?=$id?>{
51
			#cel-photo-contenu<?=$id?>, #cel-galerie-photo<?=$id?>{
41
				width:<?=(($colonne * 69))?>px;
52
				width:<?=(($colonne * 69))?>px;
42
			}
53
			}
43
			#cel-galerie-photo<?=$id?> #cel-photo-extra<?=$id?> img{
54
			#cel-galerie-photo<?=$id?> #cel-photo-extra<?=$id?> img{
44
				width:<?=(($colonne * 69)-6)?>px;
55
				width:<?=(($colonne * 69)-6)?>px;
45
			}
56
			}
46
		</style>
57
		</style>
47
		
58
		
48
		<!-- Javascript : bibliothèques -->
59
		<!-- Javascript : bibliothèques -->
49
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/1.6/jquery-1.6.min.js"></script>
60
		<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>
61
		<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>
62
	</head>
52
	<body>
63
	<body>
53
		<!-- WIDGET:CEL:PHOTO - DEBUT -->
64
		<!-- WIDGET:CEL:PHOTO - DEBUT -->
54
		<div id="cel-photo-contenu<?=$id?>" class="cel-photo-contenu">
65
		<div id="cel-photo-contenu<?=$id?>" class="cel-photo-contenu">
55
		<?php if (isset($erreurs) || isset($informations)) : ?>
66
		<?php if (isset($erreurs) || isset($informations)) : ?>
56
			<h1>Erreur &amp; informations</h1>
67
			<h1>Erreur &amp; informations</h1>
57
			<p>Impossible d'afficher le flux.</p>
68
			<p>Impossible d'afficher le flux.</p>
58
			<!-- Affichage des erreurs et messages d'information : -->
69
			<!-- Affichage des erreurs et messages d'information : -->
59
			<?php if ($erreurs) : ?>
70
			<?php if ($erreurs) : ?>
60
				<?php foreach ($erreurs as $erreur) : ?>
71
				<?php foreach ($erreurs as $erreur) : ?>
61
					<p class="erreur"><?=$erreur;?></p>
72
					<p class="erreur"><?=$erreur;?></p>
62
				<?php endforeach; ?>
73
				<?php endforeach; ?>
63
			<?php endif; ?>
74
			<?php endif; ?>
64
			
75
			
65
			<?php if ($informations) : ?>
76
			<?php if ($informations) : ?>
66
				<?php foreach ($informations as $information) : ?>
77
				<?php foreach ($informations as $information) : ?>
67
					<p class="info"><?=$information;?></p>
78
					<p class="info"><?=$information;?></p>
68
				<?php endforeach; ?>
79
				<?php endforeach; ?>
69
			<?php endif; ?>
80
			<?php endif; ?>
70
		<?php else : ?>
81
		<?php else : ?>
71
		 	<h1>
82
		 	<h1>
72
		 		<? if (!empty($titre)) : ?>
83
		 		<? if (!empty($titre)) : ?>
73
		 			<?=$titre?>
84
		 			<?=$titre?>
74
		 		<? endif ; ?>
85
		 		<? endif ; ?>
75
		 		<? if($icone_rss) : ?>
86
		 		<? if($icone_rss) : ?>
76
		 		<a href="<?=$flux_rss_url?>" 
87
		 		<a href="<?=$flux_rss_url?>" 
77
					class="cel-photo-flux" 
88
					class="cel-photo-flux" 
78
					title="Suivre les images" 
89
					title="Suivre les images" 
79
					onclick="window.open(this.href);return false;">
90
					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" />
91
					<img src="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
81
				</a>
92
				</a>
82
				<? endif; ?>
93
				<? endif; ?>
83
		 	</h1>
94
		 	</h1>
84
			<div id="cel-galerie-photo<?=$id?>">
95
			<div id="cel-galerie-photo<?=$id?>">
85
			<?php foreach ($items as $item) : ?>
96
			<?php foreach ($items as $item) : ?>
86
				<div class="cel-photo">
97
				<div class="cel-photo">
87
					<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?>">
98
					<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?>">
88
						<img src="<?=sprintf($item['url_tpl'], 'CRX2S')?>" alt="<?=$item['titre']?>"/>
99
						<img src="<?=sprintf($item['url_tpl'], 'CRX2S')?>" alt="<?=$item['titre']?>"/>
89
					</a>
100
					</a>
90
					<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
101
					<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
91
						<strong>
102
						<strong>
92
							<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '') { ?>
103
							<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '') { ?>
93
							<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
104
							<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
94
								onclick="window.open(this.href);return false;"  
105
								onclick="window.open(this.href);return false;"  
95
								title="Cliquez pour accéder à la fiche eFlore">
106
								title="Cliquez pour accéder à la fiche eFlore">
96
								<?=$item['infos']['nom_sci']?>
107
								<?=$item['infos']['nom_sci']?>
97
							</a> par 
108
							</a> par 
98
							<a class="cel-img-contact" 
109
							<a class="cel-img-contact" 
99
								href="?mode=contact&nn=<?= urlencode($item['infos']['nn']) ;?>&nom_sci=<?= urlencode($item['infos']['nom_sci']) ;?>&date=<?= urlencode($item['infos']['date']) ;?>&id_image=<?= $item['guid']; ?>" 
110
								href="?mode=contact&nn=<?= urlencode($item['infos']['nn']) ;?>&nom_sci=<?= urlencode($item['infos']['nom_sci']) ;?>&date=<?= urlencode($item['infos']['date']) ;?>&id_image=<?= $item['guid']; ?>" 
100
								title="Cliquez pour contacter l'auteur de la photo">
111
								title="Cliquez pour contacter l'auteur de la photo">
101
								<?=$item['infos']['auteur']?>
112
								<?=$item['infos']['auteur']?>
102
							</a>
113
							</a>
103
							le <?=$item['infos']['date']?> 
114
							le <?=$item['infos']['date']?> 
104
							<?php } else { ?>
115
							<?php } else { ?>
105
								<?=$item['titre']?>
116
								<?=$item['titre']?>
106
							<?php } ?>
117
							<?php } ?>
107
						</strong><br />
118
						</strong><br />
108
						<span class="cel-img-date">Publiée le <?=$item['date']?></span>
119
						<span class="cel-img-date">Publiée le <?=$item['date']?></span>
109
		 			</div>
120
		 			</div>
110
				</div>
121
				</div>
111
			<?php endforeach; ?>
122
			<?php endforeach; ?>
112
			<?php if ($extra_actif) : ?>
123
			<?php if ($extra_actif) : ?>
113
				<div id="cel-photo-extra<?=$id?>" class="cel-photo-extra cel-photo">
124
				<div id="cel-photo-extra<?=$id?>" class="cel-photo-extra cel-photo">
114
					<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?>">
125
					<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?>">
115
						<img src="<?=sprintf($extra['url_tpl'], 'CRS')?>" alt="<?=$extra['titre']?>"/>
126
						<img src="<?=sprintf($extra['url_tpl'], 'CRS')?>" alt="<?=$extra['titre']?>"/>
116
					</a>
127
					</a>
117
				</div>
128
				</div>
118
			</div>
129
			</div>
119
			<?php endif ?>
130
			<?php endif ?>
120
			<p class="cel-photo-pieds discretion nettoyage">
131
			<p class="cel-photo-pieds discretion nettoyage">
121
				<span class="cel-photo-source">
132
				<span class="cel-photo-source">
122
					Source : 
133
					Source : 
123
					<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
134
					<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
124
				 		CEL
135
				 		CEL
125
				 	</a>
136
				 	</a>
126
			 	</span>
137
			 	</span>
127
			 	<span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
138
			 	<span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
128
			 </p>
139
			 </p>
129
			<script type="text/Javascript">
140
			<script type="text/Javascript">
130
				//<![CDATA[
141
				//<![CDATA[
131
				var utiliseFancybox = "<?= $utilise_fancybox; ?>";   
142
				var utiliseFancybox = "<?= $utilise_fancybox; ?>";   
132
				if(utiliseFancybox) {
143
				if(utiliseFancybox) {
133
					$('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({
144
					$('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({
134
						transitionIn:'elastic',
145
						transitionIn:'elastic',
135
						transitionOut:'elastic',
146
						transitionOut:'elastic',
136
						speedIn	:600, 
147
						speedIn	:600, 
137
						speedOut:200,
148
						speedOut:200,
138
						overlayShow:true,
149
						overlayShow:true,
139
						titleShow:true,
150
						titleShow:true,
140
						titlePosition:'inside',
151
						titlePosition:'inside',
141
						titleFormat:function (titre, currentArray, currentIndex, currentOpts) {
152
						titleFormat:function (titre, currentArray, currentIndex, currentOpts) {
142
							var motif = /GUID : ([0-9]+)$/;
153
							var motif = /GUID : ([0-9]+)$/;
143
							motif.exec(titre);
154
							motif.exec(titre);
144
							var guid = RegExp.$1;
155
							var guid = RegExp.$1;
145
							var info = $('#cel-info-'+guid).clone().html();
156
							var info = $('#cel-info-'+guid).clone().html();
146
							var tpl = 
157
							var tpl = 
147
								'<div class="cel-legende">'+
158
								'<div class="cel-legende">'+
148
								'<p class="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+	
159
								'<p class="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+	
149
								(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
160
								(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
150
								'<\/div>';
161
								'<\/div>';
151
							return tpl;
162
							return tpl;
152
						}
163
						}
153
					});
164
					});
154
				} else {
165
				} else {
155
					$('a.cel-img').click(function(event) {
166
					$('a.cel-img').click(function(event) {
156
						ouvrirFenetrePopup($(this));
167
						ouvrirFenetrePopup($(this));
157
						event.preventDefault();
168
						event.preventDefault();
158
					});
169
					});
159
				}
170
				}
160
				
171
				
161
				$(document).ready(function() {
172
				$(document).ready(function() {
162
					$('a.cel-img-contact').live('click', function(event) {
173
					$('a.cel-img-contact').live('click', function(event) {
163
						event.preventDefault();
174
						event.preventDefault();
164
						ouvrirFenetreContact($(this));
175
						ouvrirFenetreContact($(this));
165
					});
176
					});
166
				});
177
				});
167
									
178
									
168
				function ouvrirFenetrePopup(lienImage) {
179
				function ouvrirFenetrePopup(lienImage) {
169
					var url = "?mode=popup&url_image="+lienImage.attr('href')+'&galerie_id=<?= $galerie_id ?>';
180
					var url = "?mode=popup&url_image="+lienImage.attr('href')+'&galerie_id=<?= $galerie_id ?>';
170
					window.open(url, '', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(700)+', height='+(650));
181
					window.open(url, '', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(700)+', height='+(650));
171
				}
182
				}
172
				
183
				
173
				function ouvrirFenetreContact(lienImage) {
184
				function ouvrirFenetreContact(lienImage) {
174
					var url = lienImage.attr("href");
185
					var url = lienImage.attr("href");
175
					window.open(url, '_blank', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(400)+', height='+(550));
186
					window.open(url, '_blank', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(400)+', height='+(550));
176
				}
187
				}
177
				//]]>
188
				//]]>
178
			</script>
189
			</script>
179
	   	<?php endif; ?>
190
	   	<?php endif; ?>
180
		</div>
191
		</div>
181
		<!-- WIDGET:CEL:PHOTO - FIN -->
192
		<!-- WIDGET:CEL:PHOTO - FIN -->
182
	</body>
193
	</body>
183
</html>
194
</html>