Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1442 | Rev 1471 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1442 Rev 1450
1
<?php 	
1
<?php 	
2
	$icones = array('glyphicon-eye-open', 'glyphicon-grain', 'glyphicon-home');
2
	$icones = array('glyphicon-eye-open', 'glyphicon-grain', 'glyphicon-home');
3
	$index_icones = 0;
3
	$index_icones = 0;
4
?>
4
?>
5
<!DOCTYPE html>
5
<!DOCTYPE html>
6
<html>
6
<html>
7
	<head> 
7
	<head> 
8
		<title>Smart'Flore</title> 
8
		<title>Smart'Flore</title> 
9
		
9
		
10
		<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
10
		<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
11
		<meta http-equiv="content-style-type" content="text/css" />
11
		<meta http-equiv="content-style-type" content="text/css" />
12
		<meta http-equiv="content-script-type" content="text/javascript" />
12
		<meta http-equiv="content-script-type" content="text/javascript" />
13
		<meta http-equiv="content-language" content="fr" />
13
		<meta http-equiv="content-language" content="fr" />
14
		<meta http-equiv="cache-control" content="no-cache">
14
		<meta http-equiv="cache-control" content="no-cache">
15
		
15
		
16
		<!-- Favicones -->
16
		<!-- Favicones -->
17
		<link rel="shortcut icon" type="image/x-icon" href="http://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
17
		<link rel="shortcut icon" type="image/x-icon" href="http://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
18
		
18
		
19
		<!-- Viewport -->
19
		<!-- Viewport -->
20
		<meta name="apple-mobile-web-app-capable" content="yes" />
20
		<meta name="apple-mobile-web-app-capable" content="yes" />
21
		<meta name="apple-mobile-web-app-status-bar-style" content="black" />
21
		<meta name="apple-mobile-web-app-status-bar-style" content="black" />
22
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui">
22
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui">
23
		
23
		
24
		<!-- CSS -->
24
		<!-- CSS -->
25
		<link href="http://resources.tela-botanica.org/jquery/photoswipe/3.0.5/photoswipe.css" type="text/css" rel="stylesheet" />
25
		<link href="http://resources.tela-botanica.org/jquery/photoswipe/3.0.5/photoswipe.css" type="text/css" rel="stylesheet" />
26
		<link href="http://resources.tela-botanica.org/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
26
		<link href="http://resources.tela-botanica.org/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
27
		<link href="<?= $css ?>" rel="stylesheet" type="text/css" id="custom-css" />
27
		<link href="<?= $css ?>" rel="stylesheet" type="text/css" id="custom-css" />
28
		<link href="modules/mobile/presentations/css/smartflore.css" rel="stylesheet" type="text/css" id="smart-flore-css" />
28
		<link href="modules/mobile/presentations/css/smartflore.css" rel="stylesheet" type="text/css" id="smart-flore-css" />
29
 
29
 
30
		<!-- Javascript -->
30
		<!-- Javascript -->
31
		<script src="http://resources.tela-botanica.org/jquery/2.1.4/jquery.min.js"></script>
31
		<script src="http://resources.tela-botanica.org/jquery/2.1.4/jquery.min.js"></script>
32
		<script src="http://resources.tela-botanica.org/jquery/photoswipe/3.0.5/klass.min.js"></script>
32
		<script src="http://resources.tela-botanica.org/jquery/photoswipe/3.0.5/klass.min.js"></script>
33
		<script src="http://resources.tela-botanica.org/jquery/photoswipe/3.0.5/code.photoswipe.jquery-3.0.5.min.js"></script>
33
		<script src="http://resources.tela-botanica.org/jquery/photoswipe/3.0.5/code.photoswipe.jquery-3.0.5.min.js"></script>
34
		<script src="http://resources.tela-botanica.org/bootstrap/3.3.4/js/bootstrap.min.js"></script>
34
		<script src="http://resources.tela-botanica.org/bootstrap/3.3.4/js/bootstrap.min.js"></script>
35
		<script src="modules/mobile/presentations/js/mobile.js"></script>	
35
		<script src="modules/mobile/presentations/js/mobile.js"></script>	
36
		
36
 
-
 
37
		<!-- Google Analytics (en prod seulement) -->
-
 
38
		<?php if($prod): ?>
-
 
39
		<script>
-
 
40
			(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-
 
41
			(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
-
 
42
			m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-
 
43
			})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
 
44
 
-
 
45
			ga('create', 'UA-57885-5', 'auto');
-
 
46
			ga('send', 'pageview');
-
 
47
			//console.log('{"tag": "<?= $tag_fiche ?>", "nom_sci": "<?= $infos_nom['nom_sci'] ?>", "referentiel": "<?= $infos_nom['referentiel'] ?>"}');
-
 
48
			ga('send', 'event', 'fiche', 'consultation', '{"tag": "<?= $tag_fiche ?>", "nom_sci": "<?= $infos_nom['nom_sci'] ?>", "referentiel": "<?= $infos_nom['referentiel'] ?>"}', 1);
-
 
49
		</script>
-
 
50
		<?php endif; ?>
37
		<style>	
51
		<style>	
38
			.btn {border-radius:2em;}
52
			.btn {border-radius:2em;}
39
			.container-fluid {padding: 0px;}
53
			.container-fluid {padding: 0px;}
40
			[class*="span"] {margin-left: 0px;}
54
			[class*="span"] {margin-left: 0px;}
41
			.accordion {margin-top: 1em;}
55
			.accordion {margin-top: 1em;}
42
			.accordion-heading .accordion-toggle {padding: 0pt 10px;}
56
			.accordion-heading .accordion-toggle {padding: 0pt 10px;}
43
		</style>
57
		</style>
44
	</head>	
58
	</head>	
45
 
59
 
46
	<body>	
60
	<body>	
47
		<div id="smartflore-fiche">
61
		<div id="smartflore-fiche">
48
			<div id="smartflore-entete">
62
			<div id="smartflore-entete">
49
				<h1>
63
				<h1>
50
					<img id="smart-flore-logo-tela" src="http://resources.tela-botanica.org/tb/img/128x128/logo_carre_officiel.png" /> <span class="smart-flore-sf">S</span>mart'<span class="smart-flore-sf">F</span>lore
64
					<img id="smart-flore-logo-tela" src="http://resources.tela-botanica.org/tb/img/128x128/logo_carre_officiel.png" /> <span class="smart-flore-sf">S</span>mart'<span class="smart-flore-sf">F</span>lore
51
				</h1>
65
				</h1>
52
			</div>
66
			</div>
53
			
67
			
54
			<div id="smartflore-illustrations">
68
			<div id="smartflore-illustrations">
55
				<div id="smartflore-noms">
69
				<div id="smartflore-noms">
56
					<?php if(!empty($infos_nom['nom_verna'])) { ?>
70
					<?php if(!empty($infos_nom['nom_verna'])) { ?>
57
						<h2 class="smartflore-nom-verna">
71
						<h2 class="smartflore-nom-verna">
58
							<?= $infos_nom['nom_verna']; ?>
72
							<?= $infos_nom['nom_verna']; ?>
59
						</h2>
73
						</h2>
60
						<h3 class="smartflore-nom-sci">
74
						<h3 class="smartflore-nom-sci">
61
							<?= $infos_nom['nom_sci']; ?>
75
							<?= $infos_nom['nom_sci']; ?>
62
						</h3>
76
						</h3>
63
					<?php } else { ?>
77
					<?php } else { ?>
64
						<h2>
78
						<h2>
65
							<?= $infos_nom['nom_sci']; ?>
79
							<?= $infos_nom['nom_sci']; ?>
66
						</h2>
80
						</h2>
67
					<?php } ?> 
81
					<?php } ?> 
68
					<h4 class="smartflore-famille">
82
					<h4 class="smartflore-famille">
69
						Famille des <?= $infos_nom['famille']; ?>
83
						Famille des <?= $infos_nom['famille']; ?>
70
					</h4>
84
					</h4>
71
				</div>
85
				</div>
72
				
86
				
73
				<div id="smartflore-illustrations-galerie">
87
				<div id="smartflore-illustrations-galerie">
74
					<? if (count($illustrations) != 0) : ?>
88
					<? if (count($illustrations) != 0) : ?>
75
						<div id="smartflore-illustrations-galerie-carousel" class="carousel slide" data-ride="carousel" data-interval="false">
89
						<div id="smartflore-illustrations-galerie-carousel" class="carousel slide" data-ride="carousel" data-interval="false">
76
							<!-- Indicators -->
90
							<!-- Indicators -->
77
							<ol class="carousel-indicators">
91
							<ol class="carousel-indicators">
78
								<? for($ill = 0; $ill < count($illustrations); $ill++) { ?>
92
								<? for($ill = 0; $ill < count($illustrations); $ill++) { ?>
79
								    <li data-target="#smartflore-illustrations-galerie-carousel" data-slide-to="<?= $ill; ?>" class="<?= ($ill == 0) ? 'active' : ''; ?>"></li>
93
								    <li data-target="#smartflore-illustrations-galerie-carousel" data-slide-to="<?= $ill; ?>" class="<?= ($ill == 0) ? 'active' : ''; ?>"></li>
80
								<?php } ?>
94
								<?php } ?>
81
							</ol>
95
							</ol>
82
							
96
							
83
							<!-- Wrapper for slides -->
97
							<!-- Wrapper for slides -->
84
							<div class="carousel-inner" role="listbox">
98
							<div class="carousel-inner" role="listbox">
85
								<? for($ill = 0; $ill < count($illustrations); $ill++) { ?>
99
								<? for($ill = 0; $ill < count($illustrations); $ill++) { ?>
86
								    <div class="item <?= ($ill == 0) ? 'active' : ''; ?>">
100
								    <div class="item <?= ($ill == 0) ? 'active' : ''; ?>">
87
								    	<? if (trim($illustrations[$ill]['legende']['texte']) != '&nbsp;') : ?>
101
								    	<? if (trim($illustrations[$ill]['legende']['texte']) != '&nbsp;') : ?>
88
											<? $alt = $illustrations[$ill]['legende']['titre'].' ('.$illustrations[$ill]['legende']['texte'].')'; ?>
102
											<? $alt = $illustrations[$ill]['legende']['titre'].' ('.$illustrations[$ill]['legende']['texte'].')'; ?>
89
										<? else : ?>
103
										<? else : ?>
90
											<? $alt = $illustrations[$ill]['legende']['titre']; ?>
104
											<? $alt = $illustrations[$ill]['legende']['titre']; ?>
91
										<? endif; ?>
105
										<? endif; ?>
92
								      	<img class="img-responsive center-block" src="<?= $illustrations[$ill]['src']; ?>" alt="<?= $alt; ?>">
106
								      	<img class="img-responsive center-block" src="<?= $illustrations[$ill]['src']; ?>" alt="<?= $alt; ?>">
93
								      	<div class="carousel-caption">
107
								      	<div class="carousel-caption">
94
								      		<?= $alt; ?>
108
								      		<?= $alt; ?>
95
								      	</div>
109
								      	</div>
96
								    </div>
110
								    </div>
97
							    <?php } ?>
111
							    <?php } ?>
98
							</div>
112
							</div>
99
							
113
							
100
							<!-- Controls -->
114
							<!-- Controls -->
101
							<a class="left carousel-control" href="#smartflore-illustrations-galerie-carousel" role="button" data-slide="prev">
115
							<a class="left carousel-control" href="#smartflore-illustrations-galerie-carousel" role="button" data-slide="prev">
102
								<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
116
								<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
103
							    <span class="sr-only">Previous</span>
117
							    <span class="sr-only">Previous</span>
104
							</a>
118
							</a>
105
							<a class="right carousel-control" href="#smartflore-illustrations-galerie-carousel" role="button" data-slide="next">
119
							<a class="right carousel-control" href="#smartflore-illustrations-galerie-carousel" role="button" data-slide="next">
106
							    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
120
							    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
107
							    <span class="sr-only">Next</span>
121
							    <span class="sr-only">Next</span>
108
							</a>
122
							</a>
109
						</div>
123
						</div>
110
					<? endif; ?>		
124
					<? endif; ?>		
111
				</div>
125
				</div>
112
			</div>
126
			</div>
113
			
127
			
114
			<div id="smartflore-sections">
128
			<div id="smartflore-sections">
115
				<div class="panel-group" id="smartflore-accordeon-sections" role="tablist" aria-multiselectable="true">
129
				<div class="panel-group" id="smartflore-accordeon-sections" role="tablist" aria-multiselectable="true">
116
					<div>
130
					<div>
117
					<? foreach($texte['corps'] as $titre_section => $texte_section) : ?>
131
					<? foreach($texte['corps'] as $titre_section => $texte_section) : ?>
118
						<div class="panel-heading smartflore-titre-section" role="tab" id="heading<?= md5($titre_section); ?>">
132
						<div class="panel-heading smartflore-titre-section" role="tab" id="heading<?= md5($titre_section); ?>">
119
					      <h4 class="panel-title">
133
					      <h4 class="panel-title">
120
					        <a data-toggle="collapse" data-parent="#smartflore-accordeon-sections" href="#collapse<?= md5($titre_section); ?>" aria-expanded="true" aria-controls="collapse<?= md5($titre_section); ?>">
134
					        <a data-toggle="collapse" data-parent="#smartflore-accordeon-sections" href="#collapse<?= md5($titre_section); ?>" aria-expanded="true" aria-controls="collapse<?= md5($titre_section); ?>">
121
					          	<span class="glyphicon <?= $icones[$index_icones++]; ?> smartflore-titre-section-icone margin-left-1em margin-top-03em"></span>
135
					          	<span class="glyphicon <?= $icones[$index_icones++]; ?> smartflore-titre-section-icone margin-left-1em margin-top-03em"></span>
122
								<?= $titre_section; ?>
136
								<?= $titre_section; ?>
123
					        </a>
137
					        </a>
124
					      </h4>
138
					      </h4>
125
					    </div>
139
					    </div>
126
					    <div id="collapse<?= md5($titre_section); ?>" class="panel-collapse collapse smartflore-contenu-section" role="tabpanel" aria-labelledby="heading<?= md5($titre_section); ?>">
140
					    <div id="collapse<?= md5($titre_section); ?>" class="panel-collapse collapse smartflore-contenu-section" role="tabpanel" aria-labelledby="heading<?= md5($titre_section); ?>">
127
					      <div class="panel-body">
141
					      <div class="panel-body">
128
					      	<?= $texte_section; ?>
142
					      	<?= $texte_section; ?>
129
					      </div>
143
					      </div>
130
					    </div>
144
					    </div>
131
					<? endforeach; ?>
145
					<? endforeach; ?>
132
					</div>
146
					</div>
133
				</div>
147
				</div>
134
			</div>
148
			</div>
135
			
149
			
136
			<div id="smartflore-footer">
150
			<div id="smartflore-footer">
137
				<div class="col-md-12">
151
				<div class="col-md-12">
138
					<div class="col-md-4 col-xs-4 smartflore-footer-bouton">
152
					<div class="col-md-4 col-xs-4 smartflore-footer-bouton">
139
						<a href="<?= $lien_fiche; ?>" target="_blank">
153
						<a href="<?= $lien_fiche; ?>" target="_blank">
140
							<button type="button" class="btn btn-default" aria-label="Left Align">
154
							<button type="button" class="btn btn-default" aria-label="Left Align">
141
								En savoir plus
155
								En savoir plus
142
							</button>
156
							</button>
143
						</a>
157
						</a>
144
					</div>
158
					</div>
145
					
159
					
146
					<div class="col-md-4 col-xs-4 smartflore-footer-bouton">
160
					<div class="col-md-4 col-xs-4 smartflore-footer-bouton">
147
						<button id="smartflore-footer-button-sources" type="button" class="btn btn-default" aria-label="Left Align">
161
						<button id="smartflore-footer-button-sources" type="button" class="btn btn-default" aria-label="Left Align">
148
						  	Sources
162
						  	Sources
149
						</button>
163
						</button>
150
						
164
						
151
						<div id="smartflore-sources">
165
						<div id="smartflore-sources">
152
							<?= $texte['sources']; ?>
166
							<?= $texte['sources']; ?>
153
						</div>
167
						</div>
154
					</div>
168
					</div>
155
					
169
					
156
					<div class="col-md-4 col-xs-4 smartflore-footer-bouton">
170
					<div class="col-md-4 col-xs-4 smartflore-footer-bouton">
157
						<a href="<?= $lien_edition; ?>" target="_blank">
171
						<a href="<?= $lien_edition; ?>" target="_blank">
158
							<button type="button" class="btn btn-default" aria-label="Left Align">
172
							<button type="button" class="btn btn-default" aria-label="Left Align">
159
								Modifier
173
								Modifier
160
							</button>
174
							</button>
161
						</a>
175
						</a>
162
					</div>
176
					</div>
163
				</div>
177
				</div>
164
				
178
				
165
				<div class="clearfix"></div>
179
				<div class="clearfix"></div>
166
				
180
				
167
				<div class="col-md-12" id="smartflore-partenaires">
181
				<div class="col-md-12" id="smartflore-partenaires">
168
					<div class="panel-group" id="smartflore-accordeon-partenaires" role="tablist" aria-multiselectable="true">
182
					<div class="panel-group" id="smartflore-accordeon-partenaires" role="tablist" aria-multiselectable="true">
169
						<div class="panel-heading smartflore-titre-partenaires" role="tab" id="heading-partenaires">
183
						<div class="panel-heading smartflore-titre-partenaires" role="tab" id="heading-partenaires">
170
					      <h4 class="panel-title">
184
					      <h4 class="panel-title">
171
					        <a data-toggle="collapse" data-parent="#smartflore-accordeon-partenaires" href="#collapse-partenaires" aria-expanded="true" aria-controls="collapse-partenaires">
185
					        <a data-toggle="collapse" data-parent="#smartflore-accordeon-partenaires" href="#collapse-partenaires" aria-expanded="true" aria-controls="collapse-partenaires">
172
					          	<span class="glyphicon glyphicon-linkglyphicon glyphicon-link smartflore-titre-partenaires-icone margin-left-1em margin-top-03em"></span>
186
					          	<span class="glyphicon glyphicon-linkglyphicon glyphicon-link smartflore-titre-partenaires-icone margin-left-1em margin-top-03em"></span>
173
								Partenaires
187
								Partenaires
174
					        </a>
188
					        </a>
175
					      </h4>
189
					      </h4>
176
					    </div>
190
					    </div>
177
					    <div id="collapse-partenaires" class="panel-collapse collapse smartflore-contenu-partenaires" role="tabpanel" aria-labelledby="heading-partenaires">
191
					    <div id="collapse-partenaires" class="panel-collapse collapse smartflore-contenu-partenaires" role="tabpanel" aria-labelledby="heading-partenaires">
178
					      <div class="panel-body">
192
					      <div class="panel-body">
179
					      		<div class="col-md-6 col-xs-6">
193
					      		<div class="col-md-6 col-xs-6">
180
					      			<img class="smartflore-footer-partenaires-logo" src="<?= $url_logos; ?>logo-msjs.jpg" />
194
					      			<img class="smartflore-footer-partenaires-logo" src="<?= $url_logos; ?>logo-msjs.jpg" />
181
					      		</div>
195
					      		</div>
182
					      		<div class="col-md-6 col-xs-6">
196
					      		<div class="col-md-6 col-xs-6">
183
					      			<img class="smartflore-footer-partenaires-logo" src="<?= $url_logos; ?>logo-investissement-avenir.jpg" />
197
					      			<img class="smartflore-footer-partenaires-logo" src="<?= $url_logos; ?>logo-investissement-avenir.jpg" />
184
					      		</div>
198
					      		</div>
185
					      </div>
199
					      </div>
186
					    </div>
200
					    </div>
187
					</div>
201
					</div>
188
				</div>
202
				</div>
189
			</div>
203
			</div>
190
		</div>
204
		</div>
191
	</body>
205
	</body>
192
</html>
206
</html>