Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3868 Rev 3881
Line 238... Line 238...
238
												<div
238
												<div
239
													id="tb-geolocation"
239
													id="tb-geolocation"
240
													style="height: 400px;width: 100%"
240
													style="height: 400px;width: 100%"
241
													data-type-localisation="<?php echo $widget['type_localisation'] ?? '';?>"
241
													data-type-localisation="<?php echo $widget['type_localisation'] ?? '';?>"
242
													data-zoom="<?php echo $widget['localisation']['zoom'] ?? '5';?>"
242
													data-zoom="<?php echo $widget['localisation']['zoom'] ?? '5';?>"
243
													data-layer="osm"
243
													data-layer="<?php echo 'googleHybrid' === $widget['fond_carte'] ? $widget['fond_carte'] : 'osm';?>"
244
													data-form-suffix=""
244
													data-form-suffix=""
245
													>
245
													>
246
												</div>
246
												</div>
247
											</div>
247
											</div>
248
										</div>
248
										</div>
Line 351... Line 351...
351
																data-num-nom-sel="<?php echo $taxon['num_nom_sel'];?>"
351
																data-num-nom-sel="<?php echo $taxon['num_nom_sel'];?>"
352
																data-nom-ret="<?php echo $taxon['nom_ret'];?>"
352
																data-nom-ret="<?php echo $taxon['nom_ret'];?>"
353
																data-num-nom-ret="<?php echo $taxon['num_nom_ret'];?>"
353
																data-num-nom-ret="<?php echo $taxon['num_nom_ret'];?>"
354
																data-nt="<?php echo $taxon['num_taxon'];?>"
354
																data-nt="<?php echo $taxon['num_taxon'];?>"
355
																data-famille="<?php echo $taxon['famille'];?>"
355
																data-famille="<?php echo $taxon['famille'];?>"
356
															><?php echo $taxon['nom_sel'];?></option>
356
															><?php echo $taxon['nom_sel'];?> - <?php echo $taxon['nom_fr'];?></option>
357
														<?php endforeach; ?>
357
														<?php endforeach; ?>
-
 
358
														<?php if ( $widget['type_especes'] === 'liste+autre' ) : ?>
358
														<option value="autre"><?php echo $observation['autre-espece']; ?></option>
359
															<option value="autre"><?php echo $observation['autre-espece']; ?></option>
-
 
360
														<?php endif;?>
359
													</select>
361
													</select>
360
													<span for="taxon-liste" class="error" style="display: none;"><?php echo $observation['error-taxon'];?></span>
362
													<span for="taxon-liste" class="error" style="display: none;"><?php echo $observation['error-taxon'];?></span>
361
													<input id="taxon" name="taxon" class="form-control" type="hidden" />
363
													<input id="taxon" name="taxon" class="form-control" type="hidden" />
362
												</div>
364
												</div>
363
											</div>
365
											</div>
Line 481... Line 483...
481
						<div id="dialogue-taxon-or-image" class="alert alert-warning alert-block hidden">
483
						<div id="dialogue-taxon-or-image" class="alert alert-warning alert-block hidden">
482
							<a class="close">×</a>
484
							<a class="close">×</a>
483
							<h4 class="alert-heading"><?php echo $observation['alert-img-tax-title']; ?></h4>
485
							<h4 class="alert-heading"><?php echo $observation['alert-img-tax-title']; ?></h4>
484
							<p><?php echo $observation['alert-img-tax']; ?></p>
486
							<p><?php echo $observation['alert-img-tax']; ?></p>
485
						</div>
487
						</div>
-
 
488
						<div id="dialogue-image-requise" class="alert alert-warning alert-block hidden">
-
 
489
							<a class="close">×</a>
-
 
490
							<h4 class="alert-heading"><?php echo $observation['alert-img-tax-title']; ?></h4>
-
 
491
							<p><?php echo sprintf($observation['alert-img-requise'], $widget['titre']); ?></p>
-
 
492
						</div>
486
					</div>
493
					</div>
Line 487... Line 494...
487
 
494
 
488
					<!-- Champs supplémentaires -->
495
					<!-- Champs supplémentaires -->
489
					<?php if ( isset($widget['chpSupp'] ) && 0 < count( (array) $widget['chpSupp'] ) ) : ?>
496
					<?php if ( isset($widget['chpSupp'] ) && 0 < count( (array) $widget['chpSupp'] ) ) : ?>
Line 916... Line 923...
916
					// Durée d'affichage en milliseconde des messages d'informations
923
					// Durée d'affichage en milliseconde des messages d'informations
917
					'dureeMessage'                      : 10000,
924
					'dureeMessage'                      : 10000,
918
					// Squelette d'URL du web service d'eFlore fournissant les noms de communes.
925
					// Squelette d'URL du web service d'eFlore fournissant les noms de communes.
919
					'serviceNomCommuneUrl'              : "https://api.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}",
926
					'serviceNomCommuneUrl'              : "https://api.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}",
920
					// Squelette d'URL du web service d'eFlore fournissant les noms de communes hors de France (localisation approximative).
927
					// Squelette d'URL du web service d'eFlore fournissant les noms de communes hors de France (localisation approximative).
921
					'serviceNomCommuneUrlAlt'           : "https://api.tela-botanica.org/service:eflore:0.1/wikipedia/nom-commune?lon={lon}&lat={lat}&nbre=1"
928
					'serviceNomCommuneUrlAlt'           : "https://api.tela-botanica.org/service:eflore:0.1/wikipedia/nom-commune?lon={lon}&lat={lat}&nbre=1",
-
 
929
					'photoObligatoire'                  : <?php echo isset($widget['photo_obligatoire']) && $widget['photo_obligatoire'] === '1' ? 'true' : 'false'; ?>
922
				};
930
				};
923
			//]]>
931
			//]]>
924
		</script>
932
		</script>
925
		<!-- Barre de navigation -->
933
		<!-- Barre de navigation -->
926
		<?php if ( $bar ): ?>
934
		<?php if ( $bar ): ?>