Subversion Repositories Sites.tela-botanica.org

Rev

Rev 966 | Rev 996 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 966 Rev 995
Line 26... Line 26...
26
			<!-- Affichage du flux RSS -->
26
			<!-- Affichage du flux RSS -->
27
			<?php $flux = array(); ?>
27
			<?php $flux = array(); ?>
28
  				<?php foreach ($sites as $site) : ?>
28
  				<?php foreach ($sites as $site) : ?>
29
  					<h1><?=$site['titre']?></h1>
29
  					<h1><?=$site['titre']?></h1>
30
  					<div class="contenu_RSS" <?=($site['id']!="") ? 'id="'.$site["id"].'"' : ""; ?>>
30
  					<div class="contenu_RSS" <?=($site['id']!="") ? 'id="'.$site["id"].'"' : ""; ?>>
31
  					<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>
31
  						<a href="http://www.tela-botanica.org/eflore/cel2/jrest/CelSyndicationImage/complet/atom" class="suivre-observations" title="Suivre les images" onclick="window.open(this.href);return false;">Suivre les images</a>
32
    				<?php foreach ($site['pages'] as $page) : ?>
32
    				<?php foreach ($site['pages'] as $page) : ?>
33
    					<?php
33
    					<?php
34
							//Traitement spécifique tela
34
							//Traitement spécifique tela
35
							// La ligne ci-dessous sert à enlever les "align=left" dans les images génériques par spip
35
							// La ligne ci-dessous sert à enlever les "align=left" dans les images génériques par spip
36
							// TODO : enlever du flux RSS 
36
							// TODO : enlever du flux RSS 
37
							$image = substr_replace($page['image'], ' ', strpos($page['image'], 'align='), 12);
37
							$image = substr_replace($page['image'], ' ', strpos($page['image'], 'align='), 12);
38
						?>
38
						?>
39
    					<?php 
39
    					<?php 
40
							$date = strtotime($page['date']); 
40
							$date = strtotime($page['date']); 
41
    						$titre_page = preg_replace('/^\d+-\d+&nbsp;:/', '', $page['titre']); 
41
    						$titre_page = preg_replace('/^\d+-\d+&nbsp;:/', '', $page['titre']);
-
 
42
							$tpl_url = preg_replace('/[SML]\.jpg$/', '%s.jpg', $page['guid']);
-
 
43
							$guid = $page['guid'];
-
 
44
							if (preg_match('/appli:cel-img:([0-9]+)[SML]\.jpg$/', 	$page['guid'], $match)) {
-
 
45
  								$guid = (int) $match[1];
-
 
46
							}
42
						?>
47
						?>
43
    					<div class="actualites1">
48
    					<div class="actualites1">
44
    						<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>
49
    						<a href="<?=$page['description']?>" class="image-lien" title="<?=sprintf($tpl_url, L)?>" rel="galerie-princ">
-
 
50
    							<img src="<?=sprintf($tpl_url, M)?>" alt="<?=$titre_page?>"/>
-
 
51
    						</a>
Line 45... Line 52...
45
    						
52
    						
46
    						<div style="display: none;">
53
    						<div style="display: none;">
47
								<div id="cel-obs-<?=$page['guid']?>" class="infos-annexe">
54
								<div id="cel-obs-<?=$guid?>" class="infos-annexe">
48
	    							<a href="<?=$page['description']?>"><span class="image-titre"><?=$titre_page?></span><br />
55
	    							<a href="<?=$page['description']?>"><span class="image-titre"><?=$titre_page?></span><br />
49
	    							<span class="image-date">Publiée le <?=$page['date']?></span><br />
56
	    								<span class="image-date">Publiée le <?=$page['date']?></span><br />
50
	    							Cliquez pour voir le détail
57
	    								Cliquez pour voir le détail
51
	    							</a>
-
 
52
	    							 							
58
	    							</a>
53
	    						</div>
59
	    						</div>
54
    						</div>
60
    						</div>
55
						</div>
61
						</div>
56
    				<?php endforeach; ?>
62
    				<?php endforeach; ?>
57
    				<!-- img id="imgExtra" src="http://www.tela-botanica.org/appli:cel-img:0000<?=$sites[0]['pages'][7]['guid']?>M" / -->
63
    				<!-- img id="imgExtra" src="http://www.tela-botanica.org/appli:cel-img:0000<?=$sites[0]['pages'][7]['guid']?>M" / -->
58
    				<? $page = $sites[0]['pages'][7]; ?>
64
    				<? $page = $sites[0]['pages'][7]; ?>
59
    				<div class="actualites1">
65
    				<div class="actualites1">
60
   						<a href="<?=$page['description']?>" class="image-lien" title="http://www.tela-botanica.org/appli:cel-img:0000<?=$page['guid']?>L" rel="galerie-princ">
66
   						<a href="<?=$page['description']?>" class="image-lien" title="<?=sprintf($tpl_url, L)?>" rel="galerie-princ">
61
   							<img id="imgExtra" src="http://www.tela-botanica.org/appli:cel-img:0000<?=$page['guid']?>M" alt="<?=$titre_page?>"/>
67
   							<img id="imgExtra" src="<?=sprintf($tpl_url, M)?>" alt="<?=$titre_page?>"/>
62
   						</a>
68
   						</a>
63
   						<div style="display: none;">
69
   						<div style="display: none;">
64
							<div id="cel-obs-img-extra" class="infos-annexe">
70
							<div id="cel-obs-img-extra" class="infos-annexe">
65
    							<a href="<?=$page['description']?>">
71
    							<a href="<?=$page['description']?>">
Line 85... Line 91...
85
	    							'transitionOut'	: 'none'
91
	    							'transitionOut'	: 'none'
86
	    							});
92
	    							});
87
    						});
93
    						});
88
    					});
94
    					});
89
    				</script>
95
    				</script>
90
    				</div>
96
    			</div>
91
  				<?php endforeach; ?>
97
  				<?php endforeach; ?>
92
		<?php endif; ?>
98
		<?php endif; ?>
93
	</div>
99
	</div>
94
<!-- SYNDICATION - FIN -->
100
<!-- SYNDICATION - FIN -->
95
101