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