Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1462 Rev 1480
Line 26... Line 26...
26
		<?php endforeach; ?>
26
		<?php endforeach; ?>
27
	<?php endif; ?>
27
	<?php endif; ?>
28
<?php else : ?>
28
<?php else : ?>
29
 	<h1>
29
 	<h1>
30
 		<? if (!empty($titre)) : ?>
30
 		<? if (!empty($titre)) : ?>
31
 			<?=$titre?> (<a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
-
 
32
	 			CEL
-
 
33
	 		</a>)
31
 			<?=$titre?>
34
 		<? else : ?>
32
 		<? endif ; ?>
35
	 		Dernières images du 
-
 
36
	 		<a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
-
 
37
	 			CEL
-
 
38
	 		</a>
-
 
39
 		<? endif; ?>
33
 		<? if($icone_rss) : ?>
40
 		<a href="<?=$flux_rss_url?>" 
34
 		<a href="<?=$flux_rss_url?>" 
41
			class="cel-photo-flux<?=$id?>" 
35
			class="cel-photo-flux" 
42
			title="Suivre les images" 
36
			title="Suivre les images" 
43
			onclick="window.open(this.href);return false;">
37
			onclick="window.open(this.href);return false;">
44
			<img src="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
38
			<img src="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
45
		</a>
39
		</a>
-
 
40
		<? endif; ?>
46
 	</h1>
41
 	</h1>
47
	<div id="cel-galerie-photo<?=$id?>">
42
	<div id="cel-galerie-photo<?=$id?>">
48
	<?php foreach ($items as $item) : ?>
43
	<?php foreach ($items as $item) : ?>
49
		<div class="cel-photo">
44
		<div class="cel-photo">
50
			<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?>">
45
			<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 75... Line 70...
75
	</div>
70
	</div>
76
	<?php endif ?>
71
	<?php endif ?>
77
	<p class="cel-photo-pieds discretion nettoyage">
72
	<p class="cel-photo-pieds discretion nettoyage">
78
		<span class="cel-photo-source">
73
		<span class="cel-photo-source">
79
			Source : 
74
			Source : 
80
			<a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
75
			<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
81
		 		CEL
76
		 		CEL
82
		 	</a>
77
		 	</a>
83
	 	</span>
78
	 	</span>
84
	 	<span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
79
	 	<span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
85
	 </p>
80
	 </p>
86
	<script type="text/Javascript">
81
	<script type="text/Javascript">
87
		//<![CDATA[
82
		//<![CDATA[
88
		
-
 
89
			
-
 
-
 
83
		var utiliseFancybox = "<?= $utilise_fancybox; ?>";   
-
 
84
		if(utiliseFancybox) {	
90
		$(document).ready(function() {
85
			$(document).ready(function() {
91
			$('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({
86
				$('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({
92
				transitionIn:'elastic',
87
					transitionIn:'elastic',
93
				transitionOut:'elastic',
88
					transitionOut:'elastic',
94
				speedIn	:600, 
89
					speedIn	:600, 
95
				speedOut:200,
90
					speedOut:200,
96
				overlayShow:true,
91
					overlayShow:true,
97
				titleShow:true,
92
					titleShow:true,
98
				titlePosition:'inside',
93
					titlePosition:'inside',
99
				titleFormat:function (titre, currentArray, currentIndex, currentOpts) {
94
					titleFormat:function (titre, currentArray, currentIndex, currentOpts) {
100
					var motif = /GUID : ([0-9]+)$/;
95
						var motif = /GUID : ([0-9]+)$/;
101
					motif.exec(titre);
96
						motif.exec(titre);
102
					var guid = RegExp.$1;
97
						var guid = RegExp.$1;
103
					var info = $('#cel-info-'+guid).clone().html();
98
						var info = $('#cel-info-'+guid).clone().html();
104
					var tpl = 
99
						var tpl = 
105
						'<div class="cel-legende">'+
100
							'<div class="cel-legende">'+
106
						'<p class="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+	
101
							'<p class="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+	
107
						(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
102
							(titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
108
						'<\/div>';
103
							'<\/div>';
109
					return tpl;
104
						return tpl;
110
				}
105
					}
-
 
106
				});
111
			});
107
			});
-
 
108
		} else {
-
 
109
			$('a.cel-img').click(function(event) {
-
 
110
				ouvrirFenetrePopup($(this));
-
 
111
				event.preventDefault();
112
		});
112
			});
-
 
113
		}
-
 
114
							
-
 
115
		function ouvrirFenetrePopup(lienImage) {
-
 
116
			var url = "?mode=popup&url_image="+lienImage.attr('href');
-
 
117
			window.open(url, '', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(700)+', height='+(650));
-
 
118
		}
113
		//]]>
119
		//]]>
114
	</script>
120
	</script>
115
<?php endif; ?>
121
<?php endif; ?>
116
</div>
122
</div>
117
<!-- WIDGET:CEL:PHOTO - FIN -->
123
<!-- WIDGET:CEL:PHOTO - FIN -->
118
124