Changeset 93811 in spip-zone


Ignore:
Timestamp:
Dec 17, 2015, 11:32:10 PM (4 years ago)
Author:
p@…
Message:

Surcharger la balise #BOUTON_ACTION

Dans cette version de foundation on peut surcharger complètement la
balise BOUTON_ACTION sans avoir une influance négative sur l'espace
prive de SPIP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/foundation_6/trunk/foundation_6_fonctions.php

    r93807 r93811  
    6161 * Generer un bouton d'action qui accepte les class de foundation
    6262 */
    63 function balise_F_BOUTON_ACTION_dist($p){
     63function balise_BOUTON_ACTION($p){
    6464
    6565        $args = array();
     
    7575        $args = implode(",",$args);
    7676
    77         $bouton_action = chercher_filtre("f_bouton_action");
     77        $bouton_action = chercher_filtre("bouton_action");
    7878        $p->code = "$bouton_action($args)";
    7979        $p->interdire_scripts = false;
     
    8686 * compatibilité avec les class button de foundation
    8787 */
    88 function filtre_f_bouton_action_dist($libelle, $url, $class="", $confirm="", $title="", $callback=""){
     88function filtre_bouton_action($libelle, $url, $class="", $confirm="", $title="", $callback=""){
    8989        if ($confirm) {
    9090                $confirm = "confirm(\"" . attribut_html($confirm) . "\")";
     
    9999                         ."<button type='submit' class='submit $class'$title$onclick>$libelle</button></div></form>";
    100100}
    101 
    102101
    103102/**
Note: See TracChangeset for help on using the changeset viewer.