mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
fixed theme layouts error
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9409 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
793f301d5e
commit
6429e35567
3 changed files with 5 additions and 6 deletions
|
|
@ -157,7 +157,6 @@
|
|||
$theme_info[$val] = $this->getThemeInfo($val);
|
||||
}
|
||||
}
|
||||
debugPrint($theme_info);
|
||||
|
||||
return $theme_info;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ jQuery(function($){
|
|||
var themes = {};
|
||||
|
||||
<!--@foreach($theme_list as $key=>$val)-->
|
||||
// Example - default theme
|
||||
{@$skins = array()}
|
||||
<!--@foreach($val->skin_infos as $module=>$skin_info)-->
|
||||
{@$skins[] = "'".$module."' : '".$skin_info->name."'";}
|
||||
|
|
|
|||
|
|
@ -85,13 +85,14 @@
|
|||
* @brief Get a layout path
|
||||
**/
|
||||
function getLayoutPath($layout_name, $layout_type = "P") {
|
||||
if($layout_name == 'faceoff'){
|
||||
$layout_parse = explode('.', $layout_name);
|
||||
if (count($layout_parse) > 1){
|
||||
$class_path = './themes/'.$layout_parse[0].'/layouts/'.$layout_parse[1].'/';
|
||||
}else if($layout_name == 'faceoff'){
|
||||
$class_path = './modules/layout/faceoff/';
|
||||
}else if($layout_type == "M") {
|
||||
$class_path = sprintf("./m.layouts/%s/", $layout_name);
|
||||
}
|
||||
else
|
||||
{
|
||||
}else {
|
||||
$class_path = sprintf('./layouts/%s/', $layout_name);
|
||||
}
|
||||
if(is_dir($class_path)) return $class_path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue