Ignore:
Timestamp:
Sep 18, 2006, 6:28:30 AM (15 years ago)
Author:
franck.ducas@…
Message:

Retirer quelques messages d'alerte. Changer la facon de calculer la feuille de styles dans habillages.php. Modifie des commentaires.Efface fichiers non utiles. C'est assez chouettos. Il ne reste plus qu'a inserer des squelettes et d'autres themes. Un grand merci a Cedric.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/habillages/unstable/habillages.php

    r5439 r5446  
    1515        global $exec;
    1616       
    17         if (file_exists("img_pack/theme.xml")) {
    18        
    19         $theme_file = "img_pack/theme.xml";
    20         $plugin_directory = _DIR_PLUGIN_HABILLAGES;
    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" type="text/css" />'."\n";
     17        include_spip('inc/meta');
     18        $theme_link = lire_meta('habillage_prive');
     19
     20        $flux .= '<link rel="stylesheet" href="'.$theme_link.'style.css" type="text/css" />'."\n";
    2621        $flux .= '<meta http-equiv="Pragma" content="no-cache">'."\n";
    2722        $flux .= '<meta http-equiv="expires" content="0">'."\n";
    2823        return $flux;   
    29         }
    30         else {
    31                 $flux .= '<meta http-equiv="Pragma" content="no-cache">'."\n";
    32                 $flux .= '<meta http-equiv="expires" content="0">'."\n";
    33                 return $flux;
    34         }
     24
    3525}
    3626?>
Note: See TracChangeset for help on using the changeset viewer.