Subversion Repositories eFlore/Applications.cel

Rev

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