35,6 → 35,7 |
protected $projet = null; |
protected $configProjet = null; |
protected $configMission = null; |
protected $mission = null; |
/** langue (traduction), charge un template de la forme "defaut_en.tpl.html" */ |
protected $langue = null; |
|
107,9 → 108,9 |
if (file_exists($fichier_config)) { |
if ($this->configProjet = parse_ini_file($fichier_config, true)) { |
if (isset($_GET['mission'])) { |
$mission = strtolower(trim($_GET['mission'])); |
if (isset($this->configProjet[$mission])) { |
$this->configMission = $this->configProjet[$mission]; |
$this->mission = strtolower(trim($_GET['mission'])); |
if (isset($this->configProjet[$this->mission])) { |
$this->configMission = $this->configProjet[$this->mission]; |
} |
} |
} else { |
150,6 → 151,7 |
|
$widget['donnees']['logo'] = isset($_GET['logo']) ? $_GET['logo'] : 'defaut'; |
$widget['donnees']['titre'] = $this->getTitrePage(); |
$widget['donnees']['nom_mission'] = $this->getNomMissionFlore(); |
|
$widget['donnees']['referentiel_impose'] = $referentiel_impose; |
$widget['donnees']['espece_imposee'] = false; |
214,6 → 216,18 |
} |
|
/** |
* Un nom un peu plus sympatoche à afficher que juste le mot-clef associé; s'il |
* n'est pas défini dans la config, on prend le mot-clef tout de même |
*/ |
protected function getNomMissionFlore() { |
$nom = $this->mission; |
if (isset($this->configMission['nom_mission'])) { |
$nom = $this->configMission['nom_mission']; |
} |
return $nom; |
} |
|
/** |
* Remplit un fichier JS avec une variable contenant une liste restreinte de taxons, |
* pour certains projets |
* @return string |