Ignore:
Timestamp:
May 26, 2011, 4:06:04 PM (10 years ago)
Author:
cedric@…
Message:

Report de r42592 : support des icones spritees dans le porte-plume

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/porte_plume/inc/barre_outils.php

    r37748 r48155  
    498498        // passage en css
    499499        foreach ($classe2icone as $n=>$i) {
    500                 $css .= "\n.markItUp .$n a {\n\tbackground-image:url(".url_absolue(find_in_path("icones_barre/$i")).");\n}";
     500                $pos="";
     501                if (is_array($i)){
     502                        $pos = "background-position:".end($i);
     503                  $i = reset($i);
     504                }
     505                $css .= "\n.markItUp .$n a b {background-image:url(".url_absolue(find_in_path("icones_barre/$i")).");$pos}";
    501506        }
    502507
Note: See TracChangeset for help on using the changeset viewer.