Ignore:
Timestamp:
Sep 13, 2010, 7:48:36 PM (14 years ago)
Author:
flop25
Message:

now the plugin manage the style as before (end try)

Location:
extensions/music_player
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/music_player/lecteur.php

    r3561 r6887  
    44
    55$m_p = get_plugin_data('music_player');
    6 
     6$title="Music Player";
    77///////////[ interdiction groupe
    88global $prefixeTable;
     
    121121// +-----------------------------------------------------------------------+
    122122$conf_lecteur = explode("," , $conf['mp_lecteur']);
    123 
    124 if ($conf_lecteur[10]=='true')
    125 {
     123global $template;
     124$r_theme_file=array();
     125if ($conf_lecteur[10]=='true' and isset($template->smarty->template_dir) )
     126{
     127
    126128        $file = 'lecteur.conf.php';
    127129        $dir = MP_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                 include($theme_file);
    134         }
    135         elseif (file_exists($template_file))
    136         {
    137                 include($template_file) ;
    138         }
    139         else
    140         {
    141                 include_once($conf_lecteur[9]);
     130       
     131        foreach( $template->smarty->template_dir as $style)
     132        {
     133                $theme_file = explode("/", $style);
     134                $pos = count($theme_file) - 2 ;
     135                $theme_file = $dir.$theme_file[$pos].'/'.$file;
     136                if (file_exists($theme_file))
     137                {
     138                        $r_theme_file[]=$theme_file;
     139                }
     140        }
     141       
     142       
     143}
     144if (!empty($r_theme_file))
     145{
     146        foreach( $r_theme_file as $style)
     147        {
     148                include($style);
    142149        }
    143150}
     
    189196    )
    190197  );
    191 
    192198$template->set_filename('lecteur', $TPL_FILE);
    193199
  • extensions/music_player/main.inc.php

    r6877 r6887  
    22/*
    33Plugin Name: music_player
    4 Version: 2.1.3
     4Version: 2.1.4
    55Description: play music / avoir de la musique
    66Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=162
  • extensions/music_player/music

    • Property svn:ignore
      •  

        old new  
         1Copie de The coors
         2The coors
        13Violator
        24daft_punk
Note: See TracChangeset for help on using the changeset viewer.