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%;
|
1462 |
aurelien |
37 |
background-color:#DDDDDD;
|
|
|
38 |
color:black;
|
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>
|
1451 |
aurelien |
95 |
<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '') { ?>
|
587 |
jpm |
96 |
<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
|
583 |
jpm |
97 |
onclick="window.open(this.href);return false;"
|
|
|
98 |
title="Cliquez pour accéder à la fiche eFlore">
|
|
|
99 |
<?=$item['titre']?>
|
|
|
100 |
</a>
|
1451 |
aurelien |
101 |
<?php } else { ?>
|
|
|
102 |
<?=$item['titre']?>
|
|
|
103 |
<?php } ?>
|
583 |
jpm |
104 |
</strong><br />
|
587 |
jpm |
105 |
<span class="cel-img-date">Publiée le <?=$item['date']?></span>
|
583 |
jpm |
106 |
</div>
|
580 |
jpm |
107 |
</div>
|
|
|
108 |
<?php endforeach; ?>
|
|
|
109 |
<?php if ($extra_actif) : ?>
|
879 |
jpm |
110 |
<div id="cel-photo-extra<?=$id?>" class="cel-photo-extra cel-photo">
|
|
|
111 |
<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 |
112 |
<img src="<?=sprintf($extra['url_tpl'], 'CRS')?>" alt="<?=$extra['titre']?>"/>
|
580 |
jpm |
113 |
</a>
|
|
|
114 |
</div>
|
|
|
115 |
</div>
|
|
|
116 |
<?php endif ?>
|
879 |
jpm |
117 |
<p class="cel-photo-pieds discretion nettoyage">
|
|
|
118 |
<span class="cel-photo-source">
|
|
|
119 |
Source :
|
|
|
120 |
<a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
|
|
|
121 |
CEL
|
|
|
122 |
</a>
|
|
|
123 |
</span>
|
|
|
124 |
<span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
|
|
|
125 |
</p>
|
580 |
jpm |
126 |
<script type="text/Javascript">
|
583 |
jpm |
127 |
//<![CDATA[
|
879 |
jpm |
128 |
$('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({
|
|
|
129 |
transitionIn:'elastic',
|
|
|
130 |
transitionOut:'elastic',
|
|
|
131 |
speedIn :600,
|
|
|
132 |
speedOut:200,
|
|
|
133 |
overlayShow:true,
|
|
|
134 |
titleShow:true,
|
|
|
135 |
titlePosition:'inside',
|
|
|
136 |
titleFormat:function (titre, currentArray, currentIndex, currentOpts) {
|
|
|
137 |
var motif = /GUID : ([0-9]+)$/;
|
|
|
138 |
motif.exec(titre);
|
|
|
139 |
var guid = RegExp.$1;
|
|
|
140 |
var info = $('#cel-info-'+guid).clone().html();
|
|
|
141 |
var tpl =
|
|
|
142 |
'<div class="cel-legende">'+
|
|
|
143 |
'<p class="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+
|
|
|
144 |
(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
|
|
|
145 |
'<\/div>';
|
|
|
146 |
return tpl;
|
|
|
147 |
}
|
587 |
jpm |
148 |
});
|
580 |
jpm |
149 |
//]]>
|
|
|
150 |
</script>
|
|
|
151 |
<?php endif; ?>
|
|
|
152 |
</div>
|
|
|
153 |
<!-- WIDGET:CEL:PHOTO - FIN -->
|
|
|
154 |
</body>
|
|
|
155 |
</html>
|