mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 17:22:20 +09:00
#1156 removed admin bar
This commit is contained in:
parent
80ae13a6c2
commit
712541c50c
9 changed files with 0 additions and 113 deletions
|
|
@ -150,54 +150,6 @@ body>.message {
|
|||
background: #333 url("../../common/img/msg.loading.gif") no-repeat center 15px;
|
||||
}
|
||||
|
||||
/* Admin Bar */
|
||||
#adminBar {
|
||||
z-index: 9999;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 28px;
|
||||
border-top: 1px solid #eee;
|
||||
border-bottom: 1px solid #eee;
|
||||
font: 12px/28px Arial, Helvetica, sans-serif;
|
||||
color: #fff;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 0 5px #333;
|
||||
background: #666;
|
||||
}
|
||||
#adminBar>h1 {
|
||||
float: left;
|
||||
margin: 0 10px 0 0;
|
||||
padding: 6px 0 0 10px;
|
||||
line-height: 1;
|
||||
font-size: 12px;
|
||||
}
|
||||
#adminBar img {
|
||||
vertical-align: top;
|
||||
}
|
||||
#adminBar>p {
|
||||
margin: 0;
|
||||
}
|
||||
#adminBar>.admin {
|
||||
float: left;
|
||||
}
|
||||
#adminBar>.link {
|
||||
float: right;
|
||||
padding: 0 10px 0 0;
|
||||
}
|
||||
#adminBar a {
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
}
|
||||
#adminBar a:hover,
|
||||
#adminBar a:active,
|
||||
#adminBar a:focus {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Button */
|
||||
.btnArea {
|
||||
clear: both;
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@ xe.msg_select_menu = "{$lang->msg_select_menu}";
|
|||
{@$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'" />
|
||||
{Context::getBodyHeader()}
|
||||
{$content}
|
||||
{Context::getHtmlFooter()}
|
||||
|
|
@ -78,48 +77,5 @@ xe.msg_select_menu = "{$lang->msg_select_menu}";
|
|||
<block cond="$js_file['targetie']"><!--[if {$js_file['targetie']}]></block><script src="{$js_file['file']}"></script><block cond="$js_file['targetie']"><![endif]--></block>
|
||||
</block>
|
||||
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue