어드민바(관리자 바) 안뜨게 하기

common/tpl/common_layout.html

삭제나 주석처리 부분
{@$isAdminKind = false}
<!--@if(strpos(strtolower(Context::get('act')),'admin') || Context::get('module') == 'admin')-->
{@$isAdminKind = true}
<!--@end-->
<body{Context::getBodyClass()}>
<include target="../../modules/admin/tpl/admin_bar.html" cond="$logged_info->is_admin=='Y' && !$isAdminKind && Context::get('current_module_info')->module_type == 'view' && Context::get('admin_bar') != 'false'" />

<script cond="$logged_info->is_admin=='Y' && !$isAdminKind && Context::get('current_module_info')->module_type == 'view' && Context::get('admin_bar') != 'false'">
jQuery(function($){
function get_body_margin(position){
var margin = $('body').css('margin-' + position);
var unit = margin.substr(-2);
if(unit == 'px'){
margin = parseInt(margin);
}else{
margin = 0;
}
return margin;
}
var height = $('#adminBar').outerHeight();
var margin_top = get_body_margin('top');
var new_margin_top = margin_top + height;

$('body').css({
'margin-top': new_margin_top + 'px'
})
var $fixed_elements = $('*').filter(function(){
if($(this).get(0) == $('#adminBar').get(0)) return false;
if($(this).css("position") !== 'fixed') return false;
var invisible = false;
if(!$(this).is(':visible')){
invisible = true;
$(this).show();
}
var top = $(this).position().top;
if(invisible){
$(this).hide();
}
if(top > height) return false;
$(this).css('top', top + height);
return true;
});
});
</script>



슈퍼맨 웹스터디 2013.05.21 17:01:12
비밀글 비밀글 입니다.
글쓰기