|
|
|
@ -47,8 +47,17 @@ function tarteaucitron_insert_head($flux) {
|
|
|
|
|
*/ |
|
|
|
|
function tarteaucitron_affichage_final($page) { |
|
|
|
|
if (!test_espace_prive() and tarteaucitron_actif()) { |
|
|
|
|
$ajouter_services = '<script type="text/javascript">'; |
|
|
|
|
$ajouter_services .= tarteaucitron_liste_services_actifs(); |
|
|
|
|
foreach($GLOBALS['contexte'] as $k => &$v) { |
|
|
|
|
if (preg_match(',^id_(\w+)$,S', $k, $r) |
|
|
|
|
AND ($id = intval($v))>0 |
|
|
|
|
) { |
|
|
|
|
$objet = 'id_'.$r[1]; |
|
|
|
|
$id_objet = $id; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$ajouter_services = '<script type="text/javascript">'; |
|
|
|
|
$ajouter_services .= tarteaucitron_liste_services_actifs($objet, $id_objet); |
|
|
|
|
$ajouter_services .= '</script>'; |
|
|
|
|
$ajouter_services .= '</script>'; |
|
|
|
|
|
|
|
|
|
if ($ajouter_services) { |
|
|
|
|