Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 * 필요없는 코드 제외
  • Loading branch information
inureyes committed May 23, 2008
1 parent 20499db commit 3d5be54
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 75 deletions.
52 changes: 0 additions & 52 deletions lib/piece/owner/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,59 +450,7 @@
?>
<h2><?php echo isset($blogMenu['title']) ? _f('서브메뉴 : %1', $blogMenu['title']) : _t('서브메뉴');?></h2>

<?php
//if(isset($blogContentMenuItem[$blogMenu['topMenu']])) {
?>
<div id="sub-menu-box">
<ul id="sub-menu">
<?php
/*
$firstChildClass = ' firstChild';
$submenuURL = null;
foreach($blogContentMenuItem[$blogMenu['topMenu']] as $contentMenuItem) {
$PostIdStr = null;
if(strstr($contentMenuItem['menu'], 'adminMenu?name=') !== false) {
$pluginMenuValue = explode('/',substr($contentMenuItem['menu'], 15));
$PostIdStr = $pluginMenuValue[0];
if(($blogMenu['contentMenu'] == $contentMenuItem['menu'] || (isset($_GET['name']) && ('adminMenu?name='.$_GET['name'] == $contentMenuItem['menu'])) || ($contentMenuItem['menu'] == 'trash' && strpos($blogMenu['contentMenu'],'trash') !== false))) {
$submenuURL = $pluginMenuValue[0];
}
} else {
$PostIdStr = $contentMenuItem['menu'];
if(($blogMenu['contentMenu'] == $contentMenuItem['menu']
|| (isset($_GET['name']) && ('adminMenu?name='.$_GET['name'] == $contentMenuItem['menu']))
|| (in_array($contentMenuItem['menu'],array('blog','user')) && strpos($blogMenu['contentMenu'],'detail') !== false)
)) {
$submenuURL = $blogMenu['contentMenu'];
}
}
?>
<li id="sub-menu-<?php echo $PostIdStr;?>"<?php echo
(($blogMenu['contentMenu'] == $contentMenuItem['menu'] ||
(isset($_GET['name']) && ('adminMenu?name='.$_GET['name'] == $contentMenuItem['menu'])) ||
($contentMenuItem['menu'] == 'add' && strpos($blogMenu['contentMenu'],'add') !== false) ||
($contentMenuItem['menu'] == 'blog' && strpos($blogMenu['contentMenu'],'blog') !== false && strpos($blogMenu['contentMenu'],'teamblog') === false) ||
($contentMenuItem['menu'] == 'user' && strpos($blogMenu['contentMenu'],'user') !== false) ||
($blogMenu['contentMenu'] == 'edit' && $contentMenuItem['menu'] == 'post')) ? " class=\"selected{$firstChildClass}\"" : ($firstChildClass ? " class=\"$firstChildClass\"" : ''));?>><a href="<?php
echo $blogURL.
$contentMenuItem['link'].
($contentMenuItem['menu'] == 'post' && isset($currentCategory) ? '?category='.$currentCategory : '');
?>"><span class="text"><?php echo $contentMenuItem['title'];?></span></a></li>
<?php
$firstChildClass = null;
}
$helpURL = $blogMenu['topMenu'].(isset($blogMenu['contentMenu']) ? '/'.$submenuURL : '');
?>
</ul>
<ul id="helper">
<li id="sub-menu-helper"><a href="<?php echo getHelpURL($helpURL);?>" onclick="window.open(this.href); return false;"><span class="text"><?php echo _t('도우미');?></span></a></li>
</ul>
</div>
<?php
}
*/
?>
<ul id="helper">
<li id="sub-menu-helper"><a href="<?php echo getHelpURL($helpURL);?>" onclick="window.open(this.href); return false;"><span class="text"><?php echo _t('도우미');?></span></a></li>
</ul>
Expand Down
16 changes: 0 additions & 16 deletions script/owner.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,4 @@ function rolloverClass(obj, type) {
}
}
}

var currentSubmenuContents = '';

function previewSubmenu(topmenu) {
var menu = document.getElementById('submenu-'+topmenu);
contents = menu.innerHTML;
if(currentSubmenuContents == '') currentSubmenuContents = document.getElementById('sub-menu').innerHTML;
document.getElementById('sub-menu').innerHTML = contents;
return true;
}

function revertSubmenu() {
if(currentSubmenuContents == '') return true;
else document.getElementById('sub-menu').innerHTML = currentSubmenuContents;
return true;
}
//]]>
12 changes: 5 additions & 7 deletions style/admin/whitedream/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -302,33 +302,31 @@ textarea
{
display : block !important;
width : 150px;
background-color : #EEE;
color : #222;
position : absolute;
z-index : 999;
top : 33px;
left : 0;
border : solid 1px #CCC;
background-color : #EEE;
background-image : url("./image/bg_menu_selected.png");
background-repeat : no-repeat;
filter : alpha(opacity=90);
opacity :.90;
background-position : -80px -33px;
padding-bottom : 10px;
}

#main-menu li:hover ul:hover
{
display : block;
}

#main-menu li:hover ul:hover
{
display : block;
float : none;
margin : 0;
}

#main-menu li:hover ul li.firstChild
{
margin-top:5px;
margin-top : 5px;
}

#main-menu li:hover ul li
Expand Down

0 comments on commit 3d5be54

Please sign in to comment.