Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1480 Rev 1495
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:#DDDDDD;
37
				background-color:#DDDDDD;
38
				color:black;
38
				color:black;
39
			}
39
			}
40
			#cel-photo-contenu<?=$id?>, #cel-galerie-photo<?=$id?>{
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<?=$id?> #cel-photo-extra<?=$id?> 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.6/jquery-1.6.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<?=$id?>" class="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)) : ?>
72
		 		<? if (!empty($titre)) : ?>
73
		 			<?=$titre?>
73
		 			<?=$titre?>
74
		 		<? endif ; ?>
74
		 		<? endif ; ?>
75
		 		<? if($icone_rss) : ?>
75
		 		<? if($icone_rss) : ?>
76
		 		<a href="<?=$flux_rss_url?>" 
76
		 		<a href="<?=$flux_rss_url?>" 
77
					class="cel-photo-flux" 
77
					class="cel-photo-flux" 
78
					title="Suivre les images" 
78
					title="Suivre les images" 
79
					onclick="window.open(this.href);return false;">
79
					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" />
80
					<img src="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
81
				</a>
81
				</a>
82
				<? endif; ?>
82
				<? endif; ?>
83
		 	</h1>
83
		 	</h1>
84
			<div id="cel-galerie-photo<?=$id?>">
84
			<div id="cel-galerie-photo<?=$id?>">
85
			<?php foreach ($items as $item) : ?>
85
			<?php foreach ($items as $item) : ?>
86
				<div class="cel-photo">
86
				<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?>">
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?>">
88
						<img src="<?=sprintf($item['url_tpl'], 'CRX2S')?>" alt="<?=$item['titre']?>"/>
88
						<img src="<?=sprintf($item['url_tpl'], 'CRX2S')?>" alt="<?=$item['titre']?>"/>
89
					</a>
89
					</a>
90
					<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
90
					<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
91
						<strong>
91
						<strong>
92
							<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '') { ?>
92
							<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '') { ?>
93
							<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
93
							<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
94
								onclick="window.open(this.href);return false;"  
94
								onclick="window.open(this.href);return false;"  
95
								title="Cliquez pour accéder à la fiche eFlore">
95
								title="Cliquez pour accéder à la fiche eFlore">
-
 
96
								<?=$item['infos']['nom_sci']?>
-
 
97
							</a> par 
-
 
98
							<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']; ?>" 
-
 
100
								title="Cliquez pour contacter l'auteur de la photo">
96
								<?=$item['titre']?>
101
								<?=$item['infos']['auteur']?>
97
							</a>
102
							</a>
-
 
103
							le <?=$item['infos']['date']?> 
98
							<?php } else { ?>
104
							<?php } else { ?>
99
								<?=$item['titre']?>
105
								<?=$item['titre']?>
100
							<?php } ?>
106
							<?php } ?>
101
						</strong><br />
107
						</strong><br />
102
						<span class="cel-img-date">Publiée le <?=$item['date']?></span>
108
						<span class="cel-img-date">Publiée le <?=$item['date']?></span>
103
		 			</div>
109
		 			</div>
104
				</div>
110
				</div>
105
			<?php endforeach; ?>
111
			<?php endforeach; ?>
106
			<?php if ($extra_actif) : ?>
112
			<?php if ($extra_actif) : ?>
107
				<div id="cel-photo-extra<?=$id?>" class="cel-photo-extra cel-photo">
113
				<div id="cel-photo-extra<?=$id?>" class="cel-photo-extra cel-photo">
108
					<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?>">
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?>">
109
						<img src="<?=sprintf($extra['url_tpl'], 'CRS')?>" alt="<?=$extra['titre']?>"/>
115
						<img src="<?=sprintf($extra['url_tpl'], 'CRS')?>" alt="<?=$extra['titre']?>"/>
110
					</a>
116
					</a>
111
				</div>
117
				</div>
112
			</div>
118
			</div>
113
			<?php endif ?>
119
			<?php endif ?>
114
			<p class="cel-photo-pieds discretion nettoyage">
120
			<p class="cel-photo-pieds discretion nettoyage">
115
				<span class="cel-photo-source">
121
				<span class="cel-photo-source">
116
					Source : 
122
					Source : 
117
					<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
123
					<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
118
				 		CEL
124
				 		CEL
119
				 	</a>
125
				 	</a>
120
			 	</span>
126
			 	</span>
121
			 	<span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
127
			 	<span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
122
			 </p>
128
			 </p>
123
			<script type="text/Javascript">
129
			<script type="text/Javascript">
124
				//<![CDATA[
130
				//<![CDATA[
125
				var utiliseFancybox = "<?= $utilise_fancybox; ?>";   
131
				var utiliseFancybox = "<?= $utilise_fancybox; ?>";   
126
				if(utiliseFancybox) {
132
				if(utiliseFancybox) {
127
					$('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({
133
					$('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({
128
						transitionIn:'elastic',
134
						transitionIn:'elastic',
129
						transitionOut:'elastic',
135
						transitionOut:'elastic',
130
						speedIn	:600, 
136
						speedIn	:600, 
131
						speedOut:200,
137
						speedOut:200,
132
						overlayShow:true,
138
						overlayShow:true,
133
						titleShow:true,
139
						titleShow:true,
134
						titlePosition:'inside',
140
						titlePosition:'inside',
135
						titleFormat:function (titre, currentArray, currentIndex, currentOpts) {
141
						titleFormat:function (titre, currentArray, currentIndex, currentOpts) {
136
							var motif = /GUID : ([0-9]+)$/;
142
							var motif = /GUID : ([0-9]+)$/;
137
							motif.exec(titre);
143
							motif.exec(titre);
138
							var guid = RegExp.$1;
144
							var guid = RegExp.$1;
139
							var info = $('#cel-info-'+guid).clone().html();
145
							var info = $('#cel-info-'+guid).clone().html();
140
							var tpl = 
146
							var tpl = 
141
								'<div class="cel-legende">'+
147
								'<div class="cel-legende">'+
142
								'<p class="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+	
148
								'<p class="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+	
143
								(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
149
								(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
144
								'<\/div>';
150
								'<\/div>';
145
							return tpl;
151
							return tpl;
146
						}
152
						}
147
					});
153
					});
148
				} else {
154
				} else {
149
					$('a.cel-img').click(function(event) {
155
					$('a.cel-img').click(function(event) {
150
						ouvrirFenetrePopup($(this));
156
						ouvrirFenetrePopup($(this));
151
						event.preventDefault();
157
						event.preventDefault();
152
					});
158
					});
153
				}
159
				}
-
 
160
				
-
 
161
				$(document).ready(function() {
-
 
162
					$('a.cel-img-contact').live('click', function(event) {
-
 
163
						event.preventDefault();
-
 
164
						ouvrirFenetreContact($(this));
-
 
165
					});
-
 
166
				});
154
									
167
									
155
				function ouvrirFenetrePopup(lienImage) {
168
				function ouvrirFenetrePopup(lienImage) {
156
					var url = "?mode=popup&url_image="+lienImage.attr('href');
169
					var url = "?mode=popup&url_image="+lienImage.attr('href')+'&galerie_id=<?= $galerie_id ?>';
157
					window.open(url, '', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(700)+', height='+(650));
170
					window.open(url, '', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(700)+', height='+(650));
-
 
171
				}
-
 
172
				
-
 
173
				function ouvrirFenetreContact(lienImage) {
-
 
174
					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));
158
				}
176
				}
159
				//]]>
177
				//]]>
160
			</script>
178
			</script>
161
	   	<?php endif; ?>
179
	   	<?php endif; ?>
162
		</div>
180
		</div>
163
		<!-- WIDGET:CEL:PHOTO - FIN -->
181
		<!-- WIDGET:CEL:PHOTO - FIN -->
164
	</body>
182
	</body>
165
</html>
183
</html>