Ignore:
Timestamp:
Jul 9, 2009, 6:54:57 PM (15 years ago)
Author:
flop25
Message:

-color config for style
-my_phone global style
-add text needed in admin page
-all var are now in *.conf.php files
-config by default changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/music_player/lecteur.php

    r3557 r3559  
    124124if ($conf_lecteur[10]=='true')
    125125{
    126         $file = 'lecteur.css';
    127         $dir = LOCALEDIT_PATH.'template/style/';
    128         $theme_file = $dir.$user['template'].'/'.$user['theme'].'/'.$file;
    129         $template_file = $dir.$user['template'].'/'.$file;
    130        
    131         if (file_exists($theme_file))
    132         {
    133                 $template->assign(array( 'STYLE_FILE' => $theme_file ) );
    134         }
    135         elseif (file_exists($template_file))
    136         {
    137                 $template->assign(array( 'STYLE_FILE' => $template_file ) );
    138         }
    139         else
    140         {
    141                 $template->assign(array( 'STYLE_FILE' => $dir.$conf_lecteur[9] ) );
    142         }
    143 }
    144 else
    145 {
    146         $template->assign(array( 'STYLE_FILE' => $dir.$conf_lecteur[9] ) );
    147 }
    148 if ($conf_lecteur[10]=='true')
    149 {
    150 
    151126        $file = 'lecteur.conf.php';
    152127        $dir = LOCALEDIT_PATH.'template/style/';
     
    164139        else
    165140        {
    166                 $name = explode('.', $conf_lecteur[9]);
    167                 include_once($dir.$name[0].'.conf.php');
     141                include_once($conf_lecteur[9]);
    168142        }
    169143}
    170144else
    171145{
    172         $name = explode('.', $conf_lecteur[9]);
    173         include_once($dir.$name[0].'.conf.php');
    174 }
    175 
    176 
     146        include_once($conf_lecteur[9]);
     147}
     148
     149$template->assign(array( 'STYLE_FILE' => $STYLE_FILE ) );
    177150
    178151// +-----------------------------------------------------------------------+
     
    216189  );
    217190
    218 if ($conf_lecteur[10]=='true')
    219 {
    220 
    221         $file = 'lecteur.tpl';
    222         $dir = LOCALEDIT_PATH.'template/style/';
    223         $theme_file = $dir.$user['template'].'/'.$user['theme'].'/'.$file;
    224         $template_file = $dir.$user['template'].'/'.$file;
    225        
    226         if (file_exists($theme_file))
    227         {
    228                 $template->set_filename('lecteur', $theme_file);
    229         }
    230         elseif (file_exists($template_file))
    231         {
    232                 $template->set_filename('lecteur', $template_file);
    233         }
    234         else
    235         {
    236                 $name = explode('.', $conf_lecteur[9]);
    237                 $template->set_filename('lecteur', $dir.$name[0].'.tpl');
    238         }
    239 }
    240 else
    241 {
    242         $name = explode('.', $conf_lecteur[9]);
    243         $template->set_filename('lecteur', $dir.$name[0].'.tpl');
    244 
    245 }
    246 
    247 
     191$template->set_filename('lecteur', $TPL_FILE);
    248192
    249193// +-----------------------------------------------------------------------+
Note: See TracChangeset for help on using the changeset viewer.