Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1443 | Rev 1449 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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