2,12 → 2,12 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head> |
<title>Photographies publiques du CEL - Tela Botanica</title> |
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> |
<meta http-equiv="Content-style-type" content="text/css" /> |
<meta http-equiv="Content-script-type" content="text/javascript" /> |
<meta http-equiv="Content-language" content="fr" /> |
|
|
<meta name="revisit-after" content="15 days" /> |
<meta name="robots" content="index,follow" /> |
<meta name="author" content="Tela Botanica" /> |
26,8 → 26,8 |
echo '<meta property="og:image" content="' . $izUrl . '" />'; |
} else { |
echo '<meta property="og:image" content="https://resources.tela-botanica.org/tb/img/256x256/carre_englobant.png" />' |
.'<meta property="og:image:type" content="image/png" />' |
.'<meta property="og:image:width" content="256" />' |
.'<meta property="og:image:type" content="image/png" />' |
.'<meta property="og:image:width" content="256" />' |
.'<meta property="og:image:height" content="256" />'; |
} |
?> |
35,39 → 35,65 |
|
<!-- Spécial mobile --> |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> |
|
|
<!-- Favicones --> |
<link rel="icon" type="image/png" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.png" /> |
<link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" /> |
|
<!-- Jquery-ui custom css--> |
<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" /> |
<!-- Bootstrap CSS --> |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" /> |
<!-- Fontawesome --> |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous"> |
|
<!-- Feuilles de styles --> |
<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" /> |
<link rel="stylesheet" type="text/css" href="<?=$url_css?>photo.css" media="screen" /> |
<link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>photo.css" media="screen" /> |
<link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>popup.css" media="screen" /> |
<link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>contact.css" media="screen" /> |
<link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>photoCommun.css" media="screen" /> |
<style type="text/css"> |
html { |
overflow:hidden; |
<?php $dimention_basique = floor(93/$colonne);?> |
#cel-photo-contenu<?php echo $id; ?> .grid-sizer, |
#cel-photo-contenu<?php echo $id; ?> .grid-item { |
width: <?php echo $dimention_basique; ?>vw; |
} |
body{ |
overflow:hidden; |
padding:0; |
margin:0; |
width:100%; |
height:100%; |
background-color:#DDDDDD; |
color:black; |
|
#cel-photo-contenu<?php echo $id; ?> .grid-item { |
height: <?php echo $dimention_basique; ?>vw; |
} |
#cel-photo-contenu<?=$id?>, #cel-galerie-photo<?=$id?>{ |
width:<?=(($colonne * 69))?>px; |
|
#cel-photo-contenu<?php echo $id; ?> .grid-item--width2 { |
width: <?php echo ($dimention_basique*2)+1; ?>vw; |
} |
#cel-galerie-photo<?=$id?> #cel-photo-extra<?=$id?> img{ |
width:<?=(($colonne * 69)-6)?>px; |
|
#cel-photo-contenu<?php echo $id; ?> .grid-item--height2 { |
height: <?php echo number_format((($dimention_basique*2)+0.99),2); ?>vw; |
} |
</style> |
|
<!-- Javascript : bibliothèques --> |
<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/1.6/jquery-1.6.min.js"></script> |
<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.js"></script> |
<!-- Jquery --> |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/1.11.1/jquery-1.11.1.min.js"></script> |
|
<!-- Jquery UI : nécessaire pour le minicalendrier et l'auto-complétion --> |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/jquery-ui.min.js"></script> |
<!-- Jquery Plugins --> |
<!-- Jquery Validate : nécessaire pour la validation des formulaires --> |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/jquery.validate.min.js"></script> |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/additional-methods.min.js"></script> |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/messages_fr.js"></script> |
<!-- Jquery Form :nécessaire pour l'upload des images --> |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script> |
<!-- Bootstrap --> |
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> |
<!-- Masonry --> |
<script src="<?php echo $url_js; ?>masonry.pkgd.js"></script> |
<!-- Script WidgetPhoto --> |
<script type="text/Javascript" src="<?php echo $url_js; ?>WidgetPhotoCommun.js"></script> |
<script type="text/Javascript" src="<?php echo $url_js; ?>WidgetPhoto.js"></script> |
<script type="text/javascript" src="<?php echo $url_js; ?>WidgetPhotoPopup.js"></script> |
<script type="text/javascript" src="<?php echo $url_js; ?>WidgetPhotoContact.js"></script> |
|
<!-- Google Analytics --> |
<?php if($prod): ?> |
<?php include "analytics.html"; ?> |
75,7 → 101,7 |
</head> |
<body> |
<!-- WIDGET:CEL:PHOTO - DEBUT --> |
<div id="cel-photo-contenu<?=$id?>" class="cel-photo-contenu"> |
<div id="cel-photo-contenu<?php echo $id; ?>" class="cel-photo-contenu"> |
<?php if (isset($erreurs) || isset($informations)) : ?> |
<h1>Erreur & informations</h1> |
<p>Impossible d'afficher le flux.</p> |
82,127 → 108,200 |
<!-- Affichage des erreurs et messages d'information : --> |
<?php if ($erreurs) : ?> |
<?php foreach ($erreurs as $erreur) : ?> |
<p class="erreur"><?=$erreur;?></p> |
<p class="erreur"><?php echo $erreur; ?></p> |
<?php endforeach; ?> |
<?php endif; ?> |
|
|
<?php if ($informations) : ?> |
<?php foreach ($informations as $information) : ?> |
<p class="info"><?=$information;?></p> |
<p class="info"><?php echo $information; ?></p> |
<?php endforeach; ?> |
<?php endif; ?> |
<?php else : ?> |
<h1> |
<? if (!empty($titre)) : ?> |
<?=$titre?> |
<? endif ; ?> |
<? if($icone_rss) : ?> |
<a href="<?=$flux_rss_url?>" |
class="cel-photo-flux" |
title="Suivre les images" |
<?php if (!empty($titre)) : ?> |
<?php echo $titre; ?> |
<?php endif ; ?> |
<?php if($icone_rss) : ?> |
<a href="<?php echo $flux_rss_url; ?>" |
class="cel-photo-flux" |
title="Suivre les images" |
onclick="window.open(this.href);return false;"> |
<img src="https://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" /> |
</a> |
<? endif; ?> |
<?php endif; ?> |
</h1> |
<div id="cel-galerie-photo<?=$id?>"> |
<?php foreach ($items as $item) : ?> |
<div class="cel-photo"> |
<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?>"> |
<img src="<?=sprintf($item['url_tpl'], 'CRX2S')?>" alt="<?=$item['titre']?>"/> |
</a> |
<div id="cel-info-<?=$item['guid']?>" class="cel-infos"> |
<strong> |
<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '') { ?> |
<a class="cel-img-titre" href="<?=$item['eflore_url']?>" |
onclick="window.open(this.href);return false;" |
title="Cliquez pour accéder à la fiche eFlore"> |
<?=$item['infos']['nom_sci']?> |
</a> par |
<a class="cel-img-contact" |
href="?mode=contact&nn=<?= urlencode($item['infos']['nn']) ;?>&nom_sci=<?= urlencode($item['infos']['nom_sci']) ;?>&date=<?= urlencode($item['infos']['date']) ;?>&id_image=<?= $item['guid']; ?>" |
title="Cliquez pour contacter l'auteur de la photo"> |
<?=$item['infos']['auteur']?> |
</a> |
à <?= $item['infos']['localite'] ?> |
le <?=$item['infos']['date']?> |
<?php } else { ?> |
<?=$item['titre']?> |
<?php } ?> |
</strong><br /> |
<span class="cel-img-date">Publiée le <?=$item['date']?></span> |
</div> |
</div> |
<?php endforeach; ?> |
<?php if ($extra_actif) : ?> |
<div id="cel-photo-extra<?=$id?>" class="cel-photo-extra cel-photo"> |
<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?>"> |
<img src="<?=sprintf($extra['url_tpl'], 'CRS')?>" alt="<?=$extra['titre']?>"/> |
</a> |
</div> |
<form id="form-recherche<?php echo $id; ?>" class="form-recherche container" action=""> |
<div id="bloc-recherche<?php echo $id; ?>" class="bloc-recherche form-inline d-flex justify-content-center w-100"> |
<input type="text" id="champ-recherche<?php echo $id; ?>" name="champ-recherche<?php echo $id; ?>" class="recherche form-control mr-1" placeholder="Votre recherche"> |
<input type="hidden" id="filtres<?php echo $id; ?>" name="filtres<?php echo $id; ?>"> |
<a id="bouton-rechercher<?php echo $id; ?>" class="btn btn-success bouton-rechercher mr-1"><i class="fas fa-search"></i> Rechercher</a> |
<a id="bouton-plus-filtres<?php echo $id; ?>" class="btn btn-outline-secondary bouton-plus-filtres"> |
<span class="plus"> |
<i class="fas fa-chevron-down"></i> Plus de filtres |
</span> |
<span class="moins hidden"> |
<i class="fas fa-chevron-up"></i> Fermer les filtres |
</span> |
</a> |
</div> |
<div id="autres-filtres<?php echo $id; ?>" class="autres-filtres row hidden"> |
<a id="bouton-fermer-filtres<?php echo $id; ?>" class="btn bouton-fermer-filtres"><i class="fas fa-times"></i></a> |
<div id="bloc-filtres-gauche" class="bloc-filtres bloc-filtres-gauche col-lg-6"> |
<div class="row bloc-taxon bloc-filtre"> |
<label for="taxon">Taxon</label> |
<input type="text" id="taxon" name="taxon" class="form-control"> |
</div> |
<div class="row bloc-referentiel bloc-filtre"> |
<label for="referentiel">Référentiel</label> |
<select name="referentiel" id="referentiel" class="custom-select form-control referentiel"> |
<option value="bdtfxr" selected="selected" title="Trachéophytes de France métropolitaine">Métropole (index réduit)</option> |
<option value="bdtfx" title="Trachéophytes de France métropolitaine">Métropole (BDTFX)</option> |
<option value="bdtxa" title="Trachéophytes des Antilles">Antilles françaises (BDTXA)</option> |
<option value="bdtre" title="Trachéophytes de La Réunion">Réunion (BDTRE)</option> |
<option value="aublet" title="Guyane">Guyane (AUBLET2)</option> |
<option value="florical" title="Nouvelle-Calédonie">Nouvelle-Calédonie (FLORICAL)</option> |
<option value="isfan" title="Afrique du Nord">Afrique du Nord (ISFAN)</option> |
<option value="apd" title="Afrique de l'Ouest et du Centre">Afrique de l'Ouest et du Centre (APD)</option> |
<option value="lbf" title="Liban">Liban (LBF)</option> |
<option value="autre" title="Autre/Inconnu">Autre/Inconnu</option> |
</select> |
</div> |
<div class="bloc-periode bloc-filtre"> |
<label for="periode" class="d-block">Date (début-fin)</label> |
<div class="form-row"> |
<div class="form-group mb-lg-0 mb-1 col"> |
<input type="date" id="periode-debut" name="periode-debut" class="form-control"> |
</div> |
<div class="form-group mb-0 col"> |
<input type="date" id="periode-fin" name="periode-fin" class="form-control"> |
</div> |
</div> |
<input type="hidden" id="periode" name="periode"> |
</div> |
<div class="row bloc-localite bloc-filtre"> |
<label for="localite">Localité</label> |
<input type="text" id="localite" name="localite" class="form-control"> |
</div> |
<div class="row bloc- bloc-filtre"> |
<label for="departement">Département</label> |
<input type="text" id="departement" name="departement" class="form-control" placeholder="Numéros (séparés par des virgules)"> |
</div> |
<div class="row bloc- bloc-filtre"> |
<label for="pays">Pays</label> |
<input type="text" id="pays" name="pays" class="form-control"> |
</div> |
</div> |
<div id="bloc-filtres-droite" class="bloc-filtres bloc-filtres-droite col-lg-6"> |
<div class="row bloc- bloc-filtre"> |
<label for="auteur">Auteur</label> |
<input type="text" id="auteur" name="auteur" class="form-control" placeholder="Nom, email"> |
</div> |
<div class="row bloc- bloc-filtre"> |
<label for="programme">Programme</label> |
<input type="text" id="programme" name="programme" class="form-control"> |
</div> |
<div class="row bloc- bloc-filtre"> |
<label for="tags">Tags (tous)</label> |
<input type="text" id="tags" name="tags" class="form-control"> |
</div> |
<div class="list bloc-photos-affichees bloc-filtre mt-3"> |
<div class="form-check mt-3"> |
<input type="checkbox" id="non-standards" name="photos-affichees" class="non-standards form-check-input" value="non-standards"> |
<label for="non-standards" class="non-standards form-check-label">Afficher les photos des observations non "standards"</label> |
</div> |
<div class="form-check mt-3"> |
<input type="checkbox" id="indesirables" name="photos-affichees" class="indesirables form-check-input" value="indesirables"> |
<label for="indesirables" class="indesirables form-check-label">Afficher les photos signalées comme indésirables</label> |
</div> |
<div class="form-check mt-3"> |
<input type="checkbox" id="smartphone-anonyme" name="photos-affichees" class="smartphone-anonyme form-check-input" value="smartphone-anonyme"> |
<label for="smartphone-anonyme" class="smartphone-anonyme form-check-label">Afficher les photos des observations smartphone anonyme</label> |
</div> |
</div> |
</div> |
</div> |
</form> |
<div id="cel-galerie-photo<?php echo $id; ?>" class="cel-galerie-photo"> |
<div class="grid-sizer"></div> |
<?php foreach ($items as $i => $item) : ?> |
<?php |
$dimention_img = 'CRS'; |
$class_extra = ''; |
?> |
<?php if ( $i === 0 && $extra_actif ) : ?> |
<?php |
$dimention_img = 'CRL'; |
$class_extra = ' grid-item--width2 grid-item--height2'; |
?> |
<?php endif; ?> |
<div class="cel-photo grid-item <?php echo $class_extra; ?>"> |
<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; ?>"> |
<img src="<?php echo sprintf($item['url_tpl'], $dimention_img); ?>" alt="<?php echo $item['titre']; ?>"> |
</a> |
<div id="cel-info-<?php echo $item['guid']; ?>" class="cel-infos"> |
<strong> |
<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '') : ?> |
<a class="cel-img-titre" href="<?php echo $item['eflore_url']; ?>" |
onclick="window.open(this.href);return false;" |
title="Cliquez pour accéder à la fiche eFlore"> |
<?php echo $item['infos']['nom_sci']; ?> |
</a><br /> |
par |
<a class="cel-img-contact" |
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']; ?>" |
title="Cliquez pour contacter l'auteur de la photo"> |
<?php echo $item['infos']['auteur']; ?> |
</a> |
<?php else : ?> |
<?php echo $item['titre']; ?> |
<?php endif; ?> |
</strong> |
</div> |
</div> |
<?php endforeach; ?> |
|
</div> |
<?php endif ?> |
<p class="cel-photo-pieds discretion nettoyage"> |
<span class="cel-photo-source"> |
Source : |
Source : |
<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;"> |
CEL |
</a> |
</span> |
<span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span> |
<span class="cel-photo-date-generation">Au <?php echo strftime('%A %d %B %Y à %H:%M:%S'); ?></span> |
</p> |
<script type="text/Javascript"> |
//<![CDATA[ |
var utiliseFancybox = "<?= $utilise_fancybox; ?>"; |
if(utiliseFancybox) { |
$('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({ |
transitionIn:'elastic', |
transitionOut:'elastic', |
speedIn :600, |
speedOut:200, |
overlayShow:true, |
titleShow:true, |
titlePosition:'inside', |
titleFormat:function (titre, currentArray, currentIndex, currentOpts) { |
var motif = /GUID : ([0-9]+)$/; |
motif.exec(titre); |
var guid = RegExp.$1; |
var info = $('#cel-info-'+guid).clone().html(); |
var tpl = |
'<div class="cel-legende">'+ |
'<p class="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+ |
(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+ |
'<\/div>'; |
return tpl; |
} |
}); |
} else { |
$('a.cel-img').click(function(event) { |
ouvrirFenetrePopup($(this)); |
event.preventDefault(); |
}); |
} |
|
$(document).ready(function() { |
$('a.cel-img-contact').live('click', function(event) { |
event.preventDefault(); |
ouvrirFenetreContact($(this)); |
}); |
}); |
|
function ouvrirFenetrePopup(lienImage) { |
var url = "?mode=popup&url_image="+lienImage.attr('href')+'&galerie_id=<?= $galerie_id ?>'; |
window.open(url, '', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(700)+', height='+(650)); |
} |
|
function ouvrirFenetreContact(lienImage) { |
var url = lienImage.attr("href"); |
window.open(url, '_blank', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(400)+', height='+(550)); |
} |
//]]> |
</script> |
|
<?php endif; ?> |
</div> |
<!-- modale --> |
<div id="fenetre-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="fenetre-modal-label" style="display: none;" aria-hidden="true"> |
<div class="modal-dialog modal-dialog-centered" role="document"> |
<div class="modal-content"> |
<div class="modal-header"> |
<h5 class="modal-title" id="fenetre-modal-label"></h5> |
<button type="button" class="close btn btn-sm btn-secondary" data-dismiss="modal" aria-label="Close"> |
<span aria-hidden="true">×</span> |
</button> |
</div> |
<div class="modal-body row" id="print_content"></div> |
<div class="modal-footer hidden"></div> |
</div> |
</div> |
</div> |
<!-- WIDGET:CEL:PHOTO - FIN --> |
<script type="text/Javascript"> |
//<![CDATA[ |
var widgetProp = { |
'id' : "<?php echo $id; ?>", |
'galerieId' : "<?php echo $galerie_id; ?>" |
}; |
|
$( document ).ready( function() { |
photo = new WidgetPhoto( widgetProp ); |
photo.init(); |
}); |
//]]> |
</script> |
</body> |
</html> |
</html> |