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 |
<!-- Javascript : bibliothèques -->
|
|
|
25 |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/1.4.4/jquery-1.4.4.min.js"></script>
|
|
|
26 |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.2/jquery.fancybox-1.3.2.js"></script>
|
|
|
27 |
|
|
|
28 |
<!-- Feuilles de styles -->
|
|
|
29 |
<link rel="stylesheet" type="text/css" href="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.2/jquery.fancybox-1.3.2.css" media="screen" />
|
|
|
30 |
<link rel="stylesheet" type="text/css" href="<?=$url_css?>photo.css" media="screen" />
|
583 |
jpm |
31 |
<style type="text/css">
|
|
|
32 |
#contenu, #galerie-photo{
|
|
|
33 |
width:<?=($colonne * 69)?>px;
|
|
|
34 |
}
|
|
|
35 |
#galerie-photo #photo-extra img{
|
|
|
36 |
width:<?=(($colonne * 63) + 18)?>px;
|
|
|
37 |
}
|
|
|
38 |
</style>
|
580 |
jpm |
39 |
</head>
|
|
|
40 |
<body>
|
|
|
41 |
<!-- WIDGET:CEL:PHOTO - DEBUT -->
|
|
|
42 |
<div id="contenu">
|
|
|
43 |
<?php if (isset($erreurs) || isset($informations)) : ?>
|
|
|
44 |
<h1>Erreur & informations</h1>
|
|
|
45 |
<p>Impossible d'afficher le flux.</p>
|
|
|
46 |
<!-- Affichage des erreurs et messages d'information : -->
|
|
|
47 |
<?php if ($erreurs) : ?>
|
|
|
48 |
<?php foreach ($erreurs as $erreur) : ?>
|
|
|
49 |
<p class="erreur"><?=$erreur;?></p>
|
|
|
50 |
<?php endforeach; ?>
|
|
|
51 |
<?php endif; ?>
|
|
|
52 |
|
|
|
53 |
<?php if ($informations) : ?>
|
|
|
54 |
<?php foreach ($informations as $information) : ?>
|
|
|
55 |
<p class="info"><?=$information;?></p>
|
|
|
56 |
<?php endforeach; ?>
|
|
|
57 |
<?php endif; ?>
|
|
|
58 |
<?php else : ?>
|
|
|
59 |
<h1>
|
|
|
60 |
Dernières images du
|
|
|
61 |
<a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
|
|
|
62 |
CEL
|
|
|
63 |
</a>
|
583 |
jpm |
64 |
<a href="<?=$flux_rss_url?>"
|
580 |
jpm |
65 |
id="flux-suivre"
|
|
|
66 |
title="Suivre les images"
|
|
|
67 |
onclick="window.open(this.href);return false;">
|
|
|
68 |
Suivre les images
|
|
|
69 |
</a>
|
583 |
jpm |
70 |
</h1>
|
580 |
jpm |
71 |
<div id="galerie-photo">
|
|
|
72 |
<?php foreach ($items as $item) : ?>
|
|
|
73 |
<div class="photo">
|
583 |
jpm |
74 |
<a href="<?=$item['lien']?>" class="cel-img" title="<?=$item['titre']?> - Publiée le <?=$item['date']?> - GUID : <?=$item['guid']?>" rel="galerie-princ">
|
|
|
75 |
<img src="<?=sprintf($item['url_tpl'], 'S')?>" alt="<?=$item['titre']?>"/>
|
580 |
jpm |
76 |
</a>
|
583 |
jpm |
77 |
<div id="cel-info-<?=$item['guid']?>" class="infos">
|
|
|
78 |
<strong>
|
|
|
79 |
<a class="img-titre" href="<?=$item['eflore_url']?>"
|
|
|
80 |
onclick="window.open(this.href);return false;"
|
|
|
81 |
title="Cliquez pour accéder à la fiche eFlore">
|
|
|
82 |
<?=$item['titre']?>
|
|
|
83 |
</a>
|
|
|
84 |
</strong><br />
|
|
|
85 |
<span class="img-date">Publiée le <?=$item['date']?></span>
|
|
|
86 |
</div>
|
580 |
jpm |
87 |
</div>
|
|
|
88 |
<?php endforeach; ?>
|
|
|
89 |
<?php if ($extra_actif) : ?>
|
|
|
90 |
<div id="photo-extra" class="photo">
|
583 |
jpm |
91 |
<a href="<?=$extra['lien']?>" class="cel-img" title="<?=$extra['titre']?> - Publiée le <?=$extra['date']?> - GUID : <?=$extra['guid']?>" rel="galerie-princ">
|
580 |
jpm |
92 |
<img src="<?=sprintf($extra['url_tpl'], 'M')?>" alt="<?=$extra['titre']?>"/>
|
|
|
93 |
</a>
|
|
|
94 |
</div>
|
|
|
95 |
</div>
|
|
|
96 |
<?php endif ?>
|
583 |
jpm |
97 |
<p id="date-generation" class="discretion nettoyage">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></p>
|
580 |
jpm |
98 |
<script type="text/Javascript">
|
583 |
jpm |
99 |
//<![CDATA[
|
|
|
100 |
var $doc = window.document;
|
|
|
101 |
function formaterTitre(titre, currentArray, currentIndex, currentOpts) {
|
|
|
102 |
var motif = /GUID : ([0-9]+)$/;
|
|
|
103 |
motif.exec(titre);
|
|
|
104 |
var guid = 'cel-info-'+RegExp.$1;
|
|
|
105 |
var info = $('#'+guid, $doc).html();
|
|
|
106 |
var tpl =
|
|
|
107 |
'<div id="legende">'+
|
|
|
108 |
'<p id="legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+
|
|
|
109 |
(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
|
|
|
110 |
'<\/div>';
|
|
|
111 |
return tpl;
|
|
|
112 |
}
|
|
|
113 |
(function($, originalInit) {
|
|
|
114 |
parent.jQuery.fn.init = function(selector, context) {
|
|
|
115 |
//alert('hello: ' + originalInit);
|
|
|
116 |
return new originalInit(selector, context || $doc);
|
|
|
117 |
};
|
|
|
118 |
|
|
|
119 |
$(window).load(function() {
|
|
|
120 |
$('a.cel-img', $doc).attr('rel', 'galerie-princ').fancybox({
|
|
|
121 |
transitionIn : 'elastic',
|
|
|
122 |
transitionOut : 'elastic',
|
|
|
123 |
speedIn : 600,
|
|
|
124 |
speedOut : 200,
|
|
|
125 |
overlayShow : true,
|
|
|
126 |
titlePosition : 'inside',
|
|
|
127 |
titleFormat : formaterTitre
|
|
|
128 |
});
|
580 |
jpm |
129 |
});
|
583 |
jpm |
130 |
}(parent.jQuery, parent.jQuery.fn.init));
|
580 |
jpm |
131 |
//]]>
|
|
|
132 |
</script>
|
|
|
133 |
<?php endif; ?>
|
|
|
134 |
</div>
|
|
|
135 |
<!-- WIDGET:CEL:PHOTO - FIN -->
|
|
|
136 |
</body>
|
|
|
137 |
</html>
|