mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 20:59:55 +09:00
게시판 스킨의 상단에 스킨 정보 노출 아이콘 추가
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2248 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6acfb459f9
commit
fb0ceb7d0e
16 changed files with 97 additions and 0 deletions
|
|
@ -43,6 +43,7 @@
|
|||
<!--@if($rss_url)-->
|
||||
<li><a href="{$rss_url}"><img src="./images/common/btn_rss.gif" alt="RSS" /></a></li>
|
||||
<!--@end-->
|
||||
<li><a href="#" onclick="viewSkinInfo('{$module_info->module}','{$module_info->skin}');return false;"><img src="{getUrl()}common/tpl/images/info.png" class="zbxe_info" alt="" /></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -43,6 +43,8 @@
|
|||
<!--@if($rss_url)-->
|
||||
<li><a href="{$rss_url}"><img src="./images/common/btn_rss.gif" alt="RSS" /></a></li>
|
||||
<!--@end-->
|
||||
|
||||
<li><a href="#" onclick="viewSkinInfo('{$module_info->module}','{$module_info->skin}');return false;"><img src="{getUrl()}common/tpl/images/info.png" class="zbxe_info" alt="" /></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@
|
|||
<!--@if($rss_url)-->
|
||||
<li><a href="{$rss_url}"><img src="./images/common/btn_rss.gif" alt="RSS" /></a></li>
|
||||
<!--@end-->
|
||||
<li><a href="#" onclick="viewSkinInfo('{$module_info->module}','{$module_info->skin}');return false;"><img src="{getUrl()}common/tpl/images/info.png" class="zbxe_info" alt="" /></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -41,5 +41,6 @@
|
|||
<!--@if($grant->is_admin)-->
|
||||
<a href="{getUrl('act','dispBoardAdminBoardInfo')}">[{$lang->cmd_management}]</a>
|
||||
<!--@end-->
|
||||
<a href="#" onclick="viewSkinInfo('{$module_info->module}','{$module_info->skin}');return false;"><img src="{getUrl()}common/tpl/images/info.png" class="zbxe_info" alt="" /></a>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -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;}
|
||||
|
|
|
|||
|
|
@ -77,5 +77,7 @@
|
|||
|
||||
<!--@end-->
|
||||
|
||||
<li class="skin_info"><a href="#" onclick="viewSkinInfo('{$module_info->module}','{$module_info->skin}');return false;"><img src="{getUrl()}common/tpl/images/info.png" class="zbxe_info" alt="" /></a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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;}
|
||||
|
|
|
|||
|
|
@ -77,5 +77,7 @@
|
|||
|
||||
<!--@end-->
|
||||
|
||||
<li class="skin_info"><a href="#" onclick="viewSkinInfo('{$module_info->module}','{$module_info->skin}');return false;"><img src="{getUrl()}common/tpl/images/info.png" class="zbxe_info" alt="" /></a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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;}
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@
|
|||
<li class="loginAndLogout"><a href="{getUrl('act','dispMemberLoginForm')}" class="button"><span>{$lang->cmd_login}</span></a></li>
|
||||
|
||||
<!--@end-->
|
||||
<li class="skin_info"><a href="#" onclick="viewSkinInfo('{$module_info->module}','{$module_info->skin}');return false;"><img src="{getUrl()}common/tpl/images/info.png" class="zbxe_info" alt="" /></a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
<action name="dispModuleAdminCategory" type="view" standalone="true" />
|
||||
<action name="dispModuleAdminInfo" type="view" standalone="true" />
|
||||
|
||||
<action name="dispModuleSkinInfo" type="view" standalone="true" />
|
||||
|
||||
<action name="procModuleAdminInsertCategory" type="controller" standalone="true" />
|
||||
<action name="procModuleAdminUpdateCategory" type="controller" standalone="true" />
|
||||
</actions>
|
||||
|
|
|
|||
41
modules/module/module.view.php
Normal file
41
modules/module/module.view.php
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
/**
|
||||
* @class moduleView
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief module 모듈의 view class
|
||||
**/
|
||||
|
||||
class moduleView extends module {
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
**/
|
||||
function init() {
|
||||
// template path 지정
|
||||
$this->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");
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
35
modules/module/tpl/skin_info.html
Normal file
35
modules/module/tpl/skin_info.html
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<!--%import("../../admin/tpl/css/admin.css")-->
|
||||
<div id="popHeadder">
|
||||
<h1>{$skin_info->title}</h1>
|
||||
</div>
|
||||
|
||||
<div id="popBody">
|
||||
<table cellspacing="0" class="tableType5">
|
||||
<col width="100" />
|
||||
<col />
|
||||
<tr>
|
||||
<th scope="row"><label for="textfield1">{$lang->title}</label></th>
|
||||
<td>{$skin_info->title}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="textfield2">{$lang->author}</label></th>
|
||||
<td class="blue"><a href="mailto:{$skin_info->maker->email_address}">{$skin_info->maker->name}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="textfield2">{$lang->homepage}</label></th>
|
||||
<td class="blue"><a href="{$skin_info->maker->homepage}" onclick="window.open(this.href);return false;">{$skin_info->maker->homepage}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="textfield2">{$lang->regdate}</label></th>
|
||||
<td>{$skin_info->maker->date}<td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="borderBottomNone">{$lang->description}</th>
|
||||
<td class="borderBottomNone">{nl2br($skin_info->maker->description)}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="popFooter" class="tCenter">
|
||||
<a href="#" onclick="window.close(); return false;" class="button"><span>{$lang->cmd_close}</span></a>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue