Changeset 3559 for extensions/music_player/lecteur.php
- Timestamp:
- Jul 9, 2009, 6:54:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/music_player/lecteur.php
r3557 r3559 124 124 if ($conf_lecteur[10]=='true') 125 125 { 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 else140 {141 $template->assign(array( 'STYLE_FILE' => $dir.$conf_lecteur[9] ) );142 }143 }144 else145 {146 $template->assign(array( 'STYLE_FILE' => $dir.$conf_lecteur[9] ) );147 }148 if ($conf_lecteur[10]=='true')149 {150 151 126 $file = 'lecteur.conf.php'; 152 127 $dir = LOCALEDIT_PATH.'template/style/'; … … 164 139 else 165 140 { 166 $name = explode('.', $conf_lecteur[9]); 167 include_once($dir.$name[0].'.conf.php'); 141 include_once($conf_lecteur[9]); 168 142 } 169 143 } 170 144 else 171 145 { 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 ) ); 177 150 178 151 // +-----------------------------------------------------------------------+ … … 216 189 ); 217 190 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); 248 192 249 193 // +-----------------------------------------------------------------------+
Note: See TracChangeset
for help on using the changeset viewer.