Changeset 9590


Ignore:
Timestamp:
Mar 9, 2011, 7:10:19 PM (13 years ago)
Author:
flop25
Message:

use of combine tag : relocation of css in config files, css and js files combined
todo : js code not in file
remove events from spread_menu and add_menu_on_public_pages of themes

Location:
extensions/music_player
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • extensions/music_player/lecteur.php

    r6887 r9590  
    22define('PHPWG_ROOT_PATH','../../');
    33include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
     4
     5/////////////// PAS DE MENU !
     6if ( function_exists( 'add_menu_on_public_pages' ) or function_exists( 'spread_menus_on_public_pages' ) )
     7{
     8        remove_event_handler('loc_after_page_header', 'add_menu_on_public_pages', 20);
     9        remove_event_handler('loc_after_page_header', 'spread_menus_on_public_pages', 20);
     10
     11}
    412
    513$m_p = get_plugin_data('music_player');
     
    4654else {
    4755
    48 $page['body_id'] = 'lecteur';
    49 
    50   global $conf;
    51   $conf_plugin = explode("," , $conf['mp_plugin']);
    52   $template->assign(
    53     array(
    54       'conf_plugin_1' => $conf_plugin[1],
    55       'conf_plugin_2' => $conf_plugin[2],
    56     )
    57   );
     56$page['body_id'] = 'theMPlecteur';
     57global $conf;
     58$conf_plugin = explode("," , $conf['mp_plugin']);
     59$template->assign(
     60        array(
     61                'conf_plugin_1' => $conf_plugin[1],
     62                'conf_plugin_2' => $conf_plugin[2],
     63        )
     64);
    5865
    5966
  • extensions/music_player/main.inc.php

    r6985 r9590  
    22/*
    33Plugin Name: music_player
    4 Version: 2.1.5
     4Version: auto
    55Description: play music / avoir de la musique
    66Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=162
  • extensions/music_player/template/style/Pure_autumn/lecteur.conf.php

    r6885 r9590  
    33$FRONT_COLOR='0xffffff';
    44$LIGHT_COLOR='0xedf2f2';
    5 $STYLE_FILE='template/style/Pure_autumn/lecteur.css';
     5$STYLE_FILE= 'plugins/'.MP_NAME.'/template/style/Pure_autumn/lecteur.css';
    66$TPL_FILE=$m_p->plugin_path.'template/style/default.tpl';
    77?>
  • extensions/music_player/template/style/Pure_clear_blue/lecteur.conf.php

    r6885 r9590  
    33$FRONT_COLOR='0x005E89';
    44$LIGHT_COLOR='0x005E89';
    5 $STYLE_FILE='template/style/Pure_clear_blue/lecteur.css';
     5$STYLE_FILE= 'plugins/'.MP_NAME.'/template/style/Pure_clear_blue/lecteur.css';
    66$TPL_FILE=$m_p->plugin_path.'template/style/default.tpl';
    77?>
  • extensions/music_player/template/style/Pure_green_nature/lecteur.conf.php

    r6885 r9590  
    33$FRONT_COLOR='0xffffff';
    44$LIGHT_COLOR='0xedf2f2';
    5 $STYLE_FILE='template/style/Pure_green_nature/lecteur.css';
     5$STYLE_FILE= 'plugins/'.MP_NAME.'/template/style/Pure_green_nature/lecteur.css';
    66$TPL_FILE=$m_p->plugin_path.'template/style/default.tpl';
    77?>
  • extensions/music_player/template/style/Pure_grey_light/lecteur.conf.php

    r6885 r9590  
    33$FRONT_COLOR='0xffffff';
    44$LIGHT_COLOR='0xe8e3dc';
    5 $STYLE_FILE='template/style/Pure_grey_light/lecteur.css';
     5$STYLE_FILE= 'plugins/'.MP_NAME.'/template/style/Pure_grey_light/lecteur.css';
    66$TPL_FILE=$m_p->plugin_path.'template/style/default.tpl';
    77?>
  • extensions/music_player/template/style/Pure_grey_plastic/lecteur.conf.php

    r6885 r9590  
    33$FRONT_COLOR='0xffffff';
    44$LIGHT_COLOR='0xe8e3dc';
    5 $STYLE_FILE='template/style/Pure_grey_plastic/lecteur.css';
     5$STYLE_FILE= 'plugins/'.MP_NAME.'/template/style/Pure_grey_plastic/lecteur.css';
    66$TPL_FILE=$m_p->plugin_path.'template/style/default.tpl';
    77?>
  • extensions/music_player/template/style/Pure_sky/lecteur.conf.php

    r6885 r9590  
    33$FRONT_COLOR='0x005E89';
    44$LIGHT_COLOR='0x005E89';
    5 $STYLE_FILE='template/style/Pure_sky/lecteur.css';
     5$STYLE_FILE= 'plugins/'.MP_NAME.'/template/style/Pure_sky/lecteur.css';
    66$TPL_FILE=$m_p->plugin_path.'template/style/default.tpl';
    77?>
  • extensions/music_player/template/style/Pure_tr_clear_blue/lecteur.conf.php

    r6885 r9590  
    33$FRONT_COLOR='0x005E89';
    44$LIGHT_COLOR='0x005E89';
    5 $STYLE_FILE='template/style/Pure_tr_clear_blue/lecteur.css';
     5$STYLE_FILE= 'plugins/'.MP_NAME.'/template/style/Pure_tr_clear_blue/lecteur.css';
    66$TPL_FILE=$m_p->plugin_path.'template/style/default.tpl';
    77?>
  • extensions/music_player/template/style/Pure_tr_green_nature/lecteur.conf.php

    r6885 r9590  
    33$FRONT_COLOR='0xffffff';
    44$LIGHT_COLOR='0xedf2f2';
    5 $STYLE_FILE='template/style/Pure_green_nature/lecteur.css';
     5$STYLE_FILE= 'plugins/'.MP_NAME.'/template/style/Pure_green_nature/lecteur.css';
    66$TPL_FILE=$m_p->plugin_path.'template/style/default.tpl';
    77?>
  • extensions/music_player/template/style/Sylvia/lecteur.conf.php

    r6885 r9590  
    33$FRONT_COLOR='0xFF7700';
    44$LIGHT_COLOR='0xfb3558';
    5 $STYLE_FILE='template/style/Sylvia/lecteur.css';
     5$STYLE_FILE= 'plugins/'.MP_NAME.'/template/style/Sylvia/lecteur.css';
    66$TPL_FILE=$m_p->plugin_path.'template/style/default.tpl';
    77?>
  • extensions/music_player/template/style/clear/lecteur.conf.php

    r6885 r9590  
    33$FRONT_COLOR='0x005E89';
    44$LIGHT_COLOR='0x005E89';
    5 $STYLE_FILE='template/style/default.css';
     5$STYLE_FILE= 'plugins/'.MP_NAME.'/template/style/default.css';
    66$TPL_FILE=$m_p->plugin_path.'template/style/default.tpl';
    77?>
  • extensions/music_player/template/style/default.conf.php

    r6877 r9590  
    33$FRONT_COLOR='0xffffff';
    44$LIGHT_COLOR='0xe8e3dc';
    5 $STYLE_FILE='template/style/default.css';
     5$STYLE_FILE= 'plugins/'.MP_NAME.'/template/style/default.css';
    66$TPL_FILE=$m_p->plugin_path.'template/style/default.tpl';
    77?>
  • extensions/music_player/template/style/default.tpl

    r3559 r9590  
    1 {html_head}<link rel="stylesheet" type="text/css" href="{$STYLE_FILE}">{/html_head}
    2 {html_head}<script type="text/javascript" src="./player/swfobject.js"></script>{/html_head}
     1{combine_css path="$STYLE_FILE"}
     2{combine_script id="music_player_js" load="header" path="plugins/music_player/player/swfobject.js"}
    33{html_head}<script type="text/javascript">
    44{literal}
  • extensions/music_player/template/style/default/lecteur.tpl

    r6885 r9590  
    1 {html_head}<link rel="stylesheet" type="text/css" href="{$STYLE_FILE}">{/html_head}
     1{combine_css path="$STYLE_FILE"}
    22{html_head}<script type="text/javascript" src="./player/swfobject.js"></script>{/html_head}
    33{html_head}<script type="text/javascript">
  • extensions/music_player/template/style/flop_mauve/lecteur.conf.php

    r6885 r9590  
    33$FRONT_COLOR='0xffffff';
    44$LIGHT_COLOR='0xe8e3dc';
    5 $STYLE_FILE='template/style/default.css';
     5$STYLE_FILE= 'plugins/'.MP_NAME.'/template/style/default.css';
    66$TPL_FILE=$m_p->plugin_path.'template/style/default.tpl';
    77?>
  • extensions/music_player/template/style/my_phone.conf.php

    r6877 r9590  
    33$FRONT_COLOR='0xffffff';
    44$LIGHT_COLOR='0xe8e3dc';
    5 $STYLE_FILE='template/style/my_phone/my_phone.css';
     5$STYLE_FILE= 'plugins/'.MP_NAME.'/template/style/my_phone/my_phone.css';
    66$TPL_FILE= $m_p->plugin_path.'template/style/my_phone/my_phone.tpl';
    77//$TPL_FILE='template/style/my_phone/my_phone.tpl';
  • extensions/music_player/template/style/my_phone/my_phone.tpl

    r3561 r9590  
    1 {html_head}<link rel="stylesheet" type="text/css" href="{$STYLE_FILE}">{/html_head}
     1{combine_css path="$STYLE_FILE"}
    22{html_head}<script type="text/javascript" src="./player/swfobject.js"></script>{/html_head}
    33{html_head}<script type="text/javascript">
Note: See TracChangeset for help on using the changeset viewer.