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>
|
|
|
5 |
|
|
|
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" />
|
|
|
10 |
|
|
|
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 {
|
|
|
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" />'
|
|
|
30 |
.'<meta property="og:image:width" content="256" />'
|
|
|
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" />
|
|
|
38 |
|
|
|
39 |
<!-- Favicones -->
|
2563 |
mathias |
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" />
|
580 |
jpm |
42 |
|
|
|
43 |
<!-- Feuilles de styles -->
|
587 |
jpm |
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" />
|
580 |
jpm |
45 |
<link rel="stylesheet" type="text/css" href="<?=$url_css?>photo.css" media="screen" />
|
583 |
jpm |
46 |
<style type="text/css">
|
587 |
jpm |
47 |
html {
|
|
|
48 |
overflow:hidden;
|
583 |
jpm |
49 |
}
|
587 |
jpm |
50 |
body{
|
|
|
51 |
overflow:hidden;
|
|
|
52 |
padding:0;
|
|
|
53 |
margin:0;
|
|
|
54 |
width:100%;
|
|
|
55 |
height:100%;
|
1462 |
aurelien |
56 |
background-color:#DDDDDD;
|
|
|
57 |
color:black;
|
583 |
jpm |
58 |
}
|
879 |
jpm |
59 |
#cel-photo-contenu<?=$id?>, #cel-galerie-photo<?=$id?>{
|
587 |
jpm |
60 |
width:<?=(($colonne * 69))?>px;
|
|
|
61 |
}
|
879 |
jpm |
62 |
#cel-galerie-photo<?=$id?> #cel-photo-extra<?=$id?> img{
|
587 |
jpm |
63 |
width:<?=(($colonne * 69)-6)?>px;
|
|
|
64 |
}
|
583 |
jpm |
65 |
</style>
|
587 |
jpm |
66 |
|
|
|
67 |
<!-- Javascript : bibliothèques -->
|
879 |
jpm |
68 |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/1.6/jquery-1.6.min.js"></script>
|
587 |
jpm |
69 |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.js"></script>
|
580 |
jpm |
70 |
</head>
|
|
|
71 |
<body>
|
|
|
72 |
<!-- WIDGET:CEL:PHOTO - DEBUT -->
|
879 |
jpm |
73 |
<div id="cel-photo-contenu<?=$id?>" class="cel-photo-contenu">
|
580 |
jpm |
74 |
<?php if (isset($erreurs) || isset($informations)) : ?>
|
|
|
75 |
<h1>Erreur & informations</h1>
|
|
|
76 |
<p>Impossible d'afficher le flux.</p>
|
|
|
77 |
<!-- Affichage des erreurs et messages d'information : -->
|
|
|
78 |
<?php if ($erreurs) : ?>
|
|
|
79 |
<?php foreach ($erreurs as $erreur) : ?>
|
|
|
80 |
<p class="erreur"><?=$erreur;?></p>
|
|
|
81 |
<?php endforeach; ?>
|
|
|
82 |
<?php endif; ?>
|
|
|
83 |
|
|
|
84 |
<?php if ($informations) : ?>
|
|
|
85 |
<?php foreach ($informations as $information) : ?>
|
|
|
86 |
<p class="info"><?=$information;?></p>
|
|
|
87 |
<?php endforeach; ?>
|
|
|
88 |
<?php endif; ?>
|
|
|
89 |
<?php else : ?>
|
|
|
90 |
<h1>
|
879 |
jpm |
91 |
<? if (!empty($titre)) : ?>
|
|
|
92 |
<?=$titre?>
|
1480 |
aurelien |
93 |
<? endif ; ?>
|
|
|
94 |
<? if($icone_rss) : ?>
|
583 |
jpm |
95 |
<a href="<?=$flux_rss_url?>"
|
879 |
jpm |
96 |
class="cel-photo-flux"
|
580 |
jpm |
97 |
title="Suivre les images"
|
|
|
98 |
onclick="window.open(this.href);return false;">
|
587 |
jpm |
99 |
<img src="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
|
580 |
jpm |
100 |
</a>
|
1480 |
aurelien |
101 |
<? endif; ?>
|
583 |
jpm |
102 |
</h1>
|
879 |
jpm |
103 |
<div id="cel-galerie-photo<?=$id?>">
|
580 |
jpm |
104 |
<?php foreach ($items as $item) : ?>
|
587 |
jpm |
105 |
<div class="cel-photo">
|
879 |
jpm |
106 |
<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?>">
|
627 |
jpm |
107 |
<img src="<?=sprintf($item['url_tpl'], 'CRX2S')?>" alt="<?=$item['titre']?>"/>
|
580 |
jpm |
108 |
</a>
|
587 |
jpm |
109 |
<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
|
583 |
jpm |
110 |
<strong>
|
1451 |
aurelien |
111 |
<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '') { ?>
|
587 |
jpm |
112 |
<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
|
583 |
jpm |
113 |
onclick="window.open(this.href);return false;"
|
|
|
114 |
title="Cliquez pour accéder à la fiche eFlore">
|
1495 |
aurelien |
115 |
<?=$item['infos']['nom_sci']?>
|
|
|
116 |
</a> par
|
|
|
117 |
<a class="cel-img-contact"
|
|
|
118 |
href="?mode=contact&nn=<?= urlencode($item['infos']['nn']) ;?>&nom_sci=<?= urlencode($item['infos']['nom_sci']) ;?>&date=<?= urlencode($item['infos']['date']) ;?>&id_image=<?= $item['guid']; ?>"
|
|
|
119 |
title="Cliquez pour contacter l'auteur de la photo">
|
|
|
120 |
<?=$item['infos']['auteur']?>
|
583 |
jpm |
121 |
</a>
|
2586 |
mathias |
122 |
à <?= $item['infos']['localite'] ?>
|
1495 |
aurelien |
123 |
le <?=$item['infos']['date']?>
|
1451 |
aurelien |
124 |
<?php } else { ?>
|
|
|
125 |
<?=$item['titre']?>
|
|
|
126 |
<?php } ?>
|
583 |
jpm |
127 |
</strong><br />
|
587 |
jpm |
128 |
<span class="cel-img-date">Publiée le <?=$item['date']?></span>
|
583 |
jpm |
129 |
</div>
|
580 |
jpm |
130 |
</div>
|
|
|
131 |
<?php endforeach; ?>
|
|
|
132 |
<?php if ($extra_actif) : ?>
|
879 |
jpm |
133 |
<div id="cel-photo-extra<?=$id?>" class="cel-photo-extra cel-photo">
|
|
|
134 |
<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?>">
|
627 |
jpm |
135 |
<img src="<?=sprintf($extra['url_tpl'], 'CRS')?>" alt="<?=$extra['titre']?>"/>
|
580 |
jpm |
136 |
</a>
|
|
|
137 |
</div>
|
|
|
138 |
</div>
|
|
|
139 |
<?php endif ?>
|
879 |
jpm |
140 |
<p class="cel-photo-pieds discretion nettoyage">
|
|
|
141 |
<span class="cel-photo-source">
|
|
|
142 |
Source :
|
1480 |
aurelien |
143 |
<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
|
879 |
jpm |
144 |
CEL
|
|
|
145 |
</a>
|
|
|
146 |
</span>
|
|
|
147 |
<span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
|
|
|
148 |
</p>
|
580 |
jpm |
149 |
<script type="text/Javascript">
|
583 |
jpm |
150 |
//<![CDATA[
|
1480 |
aurelien |
151 |
var utiliseFancybox = "<?= $utilise_fancybox; ?>";
|
|
|
152 |
if(utiliseFancybox) {
|
|
|
153 |
$('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({
|
|
|
154 |
transitionIn:'elastic',
|
|
|
155 |
transitionOut:'elastic',
|
|
|
156 |
speedIn :600,
|
|
|
157 |
speedOut:200,
|
|
|
158 |
overlayShow:true,
|
|
|
159 |
titleShow:true,
|
|
|
160 |
titlePosition:'inside',
|
|
|
161 |
titleFormat:function (titre, currentArray, currentIndex, currentOpts) {
|
|
|
162 |
var motif = /GUID : ([0-9]+)$/;
|
|
|
163 |
motif.exec(titre);
|
|
|
164 |
var guid = RegExp.$1;
|
|
|
165 |
var info = $('#cel-info-'+guid).clone().html();
|
|
|
166 |
var tpl =
|
|
|
167 |
'<div class="cel-legende">'+
|
|
|
168 |
'<p class="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+
|
|
|
169 |
(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
|
|
|
170 |
'<\/div>';
|
|
|
171 |
return tpl;
|
|
|
172 |
}
|
|
|
173 |
});
|
|
|
174 |
} else {
|
|
|
175 |
$('a.cel-img').click(function(event) {
|
|
|
176 |
ouvrirFenetrePopup($(this));
|
|
|
177 |
event.preventDefault();
|
|
|
178 |
});
|
|
|
179 |
}
|
1495 |
aurelien |
180 |
|
|
|
181 |
$(document).ready(function() {
|
|
|
182 |
$('a.cel-img-contact').live('click', function(event) {
|
|
|
183 |
event.preventDefault();
|
|
|
184 |
ouvrirFenetreContact($(this));
|
|
|
185 |
});
|
|
|
186 |
});
|
1480 |
aurelien |
187 |
|
|
|
188 |
function ouvrirFenetrePopup(lienImage) {
|
1495 |
aurelien |
189 |
var url = "?mode=popup&url_image="+lienImage.attr('href')+'&galerie_id=<?= $galerie_id ?>';
|
1480 |
aurelien |
190 |
window.open(url, '', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(700)+', height='+(650));
|
|
|
191 |
}
|
1495 |
aurelien |
192 |
|
|
|
193 |
function ouvrirFenetreContact(lienImage) {
|
|
|
194 |
var url = lienImage.attr("href");
|
|
|
195 |
window.open(url, '_blank', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(400)+', height='+(550));
|
|
|
196 |
}
|
580 |
jpm |
197 |
//]]>
|
|
|
198 |
</script>
|
|
|
199 |
<?php endif; ?>
|
|
|
200 |
</div>
|
|
|
201 |
<!-- WIDGET:CEL:PHOTO - FIN -->
|
|
|
202 |
</body>
|
|
|
203 |
</html>
|