)%is', $btn.'$1', $flux['data']); } return $flux; } function gamutable_affichage_final($flux) { include_spip('inc/autoriser'); if (autoriser("purger","gamutable") and test_plugin_actif('minibando')) { $p = stripos($flux, ''); if ($p) { $url_relecture = parametre_url(self(), 'var_mode', 'gamutable', '&'); $label = "Mode gamuTable"; $js = "jQuery('#minibando_bouton_debug ul').append('
  • $label
  • ');"; $js = "jQuery(function(){ $js });"; $js = ""; $flux = substr_replace($flux, $js, $p, 0); } } return $flux; } /** * injection du reload de vuejs pour les crayons de l'objet souscription * on peut bloquer le rechargement selectif par id en ajoutant le nom de l'objet * dans la global $GLOBALS['gamutable_rechargerJson_all'] * */ function gamutable_crayons_vue_affichage_final($flux){ $id = $flux['args']['id']; $objet = $flux['args']['type']; if ( $id = intval($id) and !in_array($objet, $GLOBALS['gamutable_rechargerJson_all'] ?? []) ) { $flux['data'] .= ' '; } else { $flux['data'] .= ' '; } return $flux; }