205,10 → 205,28 |
$widget = null; |
|
// Création des infos du widget |
$widget['donnees']['contenu_aide'] = $this->chargerAideWiki(); |
$widget['donnees']['url_base'] = sprintf($this->config['chemins']['baseURLAbsoluDyn'], ''); |
$widget['squelette'] = 'avertissement'; |
|
return $widget; |
} |
|
/** |
* Charge le contenu du wikini demandé |
*/ |
function chargerAideWiki() { |
$url = str_replace('{page}','AideCarto',$this->config['chemins']['aideWikiniUrl']); |
$infos_aide = file_get_contents($url); |
|
$aide = ''; |
|
if($infos_aide != null && $infos_aide != '') { |
$infos_aide = json_decode($infos_aide); |
$infos_aide = (is_a($infos_aide, 'StdClass') && $infos_aide->texte != null) ? $infos_aide->texte : ''; |
} |
|
return $infos_aide; |
} |
} |
?> |