\n" ."$tarteaucitron_config\n"; return $flux; } /** * Inserer les JS correspondants aux services activés dans la configuration du plugin * * @pipeline recuperer_fond * * @param string $flux * @return mixed */ function tarteaucitron_recuperer_fond($flux) { if (test_plugin_actif('zcore') and $flux['args']['fond'] == 'structure') { $ajouter_services = null; // rechercher les skel du type /services/truc.html $match = '.+[.]html$'; $services = find_all_in_path('services/', $match); if (count($services)) { foreach ($services as $squelette => $chemin) { $type = preg_replace(',[.]html$,i', '', $squelette); if (lire_config('tarteaucitron/services/'.$type)) { $ajouter_services .= recuperer_fond('services/'.$type); } } } if ($ajouter_services) { $flux['data']['texte'] = str_replace('', $ajouter_services. '', $flux['data']['texte']); } } return $flux; }