Changeset 93844 in spip-zone


Ignore:
Timestamp:
Dec 21, 2015, 7:46:30 AM (4 years ago)
Author:
p@…
Message:

Adapter le filtre bouton action à l'espace privé

File:
1 edited

Legend:

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

    r93812 r93844  
    9696        $onclick = $callback?" onclick='return ".addcslashes($callback,"'")."'":"";
    9797        $title = $title ? " title='$title'" : "";
    98         return "<form class='bouton_action_post' method='post' action='$url'><div>".form_hidden($url)
    99                          ."<button type='submit' class='submit $class'$title$onclick>$libelle</button></div></form>";
     98
     99        if (test_espace_prive()) {
     100                        return "<form class='bouton_action_post $class' method='post' action='$url'><div>".form_hidden($url)
     101                         ."<button type='submit' class='submit'$title$onclick>$libelle</button></div></form>";
     102        }
     103        else {
     104                return "<form class='bouton_action_post' method='post' action='$url'><div>".form_hidden($url)
     105                             ."<button type='submit' class='submit $class'$title$onclick>$libelle</button></div></form>";
     106        }
    100107}
    101108
Note: See TracChangeset for help on using the changeset viewer.