사이드뷰 로딩 시 스크립트 추가 제거 (저사양 환경 제거) #217
This commit is contained in:
@ -480,11 +480,10 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#494949;color:#f
|
||||
|
||||
/* 사이드뷰 */
|
||||
.sv {display:inline-block;position:relative;font-weight:normal}
|
||||
.sv .sv_wrap {display:block;margin-top:5px;border:1px solid #eee;background:#f7f7f2}
|
||||
.sv .sv_wrap {display:none;margin-top:5px;border:1px solid #eee;background:#f7f7f2}
|
||||
.sv_nojs .sv_wrap {display:block}
|
||||
.sv .sv_wrap a {display:block;padding:3px;border-bottom:1px solid #eee}
|
||||
.sv_on {z-index:1000;position:absolute;top:10px;left:20px;width:100px !important;height:auto !important;background:#ddd;overflow:auto}
|
||||
.sv_off {display:block;position:absolute;margin:0 !important;width:0;height:0;border:0 !important;overflow:hidden}
|
||||
.sv_off a {margin:0;padding:0;width:0;height:0;overflow:hidden}
|
||||
.sv_on {z-index:1000;display:block !important;position:absolute;top:10px;left:20px;width:100px !important;height:auto !important;background:#ddd;overflow:auto}
|
||||
.sv_member,
|
||||
.sv_guest {font-weight:bold}
|
||||
|
||||
|
||||
@ -987,28 +987,29 @@ function get_sideview($mb_id, $name='', $email='', $homepage='')
|
||||
|
||||
$str = "<strong class=\"sv\">\n";
|
||||
$str .= $tmp_name."\n";
|
||||
$str .= "<span class=\"sv_wrap\">\n";
|
||||
$str2 .= "<span class=\"sv_wrap\">\n";
|
||||
if($mb_id)
|
||||
$str .= "<a href=\"".G4_BBS_URL."/memo_form.php?me_recv_mb_id=".$mb_id."\" onclick=\"win_memo(this.href); return false;\">쪽지보내기</a>\n";
|
||||
$str2 .= "<a href=\"".G4_BBS_URL."/memo_form.php?me_recv_mb_id=".$mb_id."\" onclick=\"win_memo(this.href); return false;\">쪽지보내기</a>\n";
|
||||
if($email)
|
||||
$str .= "<a href=\"".G4_BBS_URL."/formmail.php?mb_id=".$mb_id."&name=".urlencode($name)."&email=".$email."\" onclick=\"win_email(this.href); return false;\">메일보내기</a>\n";
|
||||
$str2 .= "<a href=\"".G4_BBS_URL."/formmail.php?mb_id=".$mb_id."&name=".urlencode($name)."&email=".$email."\" onclick=\"win_email(this.href); return false;\">메일보내기</a>\n";
|
||||
if($homepage)
|
||||
$str .= "<a href=\"".$homepage."\" target=\"_blank\">홈페이지</a>\n";
|
||||
$str2 .= "<a href=\"".$homepage."\" target=\"_blank\">홈페이지</a>\n";
|
||||
if($mb_id)
|
||||
$str .= "<a href=\"".G4_BBS_URL."/profile.php?mb_id=".$mb_id."\" onclick=\"win_profile(this.href); return false;\">자기소개</a>\n";
|
||||
$str2 .= "<a href=\"".G4_BBS_URL."/profile.php?mb_id=".$mb_id."\" onclick=\"win_profile(this.href); return false;\">자기소개</a>\n";
|
||||
if($bo_table) {
|
||||
if($mb_id)
|
||||
$str .= "<a href=\"".G4_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=mb_id,1&stx=".$mb_id."\">아이디로 검색</a>\n";
|
||||
$str2 .= "<a href=\"".G4_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=mb_id,1&stx=".$mb_id."\">아이디로 검색</a>\n";
|
||||
else
|
||||
$str .= "<a href=\"".G4_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=wr_name,1&stx=".$name."\">이름으로 검색</a>\n";
|
||||
$str2 .= "<a href=\"".G4_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=wr_name,1&stx=".$name."\">이름으로 검색</a>\n";
|
||||
}
|
||||
if($mb_id)
|
||||
$str .= "<a href=\"".G4_BBS_URL."/new.php?mb_id=".$mb_id."\">전체게시물</a>\n";
|
||||
$str2 .= "<a href=\"".G4_BBS_URL."/new.php?mb_id=".$mb_id."\">전체게시물</a>\n";
|
||||
if($is_admin == "super" && $mb_id) {
|
||||
$str .= "<a href=\"".G4_ADMIN_URL."/member_form.php?w=u&mb_id=".$mb_id."\" target=\"_blank\">회원정보변경</a>\n";
|
||||
$str .= "<a href=\"".G4_ADMIN_URL."/point_list.php?sfl=mb_id&stx=".$mb_id."\" target=\"_blank\">포인트내역</a>\n";
|
||||
$str2 .= "<a href=\"".G4_ADMIN_URL."/member_form.php?w=u&mb_id=".$mb_id."\" target=\"_blank\">회원정보변경</a>\n";
|
||||
$str2 .= "<a href=\"".G4_ADMIN_URL."/point_list.php?sfl=mb_id&stx=".$mb_id."\" target=\"_blank\">포인트내역</a>\n";
|
||||
}
|
||||
$str .= "</span>\n";
|
||||
$str2 .= "</span>\n";
|
||||
$str .= $str2."\n<noscript class=\"sv_nojs\">".$str2."</noscript>";
|
||||
$str .= "</strong>";
|
||||
|
||||
return $str;
|
||||
|
||||
Reference in New Issue
Block a user