|
From: FlorinCB <ory...@us...> - 2008-09-09 03:29:17
|
Update of /cvsroot/mxbb/mx_music/music_box/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv16493/music_box/includes Modified Files: music_constants.php Log Message: some styleing fixes Index: music_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/includes/music_constants.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** music_constants.php 15 Mar 2008 16:04:43 -0000 1.7 --- music_constants.php 9 Sep 2008 03:28:44 -0000 1.8 *************** *** 55,68 **** !defined('MUSIC_RATE_TABLE') ? define('MUSIC_RATE_TABLE', $mx_table_prefix.'music_rate') : false; - // ------------------------------------------------------------------------- - // Footer Copyrights - // ------------------------------------------------------------------------- - $mx_user->set_module_lang_path($module_root_path . 'music_box/'); if (!MXBB_MODULE) { ! if (!defined( 'IN_ADMIN' )) ! { $mx_user->set_module_cfg_name('mx_music'); } } --- 55,80 ---- !defined('MUSIC_RATE_TABLE') ? define('MUSIC_RATE_TABLE', $mx_table_prefix.'music_rate') : false; + // ------------------------------------------------------------------------- + // Extend User Style with module lang and images + // Usage: $mx_user->extend(LANG, IMAGES) + // Switches: + // - LANG: MX_LANG_MAIN (default), MX_LANG_ADMIN, MX_LANG_ALL, MX_LANG_NONE + // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE + // + // Extend page with additional header or footer data + // Examples: + // $mx_page->add_css_file(); // Include style dependent *.css file, eg module_path/template_path/template/theme.css + // $mx_page->add_js_file( 'includes/js.js' ); // Relative to module_root + // $mx_page->add_header_text( 'header text' ); + // $mx_page->add_footer_text( 'includes/test.txt', true ); // Relative to module_root + // Note: Included text from file (last example), will evaluate $theme and $mx_block->info variables. if (!MXBB_MODULE) { ! if (!defined('IN_ADMIN')) ! { $mx_user->set_module_cfg_name('mx_music'); + $mx_user->set_module_lang_path($module_root_path . 'music_box/'); + $mx_user->extend(MX_LANG_ALL, MX_IMAGES); } } *************** *** 73,86 **** $mx_user->set_module_default_style('_core'); // For compatibility with core 2.8.x } } ! // ------------------------------------------------------------------------- ! // Extend User Style with module lang and images ! // Usage: $mx_user->extend(LANG, IMAGES) ! // Switches: ! // - LANG: MX_LANG_MAIN (default), MX_LANG_ADMIN, MX_LANG_ALL, MX_LANG_NONE ! // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE ! // ------------------------------------------------------------------------- ! $mx_user->extend(MX_LANG_ALL, MX_IMAGES); ?> \ No newline at end of file --- 85,101 ---- $mx_user->set_module_default_style('_core'); // For compatibility with core 2.8.x } + + $mx_user->set_module_lang_path($module_root_path . 'music_box/'); + + if (is_object($mx_page)) + { + $mx_user->extend(MX_LANG_ALL, MX_IMAGES); + } + $mx_page->add_css_file('mx_music.css'); // Include style dependent *.css file, eg module_path/template_path/template/theme.css + //$mx_page->add_js_file($module_root_path . 'music_box/media_loader.js'); // Relative to module_root } ! //Teplate files extensions check compatibility with core 2.8.x ! $tplEx = ($tplEx) ? $tplEx : 'tpl'; ?> \ No newline at end of file |