diff --git a/modules/admin/admin.admin.controller.php b/modules/admin/admin.admin.controller.php index 7eb9609cb..b141fa6b2 100644 --- a/modules/admin/admin.admin.controller.php +++ b/modules/admin/admin.admin.controller.php @@ -200,78 +200,6 @@ FileHandler::writeFile($siteDesignFile, $buff); } - /** - * Insert theme information - * @return void|object - */ - function procAdminInsertThemeInfo(){ - $vars = Context::getRequestVars(); - $theme_file = _XE_PATH_.'files/theme/theme_info.php'; - - $theme_output = sprintf('$theme_info->theme=\'%s\';', $vars->themeItem); - $theme_output = $theme_output.sprintf('$theme_info->layout=%s;', $vars->layout); - - $site_info = Context::get('site_module_info'); - - $args->site_srl = $site_info->site_srl; - $args->layout_srl = $vars->layout; - - // layout submit - $output = executeQuery('layout.updateAllLayoutInSiteWithTheme', $args); - if (!$output->toBool()) return $output; - - // set layout info member - $oModuleController = &getController('module'); - $memberConfig->layout_srl = $vars->layout; - $oModuleController->updateModuleConfig('member', $memberConfig); - - $skin_args->site_srl = $site_info->site_srl; - - foreach($vars as $key=>$val){ - $pos = strpos($key, '-skin'); - if ($pos === false) continue; - if ($val != '__skin_none__'){ - $module = substr($key, 0, $pos); - $theme_output = $theme_output.sprintf('$theme_info->skin_info[%s]=\'%s\';', $module, $val); - $skin_args->skin = $val; - $skin_args->module = $module; - if ($module == 'page') - { - $article_output = executeQueryArray('page.getArticlePageSrls'); - if (count($article_output->data)>0){ - $article_module_srls = array(); - foreach($article_output->data as $val){ - $article_module_srls[] = $val->module_srl; - } - $skin_args->module_srls = implode(',', $article_module_srls); - } - } - - $skin_output = executeQuery('module.updateAllModuleSkinInSiteWithTheme', $skin_args); - if (!$skin_output->toBool()) return $skin_output; - - $oModuleModel = &getModel('module'); - $module_config = $oModuleModel->getModuleConfig($module, $site_info->site_srl); - $module_config->skin = $val; - $oModuleController->insertModuleConfig($module, $module_config, $site_info->site_srl); - } - } - - $theme_buff = sprintf( - '', - $theme_output - ); - // Save File - FileHandler::writeFile($theme_file, $theme_buff); - - - $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispAdminTheme'); - return $this->setRedirectUrl($returnUrl, $output); - } - /** * Toggle favorite * @return void diff --git a/modules/admin/admin.admin.view.php b/modules/admin/admin.admin.view.php index a8b9ac698..4fb2f9caa 100644 --- a/modules/admin/admin.admin.view.php +++ b/modules/admin/admin.admin.view.php @@ -437,55 +437,4 @@ } } - /** - * Display Admin theme Configuration(settings) page - * @return void - */ - function dispAdminTheme(){ - // choice theme file - $theme_file = _XE_PATH_.'files/theme/theme_info.php'; - if(is_readable($theme_file)){ - @include($theme_file); - Context::set('current_layout', $theme_info->layout); - Context::set('theme_info', $theme_info); - } - else{ - $oModuleModel = &getModel('module'); - $default_mid = $oModuleModel->getDefaultMid(); - Context::set('current_layout', $default_mid->layout_srl); - } - - // layout list - $oLayoutModel = &getModel('layout'); - // theme 정보 읽기 - - $oAdminModel = &getAdminModel('admin'); - $theme_list = $oAdminModel->getThemeList(); - $layouts = $oLayoutModel->getLayoutList(0); - $layout_list = array(); - if (is_array($layouts)){ - foreach($layouts as $val){ - unset($layout_info); - $layout_info = $oLayoutModel->getLayout($val->layout_srl); - if (!$layout_info) continue; - $layout_parse = explode('|@|', $layout_info->layout); - if (count($layout_parse) == 2){ - $thumb_path = sprintf('./themes/%s/layouts/%s/thumbnail.png', $layout_parse[0], $layout_parse[1]); - } - else{ - $thumb_path = './layouts/'.$layout_info->layout.'/thumbnail.png'; - } - $layout_info->thumbnail = (is_readable($thumb_path))?$thumb_path:null; - $layout_list[] = $layout_info; - } - } - Context::set('theme_list', $theme_list); - Context::set('layout_list', $layout_list); - - // 설치된module 정보 가져오기 - $module_list = $oAdminModel->getModulesSkinList(); - Context::set('module_list', $module_list); - - $this->setTemplateFile('theme'); - } } diff --git a/modules/admin/admin.class.php b/modules/admin/admin.class.php index 76b90da56..e8814a10f 100644 --- a/modules/admin/admin.class.php +++ b/modules/admin/admin.class.php @@ -188,50 +188,46 @@ 'subMenu'=>array('trash'), ), 11=>array( - 'module'=>'admin', - 'subMenu'=>array('theme'), - ), - 12=>array( 'module'=>'autoinstall', 'subMenu'=>array('easyInstall'), ), - 13=>array( + 12=>array( 'module'=>'layout', 'subMenu'=>array('installedLayout'), ), - 14=>array( + 13=>array( 'module'=>'module', 'subMenu'=>array('installedModule'), ), - 15=>array( + 14=>array( 'module'=>'widget', 'subMenu'=>array('installedWidget'), ), - 16=>array( + 15=>array( 'module'=>'addon', 'subMenu'=>array('installedAddon'), ), - 17=>array( + 16=>array( 'module'=>'editor', 'subMenu'=>array('editor'), ), - 18=>array( + 17=>array( 'module'=>'spamfilter', 'subMenu'=>array('spamFilter'), ), - 19=>array( + 18=>array( 'module'=>'admin', 'subMenu'=>array('adminConfigurationGeneral', 'adminConfigurationFtp', 'adminMenuSetup'), ), - 20=>array( + 19=>array( 'module'=>'file', 'subMenu'=>array('fileUpload'), ), - 21=>array( + 20=>array( 'module'=>'module', 'subMenu'=>array('filebox'), ), - 22=>array( + 21=>array( 'module'=>'point', 'subMenu'=>array('point') ), @@ -305,7 +301,6 @@ case 'spamFilter': return 'content'; break; - case 'theme': case 'easyInstall': case 'installedLayout': case 'installedModule': @@ -353,9 +348,6 @@ case 'trash': return 'content'; break; - case 'theme': - return 'theme'; - break; case 'easyInstall': case 'installedLayout': case 'installedModule': @@ -428,11 +420,13 @@ $result = $this->_getOldGnbKey($menuKey); if($result == 'user_added_menu') { - if($parentMenu[$menuItem->parent_srl] == 'theme') + // theme menu use not anymore + /*if($parentMenu[$menuItem->parent_srl] == 'theme') { $newParentItem = $newAdminParentMenuList['menu']; } - else if($parentMenu[$menuItem->parent_srl] == 'extensions') + else*/ + if($parentMenu[$menuItem->parent_srl] == 'extensions') { $newParentItem = $newAdminParentMenuList['advanced']; } diff --git a/modules/admin/conf/module.xml b/modules/admin/conf/module.xml index daa622974..d4fa3bc44 100644 --- a/modules/admin/conf/module.xml +++ b/modules/admin/conf/module.xml @@ -6,14 +6,12 @@ - - @@ -63,18 +61,5 @@ FTP Configuration FTP Configuration - - Theme - 테마 - 主题 - Theme - Theme - Theme - Theme - Theme - Theme - Theme - Theme - diff --git a/modules/admin/tpl/theme.html b/modules/admin/tpl/theme.html deleted file mode 100644 index f365587d2..000000000 --- a/modules/admin/tpl/theme.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - -

{$lang->menu_gnb_sub['theme']}

-

{$XE_VALIDATOR_ERROR}

-
- - -
-

{$lang->theme_setting}

-

{$lang->theme_desc}

-
    -
  • -

    {$lang->selected_theme}

    -
      - {@$current_theme = ($theme_info)?$theme_info->theme:'user_define'} -
    • - {$lang->msg_thumbnail_not_exist} - checked="checked" /> - -
        -
      • · {$lang->version}: {$val->version}
      • -
      • · {$lang->author}: - - {$publisher->name} - {$publisher->name} - -
      • -
      • · {$lang->description}: {$val->description}
      • -
      • · {$lang->path}: {$val->path}
      • -
      -
    • -
    • - {$lang->by_you} - checked="checked" /> - -
        -
      • · {$lang->description}: {$lang->no_selected_theme_desc}
      • -
      -
    • -
    -
  • -
-
-
-

{$lang->user_define_skin_select_desc}

-
    -
  • -

    {$lang->selected_layout}

    -
      -
    • - {$lang->msg_thumbnail_not_exist} - layout_srl == $current_layout)-->checked="checked" /> - -
        -
      • · {$lang->version}: {$val->version}
      • -
      • · {$lang->author}: - - {$author->name} - {$author->name} - -
      • -
      • · {$lang->description}: {$val->description}
      • -
      • · {$lang->path}: {$val->path}
      • -
      • · {$lang->cmd_setup}: {$lang->cmd_edit}
      • -
      -
    • -
    -
  • -
  • -

    {sprintf($lang->selected_skin, $mval['title'])}

    -
      -
    • - - {sprintf($lang->no_selected_skin, $mval['title'])} -
        -
      • {$lang->no_selected_skin_desc}
      • -
      -
    • -
    • - {@ $id = $mkey.'_'.$skey } - {$lang->msg_thumbnail_not_exist} - - -
        -
      • · {$lang->version}: {$sval->version}
      • -
      • · {$lang->author}: - - {$author->name} - {$author->name} - -
      • -
      • · {$lang->description}: {$sval->description}
      • -
      -
    • -
    • - {$lang->msg_thumbnail_not_exist} - - -
    • -
    -
  • -
-
-
- -
-