Changeset 5278 in spip-zone


Ignore:
Timestamp:
Sep 12, 2006, 12:19:13 PM (15 years ago)
Author:
franck.ducas@…
Message:

Mis un chouia d'ordre dans les squelettes. Retabli le lien vers la feuille de style pour chaque theme de l'espace prive. Bricoles sur le programme principal. Fonctionnel.

Location:
_plugins_/habillages
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/habillages/exec/config_habillages.php

    r5271 r5278  
    606606                                # meme si le prefixe n'est pas colle aux balises <prefixes>.
    607607                                $search_duplicated_name = eregi("<prefixe>(.*)</prefixe>", $read_theme_duplicated, $duplicated_name);
    608                                 echo $duplicated_name[1];
    609608                                if ($duplicated_name[1] == $fichier) {
    610609                        echo " checked";
  • _plugins_/habillages/habillages.php

    r5267 r5278  
    1515        global $exec;
    1616       
    17         $options_file = "mes_options.php";
     17        $theme_file = "img_pack/theme.xml";
     18       
     19        if (fopen($theme_file, 'r') == TRUE) {
    1820        $plugin_directory = _DIR_PLUGIN_HABILLAGES;
    19         $open_options_file = fopen($options_file, 'r');
    20         $options_file_size = filesize ($options_file);
    21         $read_options_file = fread ($open_options_file, $options_file_size);
    22         $search_template_name = eregi("$plugin_directory/prive/themes/(.*)/img_pack/", $read_options_file, $template_name);
    23         $flux .= '<link rel="stylesheet" href="'.$plugin_directory.'/prive/themes/'.$template_name[1].'/img_pack/style.css" />'."\n";
     21        $open_theme_file = fopen($theme_file, 'r');
     22        $theme_file_size = filesize ($theme_file);
     23        $read_theme_file = fread ($open_theme_file, $theme_file_size);
     24        $search_theme_name = eregi("<prefixe>(.*)</prefixe>", $read_theme_file, $theme_name);
     25        $flux .= '<link rel="stylesheet" href="'.$plugin_directory.'/prive/themes/'.$theme_name[1].'/img_pack/style.css" />'."\n";
     26        }
    2427       
    2528        return $flux;
Note: See TracChangeset for help on using the changeset viewer.