[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / plugins / menus_1 / balise / menus_afficher_entree.php
index 56be191..28a085a 100644 (file)
@@ -1,26 +1,27 @@
 <?php
 
 // Sécurité
-if (!defined("_ECRIRE_INC_VERSION")) return;
+if (!defined('_ECRIRE_INC_VERSION')) {
+       return;
+}
 
 function balise_MENUS_AFFICHER_ENTREE_dist($p) {
-       
-       $contexte = interprete_argument_balise(1,$p);
+
+       $contexte = interprete_argument_balise(1, $p);
        $id_menus_entree = champ_sql('id_menus_entree', $p);
        $type_entree = champ_sql('type_entree', $p);
        $parametres = champ_sql('parametres', $p);
-       
+
        // Par défaut ça affiche le mode du menu public
-       if ($contexte != "'appel_formulaire'")
+       if ($contexte != "'appel_formulaire'") {
                $contexte = "'appel_menu'";
-       
-       $p->code =  "(!$id_menus_entree) ? _T('zbug_champ_hors_motif', array('champ'=>'AFFICHER_ENTREE', 'motif'=>'MENUS_ENTREES')) : recuperer_fond(
+       }
+
+       $p->interdire_scripts = false;
+
+       $p->code =  "((!$id_menus_entree) ? _T('zbug_champ_hors_motif', array('champ'=>'AFFICHER_ENTREE', 'motif'=>'MENUS_ENTREES')) : recuperer_fond(
                'menus/'.$type_entree,
                array_merge(unserialize($parametres), array($contexte=>true, 'env'=>\$Pile[0]))
-       )";
-       
+       ))";
        return $p;
-    
 }
-
-?>