From fb0ceb7d0e10614233b126eb02aefbe829e776ea Mon Sep 17 00:00:00 2001 From: zero Date: Wed, 8 Aug 2007 01:27:38 +0000 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90=20=EC=8A=A4?= =?UTF-8?q?=ED=82=A8=EC=9D=98=20=EC=83=81=EB=8B=A8=EC=97=90=20=EC=8A=A4?= =?UTF-8?q?=ED=82=A8=20=EC=A0=95=EB=B3=B4=20=EB=85=B8=EC=B6=9C=20=EC=95=84?= =?UTF-8?q?=EC=9D=B4=EC=BD=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/trunk@2248 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/css/default.css | 1 + common/js/common.js | 5 +++ common/tpl/images/info.png | Bin 0 -> 386 bytes .../skins/cozy_simple_gallery/header.html | 1 + .../board/skins/cozy_simple_list/header.html | 2 + .../skins/cozy_simple_webzine/header.html | 1 + modules/board/skins/default/header.html | 1 + modules/board/skins/xe_gallery/css/common.css | 1 + modules/board/skins/xe_gallery/header.html | 2 + modules/board/skins/xe_list/css/common.css | 1 + modules/board/skins/xe_list/header.html | 2 + modules/board/skins/xe_webzine/css/common.css | 1 + modules/board/skins/xe_webzine/header.html | 1 + modules/module/conf/module.xml | 2 + modules/module/module.view.php | 41 ++++++++++++++++++ modules/module/tpl/skin_info.html | 35 +++++++++++++++ 16 files changed, 97 insertions(+) create mode 100644 common/tpl/images/info.png create mode 100644 modules/module/module.view.php create mode 100644 modules/module/tpl/skin_info.html diff --git a/common/css/default.css b/common/css/default.css index 600c00cf1..a0855e9ff 100644 --- a/common/css/default.css +++ b/common/css/default.css @@ -30,6 +30,7 @@ label { cursor:pointer; } form { margin:0; padding:0; } .iePngFix { behavior:url(./common/js/iePngFix.htc); } +.zbxe_info { vertical-align:middle; behavior:url(./common/js/iePngFix.htc); } /* Input Style Definition */ .inputTypeText { border:1px solid; border-color:#a6a6a6 #d8d8d8 #d8d8d8 #a6a6a6; height:1.4em; padding:.2em 0 0 .3em; background:#ffffff; font-size:1em; } diff --git a/common/js/common.js b/common/js/common.js index 717c77f2b..8f9dc4b6d 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -605,3 +605,8 @@ function doDocumentPreview(obj) { dummy_obj.submit(); } } + +/* 스킨 정보 */ +function viewSkinInfo(module, skin) { + popopen("./?module=module&act=dispModuleSkinInfo&selected_module="+module+"&skin="+skin, 'SkinInfo'); +} diff --git a/common/tpl/images/info.png b/common/tpl/images/info.png new file mode 100644 index 0000000000000000000000000000000000000000..f253a8e348f8632902349eb224b0fb6dbcc79e6f GIT binary patch literal 386 zcmV-|0e$|7P)_RaNSz%7(ZRvd#mUmG z4tDA$?NHjq#ge@R2ZS#Y?f`j7X3uNQ21gs(#k8R>3I<04ezRnh> z@gsVp0dJzX!-u5d4mAFnP1CckR96Adqv*l-ap`q)yRzjz^rTqpf{z1EF^nfS+1$ye z!rOljnE)yJB6x|!xva_Kuf0+-7{`yrsh{Qv*}07*qoM6N<$f)ci*H2?qr literal 0 HcmV?d00001 diff --git a/modules/board/skins/cozy_simple_gallery/header.html b/modules/board/skins/cozy_simple_gallery/header.html index 5698df766..faf6313b1 100644 --- a/modules/board/skins/cozy_simple_gallery/header.html +++ b/modules/board/skins/cozy_simple_gallery/header.html @@ -43,6 +43,7 @@
  • RSS
  • +
  • diff --git a/modules/board/skins/cozy_simple_list/header.html b/modules/board/skins/cozy_simple_list/header.html index 5698df766..0f408784f 100644 --- a/modules/board/skins/cozy_simple_list/header.html +++ b/modules/board/skins/cozy_simple_list/header.html @@ -43,6 +43,8 @@
  • RSS
  • + +
  • diff --git a/modules/board/skins/cozy_simple_webzine/header.html b/modules/board/skins/cozy_simple_webzine/header.html index 5698df766..faf6313b1 100644 --- a/modules/board/skins/cozy_simple_webzine/header.html +++ b/modules/board/skins/cozy_simple_webzine/header.html @@ -43,6 +43,7 @@
  • RSS
  • +
  • diff --git a/modules/board/skins/default/header.html b/modules/board/skins/default/header.html index acb3b4880..8a349def7 100644 --- a/modules/board/skins/default/header.html +++ b/modules/board/skins/default/header.html @@ -41,5 +41,6 @@ [{$lang->cmd_management}] + diff --git a/modules/board/skins/xe_gallery/css/common.css b/modules/board/skins/xe_gallery/css/common.css index 720bf0b45..c3b285297 100644 --- a/modules/board/skins/xe_gallery/css/common.css +++ b/modules/board/skins/xe_gallery/css/common.css @@ -23,6 +23,7 @@ Jeong, Chan Myeong 070601~070630 .accountNavigation li { float:left; padding:0 .5em 0 .6em; background:url(../images/common/line_1x10_e0e0e0.gif) no-repeat left .4em; list-style:none;} .accountNavigation li a { font-size:11px; white-space:nowrap; color:#666666; text-decoration:none;} .accountNavigation li.rss { background:none; padding-top:.4em;} +.accountNavigation li.skin_info { padding-top:3px;} .accountNavigation li.join { background:none; padding-top:.4em;} .accountNavigation li.myInfo { padding-top:.4em; background:none;} .accountNavigation li.admin { padding-top:.4em;} diff --git a/modules/board/skins/xe_gallery/header.html b/modules/board/skins/xe_gallery/header.html index 237fbac86..25fda4122 100644 --- a/modules/board/skins/xe_gallery/header.html +++ b/modules/board/skins/xe_gallery/header.html @@ -77,5 +77,7 @@ +
  • + diff --git a/modules/board/skins/xe_list/css/common.css b/modules/board/skins/xe_list/css/common.css index e3542b918..e334fe00b 100644 --- a/modules/board/skins/xe_list/css/common.css +++ b/modules/board/skins/xe_list/css/common.css @@ -23,6 +23,7 @@ Jeong, Chan Myeong 070601~070630 .accountNavigation li { float:left; padding:0 .5em 0 .6em; background:url(../images/common/line_1x10_e0e0e0.gif) no-repeat left .4em; list-style:none;} .accountNavigation li a { font-size:11px; white-space:nowrap; color:#666666; text-decoration:none;} .accountNavigation li.rss { background:none; padding-top:.4em;} +.accountNavigation li.skin_info { padding-top:3px;} .accountNavigation li.join { background:none; padding-top:.4em;} .accountNavigation li.myInfo { padding-top:.4em; background:none;} .accountNavigation li.admin { padding-top:.4em;} diff --git a/modules/board/skins/xe_list/header.html b/modules/board/skins/xe_list/header.html index 4aaf28f74..e1c10336d 100644 --- a/modules/board/skins/xe_list/header.html +++ b/modules/board/skins/xe_list/header.html @@ -77,5 +77,7 @@ +
  • + diff --git a/modules/board/skins/xe_webzine/css/common.css b/modules/board/skins/xe_webzine/css/common.css index e3542b918..712ab81fb 100644 --- a/modules/board/skins/xe_webzine/css/common.css +++ b/modules/board/skins/xe_webzine/css/common.css @@ -25,6 +25,7 @@ Jeong, Chan Myeong 070601~070630 .accountNavigation li.rss { background:none; padding-top:.4em;} .accountNavigation li.join { background:none; padding-top:.4em;} .accountNavigation li.myInfo { padding-top:.4em; background:none;} +.accountNavigation li.skin_info { padding-top:3px;} .accountNavigation li.admin { padding-top:.4em;} .accountNavigation li.admin a { display:block; background:url(../images/common/iconAdmin.gif) no-repeat left .1em; padding:0 0 0 1.2em;} .accountNavigation li.setup { padding-top:.4em;} diff --git a/modules/board/skins/xe_webzine/header.html b/modules/board/skins/xe_webzine/header.html index 4aaf28f74..04af033e4 100644 --- a/modules/board/skins/xe_webzine/header.html +++ b/modules/board/skins/xe_webzine/header.html @@ -76,6 +76,7 @@
  • {$lang->cmd_login}
  • +
  • diff --git a/modules/module/conf/module.xml b/modules/module/conf/module.xml index d8724c8ce..090efec80 100644 --- a/modules/module/conf/module.xml +++ b/modules/module/conf/module.xml @@ -6,6 +6,8 @@ + + diff --git a/modules/module/module.view.php b/modules/module/module.view.php new file mode 100644 index 000000000..049eab8c2 --- /dev/null +++ b/modules/module/module.view.php @@ -0,0 +1,41 @@ +setTemplatePath($this->module_path.'tpl'); + } + + /** + * @brief 스킨 정보 출력 + **/ + function dispModuleSkinInfo() { + $selected_module = Context::get('selected_module'); + $skin = Context::get('skin'); + + // 모듈/스킨 정보를 구함 + $module_path = sprintf("./modules/%s/", $selected_module); + if(!is_dir($module_path)) $this->stop("msg_invalid_request"); + + $skin_info_xml = sprintf("%sskins/%s/skin.xml", $module_path, $skin); + if(!file_exists($skin_info_xml)) $this->stop("msg_invalid_request"); + + $oModuleModel = &getModel('module'); + $skin_info = $oModuleModel->loadSkinInfo($module_path, $skin); + Context::set('skin_info',$skin_info); + + $this->setLayoutFile("popup_layout"); + $this->setTemplateFile("skin_info"); + } + + } +?> diff --git a/modules/module/tpl/skin_info.html b/modules/module/tpl/skin_info.html new file mode 100644 index 000000000..f0d168642 --- /dev/null +++ b/modules/module/tpl/skin_info.html @@ -0,0 +1,35 @@ + +
    +

    {$skin_info->title}

    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + +
    {$skin_info->title}
    {$skin_info->maker->name}
    {$skin_info->maker->homepage}
    {$skin_info->maker->date} +
    {$lang->description}{nl2br($skin_info->maker->description)}
    +
    + +