580 |
jpm |
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">
|
|
|
3 |
<head>
|
|
|
4 |
<title>Photographies publiques du CEL - Tela Botanica</title>
|
3630 |
idir |
5 |
|
580 |
jpm |
6 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
|
|
7 |
<meta http-equiv="Content-style-type" content="text/css" />
|
|
|
8 |
<meta http-equiv="Content-script-type" content="text/javascript" />
|
|
|
9 |
<meta http-equiv="Content-language" content="fr" />
|
3630 |
idir |
10 |
|
580 |
jpm |
11 |
<meta name="revisit-after" content="15 days" />
|
|
|
12 |
<meta name="robots" content="index,follow" />
|
2516 |
mathias |
13 |
<meta name="author" content="Tela Botanica" />
|
580 |
jpm |
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" />
|
|
|
16 |
|
2515 |
mathias |
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" />
|
2517 |
mathias |
22 |
<?php
|
|
|
23 |
if (isset($items[0])) {
|
|
|
24 |
$iz = $items[0];
|
2518 |
mathias |
25 |
$izUrl = sprintf($iz['url_tpl'], 'CRS');
|
2517 |
mathias |
26 |
echo '<meta property="og:image" content="' . $izUrl . '" />';
|
|
|
27 |
} else {
|
2993 |
mathias |
28 |
echo '<meta property="og:image" content="https://resources.tela-botanica.org/tb/img/256x256/carre_englobant.png" />'
|
3630 |
idir |
29 |
.'<meta property="og:image:type" content="image/png" />'
|
|
|
30 |
.'<meta property="og:image:width" content="256" />'
|
2517 |
mathias |
31 |
.'<meta property="og:image:height" content="256" />';
|
|
|
32 |
}
|
|
|
33 |
?>
|
2515 |
mathias |
34 |
<meta property="og:locale" content="fr_FR" />
|
|
|
35 |
|
580 |
jpm |
36 |
<!-- Spécial mobile -->
|
|
|
37 |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
3630 |
idir |
38 |
|
580 |
jpm |
39 |
<!-- Favicones -->
|
2993 |
mathias |
40 |
<link rel="icon" type="image/png" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.png" />
|
|
|
41 |
<link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
|
3630 |
idir |
42 |
<!-- Jquery-ui custom css-->
|
|
|
43 |
<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" />
|
|
|
44 |
<!-- Bootstrap CSS -->
|
|
|
45 |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
|
|
|
46 |
<!-- Fontawesome -->
|
|
|
47 |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
|
|
|
48 |
|
580 |
jpm |
49 |
<!-- Feuilles de styles -->
|
3630 |
idir |
50 |
<link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>photo.css" media="screen" />
|
|
|
51 |
<link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>popup.css" media="screen" />
|
|
|
52 |
<link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>contact.css" media="screen" />
|
|
|
53 |
<link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>photoCommun.css" media="screen" />
|
583 |
jpm |
54 |
<style type="text/css">
|
3630 |
idir |
55 |
<?php $dimention_basique = floor(93/$colonne);?>
|
|
|
56 |
#cel-photo-contenu<?php echo $id; ?> .grid-sizer,
|
|
|
57 |
#cel-photo-contenu<?php echo $id; ?> .grid-item {
|
|
|
58 |
width: <?php echo $dimention_basique; ?>vw;
|
583 |
jpm |
59 |
}
|
3630 |
idir |
60 |
|
|
|
61 |
#cel-photo-contenu<?php echo $id; ?> .grid-item {
|
|
|
62 |
height: <?php echo $dimention_basique; ?>vw;
|
583 |
jpm |
63 |
}
|
3630 |
idir |
64 |
|
|
|
65 |
#cel-photo-contenu<?php echo $id; ?> .grid-item--width2 {
|
|
|
66 |
width: <?php echo ($dimention_basique*2)+1; ?>vw;
|
587 |
jpm |
67 |
}
|
3630 |
idir |
68 |
|
|
|
69 |
#cel-photo-contenu<?php echo $id; ?> .grid-item--height2 {
|
|
|
70 |
height: <?php echo number_format((($dimention_basique*2)+0.99),2); ?>vw;
|
587 |
jpm |
71 |
}
|
583 |
jpm |
72 |
</style>
|
587 |
jpm |
73 |
<!-- Javascript : bibliothèques -->
|
3630 |
idir |
74 |
<!-- Jquery -->
|
|
|
75 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/1.11.1/jquery-1.11.1.min.js"></script>
|
2848 |
mathias |
76 |
|
3630 |
idir |
77 |
<!-- Jquery UI : nécessaire pour le minicalendrier et l'auto-complétion -->
|
|
|
78 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/jquery-ui.min.js"></script>
|
|
|
79 |
<!-- Jquery Plugins -->
|
|
|
80 |
<!-- Jquery Validate : nécessaire pour la validation des formulaires -->
|
|
|
81 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/jquery.validate.min.js"></script>
|
|
|
82 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/additional-methods.min.js"></script>
|
|
|
83 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/messages_fr.js"></script>
|
|
|
84 |
<!-- Jquery Form :nécessaire pour l'upload des images -->
|
|
|
85 |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script>
|
|
|
86 |
<!-- Bootstrap -->
|
|
|
87 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
|
|
|
88 |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
|
|
|
89 |
<!-- Masonry -->
|
|
|
90 |
<script src="<?php echo $url_js; ?>masonry.pkgd.js"></script>
|
|
|
91 |
<!-- Script WidgetPhoto -->
|
|
|
92 |
<script type="text/Javascript" src="<?php echo $url_js; ?>WidgetPhotoCommun.js"></script>
|
|
|
93 |
<script type="text/Javascript" src="<?php echo $url_js; ?>WidgetPhoto.js"></script>
|
|
|
94 |
<script type="text/javascript" src="<?php echo $url_js; ?>WidgetPhotoPopup.js"></script>
|
|
|
95 |
<script type="text/javascript" src="<?php echo $url_js; ?>WidgetPhotoContact.js"></script>
|
|
|
96 |
|
2848 |
mathias |
97 |
<!-- Google Analytics -->
|
|
|
98 |
<?php if($prod): ?>
|
|
|
99 |
<?php include "analytics.html"; ?>
|
|
|
100 |
<?php endif; ?>
|
580 |
jpm |
101 |
</head>
|
|
|
102 |
<body>
|
|
|
103 |
<!-- WIDGET:CEL:PHOTO - DEBUT -->
|
3630 |
idir |
104 |
<div id="cel-photo-contenu<?php echo $id; ?>" class="cel-photo-contenu">
|
580 |
jpm |
105 |
<?php if (isset($erreurs) || isset($informations)) : ?>
|
|
|
106 |
<h1>Erreur & informations</h1>
|
|
|
107 |
<p>Impossible d'afficher le flux.</p>
|
|
|
108 |
<!-- Affichage des erreurs et messages d'information : -->
|
|
|
109 |
<?php if ($erreurs) : ?>
|
|
|
110 |
<?php foreach ($erreurs as $erreur) : ?>
|
3630 |
idir |
111 |
<p class="erreur"><?php echo $erreur; ?></p>
|
580 |
jpm |
112 |
<?php endforeach; ?>
|
|
|
113 |
<?php endif; ?>
|
3630 |
idir |
114 |
|
580 |
jpm |
115 |
<?php if ($informations) : ?>
|
|
|
116 |
<?php foreach ($informations as $information) : ?>
|
3630 |
idir |
117 |
<p class="info"><?php echo $information; ?></p>
|
580 |
jpm |
118 |
<?php endforeach; ?>
|
|
|
119 |
<?php endif; ?>
|
|
|
120 |
<?php else : ?>
|
|
|
121 |
<h1>
|
3630 |
idir |
122 |
<?php if (!empty($titre)) : ?>
|
|
|
123 |
<?php echo $titre; ?>
|
|
|
124 |
<?php endif ; ?>
|
|
|
125 |
<?php if($icone_rss) : ?>
|
|
|
126 |
<a href="<?php echo $flux_rss_url; ?>"
|
|
|
127 |
class="cel-photo-flux"
|
|
|
128 |
title="Suivre les images"
|
580 |
jpm |
129 |
onclick="window.open(this.href);return false;">
|
2993 |
mathias |
130 |
<img src="https://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
|
580 |
jpm |
131 |
</a>
|
3630 |
idir |
132 |
<?php endif; ?>
|
583 |
jpm |
133 |
</h1>
|
3630 |
idir |
134 |
<form id="form-recherche<?php echo $id; ?>" class="form-recherche container" action="">
|
|
|
135 |
<div id="bloc-recherche<?php echo $id; ?>" class="bloc-recherche form-inline d-flex justify-content-center w-100">
|
|
|
136 |
<input type="text" id="champ-recherche<?php echo $id; ?>" name="champ-recherche<?php echo $id; ?>" class="recherche form-control mr-1" placeholder="Votre recherche">
|
|
|
137 |
<input type="hidden" id="filtres<?php echo $id; ?>" name="filtres<?php echo $id; ?>">
|
|
|
138 |
<a id="bouton-rechercher<?php echo $id; ?>" class="btn btn-success bouton-rechercher mr-1"><i class="fas fa-search"></i> Rechercher</a>
|
|
|
139 |
<a id="bouton-plus-filtres<?php echo $id; ?>" class="btn btn-outline-secondary bouton-plus-filtres">
|
|
|
140 |
<span class="plus">
|
|
|
141 |
<i class="fas fa-chevron-down"></i> Plus de filtres
|
|
|
142 |
</span>
|
|
|
143 |
<span class="moins hidden">
|
|
|
144 |
<i class="fas fa-chevron-up"></i> Fermer les filtres
|
|
|
145 |
</span>
|
|
|
146 |
</a>
|
|
|
147 |
</div>
|
|
|
148 |
<div id="autres-filtres<?php echo $id; ?>" class="autres-filtres row hidden">
|
|
|
149 |
<a id="bouton-fermer-filtres<?php echo $id; ?>" class="btn bouton-fermer-filtres"><i class="fas fa-times"></i></a>
|
|
|
150 |
<div id="bloc-filtres-gauche" class="bloc-filtres bloc-filtres-gauche col-lg-6">
|
|
|
151 |
<div class="row bloc-taxon bloc-filtre">
|
|
|
152 |
<label for="taxon">Taxon</label>
|
|
|
153 |
<input type="text" id="taxon" name="taxon" class="form-control">
|
|
|
154 |
</div>
|
|
|
155 |
<div class="row bloc-referentiel bloc-filtre">
|
|
|
156 |
<label for="referentiel">Référentiel</label>
|
|
|
157 |
<select name="referentiel" id="referentiel" class="custom-select form-control referentiel">
|
|
|
158 |
<option value="bdtfxr" selected="selected" title="Trachéophytes de France métropolitaine">Métropole (index réduit)</option>
|
|
|
159 |
<option value="bdtfx" title="Trachéophytes de France métropolitaine">Métropole (BDTFX)</option>
|
|
|
160 |
<option value="bdtxa" title="Trachéophytes des Antilles">Antilles françaises (BDTXA)</option>
|
|
|
161 |
<option value="bdtre" title="Trachéophytes de La Réunion">Réunion (BDTRE)</option>
|
|
|
162 |
<option value="aublet" title="Guyane">Guyane (AUBLET2)</option>
|
|
|
163 |
<option value="florical" title="Nouvelle-Calédonie">Nouvelle-Calédonie (FLORICAL)</option>
|
|
|
164 |
<option value="isfan" title="Afrique du Nord">Afrique du Nord (ISFAN)</option>
|
|
|
165 |
<option value="apd" title="Afrique de l'Ouest et du Centre">Afrique de l'Ouest et du Centre (APD)</option>
|
|
|
166 |
<option value="lbf" title="Liban">Liban (LBF)</option>
|
|
|
167 |
<option value="autre" title="Autre/Inconnu">Autre/Inconnu</option>
|
|
|
168 |
</select>
|
|
|
169 |
</div>
|
|
|
170 |
<div class="bloc-periode bloc-filtre">
|
|
|
171 |
<label for="periode" class="d-block">Date (début-fin)</label>
|
|
|
172 |
<div class="form-row">
|
|
|
173 |
<div class="form-group mb-lg-0 mb-1 col">
|
|
|
174 |
<input type="date" id="periode-debut" name="periode-debut" class="form-control">
|
|
|
175 |
</div>
|
|
|
176 |
<div class="form-group mb-0 col">
|
|
|
177 |
<input type="date" id="periode-fin" name="periode-fin" class="form-control">
|
|
|
178 |
</div>
|
|
|
179 |
</div>
|
|
|
180 |
<input type="hidden" id="periode" name="periode">
|
|
|
181 |
</div>
|
|
|
182 |
<div class="row bloc-localite bloc-filtre">
|
|
|
183 |
<label for="localite">Localité</label>
|
|
|
184 |
<input type="text" id="localite" name="localite" class="form-control">
|
|
|
185 |
</div>
|
|
|
186 |
<div class="row bloc- bloc-filtre">
|
|
|
187 |
<label for="departement">Département</label>
|
|
|
188 |
<input type="text" id="departement" name="departement" class="form-control" placeholder="Numéros (séparés par des virgules)">
|
|
|
189 |
</div>
|
|
|
190 |
<div class="row bloc- bloc-filtre">
|
|
|
191 |
<label for="pays">Pays</label>
|
|
|
192 |
<input type="text" id="pays" name="pays" class="form-control">
|
|
|
193 |
</div>
|
|
|
194 |
</div>
|
|
|
195 |
<div id="bloc-filtres-droite" class="bloc-filtres bloc-filtres-droite col-lg-6">
|
|
|
196 |
<div class="row bloc- bloc-filtre">
|
|
|
197 |
<label for="auteur">Auteur</label>
|
|
|
198 |
<input type="text" id="auteur" name="auteur" class="form-control" placeholder="Nom, email">
|
|
|
199 |
</div>
|
|
|
200 |
<div class="row bloc- bloc-filtre">
|
|
|
201 |
<label for="programme">Programme</label>
|
|
|
202 |
<input type="text" id="programme" name="programme" class="form-control">
|
|
|
203 |
</div>
|
|
|
204 |
<div class="row bloc- bloc-filtre">
|
|
|
205 |
<label for="tags">Tags (tous)</label>
|
|
|
206 |
<input type="text" id="tags" name="tags" class="form-control">
|
|
|
207 |
</div>
|
|
|
208 |
<div class="list bloc-photos-affichees bloc-filtre mt-3">
|
|
|
209 |
<div class="form-check mt-3">
|
|
|
210 |
<input type="checkbox" id="non-standards" name="photos-affichees" class="non-standards form-check-input" value="non-standards">
|
|
|
211 |
<label for="non-standards" class="non-standards form-check-label">Afficher les photos des observations non "standards"</label>
|
|
|
212 |
</div>
|
|
|
213 |
<div class="form-check mt-3">
|
|
|
214 |
<input type="checkbox" id="indesirables" name="photos-affichees" class="indesirables form-check-input" value="indesirables">
|
|
|
215 |
<label for="indesirables" class="indesirables form-check-label">Afficher les photos signalées comme indésirables</label>
|
|
|
216 |
</div>
|
|
|
217 |
<div class="form-check mt-3">
|
|
|
218 |
<input type="checkbox" id="smartphone-anonyme" name="photos-affichees" class="smartphone-anonyme form-check-input" value="smartphone-anonyme">
|
|
|
219 |
<label for="smartphone-anonyme" class="smartphone-anonyme form-check-label">Afficher les photos des observations smartphone anonyme</label>
|
|
|
220 |
</div>
|
|
|
221 |
</div>
|
|
|
222 |
</div>
|
|
|
223 |
</div>
|
|
|
224 |
</form>
|
|
|
225 |
<div id="cel-galerie-photo<?php echo $id; ?>" class="cel-galerie-photo">
|
|
|
226 |
<div class="grid-sizer"></div>
|
|
|
227 |
<?php foreach ($items as $i => $item) : ?>
|
|
|
228 |
<?php
|
|
|
229 |
$dimention_img = 'CRS';
|
|
|
230 |
$class_extra = '';
|
|
|
231 |
?>
|
|
|
232 |
<?php if ( $i === 0 && $extra_actif ) : ?>
|
|
|
233 |
<?php
|
|
|
234 |
$dimention_img = 'CRL';
|
|
|
235 |
$class_extra = ' grid-item--width2 grid-item--height2';
|
|
|
236 |
?>
|
|
|
237 |
<?php endif; ?>
|
|
|
238 |
<div class="cel-photo grid-item <?php echo $class_extra; ?>">
|
|
|
239 |
<a href="<?php echo sprintf($item['url_tpl'], 'O'); ?>" class="cel-img" title="<?php echo $item['titre']; ?> - Publiée le <?php echo $item['date']; ?> - GUID : <?php echo $item['guid']; ?>" rel="galerie-princ<?php echo $id; ?>">
|
|
|
240 |
<img src="<?php echo sprintf($item['url_tpl'], $dimention_img); ?>" alt="<?php echo $item['titre']; ?>">
|
|
|
241 |
</a>
|
|
|
242 |
<div id="cel-info-<?php echo $item['guid']; ?>" class="cel-infos">
|
|
|
243 |
<strong>
|
|
|
244 |
<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '') : ?>
|
|
|
245 |
<a class="cel-img-titre" href="<?php echo $item['eflore_url']; ?>"
|
|
|
246 |
onclick="window.open(this.href);return false;"
|
|
|
247 |
title="Cliquez pour accéder à la fiche eFlore">
|
|
|
248 |
<?php echo $item['infos']['nom_sci']; ?>
|
|
|
249 |
</a><br />
|
|
|
250 |
par
|
|
|
251 |
<a class="cel-img-contact"
|
|
|
252 |
href="?mode=contact&nn=<?php echo urlencode($item['infos']['nn']); ?>&nom_sci=<?php echo urlencode($item['infos']['nom_sci']); ?>&date=<?php echo urlencode($item['infos']['date']); ?>&id_image=<?php echo $item['guid']; ?>&auteur=<?php echo $item['infos']['auteur']; ?>"
|
|
|
253 |
title="Cliquez pour contacter l'auteur de la photo">
|
|
|
254 |
<?php echo $item['infos']['auteur']; ?>
|
|
|
255 |
</a>
|
|
|
256 |
<?php else : ?>
|
|
|
257 |
<?php echo $item['titre']; ?>
|
|
|
258 |
<?php endif; ?>
|
|
|
259 |
</strong>
|
|
|
260 |
</div>
|
|
|
261 |
</div>
|
|
|
262 |
<?php endforeach; ?>
|
|
|
263 |
|
580 |
jpm |
264 |
</div>
|
879 |
jpm |
265 |
<p class="cel-photo-pieds discretion nettoyage">
|
|
|
266 |
<span class="cel-photo-source">
|
3630 |
idir |
267 |
Source :
|
1480 |
aurelien |
268 |
<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
|
879 |
jpm |
269 |
CEL
|
|
|
270 |
</a>
|
|
|
271 |
</span>
|
3630 |
idir |
272 |
<span class="cel-photo-date-generation">Au <?php echo strftime('%A %d %B %Y à %H:%M:%S'); ?></span>
|
879 |
jpm |
273 |
</p>
|
3630 |
idir |
274 |
|
580 |
jpm |
275 |
<?php endif; ?>
|
|
|
276 |
</div>
|
3630 |
idir |
277 |
<!-- modale -->
|
|
|
278 |
<div id="fenetre-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="fenetre-modal-label" style="display: none;" aria-hidden="true">
|
|
|
279 |
<div class="modal-dialog modal-dialog-centered" role="document">
|
|
|
280 |
<div class="modal-content">
|
|
|
281 |
<div class="modal-header">
|
|
|
282 |
<h5 class="modal-title" id="fenetre-modal-label"></h5>
|
|
|
283 |
<button type="button" class="close btn btn-sm btn-secondary" data-dismiss="modal" aria-label="Close">
|
|
|
284 |
<span aria-hidden="true">×</span>
|
|
|
285 |
</button>
|
|
|
286 |
</div>
|
|
|
287 |
<div class="modal-body row" id="print_content"></div>
|
|
|
288 |
<div class="modal-footer hidden"></div>
|
|
|
289 |
</div>
|
|
|
290 |
</div>
|
|
|
291 |
</div>
|
580 |
jpm |
292 |
<!-- WIDGET:CEL:PHOTO - FIN -->
|
3630 |
idir |
293 |
<script type="text/Javascript">
|
|
|
294 |
//<![CDATA[
|
|
|
295 |
var widgetProp = {
|
|
|
296 |
'id' : "<?php echo $id; ?>",
|
|
|
297 |
'galerieId' : "<?php echo $galerie_id; ?>"
|
|
|
298 |
};
|
|
|
299 |
|
|
|
300 |
$( document ).ready( function() {
|
|
|
301 |
photo = new WidgetPhoto( widgetProp );
|
|
|
302 |
photo.init();
|
|
|
303 |
});
|
|
|
304 |
//]]>
|
|
|
305 |
</script>
|
580 |
jpm |
306 |
</body>
|
3630 |
idir |
307 |
</html>
|