Subversion Repositories eFlore/Applications.cel

Rev

Rev 3996 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3996 Rev 3997
Line 1... Line 1...
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" />
Line 17... Line 17...
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
-
 
23
			if (isset($items[0])) {
22
		<?php if (isset($items[0])) : ?>
24
				$iz = $items[0];
-
 
25
				$izUrl = sprintf($iz['url_tpl'], 'CRS');
-
 
26
				echo '<meta property="og:image" content="' . $izUrl . '" />';
23
			<meta property="og:image" content="<?php echo sprintf($items[0]['url_tpl'], 'CRS'); ?>" />
27
			} else {
24
		<?php else : ?>
28
				echo '<meta property="og:image" content="https://resources.tela-botanica.org/tb/img/256x256/carre_englobant.png" />'
25
			<meta property="og:image" content="https://resources.tela-botanica.org/tb/img/256x256/carre_englobant.png" />
29
					.'<meta property="og:image:type" content="image/png" />' 
26
			<meta property="og:image:type" content="image/png" />
30
					.'<meta property="og:image:width" content="256" />' 
27
			<meta property="og:image:width" content="256" />
31
					.'<meta property="og:image:height" content="256" />';
28
			<meta property="og:image:height" content="256" />
32
			}
-
 
33
		?>
29
		<?php endif; ?>
34
		<meta property="og:locale" content="fr_FR" />
30
		<meta property="og:locale" content="fr_FR" />
Line 35... Line 31...
35
 
31
 
36
		<!-- Spécial mobile -->
32
		<!-- Spécial mobile -->
37
		<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
33
		<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
38
		
34
 
39
		<!-- Favicones -->
35
		<!-- Favicones -->
40
		<link rel="icon" type="image/png" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.png" />
36
		<link rel="icon" type="image/png" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.png" />
-
 
37
		<link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
-
 
38
		<!-- Jquery-ui custom css-->
-
 
39
		<link href="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.18/css/smoothness/jquery-ui-1.8.18.custom.css" rel="stylesheet" type="text/css" media="screen" />
-
 
40
		<!-- Bootstrap CSS -->
-
 
41
		<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
-
 
42
		<!-- Fontawesome -->
-
 
43
		<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous" />
-
 
44
		<!-- Leaflet -->
41
		<link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
45
		<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin=""/>
42
		
46
 
43
		<!-- Feuilles de styles -->
47
		<!-- Feuilles de styles -->
44
		<link rel="stylesheet" type="text/css" href="https://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.css" media="screen" />
48
		<link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>photo.css" media="screen" />
-
 
49
		<link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>popup.css" media="screen" />
-
 
50
		<link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>contact.css" media="screen" />
45
		<link rel="stylesheet" type="text/css" href="<?=$url_css?>photo.css" media="screen" />
51
		<link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>photoCommun.css" media="screen" />
-
 
52
		<style type="text/css">
-
 
53
			<?php $dimention_basique = floor(93/$colonne);?>
46
		<style type="text/css">
54
			#cel-photo-contenu<?php echo $id; ?> .grid-sizer,
47
			html {
55
			#cel-photo-contenu<?php echo $id; ?> .grid-item {
48
				overflow:hidden;
56
				width: <?php echo $dimention_basique; ?>vw;
49
			}
57
			}
50
			body{
58
 
51
				overflow:hidden;
-
 
52
				padding:0;
-
 
53
				margin:0;
-
 
54
				width:100%;
-
 
55
				height:100%;
59
			#cel-photo-contenu<?php echo $id; ?> .grid-item {
56
				background-color:#DDDDDD;
-
 
57
				color:black;
60
				height: <?php echo $dimention_basique; ?>vw;
-
 
61
			}
58
			}
62
 
59
			#cel-photo-contenu<?=$id?>, #cel-galerie-photo<?=$id?>{
63
			#cel-photo-contenu<?php echo $id; ?> .grid-item--width2 {
60
				width:<?=(($colonne * 69))?>px;
64
				width: <?php echo ($dimention_basique*2)+1; ?>vw;
-
 
65
			}
61
			}
66
 
62
			#cel-galerie-photo<?=$id?> #cel-photo-extra<?=$id?> img{
67
			#cel-photo-contenu<?php echo $id; ?> .grid-item--height2 {
63
				width:<?=(($colonne * 69)-6)?>px;
68
				height: <?php echo number_format((($dimention_basique*2)+0.99),2); ?>vw;
64
			}
69
			}
65
		</style>
-
 
66
		
70
		</style>
-
 
71
		<!-- Javascript : bibliothèques -->
67
		<!-- Javascript : bibliothèques -->
72
		<!-- Jquery -->
-
 
73
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/1.11.1/jquery-1.11.1.min.js"></script>
-
 
74
 
-
 
75
		<!-- Jquery UI : nécessaire pour le minicalendrier et l'auto-complétion -->
-
 
76
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/jquery-ui.min.js"></script>
-
 
77
		<!-- Jquery Plugins -->
68
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/1.6/jquery-1.6.min.js"></script>
78
		<!-- Jquery Validate : nécessaire pour la validation des formulaires -->
-
 
79
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/jquery.validate.min.js"></script>
-
 
80
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/additional-methods.min.js"></script>
-
 
81
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/messages_fr.js"></script>
-
 
82
		<!-- Jquery Form :nécessaire pour l'upload des images -->
-
 
83
		<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script>
-
 
84
		<!-- Bootstrap -->
-
 
85
		<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
-
 
86
		<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
-
 
87
		<!-- Masonry -->
-
 
88
		<script src="<?php echo $url_js; ?>masonry.pkgd.js"></script>
-
 
89
		<!-- Leaflet -->
-
 
90
		<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin=""></script>
-
 
91
 
-
 
92
		<!-- Script WidgetPhoto -->
-
 
93
		<script type="text/Javascript" src="<?php echo $url_js; ?>WidgetPhotoCommun.js"></script>
-
 
94
		<script type="text/Javascript" src="<?php echo $url_js; ?>WidgetPhoto.js"></script>
-
 
95
		<script type="text/javascript" src="<?php echo $url_js; ?>WidgetPhotoPopup.js"></script>
Line 69... Line 96...
69
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.js"></script>
96
		<script type="text/javascript" src="<?php echo $url_js; ?>WidgetPhotoContact.js"></script>
70
 
97
 
71
		<!--  Google Analytics -->
98
		<!--  Google Analytics -->
72
		<?php if($prod): ?>
99
		<?php if($prod): ?>
73
			<?php include "analytics.html"; ?>
100
			<?php include "analytics.html"; ?>
74
		<?php endif; ?>
101
		<?php endif; ?>
75
	</head>
102
	</head>
76
	<body>
103
	<body style="margin: 0">
77
		<!-- WIDGET:CEL:PHOTO - DEBUT -->
104
		<!-- WIDGET:CEL:PHOTO - DEBUT -->
78
		<div id="cel-photo-contenu<?=$id?>" class="cel-photo-contenu">
105
		<div id="cel-photo-contenu<?php echo $id; ?>" class="cel-photo-contenu">
79
		<?php if (isset($erreurs) || isset($informations)) : ?>
106
		<?php if (isset($erreurs) || isset($informations)) : ?>
80
			<h1>Erreur &amp; informations</h1>
107
			<h1>Erreur &amp; informations</h1>
81
			<p>Impossible d'afficher le flux.</p>
108
			<p>Impossible d'afficher le flux.</p>
82
			<!-- Affichage des erreurs et messages d'information : -->
109
			<!-- Affichage des erreurs et messages d'information : -->
83
			<?php if ($erreurs) : ?>
110
			<?php if ($erreurs) : ?>
84
				<?php foreach ($erreurs as $erreur) : ?>
111
				<?php foreach ($erreurs as $erreur) : ?>
85
					<p class="erreur"><?=$erreur;?></p>
112
					<p class="erreur"><?php echo $erreur; ?></p>
86
				<?php endforeach; ?>
113
				<?php endforeach; ?>
87
			<?php endif; ?>
114
			<?php endif; ?>
88
			
115
 
89
			<?php if ($informations) : ?>
116
			<?php if ($informations) : ?>
90
				<?php foreach ($informations as $information) : ?>
117
				<?php foreach ($informations as $information) : ?>
91
					<p class="info"><?=$information;?></p>
118
					<p class="info"><?php echo $information; ?></p>
92
				<?php endforeach; ?>
119
				<?php endforeach; ?>
93
			<?php endif; ?>
120
			<?php endif; ?>
94
		<?php else : ?>
121
		<?php else : ?>
95
		 	<h1>
122
		 	<h1>
96
		 		<? if (!empty($titre)) : ?>
123
		 		<?php if (!empty($titre)) : ?>
97
		 			<?=$titre?>
124
		 			<?php echo $titre; ?>
-
 
125
		 		<?php endif ; ?>
98
		 		<? endif ; ?>
126
		 		<?php if($icone_rss && !empty($champ_recherche)) : ?>
99
		 		<? if($icone_rss) : ?>
127
				<!--				Affichage du bouton rss si on est pas en mode eflore-->
100
		 		<a href="<?=$flux_rss_url?>" 
128
		 		<a href="<?php echo $flux_rss_url; ?>"
101
					class="cel-photo-flux" 
129
					class="cel-photo-flux"
102
					title="Suivre les images" 
130
					title="Suivre les images"
103
					onclick="window.open(this.href);return false;">
131
					onclick="window.open(this.href);return false;">
104
					<img src="https://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
132
					<img src="https://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
105
				</a>
133
				</a>
106
				<? endif; ?>
134
				<?php endif; ?>
-
 
135
		 	</h1>
-
 
136
		 	<?php if (!empty($champ_recherche)) : ?>
107
		 	</h1>
137
		 		<form id="form-recherche<?php echo $id; ?>" class="form-recherche container" action="">
-
 
138
			 		<div id="bloc-recherche<?php echo $id; ?>" class="bloc-recherche form-inline d-flex justify-content-center w-100">
-
 
139
			 			<input type="text" id="champ-recherche<?php echo $id; ?>"
-
 
140
							   name="champ-recherche<?php echo $id; ?>" class="recherche form-control mr-1"
-
 
141
							   placeholder="Votre recherche" <?php if(isset($filtres["recherche"])){ echo('value="'.$filtres["recherche"].'"');} ?>>
-
 
142
			 			<input type="hidden" id="filtres<?php echo $id; ?>" name="filtres<?php echo $id; ?>">
108
			<div id="cel-galerie-photo<?=$id?>">
143
			 			<a id="bouton-rechercher<?php echo $id; ?>" class="btn btn-success bouton-rechercher mr-1"><i class="fas fa-search"></i>&nbsp;Rechercher</a>
109
			<?php foreach ($items as $item) : ?>
144
			 			<a id="bouton-plus-filtres<?php echo $id; ?>" class="btn btn-outline-secondary bouton-plus-filtres">
-
 
145
			 				<span class="plus">
-
 
146
			 					<i class="fas fa-chevron-down"></i>&nbsp;Plus&nbsp;de&nbsp;filtres
110
				<div class="cel-photo">
147
			 				</span>
-
 
148
			 				<span class="moins hidden">
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?>">
149
			 					<i class="fas fa-chevron-up"></i>&nbsp;Fermer&nbsp;les&nbsp;filtres
-
 
150
			 				</span>
112
						<img src="<?=sprintf($item['url_tpl'], 'CRX2S')?>" alt="<?=$item['titre']?>"/>
151
		 				</a>
-
 
152
			 		</div>
-
 
153
		 			<div id="autres-filtres<?php echo $id; ?>" class="autres-filtres row hidden">
-
 
154
		 				<a id="bouton-fermer-filtres<?php echo $id; ?>" class="btn bouton-fermer-filtres"><i class="fas fa-times"></i></a>
-
 
155
						<div id="bloc-filtres-gauche" class="bloc-filtres bloc-filtres-gauche col-lg-6">
-
 
156
							<div class="row bloc-taxon bloc-filtre">
-
 
157
								<label for="taxon">Taxon</label>
113
					</a>
158
								<input type="text" id="taxon" name="taxon" class="form-control"
-
 
159
								<?php if(isset($filtres["taxon"])){ echo('value="'.$filtres["taxon"].'"');} ?>>
-
 
160
							</div>
-
 
161
							<div class="row bloc-referentiel bloc-filtre">
-
 
162
								<label for="referentiel">Référentiel</label>
-
 
163
								<select name="referentiel" id="referentiel" class="custom-select form-control referentiel">
-
 
164
									<option value="bdtfxr"
-
 
165
									<?php if(isset($filtres["referentiel"]) && ($filtres["referentiel"] == "bdtfxr" || !$filtres["referentiel"])){
114
					<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
166
echo ('selected="selected"');}?> title="Trachéophytes de France métropolitaine">Métropole (index réduit)</option>
-
 
167
									<option value="bdtfx" title="Trachéophytes de France métropolitaine"
-
 
168
									<?php if(isset($filtres["referentiel"]) && $filtres["referentiel"] == "bdtfx"){
115
						<strong>
169
											echo('selected="selected"');
-
 
170
										}?>>Métropole (BDTFX)</option>
-
 
171
									<option value="bdtxa" title="Trachéophytes des Antilles"
-
 
172
									<?php if(isset($filtres["referentiel"]) && $filtres["referentiel"] == "bdtxa"){
-
 
173
											echo('selected="selected"');
-
 
174
										}?>>Antilles françaises
-
 
175
										(BDTXA)</option>
-
 
176
									<option value="bdtre" title="Trachéophytes de La Réunion"
-
 
177
									<?php if(isset($filtres["referentiel"]) && $filtres["referentiel"] == "bdtxe"){
116
							<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '') { ?>
178
											echo('selected="selected"');
-
 
179
										}?>>Réunion (BDTRE)</option>
-
 
180
									<option value="aublet" title="Guyane">Guyane (AUBLET2)
-
 
181
										<?php if(isset($filtres["referentiel"]) && $filtres["referentiel"] == "aublet"){
-
 
182
											echo('selected="selected"');
-
 
183
										}?></option>
-
 
184
									<option value="florical" title="Nouvelle-Calédonie">Nouvelle-Calédonie (FLORICAL)
-
 
185
										<?php if(isset($filtres["referentiel"]) && $filtres["referentiel"] == "florical"){
-
 
186
											echo('selected="selected"');
-
 
187
										}?></option>
-
 
188
									<option value="isfan" title="Afrique du Nord">Afrique du Nord (ISFAN)
-
 
189
										<?php if(isset($filtres["referentiel"]) && $filtres["referentiel"] == "isfan"){
117
							<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
190
											echo('selected="selected"');
-
 
191
										}?></option>
-
 
192
									<option value="apd" title="Afrique de l'Ouest et du Centre"
-
 
193
									<?php if(isset($filtres["referentiel"]) && $filtres["referentiel"] == "apd"){
-
 
194
											echo('selected="selected"');
-
 
195
										}?>>Afrique de l'Ouest
-
 
196
										et du Centre (APD)</option>
-
 
197
									<option value="lbf" title="Liban" <?php if(isset($filtres["referentiel"]) && $filtres["referentiel"] == "lbf"){
-
 
198
											echo('selected="selected"');
-
 
199
										}?>>Liban (LBF)</option>
-
 
200
									<option value="autre" title="Autre/Inconnu"
118
								onclick="window.open(this.href);return false;"  
201
									<?php if(isset($filtres["referentiel"]) && $filtres["referentiel"] == "autre"){
-
 
202
											echo('selected="selected"');
119
								title="Cliquez pour accéder à la fiche eFlore">
203
										}?>>Autre/Inconnu</option>
-
 
204
								</select>
-
 
205
							</div>
120
								<?=$item['infos']['nom_sci']?>
206
							<div class="bloc-periode bloc-filtre">
-
 
207
								<label for="periode" class="d-block">Date (début-fin)</label>
-
 
208
								<div class="form-row">
-
 
209
									<div class="form-group mb-lg-0 mb-1 col">
-
 
210
										<input type="date" id="date_deb" name="date_deb" class="form-control"
-
 
211
										<?php if(isset($filtres["date_deb"])){ echo('value="'.$filtres["date_deb"].'"');} ?>>
-
 
212
									</div>
121
							</a> par 
213
									<div class="form-group mb-0 col">
-
 
214
										<input type="date" id="date_fin" name="date_fin" class="form-control"
-
 
215
										<?php if(isset($filtres["date_fin"])){ echo('value="'.$filtres["date_fin"].'"');} ?>>
122
							<a class="cel-img-contact" 
216
									</div>
-
 
217
								</div>
-
 
218
								<input type="hidden" id="periode" name="periode">
-
 
219
							</div>
-
 
220
							<div class="row  bloc-localite bloc-filtre">
-
 
221
								<label for="commune">Localité</label>
-
 
222
								<input type="text" id="commune" name="commune" class="form-control"
-
 
223
								<?php if(isset($filtres["commune"])){ echo('value="'.$filtres["commune"].'"');} ?>>
-
 
224
							</div>
-
 
225
							<div class="row  bloc- bloc-filtre">
-
 
226
								<label for="dept">Département</label>
-
 
227
								<input type="text" id="dept" name="dept" class="form-control"
-
 
228
									   placeholder="Numéros (séparés par des virgules)"
-
 
229
								<?php if(isset($filtres["dept"])){ echo('value="'.$filtres["dept"].'"');} ?>>
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']; ?>" 
230
							</div>
-
 
231
							<div class="row  bloc- bloc-filtre">
-
 
232
								<label for="pays">Pays</label>
124
								title="Cliquez pour contacter l'auteur de la photo">
233
								<input type="text" id="pays" name="pays" class="form-control"
-
 
234
								<?php if(isset($filtres["pays"])){ echo('value="'.$filtres["pays"].'"');} ?>>
-
 
235
							</div>
125
								<?=$item['infos']['auteur']?>
236
						</div>
126
							</a>
237
						<div id="bloc-filtres-droite" class="bloc-filtres bloc-filtres-droite col-lg-6">
-
 
238
							<div class="row  bloc- bloc-filtre">
-
 
239
								<label for="auteur">Auteur</label>
-
 
240
								<input type="text" id="auteur" name="auteur" class="form-control"
-
 
241
									   placeholder="Nom, email" <?php if(isset($filtres["auteur"])){ echo('value="'.$filtres["auteur"].'"');} ?>>
-
 
242
							</div>
-
 
243
							<div class="row  bloc- bloc-filtre">
-
 
244
								<label for="programme">Programme</label>
-
 
245
								<input type="text" id="programme" name="programme" class="form-control"
-
 
246
								<?php if(isset($filtres["programme"])){ echo('value="'.$filtres["programme"].'"');} ?>>
-
 
247
							</div>
-
 
248
							<div class="row  bloc- bloc-filtre">
-
 
249
								<label for="tag">Tags (tous)</label>
127
							à <?= $item['infos']['localite'] ?>
250
								<input type="text" id="tag" name="tag" class="form-control"
-
 
251
								<?php if(isset($filtres["tag"])){ echo('value="'.$filtres["tag"].'"');} ?>>
-
 
252
							</div>
-
 
253
							<div class="list bloc-photos-affichees bloc-filtre mt-3">
-
 
254
								<div class="form-check mt-3">
-
 
255
									<input type="checkbox" id="standard" name="standard"
128
							le <?=$item['infos']['date']?> 
256
										   class="non-standards form-check-input" value="non-standard"
129
							<?php } else { ?>
257
									<?php if(isset($filtres["non_standard"]) && $filtres["non_standard"]){
-
 
258
											echo('checked');
-
 
259
										}?>>
130
								<?=$item['titre']?>
260
									<label for="standard" class="non-standards form-check-label">Afficher les
-
 
261
										photos des observations "standards"</label>
131
							<?php } ?>
262
								</div>
-
 
263
 
-
 
264
								<div class="form-check mt-3 hidden">
-
 
265
									<input type="checkbox" id="smartphone-anonyme" name="photos-affichees" class="smartphone-anonyme form-check-input" value="smartphone-anonyme">
-
 
266
									<label for="smartphone-anonyme" class="smartphone-anonyme form-check-label">Afficher les photos des observations smartphone anonyme</label>
-
 
267
								</div>
132
						</strong><br />
268
							</div>
-
 
269
						</div>
-
 
270
		 			</div>
-
 
271
			 	</form>
-
 
272
		 	<?php else : ?>
-
 
273
<!--				Pas de champ de recherche -> Affichage style eflore-->
-
 
274
			<ul class="liste-illustrations">
-
 
275
				<li class="icone-organe-list <?php echo $filtres['tag'] == 'fleur' ? 'active' : ''; ?>">
-
 
276
					<a class="lien-images-organes fourni" data-tag="fleur" title="fleur" id="eflore-fleur">
-
 
277
						<img class="icone-organe" src="https://www.tela-botanica.org/eflore/consultation/presentations/images/icones_tags/fleur.png" alt="fleur">
-
 
278
						fleur			</a>
-
 
279
				</li>
-
 
280
				<li class="icone-organe-list <?php echo $filtres['tag'] == 'feuille' ? 'active' : ''; ?>">
133
						<span class="cel-img-date">Publiée le <?=$item['date']?></span>
281
					<a class="lien-images-organes fourni" data-tag="feuille" title="feuille" id="eflore-feuille">
-
 
282
						<img class="icone-organe" src="https://www.tela-botanica.org/eflore/consultation/presentations/images/icones_tags/feuille.png" alt="feuille">feuille</a>
-
 
283
				</li>
-
 
284
				<li class="icone-organe-list <?php echo $filtres['tag'] == 'fruit' ? 'active' : ''; ?>">
-
 
285
					<a class="lien-images-organes fourni" data-tag="fruit" title="fruit" id="eflore-fruit">
-
 
286
						<img class="icone-organe" src="https://www.tela-botanica.org/eflore/consultation/presentations/images/icones_tags/fruit.png" alt="fruit">fruit</a>
-
 
287
				</li>
-
 
288
				<li class="icone-organe-list <?php echo $filtres['tag'] == 'ecorce' ? 'active' : ''; ?>">
-
 
289
					<a class="lien-images-organes fourni" data-tag="ecorce" title="ecorce" id="eflore-ecorce">
-
 
290
						<img class="icone-organe" src="https://www.tela-botanica.org/eflore/consultation/presentations/images/icones_tags/ecorce.png" alt="ecorce">ecorce</a>
-
 
291
				</li>
-
 
292
				<li class="icone-organe-list <?php echo $filtres['tag'] == 'port' ? 'active' : ''; ?>">
-
 
293
					<a class="lien-images-organes fourni" data-tag="port" title="port" id="eflore-port">
-
 
294
						<img class="icone-organe" src="https://www.tela-botanica.org/eflore/consultation/presentations/images/icones_tags/port.png" alt="port">port</a>
-
 
295
				</li>
-
 
296
				<li class="icone-organe-list <?php echo $filtres['tag'] == 'rameau' ? 'active' : ''; ?>">
-
 
297
					<a class="lien-images-organes fourni" data-tag="rameau" title="rameau" id="eflore-rameau">
-
 
298
						<img class="icone-organe" src="https://www.tela-botanica.org/eflore/consultation/presentations/images/icones_tags/rameau.png" alt="rameau">rameau</a>
134
		 			</div>
299
				</li>
-
 
300
			</ul>
-
 
301
			<?php endif ; ?>
-
 
302
			<div id="cel-galerie-photo<?php echo $id; ?>"
-
 
303
				 class="cel-galerie-photo <?php echo empty($champ_recherche) ? 'eflore' : ''; ?>">
-
 
304
				<div class="grid-sizer"></div>
-
 
305
 
-
 
306
				<?php foreach ($items as $t =>$tag) : ?>
-
 
307
					<?php foreach ($tag as $i => $item) : ?>
-
 
308
						<?php
-
 
309
						$auteurTruncatedEmail = preg_replace('/[^@]+$/i', '...', $item['utilisateur']['mail_utilisateur']);
-
 
310
							$auteur = trim($item['utilisateur']['nom_utilisateur']) ? $item['utilisateur']['nom_utilisateur'] : $auteurTruncatedEmail;
-
 
311
							$dimention_img = 'CRS';
135
				</div>
312
							$class_extra = '';
-
 
313
						?>
-
 
314
						<?php if ( $i === 0 && $extra_actif ) : ?>
-
 
315
							<?php
-
 
316
								$dimention_img = 'CRL';
-
 
317
								$class_extra = ' grid-item--width2 grid-item--height2';
136
			<?php endforeach; ?>
318
							?>
-
 
319
						<?php endif; ?>
137
			<?php if ($extra_actif) : ?>
320
						<div class="cel-photo grid-item <?php echo $class_extra; ?> <?php echo $t; ?>">
138
				<div id="cel-photo-extra<?=$id?>" class="cel-photo-extra cel-photo">
321
							<a href="<?php echo sprintf($item['url_tpl'], 'O'); ?>" class="cel-img"
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?>">
322
							   title="<?php echo $item['titre']; ?> - Publiée le <?php echo $item['date_redige']; ?> - GUID : <?php echo $item['id_photo_formate']; ?>" rel="galerie-princ<?php echo $id; ?>">
-
 
323
								<img src="<?php echo sprintf($item['url_tpl'], $dimention_img). '?timestamp=' . time(); ?>" alt="<?php echo $item['titre']; ?>">
-
 
324
							</a>
-
 
325
							<div id="cel-info-<?php echo $item['id_photo_formate']; ?>" class="cel-infos">
-
 
326
								<strong>
-
 
327
									<?php if (!empty($item['lien'])) : ?>
-
 
328
										<a class="cel-img-titre" href="<?php echo $item['lien']; ?>"
-
 
329
											onclick="window.open(this.href);return false;"
-
 
330
											title="Cliquez pour accéder à la fiche eFlore">
-
 
331
											<?php echo $item['obs']['nom_sel']; ?>
-
 
332
										</a><br />
-
 
333
										par <?php
-
 
334
											if ($item['is_auteur_tela']) {
-
 
335
											?>
-
 
336
												<a class="cel-img-contact"
-
 
337
												href="<?php echo $item['urlProfil']; ?>"
-
 
338
												title="Afficher le profil" target="_blank">
-
 
339
												<?php echo $auteur; ?>
-
 
340
												</a>
-
 
341
											<?php
-
 
342
											} else {
-
 
343
											echo $auteur;
-
 
344
											};
-
 
345
											?>
-
 
346
									<?php else : ?>
-
 
347
										<?php echo $item['titre']; ?>
-
 
348
									<?php endif; ?>
-
 
349
								</strong>
-
 
350
							</div>
-
 
351
						</div>
-
 
352
					<?php endforeach; ?>
-
 
353
				<?php endforeach; ?>
-
 
354
				<div id="next-previous-buttons">
-
 
355
					<?php if (0 < $start): ?>
-
 
356
						<a id="bouton-photos-precedentes" href="<?php echo $url_widget_photos_precedente;?>" class="btn btn-success"><i class="fas fa-backward"></i>&nbsp;Photos precedentes</a>
-
 
357
					<?php endif;?>
-
 
358
 
-
 
359
					<?php if ($total > ($start + $limit)): ?>
-
 
360
						<a id="bouton-photos-suivantes" href="<?php echo $url_widget_photos_suivantes;?>" class="btn btn-success"><i class="fas fa-forward"></i>&nbsp;Photos suivantes</a>
-
 
361
					<?php else :?>
140
						<img src="<?=sprintf($extra['url_tpl'], 'CRS')?>" alt="<?=$extra['titre']?>"/>
362
						<div class="alert alert-secondary mt-0 ml-1" role="alert" style="display: inline-block;">Toutes les photos disponibles, correspondant à vos critères, ont été affichées</div>
141
					</a>
363
					<?php endif;?>
142
				</div>
-
 
143
			</div>
364
				</div>
144
			<?php endif ?>
365
			</div>
145
			<p class="cel-photo-pieds discretion nettoyage">
366
			<p class="cel-photo-pieds discretion nettoyage">
146
				<span class="cel-photo-source">
367
				<span class="cel-photo-source">
147
					Source : 
368
					Source :
148
					<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
369
					<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
149
				 		CEL
370
				 		CEL
150
				 	</a>
371
				 	</a>
151
			 	</span>
372
			 	</span>
152
			 	<span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
-
 
153
			 </p>
-
 
154
			<script type="text/Javascript">
-
 
155
				//<![CDATA[
-
 
156
				var utiliseFancybox = "<?= $utilise_fancybox; ?>";   
-
 
157
				if(utiliseFancybox) {
-
 
158
					$('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({
-
 
159
						transitionIn:'elastic',
-
 
160
						transitionOut:'elastic',
-
 
161
						speedIn	:600, 
-
 
162
						speedOut:200,
-
 
163
						overlayShow:true,
-
 
164
						titleShow:true,
-
 
165
						titlePosition:'inside',
-
 
166
						titleFormat:function (titre, currentArray, currentIndex, currentOpts) {
-
 
167
							var motif = /GUID : ([0-9]+)$/;
-
 
168
							motif.exec(titre);
-
 
169
							var guid = RegExp.$1;
-
 
170
							var info = $('#cel-info-'+guid).clone().html();
-
 
171
							var tpl = 
-
 
172
								'<div class="cel-legende">'+
-
 
173
								'<p class="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+	
-
 
174
								(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
-
 
175
								'<\/div>';
-
 
176
							return tpl;
-
 
177
						}
-
 
178
					});
-
 
179
				} else {
-
 
180
					$('a.cel-img').click(function(event) {
-
 
181
						ouvrirFenetrePopup($(this));
-
 
182
						event.preventDefault();
-
 
183
					});
-
 
184
				}
-
 
185
				
-
 
186
				$(document).ready(function() {
-
 
187
					$('a.cel-img-contact').live('click', function(event) {
-
 
188
						event.preventDefault();
-
 
189
						ouvrirFenetreContact($(this));
-
 
190
					});
-
 
191
				});
-
 
192
									
-
 
193
				function ouvrirFenetrePopup(lienImage) {
-
 
194
					var url = "?mode=popup&url_image="+lienImage.attr('href')+'&galerie_id=<?= $galerie_id ?>';
-
 
195
					window.open(url, '', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(700)+', height='+(650));
373
			 	<span class="cel-photo-date-generation">Au <?php echo strftime('%A %d %B %Y à %H:%M:%S'); ?></span>
196
				}
-
 
197
				
-
 
198
				function ouvrirFenetreContact(lienImage) {
-
 
199
					var url = lienImage.attr("href");
-
 
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));
-
 
201
				}
-
 
202
				//]]>
374
			 </p>
203
			</script>
375
 
-
 
376
	   	<?php endif; ?>
-
 
377
		</div>
-
 
378
		<!-- modale -->
-
 
379
		<div id="fenetre-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="fenetre-modal-label" style="display: none;" aria-hidden="true">
-
 
380
			<div class="modal-dialog modal-dialog-centered" role="document">
-
 
381
				<div class="modal-content">
-
 
382
					<div class="modal-header">
-
 
383
						<h5 class="modal-title" id="fenetre-modal-label"></h5>
-
 
384
						<button type="button" class="close btn btn-sm btn-secondary" data-dismiss="modal" aria-label="Close">
-
 
385
							<span aria-hidden="true">&times;</span>
-
 
386
						</button>
-
 
387
					</div>
-
 
388
					<div class="modal-body row" id="print_content"></div>
-
 
389
					<div class="modal-footer hidden"></div>
-
 
390
				</div>
204
	   	<?php endif; ?>
391
			</div>
-
 
392
		</div>
-
 
393
		<!-- WIDGET:CEL:PHOTO - FIN -->
-
 
394
		<script type="text/Javascript">
-
 
395
			//<![CDATA[
-
 
396
				var widgetProp = {
-
 
397
					'id'              : "<?php echo $id; ?>",
-
 
398
					'galerieId'       : "<?php echo $galerie_id; ?>",
-
 
399
				};
-
 
400
 
-
 
401
				$( document ).ready( function() {
-
 
402
					photo = new WidgetPhoto( widgetProp );
-
 
403
					photo.init();
-
 
404
				});
205
		</div>
405
			//]]>
206
		<!-- WIDGET:CEL:PHOTO - FIN -->
-
 
207
	</body>
406
		</script>
-
 
407
	</body>