Subversion Repositories eFlore/Applications.cel

Rev

Rev 2515 | Rev 2517 | 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" />
2516 mathias 13
        <meta name="author" content="Tela Botanica" />
580 jpm 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
 
2515 mathias 17
		<!-- OpenGraph pour Facebook, Pinterest, Google+ -->
18
		<meta property="og:type" content="website" />
19
		<meta property="og:title" content="Widget photo du CeL" />
20
		<meta property="og:site_name" content="Tela Botanica" />
21
		<meta property="og:description" content="Mini-galerie photo des observations publiques du Carnet en Ligne" />
22
		<meta property="og:image" content="http://resources.tela-botanica.org/tb/img/256x256/carre_englobant.png" />
23
		<meta property="og:image:type" content="image/png" />
24
		<meta property="og:image:width" content="256" />
25
		<meta property="og:image:height" content="256" />
26
		<meta property="og:locale" content="fr_FR" />
27
 
580 jpm 28
		<!-- Spécial mobile -->
29
		<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
30
 
31
		<!-- Favicones -->
32
		<link rel="icon" type="image/png" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.png" />
33
		<link rel="shortcut icon" type="image/x-icon" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.ico" />
34
 
35
		<!-- Feuilles de styles -->
587 jpm 36
		<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 37
		<link rel="stylesheet" type="text/css" href="<?=$url_css?>photo.css" media="screen" />
583 jpm 38
		<style type="text/css">
587 jpm 39
			html {
40
				overflow:hidden;
583 jpm 41
			}
587 jpm 42
			body{
43
				overflow:hidden;
44
				padding:0;
45
				margin:0;
46
				width:100%;
47
				height:100%;
1462 aurelien 48
				background-color:#DDDDDD;
49
				color:black;
583 jpm 50
			}
879 jpm 51
			#cel-photo-contenu<?=$id?>, #cel-galerie-photo<?=$id?>{
587 jpm 52
				width:<?=(($colonne * 69))?>px;
53
			}
879 jpm 54
			#cel-galerie-photo<?=$id?> #cel-photo-extra<?=$id?> img{
587 jpm 55
				width:<?=(($colonne * 69)-6)?>px;
56
			}
583 jpm 57
		</style>
587 jpm 58
 
59
		<!-- Javascript : bibliothèques -->
879 jpm 60
		<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/1.6/jquery-1.6.min.js"></script>
587 jpm 61
		<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 62
	</head>
63
	<body>
64
		<!-- WIDGET:CEL:PHOTO - DEBUT -->
879 jpm 65
		<div id="cel-photo-contenu<?=$id?>" class="cel-photo-contenu">
580 jpm 66
		<?php if (isset($erreurs) || isset($informations)) : ?>
67
			<h1>Erreur &amp; informations</h1>
68
			<p>Impossible d'afficher le flux.</p>
69
			<!-- Affichage des erreurs et messages d'information : -->
70
			<?php if ($erreurs) : ?>
71
				<?php foreach ($erreurs as $erreur) : ?>
72
					<p class="erreur"><?=$erreur;?></p>
73
				<?php endforeach; ?>
74
			<?php endif; ?>
75
 
76
			<?php if ($informations) : ?>
77
				<?php foreach ($informations as $information) : ?>
78
					<p class="info"><?=$information;?></p>
79
				<?php endforeach; ?>
80
			<?php endif; ?>
81
		<?php else : ?>
82
		 	<h1>
879 jpm 83
		 		<? if (!empty($titre)) : ?>
84
		 			<?=$titre?>
1480 aurelien 85
		 		<? endif ; ?>
86
		 		<? if($icone_rss) : ?>
583 jpm 87
		 		<a href="<?=$flux_rss_url?>"
879 jpm 88
					class="cel-photo-flux"
580 jpm 89
					title="Suivre les images"
90
					onclick="window.open(this.href);return false;">
587 jpm 91
					<img src="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
580 jpm 92
				</a>
1480 aurelien 93
				<? endif; ?>
583 jpm 94
		 	</h1>
879 jpm 95
			<div id="cel-galerie-photo<?=$id?>">
580 jpm 96
			<?php foreach ($items as $item) : ?>
587 jpm 97
				<div class="cel-photo">
879 jpm 98
					<a href="<?=sprintf($item['url_tpl'], 'XL')?>" class="cel-img" title="<?=$item['titre']?> - Publiée le <?=$item['date']?> - GUID : <?=$item['guid']?>" rel="galerie-princ<?=$id?>">
627 jpm 99
						<img src="<?=sprintf($item['url_tpl'], 'CRX2S')?>" alt="<?=$item['titre']?>"/>
580 jpm 100
					</a>
587 jpm 101
					<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
583 jpm 102
						<strong>
1451 aurelien 103
							<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '') { ?>
587 jpm 104
							<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
583 jpm 105
								onclick="window.open(this.href);return false;"
106
								title="Cliquez pour accéder à la fiche eFlore">
1495 aurelien 107
								<?=$item['infos']['nom_sci']?>
108
							</a> par
109
							<a class="cel-img-contact"
110
								href="?mode=contact&nn=<?= urlencode($item['infos']['nn']) ;?>&nom_sci=<?= urlencode($item['infos']['nom_sci']) ;?>&date=<?= urlencode($item['infos']['date']) ;?>&id_image=<?= $item['guid']; ?>"
111
								title="Cliquez pour contacter l'auteur de la photo">
112
								<?=$item['infos']['auteur']?>
583 jpm 113
							</a>
1495 aurelien 114
							le <?=$item['infos']['date']?>
1451 aurelien 115
							<?php } else { ?>
116
								<?=$item['titre']?>
117
							<?php } ?>
583 jpm 118
						</strong><br />
587 jpm 119
						<span class="cel-img-date">Publiée le <?=$item['date']?></span>
583 jpm 120
		 			</div>
580 jpm 121
				</div>
122
			<?php endforeach; ?>
123
			<?php if ($extra_actif) : ?>
879 jpm 124
				<div id="cel-photo-extra<?=$id?>" class="cel-photo-extra cel-photo">
125
					<a href="<?=sprintf($extra['url_tpl'], 'XL')?>" class="cel-img" title="<?=$extra['titre']?> - Publiée le <?=$extra['date']?> - GUID : <?=$extra['guid']?>" rel="galerie-princ<?=$id?>">
627 jpm 126
						<img src="<?=sprintf($extra['url_tpl'], 'CRS')?>" alt="<?=$extra['titre']?>"/>
580 jpm 127
					</a>
128
				</div>
129
			</div>
130
			<?php endif ?>
879 jpm 131
			<p class="cel-photo-pieds discretion nettoyage">
132
				<span class="cel-photo-source">
133
					Source :
1480 aurelien 134
					<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
879 jpm 135
				 		CEL
136
				 	</a>
137
			 	</span>
138
			 	<span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
139
			 </p>
580 jpm 140
			<script type="text/Javascript">
583 jpm 141
				//<![CDATA[
1480 aurelien 142
				var utiliseFancybox = "<?= $utilise_fancybox; ?>";
143
				if(utiliseFancybox) {
144
					$('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({
145
						transitionIn:'elastic',
146
						transitionOut:'elastic',
147
						speedIn	:600,
148
						speedOut:200,
149
						overlayShow:true,
150
						titleShow:true,
151
						titlePosition:'inside',
152
						titleFormat:function (titre, currentArray, currentIndex, currentOpts) {
153
							var motif = /GUID : ([0-9]+)$/;
154
							motif.exec(titre);
155
							var guid = RegExp.$1;
156
							var info = $('#cel-info-'+guid).clone().html();
157
							var tpl =
158
								'<div class="cel-legende">'+
159
								'<p class="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+
160
								(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
161
								'<\/div>';
162
							return tpl;
163
						}
164
					});
165
				} else {
166
					$('a.cel-img').click(function(event) {
167
						ouvrirFenetrePopup($(this));
168
						event.preventDefault();
169
					});
170
				}
1495 aurelien 171
 
172
				$(document).ready(function() {
173
					$('a.cel-img-contact').live('click', function(event) {
174
						event.preventDefault();
175
						ouvrirFenetreContact($(this));
176
					});
177
				});
1480 aurelien 178
 
179
				function ouvrirFenetrePopup(lienImage) {
1495 aurelien 180
					var url = "?mode=popup&url_image="+lienImage.attr('href')+'&galerie_id=<?= $galerie_id ?>';
1480 aurelien 181
					window.open(url, '', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(700)+', height='+(650));
182
				}
1495 aurelien 183
 
184
				function ouvrirFenetreContact(lienImage) {
185
					var url = lienImage.attr("href");
186
					window.open(url, '_blank', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(400)+', height='+(550));
187
				}
580 jpm 188
				//]]>
189
			</script>
190
	   	<?php endif; ?>
191
		</div>
192
		<!-- WIDGET:CEL:PHOTO - FIN -->
193
	</body>
194
</html>