Line 31... |
Line 31... |
31 |
<h1><?=$site['titre']?></h1>
|
31 |
<h1><?=$site['titre']?></h1>
|
32 |
<div class="contenu_RSS" <?=($site['id']!="") ? 'id="'.$site["id"].'"' : ""; ?>>
|
32 |
<div class="contenu_RSS" <?=($site['id']!="") ? 'id="'.$site["id"].'"' : ""; ?>>
|
33 |
<a href="http://www.tela-botanica.org/eflore/cel2/jrest/CelSyndicationImage/Simple/rss2/S" class="suivre-observations" title="Suivre les images" target="_blank">Suivre les images</a>
|
33 |
<a href="http://www.tela-botanica.org/eflore/cel2/jrest/CelSyndicationImage/Simple/rss2/S" class="suivre-observations" title="Suivre les images" target="_blank">Suivre les images</a>
|
34 |
<?php foreach ($site['pages'] as $page) : ?>
|
34 |
<?php foreach ($site['pages'] as $page) : ?>
|
35 |
<?php
|
35 |
<?php
|
36 |
//Traitement sp�cifique tela
|
36 |
//Traitement spécifique tela
|
37 |
// La ligne ci-dessous sert � enlever les "align=left" dans les images g�n�r�es par spip
|
37 |
// La ligne ci-dessous sert à enlever les "align=left" dans les images génériques par spip
|
38 |
// TODO : enlever du flux RSS
|
38 |
// TODO : enlever du flux RSS
|
39 |
$image = substr_replace($page['image'], ' ', strpos($page['image'], 'align='), 12);
|
39 |
$image = substr_replace($page['image'], ' ', strpos($page['image'], 'align='), 12);
|
40 |
?>
|
40 |
?>
|
41 |
<?php
|
41 |
<?php
|
42 |
$date = strtotime($page['date']);
|
42 |
$date = strtotime($page['date']);
|
43 |
$titre_page = preg_replace('/^\d+-\d+ :/', '', $page['titre']);
|
43 |
$titre_page = preg_replace('/^\d+-\d+ :/', '', $page['titre']);
|
44 |
|
- |
|
45 |
/*Type d'item reçu
|
- |
|
46 |
<item>
|
- |
|
47 |
<guid>14148</guid>
|
- |
|
48 |
<title>Solanum bonariense L. [nn64856] par fried@...</title>
|
- |
|
49 |
<link>http://www.tela-botanica.org/sites/eflore/generique/images/projets/cel/000/014/S/000_014_148_S.jpg</link>
|
- |
|
50 |
<description>http://www.tela-botanica.org/eflore/BDNFF/4.02/nn/64856/cel</description>
|
- |
|
51 |
<category></category>
|
- |
|
52 |
<pubDate>Tue, 19 Oct 2010 17:50:48 +0200</pubDate>
|
- |
|
53 |
</item>
|
- |
|
54 |
|
- |
|
55 |
*/
|
44 |
?>
|
56 |
?>
|
- |
|
57 |
<div class="actualites1">
|
45 |
<div class="actualites1">
|
58 |
<a href="<?=$page['description']?>" class="image-lien" title="http://www.tela-botanica.org/appli:cel-img:0000<?=$page['guid']?>L"><img src="http://www.tela-botanica.org/appli:cel-img:0000<?=$page['guid']?>M" alt="<?=$titre_page?>"/></a>
|
46 |
<a href="<?=$page['description']?>" class="image-lien" title="http://www.tela-botanica.org/appli:cel-img:0000<?=$page['guid']?>L" rel="galerie-princ"><img src="http://www.tela-botanica.org/appli:cel-img:0000<?=$page['guid']?>M" alt="<?=$titre_page?>"/></a>
|
Line 59... |
Line 47... |
59 |
|
47 |
|
60 |
<div style="display: none;">
|
48 |
<div style="display: none;">
|
61 |
<div id="cel-obs-<?=$page['guid']?>" class="infos-annexe">
|
49 |
<div id="cel-obs-<?=$page['guid']?>" class="infos-annexe">
|
62 |
<a href="<?=$page['description']?>"><span class="image-titre"><?=$titre_page?></span><br />
|
50 |
<a href="<?=$page['description']?>"><span class="image-titre"><?=$titre_page?></span><br />
|
Line 88... |
Line 76... |
88 |
</div>*/
|
76 |
</div>*/
|
Line 89... |
Line 77... |
89 |
|
77 |
|
Line 90... |
Line 78... |
90 |
?>
|
78 |
?>
|
91 |
|
79 |
|
92 |
<script type="text/Javascript">
|
80 |
<script type="text/Javascript">
|
93 |
//Remplacer le lien de chaque actualité par un #cel-obs-guid
|
81 |
//Remplacer le lien de chaque actualité par un #cel-obs-guid
|
94 |
$(document).ready(function() {
|
82 |
$(document).ready(function() {
|
95 |
$('.actualites1').each(function () {
|
83 |
$('.actualites1').each(function () {
|
96 |
var id = $(this).find('.infos-annexe').attr('id');
|
84 |
var id = $(this).find('.infos-annexe').attr('id');
|