From c5429f0c4375405d6b132afa3b4b353b4f1e4978 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 27 Feb 2021 19:50:06 +0900 Subject: [PATCH] Simplify default menu structure created on install --- layouts/xedition/css/welcome.css | 142 +----------------------- layouts/xedition/demo/welcome_main.html | 65 +---------- modules/install/script/ko.install.php | 137 +++++------------------ 3 files changed, 28 insertions(+), 316 deletions(-) diff --git a/layouts/xedition/css/welcome.css b/layouts/xedition/css/welcome.css index d86a02da6..2e21339ba 100644 --- a/layouts/xedition/css/welcome.css +++ b/layouts/xedition/css/welcome.css @@ -99,7 +99,7 @@ } /* section.guide */ .welcomeXE .guide { - height: 640px; + height: 600px; padding-top: 80px } .welcomeXE .guide ul { @@ -153,149 +153,9 @@ color: #cda25a; border-bottom: 1px solid #cda25a } -/* section.features */ -.welcomeXE .features { - width: 100%; - margin: 0; - height: 800px; - padding-top: 80px; - background-color: #444 -} -.welcomeXE .features .noti, -.welcomeXE .features .tit, -.welcomeXE .features .cont { - width: 1200px; - margin-left: auto; - margin-right: auto -} -.welcomeXE .features .tit { - color: #f6f6f6 -} -.welcomeXE .features .cont { - font-size: 15px; - line-height: 27px; - color: #ddd -} -.welcomeXE .features ul { - overflow: hidden; - margin-top: 38px; - padding: 0 20px -} -.welcomeXE .features li { - float: left; - width: 25%; - height: 480px -} -.welcomeXE .features li .fe_box { - height: 478px; - margin: 0 10px; - padding: 0 20px; - border: 1px solid #333; - background-color: #f6f6f6; - text-align: center; - -webkit-transition: all .2s ease-out; - -moz-transition: all .2s ease-out; - -o-transition: all .2s ease-out; - transition: all .2s ease-out -} -.welcomeXE .features .fe_box .ico { - display: inline-block; - width: 70px; - height: 70px; - margin: 162px 0 27px; - background-color: #cda25a; - background: url(../img/sp_feature.png) 0 0 no-repeat; - text-align: center; - font-size: 60px; - line-height: 70px -} -.welcomeXE .features .fe_box h2 { - font-size: 21px; - color: #555; - font-weight: normal -} -.welcomeXE .features .fe_box p { - margin-bottom: 80px; - font-size: 15px; - line-height: 24px; - color: #f6f6f6 -} -.welcomeXE .features .fe_box a { - display: inline-block; - height: 40px; - padding: 0 40px; - border: 2px solid #f6f6f6; - font-family: 'Open Sans', sans-serif; - font-size: 13px; - letter-spacing: 1px; - color: #f6f6f6; - line-height: 40px; - font-weight: 600; - -webkit-transition: all .2s ease-in-out; - -moz-transition: all .2s ease-in-out; - -ms-transition: all .2s ease-in-out; - -o-transition: all .2s ease-in-out; - transition: all .2s ease-in-out -} -.welcomeXE .features .fe_box a:hover { - background-color: #f6f6f6; - border-color: #f6f6f6; - color: #cda25a -} -.welcomeXE .features .fe_top { - position: relative; - top: 0; - -webkit-transition: all .2s ease-out; - -moz-transition: all .2s ease-out; - -o-transition: all .2s ease-out; - transition: all .2s ease-out -} -.welcomeXE .features .fe_bottom { - position: relative; - top: 192px; - -webkit-transition: all .3s ease-out; - -moz-transition: all .3s ease-out; - -o-transition: all .3s ease-out; - transition: all .3s ease-out -} -.welcomeXE .features .fe_box.on { - background-color: #cda25a -} -.welcomeXE .features .fe_box.on .fe_top { - top: -104px -} -.welcomeXE .features .fe_box.on .fe_bottom { - top: -67px -} -.welcomeXE .features .fe_box.on h2 { - color: #f6f6f6 -} -.welcomeXE .features .fe_box.on .ico { - background-color: #f6f6f6; - background: url(../img/sp_feature.png) 0 -70px no-repeat -} -.welcomeXE .features .fe_box .ico2 { - background-position: -70px 0 -} -.welcomeXE .features .fe_box .ico3 { - background-position: -140px 0 -} -.welcomeXE .features .fe_box .ico4 { - background-position: -210px 0 -} -.welcomeXE .features .fe_box.on .ico2 { - background-position: -70px -70px -} -.welcomeXE .features .fe_box.on .ico3 { - background-position: -140px -70px -} -.welcomeXE .features .fe_box.on .ico4 { - background-position: -210px -70px -} /*section.connect*/ .welcomeXE .connect { height: 344px; - padding-top: 80px } .welcomeXE .connect ul { overflow: hidden; diff --git a/layouts/xedition/demo/welcome_main.html b/layouts/xedition/demo/welcome_main.html index 4fe257a4b..f337574a8 100644 --- a/layouts/xedition/demo/welcome_main.html +++ b/layouts/xedition/demo/welcome_main.html @@ -1,13 +1,5 @@
-
-

Beautiful iconpack
XEIcon

- -
-
GET STARTED

BUILD YOUR SITE

@@ -44,67 +36,12 @@
-
- GET BETTER -

RHYMIX FEATURES

-

Rhymix는 프레임웍을 기반으로 개별 프로그램과 스킨을 실행하여 결과물을 생성합니다.
다양한 개성을 가진 프로그램과 스킨을 조합하여 다채로운 기능을 가진 멋진 웹사이트를 만들 수 있습니다.

-
    -
  • -
    -
    - -

    손쉬운 사이트 구축

    -
    -
    -

    Rhymix는 블로그형, 카페형 등 다양한 모듈을 제공합니다. 만들고자 하는 사이트에 적합한 모듈을 선택하여 쉽고 빠르게 사이트를 구축할 수 있습니다.

    - CHECK IT OUT -
    -
    -
  • -
  • -
    -
    - -

    기능을 더하는 구조

    -
    -
    -

    Rhymix는 확장기능을 내려받아 더 많은 기능을 이용할 수 있습니다. 기본 기능과 확장 기능을 자유롭게 조합하여 다양한 웹 사이트를 제작할 수 있습니다.

    - CHECK IT OUT -
    -
    -
  • -
  • -
    -
    - -

    오픈 소스 & 커뮤니티

    -
    -
    -

    Rhymix는 오픈 커뮤니티를 통해 다양한 정보를 제공합니다. 커뮤니티에서 원하는 정보를 찾거거나 공유할 수 있습니다

    - CHECK IT OUT -
    -
    -
  • -
  • -
    -
    - -

    다국어 지원

    -
    -
    -

    Rhymix는 여러 나라의 언어를 지원합니다. 웹 사이트를 언어별로 분리하지 않고도 다국어 웹 사이트를 쉽게 제작할 수 있습니다.

    - CHECK IT OUT -
    -
    -
  • -
-
CONNECT WITH US

GET INVOLVED

  • - COMMUNITY + COMMUNITY

    COMMUNITY

    Rhymix와 관련한 다양한 커뮤니티를 만나보세요.

  • diff --git a/modules/install/script/ko.install.php b/modules/install/script/ko.install.php index dc58628c1..f08953484 100644 --- a/modules/install/script/ko.install.php +++ b/modules/install/script/ko.install.php @@ -9,119 +9,59 @@ $oMenuAdminController = getAdminController('menu'); // sitemap $sitemap = array( 'GNB' => array( - 'title' => 'Main menu', + 'title' => 'Main Menu', 'list' => array( array( - 'menu_name' => 'Welcome Page', + 'menu_name' => 'Welcome', 'module_type' => 'WIDGET', 'module_id' => 'index', ), array( - 'menu_name' => 'Board', + 'menu_name' => 'Free Board', 'module_type' => 'board', 'module_id' => 'board', - 'list' => array( - array( - 'menu_name' => 'SAMPLE 1', - 'is_shortcut' => 'Y', - 'shortcut_target' => '#', - 'list' => array( - array( - 'menu_name' => 'SAMPLE 1-1', - 'is_shortcut' => 'Y', - 'shortcut_target' => '#' - ), - ) - ), - array( - 'menu_name' => 'SAMPLE 2', - 'is_shortcut' => 'Y', - 'shortcut_target' => '#' - ), - array( - 'menu_name' => 'SAMPLE 3', - 'is_shortcut' => 'Y', - 'shortcut_target' => '#' - ), - ) ), array( - 'menu_name' => 'XEIcon', - 'module_type' => 'WIDGET', - 'module_id' => 'xeicon', + 'menu_name' => 'Q&A', + 'module_type' => 'board', + 'module_id' => 'qna', ), - ) + array( + 'menu_name' => 'Notice', + 'module_type' => 'board', + 'module_id' => 'notice', + ), + ), ), 'UNB' => array( - 'title' => 'Utility menu', + 'title' => 'Utility Menu', 'list' => array( array( 'menu_name' => 'Rhymix Official Site', 'is_shortcut' => 'Y', 'open_window' => 'Y', - 'shortcut_target' => 'https://www.rhymix.org/' + 'shortcut_target' => 'https://rhymix.org/', ), array( - 'menu_name' => 'GitHub', + 'menu_name' => 'Rhymix GitHub', 'is_shortcut' => 'Y', 'open_window' => 'Y', - 'shortcut_target' => 'https://github.com/rhymix' + 'shortcut_target' => 'https://github.com/rhymix', ), - ) + ), ), 'FNB' => array( 'title' => 'Footer Menu', 'list' => array( array( - 'menu_name' => 'Welcome Page', - 'is_shortcut' => 'Y', - 'shortcut_target' => 'index', - 'list' => array( - array( - 'menu_name' => 'SAMPLE 1', - 'is_shortcut' => 'Y', - 'shortcut_target' => '#' - ), - array( - 'menu_name' => 'SAMPLE 2', - 'is_shortcut' => 'Y', - 'shortcut_target' => '#' - ), - array( - 'menu_name' => 'SAMPLE 3', - 'is_shortcut' => 'Y', - 'shortcut_target' => '#' - ) - ), + 'menu_name' => 'Terms of Service', + 'module_type' => 'ARTICLE', + 'module_id' => 'terms', ), array( - 'menu_name' => 'Board', - 'is_shortcut' => 'Y', - 'shortcut_target' => 'board', - 'list' => array( - array( - 'menu_name' => 'SAMPLE 1', - 'is_shortcut' => 'Y', - 'shortcut_target' => '#' - ), - array( - 'menu_name' => 'SAMPLE 2', - 'is_shortcut' => 'Y', - 'shortcut_target' => '#' - ) - ) - ), - array( - 'menu_name' => 'XEIcon', - 'is_shortcut' => 'Y', - 'shortcut_target' => 'xeicon', - 'list' => array( - array( - 'menu_name' => 'SAMPLE 1', - 'is_shortcut' => 'Y', - 'shortcut_target' => '#' - ) - ) + 'menu_name' => 'Privacy Policy', + 'module_type' => 'ARTICLE', + 'module_id' => 'privacy', ), ), ), @@ -178,6 +118,9 @@ foreach($sitemap as $id => &$val) // create Layout //extra_vars init $extra_vars = new stdClass(); +$extra_vars->use_demo = 'Y'; +$extra_vars->use_ncenter_widget = 'Y'; +$extra_vars->content_fixed_width = 'Y'; $extra_vars->GNB = $sitemap['GNB']['menu_srl']; $extra_vars->UNB = $sitemap['UNB']['menu_srl']; $extra_vars->FNB = $sitemap['FNB']['menu_srl']; @@ -188,7 +131,6 @@ $args->site_srl = 0; $args->layout = 'xedition'; $args->title = 'XEDITION'; $args->layout_type = 'P'; - $oLayoutAdminController = getAdminController('layout'); $output = $oLayoutAdminController->insertLayout($args); if(!$output->toBool()) return $output; @@ -213,11 +155,9 @@ $args->extra_vars = serialize($extra_vars); $output = $oLayoutAdminController->updateLayout($args); if(!$output->toBool()) return $output; - $siteDesignPath = RX_BASEDIR.'files/site_design/'; FileHandler::makeDir($siteDesignPath); - $designInfo = new stdClass(); $designInfo->layout_srl = $layout_srl; $designInfo->mlayout_srl = $mlayout_srl; @@ -298,31 +238,6 @@ $domain_args->domain_srl = 0; $domain_args->index_module_srl = $module_srl; executeQuery('module.updateDomain', $domain_args); -// XEIcon page -$moduleInfo = $oModuleModel->getModuleInfoByMenuItemSrl($sitemap['GNB']['list'][2]['menu_srl']); -$xeicon_module_srl = $moduleInfo->module_srl; - -$xeicon_document_srl = array(); -for($i = 1; $i <=4; $i++) -{ - unset($obj->document_srl); - $obj->title = "XEIcon ({$i})"; - $obj->content = $oTemplateHandler->compile(RX_BASEDIR . 'modules/install/script/xeicon_content', 'xeicon_content_ko_' . $i); - - $output = $oDocumentController->insertDocument($obj, true); - if(!$output->toBool()) return $output; - - $xeicon_document_srl[$i] = $output->get('document_srl'); -} - -// save PageWidget -$oModuleController = getController('module'); /* @var $oModuleController moduleController */ -$module_info = $oModuleModel->getModuleInfoByModuleSrl($xeicon_module_srl); -$module_info->content = '
    '; -$output = $oModuleController->updateModule($module_info); -if(!$output->toBool()) return $output; - - // create menu cache $oMenuAdminController->makeXmlFile($menuSrl);