|
From: Jon O. <jon...@us...> - 2008-02-17 16:45:37
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19939 Modified Files: Tag: core28x mx_functions_style.php Log Message: Update to custom module default style Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.17.2.15 retrieving revision 1.17.2.16 diff -C2 -d -r1.17.2.15 -r1.17.2.16 *** mx_functions_style.php 17 Feb 2008 12:54:50 -0000 1.17.2.15 --- mx_functions_style.php 17 Feb 2008 16:45:31 -0000 1.17.2.16 *************** *** 838,842 **** $this->loaded_styles[$mx_block->module_root_path] = '1'; - $this->loaded_default_styles[$mx_block->module_root_path] = $this->default_module_style; } } --- 838,841 ---- *************** *** 931,954 **** if ($image_mode != MX_IMAGES_NONE) { - // - // Hack for modern modules, with non-subSilver default template - // - if (!empty($this->default_module_style) ) - { - $this->default_template_name = $this->default_module_style; - $this->default_current_template_path = 'templates/' . $this->default_template_name; - } - $this->_load_module_style(); ! // ! // Reset custom module default style, once used. ! // ! if (!empty($this->default_module_style)) ! { ! $this->default_template_name = 'subSilver'; ! $this->default_current_template_path = 'templates/' . $this->default_template_name; ! $this->default_module_style = ''; ! } } } --- 930,961 ---- if ($image_mode != MX_IMAGES_NONE) { $this->_load_module_style(); + } ! // ! // Reset custom module default style, once used. ! // ! if (!empty($this->default_module_style)) ! { ! $this->default_template_name = 'subSilver'; ! $this->default_current_template_path = 'templates/' . $this->default_template_name; ! $this->default_module_style = ''; ! } ! } ! ! function set_module_default_style($default_module_style = '') ! { ! global $mx_block; ! ! if (!empty($default_module_style)) ! { ! $this->default_module_style = $default_module_style; ! $this->default_template_name = $this->default_module_style; ! $this->default_current_template_path = 'templates/' . $this->default_template_name; ! } ! ! if (!defined('IN_ADMIN')) ! { ! $this->loaded_default_styles[$mx_block->module_root_path] = $this->default_module_style; } } |