Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 * 테스트 겸 스킨 설정 부분에 패널 토글 추가.
  • Loading branch information
inureyes committed Mar 25, 2008
1 parent 20ab4e0 commit 18de17e
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interface/owner/skin/setting/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ function changeTreeStyle() {

<div id="part-skin-setting" class="part">
<h2 class="caption"><span class="main-text"><?php echo _t('스킨 출력에 따른 여러 값들을 변경합니다');?></span></h2>
<?php echo setDetailPanel('panelSkinSetting');?>

<div class="data-inbox">
<div id="panelSkinSetting" class="data-inbox">
<form id="skinSetting" class="section" method="post" action="<?php echo $blogURL;?>/owner/skin/setting/skin" enctype="application/x-www-form-urlencoded">
<fieldset id="per-page-container" class="container">
<legend><?php echo _t('출력 숫자 조절');?></legend>
Expand Down
1 change: 1 addition & 0 deletions lib/includeForBlogOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
require ROOT .'/lib/model/blog.category.php';
require ROOT .'/lib/model/blog.teamblog.php';
require ROOT .'/lib/model/blog.skin.php';
require ROOT .'/lib/model/blog.fx.php';
require ROOT .'/lib/model/common.plugin.php';
require ROOT .'/lib/model/common.module.php';
require ROOT .'/lib/model/common.setting.php';
Expand Down
31 changes: 31 additions & 0 deletions lib/model/blog.fx.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php
/// Copyright (c) 2004-2008, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT)

$fxList = array();
function setDetailPanel($id) {
global $fxList;
// if(in_array($fxList,$id)) return '';
array_push($fxList, $id);
$hrefVal = TAB.TAB.TAB.TAB.TAB.TAB.TAB.'<dl class="panel-setting">'.CRLF
.TAB.TAB.TAB.TAB.TAB.TAB.TAB.TAB.'<dt>'._t('패널 보기 설정').'</dt>'.CRLF
.TAB.TAB.TAB.TAB.TAB.TAB.TAB.TAB.'<dd><a id="toggle'.$id.'" href="#">'._t('패널 보기').'</a></dd>'.CRLF
.TAB.TAB.TAB.TAB.TAB.TAB.TAB.'</dl>'.CRLF;
return $hrefVal;
}

function activateDetailPanelJS() {
global $fxList;
$jsVal = '';
foreach($fxList as $fxItem) {
$jsVal .= "var ".$fxItem." = new Fx.Slide('".$fxItem."');".CRLF
."$('toggle".$fxItem."').addEvent('click', function(e){".CRLF
."e = new Event(e);".CRLF
.$fxItem.".toggle();".CRLF
."e.stop();".CRLF
."});".CRLF;
}
return $jsVal;
}
?>
3 changes: 3 additions & 0 deletions lib/piece/owner/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@
default:
}
}
<?php
echo activateDetailPanelJS();
?>
//]]>
</script>
</body>
Expand Down
1 change: 1 addition & 0 deletions lib/piece/owner/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
<script type="text/javascript" src="<?php echo $service['path'];?>/script/common2.js"></script>
<script type="text/javascript" src="<?php echo $service['path'];?>/script/gallery.js"></script>
<script type="text/javascript" src="<?php echo $service['path'];?>/script/owner.js"></script>
<script type="text/javascript" src="<?php echo $service['path'];?>/script/mootools.js"></script>
<?php
if( isset($service['admin_script']) ) {
if( is_array($service['admin_script']) ) {
Expand Down
28 changes: 28 additions & 0 deletions style/admin/whitedream/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,34 @@ h2.caption span
line-height : 38px;
}

.part .panel-setting
{
margin : -50px 10px 0 0;
}

.part dl.panel-setting
{
border-top : none !important;
height : 38px;
}

.part .panel-setting dd
{
color : #222;
text-align : right;
}

.part .panel-setting a
{
color : #22A;
text-align : right;
}

.part .panel-setting dt
{
display : none;
}

.main-explain-box .explain
{
line-height : 1.5em;
Expand Down

0 comments on commit 18de17e

Please sign in to comment.