Subversion Repositories eFlore/Applications.cel

Rev

Rev 583 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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" />
31
	</head>
32
	<body>
33
		<!-- WIDGET:CEL:PHOTO - DEBUT -->
34
		<div id="contenu">
35
		<?php if (isset($erreurs) || isset($informations)) : ?>
36
			<h1>Erreur &amp; informations</h1>
37
			<p>Impossible d'afficher le flux.</p>
38
			<!-- Affichage des erreurs et messages d'information : -->
39
			<?php if ($erreurs) : ?>
40
				<?php foreach ($erreurs as $erreur) : ?>
41
					<p class="erreur"><?=$erreur;?></p>
42
				<?php endforeach; ?>
43
			<?php endif; ?>
44
 
45
			<?php if ($informations) : ?>
46
				<?php foreach ($informations as $information) : ?>
47
					<p class="info"><?=$information;?></p>
48
				<?php endforeach; ?>
49
			<?php endif; ?>
50
		<?php else : ?>
51
		 	<h1>
52
		 		Dernières images du
53
		 		<a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
54
		 			CEL
55
		 		</a>
56
		 	</h1>
57
			<p>
58
				<a href="http://www.tela-botanica.org/eflore/cel2/jrest/CelSyndicationImage/complet/atom"
59
					id="flux-suivre"
60
					title="Suivre les images"
61
					onclick="window.open(this.href);return false;">
62
					Suivre les images
63
				</a>
64
			</p>
65
			<div id="galerie-photo">
66
			<?php foreach ($items as $item) : ?>
67
				<div class="photo">
68
					<a href="<?=$item['lien']?>" class="cel-img" title="<?=sprintf($item['url_tpl'], 'L')?>" rel="galerie-princ">
69
						<img src="<?=sprintf($item['url_tpl'], 'M')?>" alt="<?=$item['titre']?>"/>
70
					</a>
71
					<div style="display: none;">
72
						<div id="cel-obs-<?=$item['guid']?>" class="infos">
73
							<a href="<?=$item['lien']?>">
74
								<span class="img-titre"><?=$item['titre']?></span><br />
75
								<span class="img-date">Publiée le <?=$item['date']?></span><br />
76
		 						Cliquez pour voir le détail
77
		 					</a>
78
		 				</div>
79
					</div>
80
				</div>
81
			<?php endforeach; ?>
82
			<?php if ($extra_actif) : ?>
83
				<div id="photo-extra" class="photo">
84
					<a href="<?=$extra['lien']?>" class="cel-img" title="<?=sprintf($extra['url_tpl'], 'L')?>" rel="galerie-princ">
85
						<img src="<?=sprintf($extra['url_tpl'], 'M')?>" alt="<?=$extra['titre']?>"/>
86
					</a>
87
					<div style="display: none;">
88
						<div id="cel-obs-extra" class="infos">
89
							<a href="<?=$extra['lien']?>">
90
								<span class="img-titre"><?=$extra['titre']?></span><br />
91
								<span class="img-date">Publiée le <?=$extra['date']?></span><br />
92
		 						Cliquez pour voir le détail
93
		 					</a>
94
		 				</div>
95
					</div>
96
				</div>
97
			</div>
98
			<?php endif ?>
99
			<p id="date-generation" class="discretion">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></p>
100
			<script type="text/Javascript">
101
				//<![CDATA[
102
				$(document).ready(function() {
103
					$("a.cel-img").fancybox({
104
						transitionIn : 'elastic',
105
						transitionOut : 'elastic',
106
						speedIn	 : 600,
107
						speedOut : 200,
108
						overlayShow : true
109
					});
110
				});
111
				//]]>
112
			</script>
113
	   	<?php endif; ?>
114
		</div>
115
		<!-- WIDGET:CEL:PHOTO - FIN -->
116
	</body>
117
</html>