|
From: OryNider <ory...@us...> - 2008-03-14 14:13:48
|
Update of /cvsroot/mxbb/mx_smartor/album_mod/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9364 Modified Files: album_constants.php Log Message: fix Index: album_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/includes/album_constants.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** album_constants.php 14 Mar 2008 12:35:51 -0000 1.5 --- album_constants.php 14 Mar 2008 14:13:41 -0000 1.6 *************** *** 38,42 **** // - LANG: MX_LANG_MAIN (default), MX_LANG_ADMIN, MX_LANG_ALL, MX_LANG_NONE // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE ! // ------------------------------------------------------------------------- if (!MXBB_MODULE) { --- 38,49 ---- // - 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) { *************** *** 57,69 **** if (is_object($mx_page)) { - // ------------------------------------------------------------------------- - // 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); } } --- 64,72 ---- if (is_object($mx_page)) { $mx_user->extend(MX_LANG_ALL, MX_IMAGES); } + + $mx_page->add_css_file('mx_smartor.css'); // Include style dependent *.css file, eg module_path/template_path/template/theme.css + $mx_page->add_js_file($module_root_path . 'album_mod/fap_loader.js'); // Relative to module_root } |