Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1462 Rev 1480
Line 69... Line 69...
69
			<?php endif; ?>
69
			<?php endif; ?>
70
		<?php else : ?>
70
		<?php else : ?>
71
		 	<h1>
71
		 	<h1>
72
		 		<? if (!empty($titre)) : ?>
72
		 		<? if (!empty($titre)) : ?>
73
		 			<?=$titre?>
73
		 			<?=$titre?>
74
		 		<? else : ?>
74
		 		<? endif ; ?>
75
			 		Dernières images du 
-
 
76
			 		<a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
-
 
77
			 			CEL
-
 
78
			 		</a>
-
 
79
		 		<? endif; ?>
75
		 		<? if($icone_rss) : ?>
80
		 		<a href="<?=$flux_rss_url?>" 
76
		 		<a href="<?=$flux_rss_url?>" 
81
					class="cel-photo-flux" 
77
					class="cel-photo-flux" 
82
					title="Suivre les images" 
78
					title="Suivre les images" 
83
					onclick="window.open(this.href);return false;">
79
					onclick="window.open(this.href);return false;">
84
					<img src="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
80
					<img src="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
85
				</a>
81
				</a>
-
 
82
				<? endif; ?>
86
		 	</h1>
83
		 	</h1>
87
			<div id="cel-galerie-photo<?=$id?>">
84
			<div id="cel-galerie-photo<?=$id?>">
88
			<?php foreach ($items as $item) : ?>
85
			<?php foreach ($items as $item) : ?>
89
				<div class="cel-photo">
86
				<div class="cel-photo">
90
					<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?>">
87
					<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?>">
Line 115... Line 112...
115
			</div>
112
			</div>
116
			<?php endif ?>
113
			<?php endif ?>
117
			<p class="cel-photo-pieds discretion nettoyage">
114
			<p class="cel-photo-pieds discretion nettoyage">
118
				<span class="cel-photo-source">
115
				<span class="cel-photo-source">
119
					Source : 
116
					Source : 
120
					<a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
117
					<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
121
				 		CEL
118
				 		CEL
122
				 	</a>
119
				 	</a>
123
			 	</span>
120
			 	</span>
124
			 	<span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
121
			 	<span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
125
			 </p>
122
			 </p>
126
			<script type="text/Javascript">
123
			<script type="text/Javascript">
127
				//<![CDATA[
124
				//<![CDATA[
-
 
125
				var utiliseFancybox = "<?= $utilise_fancybox; ?>";   
-
 
126
				if(utiliseFancybox) {
128
				$('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({
127
					$('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({
129
					transitionIn:'elastic',
128
						transitionIn:'elastic',
130
					transitionOut:'elastic',
129
						transitionOut:'elastic',
131
					speedIn	:600, 
130
						speedIn	:600, 
132
					speedOut:200,
131
						speedOut:200,
133
					overlayShow:true,
132
						overlayShow:true,
134
					titleShow:true,
133
						titleShow:true,
135
					titlePosition:'inside',
134
						titlePosition:'inside',
136
					titleFormat:function (titre, currentArray, currentIndex, currentOpts) {
135
						titleFormat:function (titre, currentArray, currentIndex, currentOpts) {
137
						var motif = /GUID : ([0-9]+)$/;
136
							var motif = /GUID : ([0-9]+)$/;
138
						motif.exec(titre);
137
							motif.exec(titre);
139
						var guid = RegExp.$1;
138
							var guid = RegExp.$1;
140
						var info = $('#cel-info-'+guid).clone().html();
139
							var info = $('#cel-info-'+guid).clone().html();
141
						var tpl = 
140
							var tpl = 
142
							'<div class="cel-legende">'+
141
								'<div class="cel-legende">'+
143
							'<p class="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+	
142
								'<p class="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+	
144
							(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
143
								(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
145
							'<\/div>';
144
								'<\/div>';
146
						return tpl;
145
							return tpl;
147
					}
146
						}
-
 
147
					});
-
 
148
				} else {
-
 
149
					$('a.cel-img').click(function(event) {
-
 
150
						ouvrirFenetrePopup($(this));
-
 
151
						event.preventDefault();
148
				});
152
					});
-
 
153
				}
-
 
154
									
-
 
155
				function ouvrirFenetrePopup(lienImage) {
-
 
156
					var url = "?mode=popup&url_image="+lienImage.attr('href');
-
 
157
					window.open(url, '', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(700)+', height='+(650));
-
 
158
				}
149
				//]]>
159
				//]]>
150
			</script>
160
			</script>
151
	   	<?php endif; ?>
161
	   	<?php endif; ?>
152
		</div>
162
		</div>
153
		<!-- WIDGET:CEL:PHOTO - FIN -->
163
		<!-- WIDGET:CEL:PHOTO - FIN -->