739 |
delphine |
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>Observations 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" />
|
|
|
13 |
<meta name="author" content="Jean-Pascal MILCENT, Grégoire DUCHÉ" />
|
|
|
14 |
<meta name="keywords" content="Tela Botanica, observation, CEL" />
|
|
|
15 |
<meta name="description" content="Widget de présentation des dernières observations publiées sur le Carnet en Ligne de Tela Botanica" />
|
|
|
16 |
|
|
|
17 |
<!-- Spécial mobile -->
|
|
|
18 |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
|
|
19 |
|
|
|
20 |
<!-- Favicones -->
|
2993 |
mathias |
21 |
<link rel="icon" type="image/png" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.png" />
|
|
|
22 |
<link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
|
739 |
delphine |
23 |
|
|
|
24 |
<!-- Feuilles de styles -->
|
3000 |
mathias |
25 |
<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" />
|
739 |
delphine |
26 |
<link rel="stylesheet" type="text/css" href="<?=$url_css?>observation.css" media="screen" />
|
|
|
27 |
|
|
|
28 |
<!-- Javascript : bibliothèques -->
|
2993 |
mathias |
29 |
<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/1.4.4/jquery-1.4.4.min.js"></script>
|
|
|
30 |
<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.js"></script>
|
2678 |
aurelien |
31 |
|
|
|
32 |
<script>
|
|
|
33 |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
|
34 |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
|
35 |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
|
36 |
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
|
37 |
|
|
|
38 |
ga('create', 'UA-20092557-1', 'auto');
|
|
|
39 |
ga('require', 'displayfeatures');
|
|
|
40 |
ga('send', 'pageview');
|
|
|
41 |
|
|
|
42 |
</script>
|
739 |
delphine |
43 |
</head>
|
|
|
44 |
<body>
|
|
|
45 |
<!-- WIDGET:CEL:OBSERVATION - DEBUT -->
|
|
|
46 |
<div id="cel-observation-contenu">
|
|
|
47 |
<?php if (isset($erreurs) || isset($informations)) : ?>
|
|
|
48 |
<h1>Erreur & informations</h1>
|
|
|
49 |
<p>Impossible d'afficher le flux.</p>
|
|
|
50 |
<!-- Affichage des erreurs et messages d'information : -->
|
|
|
51 |
<?php if ($erreurs) : ?>
|
|
|
52 |
<?php foreach ($erreurs as $erreur) : ?>
|
|
|
53 |
<p class="erreur"><?=$erreur;?></p>
|
|
|
54 |
<?php endforeach; ?>
|
|
|
55 |
<?php endif; ?>
|
|
|
56 |
|
|
|
57 |
<?php if ($informations) : ?>
|
|
|
58 |
<?php foreach ($informations as $information) : ?>
|
|
|
59 |
<p class="info"><?=$information;?></p>
|
|
|
60 |
<?php endforeach; ?>
|
|
|
61 |
<?php endif; ?>
|
|
|
62 |
<?php else : ?>
|
|
|
63 |
<h1>
|
1479 |
aurelien |
64 |
<? if (!empty($titre)) : ?>
|
|
|
65 |
<?=$titre?>
|
|
|
66 |
<? endif ; ?>
|
|
|
67 |
<? if($icone_rss) : ?>
|
739 |
delphine |
68 |
<a href="<?=$flux_rss_url?>" id="cel-observation-flux" title="Suivre les observations"
|
|
|
69 |
onclick="window.open(this.href);return false;">
|
2993 |
mathias |
70 |
<img src="https://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les observations" />
|
739 |
delphine |
71 |
</a>
|
1479 |
aurelien |
72 |
<? endif; ?>
|
739 |
delphine |
73 |
</h1>
|
|
|
74 |
<div id="cel-liste-observation">
|
|
|
75 |
<?php foreach ($items as $item) : ?>
|
|
|
76 |
<div id="cel-observation-<?=$item['guid']?>" class="cel-observation" rel="<?=$item['guid']?>" >
|
|
|
77 |
<img id="imPlus-<?=$item['guid']?>" width="10" height="10"
|
|
|
78 |
name="imPlus-<?=$item['guid']?>" title="Voir les informations complémentaires" alt="+"
|
2993 |
mathias |
79 |
src="https://www.tela-botanica.org/sites/commun/generique/images/plus.png" />
|
739 |
delphine |
80 |
<img id="imMoins-<?=$item['guid']?>" width="10" height="10" class="imMoins"
|
|
|
81 |
name="imMoins-<?=$item['guid']?>" title="Cacher les informations complémentaires" alt="+"
|
2993 |
mathias |
82 |
src="https://www.tela-botanica.org/sites/commun/generique/images/moins.png" />
|
739 |
delphine |
83 |
<strong>
|
1460 |
aurelien |
84 |
<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '' && $item['eflore_url'] != 'http://www.tela-botanica.org/bdtfx-nn-0') { ?>
|
1451 |
aurelien |
85 |
<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
|
|
|
86 |
onclick="window.open(this.href);return false;"
|
|
|
87 |
title="Cliquez pour accéder à la fiche eFlore">
|
|
|
88 |
<?=$item['titre']?>
|
|
|
89 |
</a>
|
|
|
90 |
<?php } else { ?>
|
|
|
91 |
<?=$item['titre']?>
|
|
|
92 |
<?php } ?>
|
739 |
delphine |
93 |
</strong><br />
|
|
|
94 |
<span class="cel-img-date">Publiée le <?=$item['date']?></span><br />
|
|
|
95 |
|
|
|
96 |
<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
|
|
|
97 |
<?=$item['description']?>
|
|
|
98 |
</div>
|
|
|
99 |
</div>
|
|
|
100 |
|
|
|
101 |
<?php endforeach; ?>
|
|
|
102 |
</div>
|
1479 |
aurelien |
103 |
<p id="cel-observation-pieds" class="cel-observation-pieds discretion nettoyage">
|
|
|
104 |
<span class="cel-observation-source">
|
|
|
105 |
Source :
|
|
|
106 |
<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
|
|
|
107 |
CEL
|
|
|
108 |
</a>
|
|
|
109 |
</span>
|
|
|
110 |
<span class="cel-observation-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
|
|
|
111 |
</p>
|
739 |
delphine |
112 |
<script type="text/Javascript">
|
|
|
113 |
// Function pour cacher / afficher le détail des observations
|
|
|
114 |
$(document).ready(function() {
|
|
|
115 |
|
|
|
116 |
$('.cel-infos').hide();
|
|
|
117 |
$('.imMoins').hide();
|
|
|
118 |
$('.cel-observation').hover(function() {
|
|
|
119 |
var id_obs = $(this).attr("rel");
|
|
|
120 |
$('#cel-info-'+id_obs).show();
|
|
|
121 |
$('#imPlus-'+id_obs).hide();
|
|
|
122 |
$('#imMoins-'+id_obs).show();
|
|
|
123 |
},
|
|
|
124 |
function() {
|
|
|
125 |
var id_obs = $(this).attr("rel");
|
|
|
126 |
$('#cel-info-'+id_obs).hide();
|
|
|
127 |
$('#imPlus-'+id_obs).show();
|
|
|
128 |
$('#imMoins-'+id_obs).hide();
|
|
|
129 |
|
|
|
130 |
});
|
|
|
131 |
|
|
|
132 |
});
|
|
|
133 |
</script>
|
|
|
134 |
<?php endif; ?>
|
|
|
135 |
</div>
|
|
|
136 |
<!-- WIDGET:CEL:OBSERVATION - FIN -->
|
|
|
137 |
</body>
|
|
|
138 |
</html>
|