Subversion Repositories eFlore/Applications.cel

Rev

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

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