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" />
|
|
|
13 |
<meta name="author" content="Jean-Pascal MILCENT, Grégoire DUCHÉ" />
|
|
|
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 |
|
|
|
17 |
<!-- Spécial mobile -->
|
|
|
18 |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
|
|
19 |
|
|
|
20 |
<!-- Favicones -->
|
|
|
21 |
<link rel="icon" type="image/png" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.png" />
|
|
|
22 |
<link rel="shortcut icon" type="image/x-icon" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.ico" />
|
|
|
23 |
|
|
|
24 |
<!-- Feuilles de styles -->
|
587 |
jpm |
25 |
<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 |
26 |
<link rel="stylesheet" type="text/css" href="<?=$url_css?>photo.css" media="screen" />
|
583 |
jpm |
27 |
<style type="text/css">
|
587 |
jpm |
28 |
html {
|
|
|
29 |
overflow:hidden;
|
583 |
jpm |
30 |
}
|
587 |
jpm |
31 |
body{
|
|
|
32 |
overflow:hidden;
|
|
|
33 |
padding:0;
|
|
|
34 |
margin:0;
|
|
|
35 |
width:100%;
|
|
|
36 |
height:100%;
|
|
|
37 |
background-color:#4A4B4C;
|
|
|
38 |
color:#CCC;
|
583 |
jpm |
39 |
}
|
879 |
jpm |
40 |
#cel-photo-contenu<?=$id?>, #cel-galerie-photo<?=$id?>{
|
587 |
jpm |
41 |
width:<?=(($colonne * 69))?>px;
|
|
|
42 |
}
|
879 |
jpm |
43 |
#cel-galerie-photo<?=$id?> #cel-photo-extra<?=$id?> img{
|
587 |
jpm |
44 |
width:<?=(($colonne * 69)-6)?>px;
|
|
|
45 |
}
|
583 |
jpm |
46 |
</style>
|
587 |
jpm |
47 |
|
|
|
48 |
<!-- Javascript : bibliothèques -->
|
879 |
jpm |
49 |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/1.6/jquery-1.6.min.js"></script>
|
587 |
jpm |
50 |
<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 |
51 |
</head>
|
|
|
52 |
<body>
|
|
|
53 |
<!-- WIDGET:CEL:PHOTO - DEBUT -->
|
879 |
jpm |
54 |
<div id="cel-photo-contenu<?=$id?>" class="cel-photo-contenu">
|
580 |
jpm |
55 |
<?php if (isset($erreurs) || isset($informations)) : ?>
|
|
|
56 |
<h1>Erreur & informations</h1>
|
|
|
57 |
<p>Impossible d'afficher le flux.</p>
|
|
|
58 |
<!-- Affichage des erreurs et messages d'information : -->
|
|
|
59 |
<?php if ($erreurs) : ?>
|
|
|
60 |
<?php foreach ($erreurs as $erreur) : ?>
|
|
|
61 |
<p class="erreur"><?=$erreur;?></p>
|
|
|
62 |
<?php endforeach; ?>
|
|
|
63 |
<?php endif; ?>
|
|
|
64 |
|
|
|
65 |
<?php if ($informations) : ?>
|
|
|
66 |
<?php foreach ($informations as $information) : ?>
|
|
|
67 |
<p class="info"><?=$information;?></p>
|
|
|
68 |
<?php endforeach; ?>
|
|
|
69 |
<?php endif; ?>
|
|
|
70 |
<?php else : ?>
|
|
|
71 |
<h1>
|
879 |
jpm |
72 |
<? if (!empty($titre)) : ?>
|
|
|
73 |
<?=$titre?>
|
|
|
74 |
<? else : ?>
|
|
|
75 |
Dernières images du
|
|
|
76 |
<a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
|
|
|
77 |
CEL
|
|
|
78 |
</a>
|
|
|
79 |
<? endif; ?>
|
583 |
jpm |
80 |
<a href="<?=$flux_rss_url?>"
|
879 |
jpm |
81 |
class="cel-photo-flux"
|
580 |
jpm |
82 |
title="Suivre les images"
|
|
|
83 |
onclick="window.open(this.href);return false;">
|
587 |
jpm |
84 |
<img src="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
|
580 |
jpm |
85 |
</a>
|
583 |
jpm |
86 |
</h1>
|
879 |
jpm |
87 |
<div id="cel-galerie-photo<?=$id?>">
|
580 |
jpm |
88 |
<?php foreach ($items as $item) : ?>
|
587 |
jpm |
89 |
<div class="cel-photo">
|
879 |
jpm |
90 |
<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 |
91 |
<img src="<?=sprintf($item['url_tpl'], 'CRX2S')?>" alt="<?=$item['titre']?>"/>
|
580 |
jpm |
92 |
</a>
|
587 |
jpm |
93 |
<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
|
583 |
jpm |
94 |
<strong>
|
587 |
jpm |
95 |
<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
|
583 |
jpm |
96 |
onclick="window.open(this.href);return false;"
|
|
|
97 |
title="Cliquez pour accéder à la fiche eFlore">
|
|
|
98 |
<?=$item['titre']?>
|
|
|
99 |
</a>
|
|
|
100 |
</strong><br />
|
587 |
jpm |
101 |
<span class="cel-img-date">Publiée le <?=$item['date']?></span>
|
583 |
jpm |
102 |
</div>
|
580 |
jpm |
103 |
</div>
|
|
|
104 |
<?php endforeach; ?>
|
|
|
105 |
<?php if ($extra_actif) : ?>
|
879 |
jpm |
106 |
<div id="cel-photo-extra<?=$id?>" class="cel-photo-extra cel-photo">
|
|
|
107 |
<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 |
108 |
<img src="<?=sprintf($extra['url_tpl'], 'CRS')?>" alt="<?=$extra['titre']?>"/>
|
580 |
jpm |
109 |
</a>
|
|
|
110 |
</div>
|
|
|
111 |
</div>
|
|
|
112 |
<?php endif ?>
|
879 |
jpm |
113 |
<p class="cel-photo-pieds discretion nettoyage">
|
|
|
114 |
<span class="cel-photo-source">
|
|
|
115 |
Source :
|
|
|
116 |
<a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
|
|
|
117 |
CEL
|
|
|
118 |
</a>
|
|
|
119 |
</span>
|
|
|
120 |
<span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
|
|
|
121 |
</p>
|
580 |
jpm |
122 |
<script type="text/Javascript">
|
583 |
jpm |
123 |
//<![CDATA[
|
879 |
jpm |
124 |
$('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({
|
|
|
125 |
transitionIn:'elastic',
|
|
|
126 |
transitionOut:'elastic',
|
|
|
127 |
speedIn :600,
|
|
|
128 |
speedOut:200,
|
|
|
129 |
overlayShow:true,
|
|
|
130 |
titleShow:true,
|
|
|
131 |
titlePosition:'inside',
|
|
|
132 |
titleFormat:function (titre, currentArray, currentIndex, currentOpts) {
|
|
|
133 |
var motif = /GUID : ([0-9]+)$/;
|
|
|
134 |
motif.exec(titre);
|
|
|
135 |
var guid = RegExp.$1;
|
|
|
136 |
var info = $('#cel-info-'+guid).clone().html();
|
|
|
137 |
var tpl =
|
|
|
138 |
'<div class="cel-legende">'+
|
|
|
139 |
'<p class="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+
|
|
|
140 |
(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
|
|
|
141 |
'<\/div>';
|
|
|
142 |
return tpl;
|
|
|
143 |
}
|
587 |
jpm |
144 |
});
|
580 |
jpm |
145 |
//]]>
|
|
|
146 |
</script>
|
|
|
147 |
<?php endif; ?>
|
|
|
148 |
</div>
|
|
|
149 |
<!-- WIDGET:CEL:PHOTO - FIN -->
|
|
|
150 |
</body>
|
|
|
151 |
</html>
|