리뉴얼 테마 수정중
This commit is contained in:
1 parent
dac658451e
commit
b7adf0a158
33 files changed
+786
-131
No files matched your search
@@ -65,13 +65,13 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
|
||||
</th>
|
||||
<?php } ?>
|
||||
<th scope="col"><i class="fa fa-sort-numeric-desc" aria-hidden="true"></i><span class="sound_only">번호</span></th>
|
||||
<th scope="col"><i class="fa fa-th-list" aria-hidden="true"></i><span class="sound_only">제목</span></th>
|
||||
<th scope="col"><i class="fa fa-user" aria-hidden="true"></i><span class="sound_only">글쓴이</span></th>
|
||||
<th scope="col"><?php echo subject_sort_link('wr_hit', $qstr2, 1) ?><i class="fa fa-eye" aria-hidden="true"></i><span class="sound_only">조회</span></a></th>
|
||||
<?php if ($is_good) { ?><th scope="col"><?php echo subject_sort_link('wr_good', $qstr2, 1) ?><i class="fa fa-thumbs-o-up" aria-hidden="true"></i><span class="sound_only">추천</span></a></th><?php } ?>
|
||||
<?php if ($is_nogood) { ?><th scope="col"><?php echo subject_sort_link('wr_nogood', $qstr2, 1) ?><i class="fa fa-thumbs-o-down" aria-hidden="true"></i><span class="sound_only">비추천</span></a></th><?php } ?>
|
||||
<th scope="col"><?php echo subject_sort_link('wr_datetime', $qstr2, 1) ?><i class="fa fa-clock-o" aria-hidden="true"></i><span class="sound_only">날짜</span></a></th>
|
||||
<th scope="col">번호</th>
|
||||
<th scope="col">제목</th>
|
||||
<th scope="col">글쓴이</th>
|
||||
<th scope="col"><?php echo subject_sort_link('wr_hit', $qstr2, 1) ?>조회 <i class="fa fa-sort" aria-hidden="true"></i></a></th>
|
||||
<?php if ($is_good) { ?><th scope="col"><?php echo subject_sort_link('wr_good', $qstr2, 1) ?>추천 <i class="fa fa-sort" aria-hidden="true"></i></a></th><?php } ?>
|
||||
<?php if ($is_nogood) { ?><th scope="col"><?php echo subject_sort_link('wr_nogood', $qstr2, 1) ?>비추천 <i class="fa fa-sort" aria-hidden="true"></i></a></th><?php } ?>
|
||||
<th scope="col"><?php echo subject_sort_link('wr_datetime', $qstr2, 1) ?>날짜</a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -113,9 +113,9 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
|
||||
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
|
||||
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
|
||||
if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
|
||||
if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file'];
|
||||
if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link'];
|
||||
if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
|
||||
?>
|
||||
<?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?>
|
||||
</a>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
/* 쓰기 버튼 */
|
||||
#bo_w .btn_confirm {} /* 서식단계 진행 */
|
||||
#bo_w .btn_submit {}
|
||||
#bo_w .btn_submit {padding:0 20px}
|
||||
#bo_w button.btn_submit {}
|
||||
#bo_w fieldset .btn_submit {}
|
||||
#bo_w .btn_cancel {}
|
||||
@@ -99,7 +99,7 @@
|
||||
#bo_list .td_mng {width:80px;text-align:center}
|
||||
#bo_list .td_name {width:90px;text-align:left;padding:10px 0}
|
||||
#bo_list .td_nick {width:100px;text-align:center}
|
||||
#bo_list .td_num {width:40px;;text-align:center}
|
||||
#bo_list .td_num {width:50px;;text-align:center}
|
||||
#bo_list .td_num2 {width:50px;;text-align:center}
|
||||
#bo_list .td_numbig {width:80px;text-align:center}
|
||||
#bo_list .txt_active {color:#5d910b}
|
||||
@@ -134,21 +134,27 @@
|
||||
.bo_notice .notice_icon{display:inline-block;background:#ff6f6f;padding:0 5px;line-height:20px;border-radius:5px;font-weight:normal;font-size:0.92em;color:#fff}
|
||||
.td_num strong {color:#000}
|
||||
.bo_cate_link {display: inline-block;color: #3497d9;height: 20px;font-size:0.92em} /* 글제목줄 분류스타일 */
|
||||
.bo_tit{display:block;font-weight:bold;color:#000}
|
||||
.bo_tit{display:block;font-weight:bold;color:#000;font-size:1.084em}
|
||||
.bo_current {color:#e8180c}
|
||||
/*#bo_list .profile_img {display:inline-block;;margin-right:2px}*/
|
||||
#bo_list .profile_img img{border-radius:50%}
|
||||
#bo_list .cnt_cmt {display:inline-block;margin:0 0 0 3px;font-weight:bold;color:#ed6478;}
|
||||
#bo_list .bo_tit i{color:#858893}
|
||||
#bo_list .bo_tit .fa-heart{color:#fe4560}
|
||||
#bo_list .bo_tit .fa-lock{color:#000}
|
||||
#bo_sch {float:left;border:1px solid #d3d3d3;border-radius:3px}
|
||||
|
||||
#bo_list .bo_tit .fa-download{width:16px;height:16px;line-height:16px;background:#ecaa30;color:#fff;text-align:center;font-size:10px;border-radius:2px}
|
||||
#bo_list .bo_tit .fa-link{width:16px;height:16px;line-height:16px;background:#2aa974;color:#fff;text-align:center;font-size:10px;border-radius:2px}
|
||||
#bo_list .bo_tit .fa-heart{color:#ff0000;;text-align:center;font-size:10px;border-radius:2px}
|
||||
#bo_list .bo_tit .new_icon{display:inline-block;padding: 0 3px;line-height:16px ;font-size:0.833em;color:#fff;background:#c56bed}
|
||||
#bo_list .bo_tit .fa-lock{color:#666}
|
||||
|
||||
|
||||
#bo_sch {float:left;border:1px solid #6d7892;border-radius:3px}
|
||||
#bo_sch:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_sch legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
|
||||
#bo_sch select{border:0;;margin:9px 5px ;height:20px;float:left;border-right:1px solid #ddd;}
|
||||
#bo_sch .sch_input{height:38px;border:0;padding:0;background-color:transparent;float:left}
|
||||
#bo_sch .sch_btn{height:38px;float:left;background:none;border:0;width:40px;font-size:15px}
|
||||
|
||||
|
||||
/* 게시판 쓰기 */
|
||||
#char_count_desc {display:block;margin:0 0 5px;padding:0}
|
||||
#char_count_wrap {margin:5px 0 0;text-align:right}
|
||||
@@ -232,12 +238,13 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa
|
||||
.bo_v_left {margin:20px 0;float:left}
|
||||
.bo_v_left li {float:left;margin-right:5px}
|
||||
|
||||
.bo_v_nb {margin:20px 0;position:relative;clear:both;text-align:center;padding:15px 0; border-top:1px solid #000;border-bottom:1px solid #ddd}
|
||||
.bo_v_nb {margin:20px 0;position:relative;clear:both;text-align:left;;border-bottom:1px solid #e8e8e8}
|
||||
.bo_v_nb:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_v_nb li {display:inline-block}
|
||||
.bo_v_nb li {border-top:1px solid #e8e8e8;padding:10px;border-left:1px solid #e8e8e8;border-right:1px solid #e8e8e8;}
|
||||
.bo_v_nb li:hover{background:#f6f6f6}
|
||||
.bo_v_nb li i{font-size:13px}
|
||||
.bo_v_nb .btn_prv{position:absolute;top:15px;left:10px}
|
||||
.bo_v_nb .btn_next{position:absolute;top:15px;right:10px}
|
||||
.bo_v_nb li .nb_tit{display:inline-block;padding-right:20px;color:#666}
|
||||
.bo_v_nb li .nb_date{float:right;color:#888}
|
||||
|
||||
#bo_v_atc {min-height:200px;height:auto !important;height:200px}
|
||||
#bo_v_atc_title {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
@@ -277,8 +284,8 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa
|
||||
#bo_v_sns li img{vertical-align:top}
|
||||
|
||||
/* 게시판 댓글 */
|
||||
.cmt_btn{background:url('./img/cmt_btn.png') no-repeat 80px 8px;text-align:left ;width:100% ;border:0;color:#ed6478;font-weight:bold;font-size:1.167em;margin: 30px 0 10px;padding:0 0 10px ;border-bottom:1px solid #e8e8e8}
|
||||
.cmt_btn_op{background:url('./img/cmt_btn.png') no-repeat 80px -23px}
|
||||
.cmt_btn{background:url('./img/cmt_btn.png') no-repeat 85px 8px;text-align:left ;width:100% ;border:0;color:#ed6478;font-weight:bold;font-size:1.25em;margin: 30px 0 10px;padding:0 0 10px ;border-bottom:1px solid #e8e8e8}
|
||||
.cmt_btn_op{background:url('./img/cmt_btn.png') no-repeat 85px -23px}
|
||||
#bo_vc {}
|
||||
#bo_vc h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_vc article {margin:20px 0;padding-left:75px;position:relative}
|
||||
@@ -313,7 +320,7 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa
|
||||
.bo_vc_w_info .frm_input{float:left;margin-right:5px}
|
||||
.bo_vc_w_info #captcha{padding-top:10px;display:block;clear:both}
|
||||
.bo_vc_w .btn_confirm{float:right;margin-top:10px}
|
||||
.bo_vc_w .btn_confirm label{display:inline-block;background:url(./img/icon_lock.png) no-repeat 50% 50%;width:20px;height:20px;text-indent:9999px;overflow:hidden;margin-right:5px}
|
||||
.bo_vc_w .btn_confirm label{display:inline-block;margin-right:10px;border-radius:3px;font-size:1.5em;text-align:center;}
|
||||
.bo_vc_w .btn_submit{height:45px;padding:0 20px;border-radius:3px;font-weight:bold;font-size:1.083em;}
|
||||
.bo_vc_w_wr:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
|
||||
@@ -332,7 +339,7 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa
|
||||
#bo_w div{margin:10px 0;position:relative;}
|
||||
#bo_w .bo_w_info:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_w .bo_w_info .frm_input{float:left;width:33%}
|
||||
#bo_w #wr_password{margin:0 0.5%}
|
||||
#bo_w #wr_password{margin:0 0.5% }
|
||||
#bo_w .bo_w_tit{position:relative}
|
||||
#bo_w .bo_w_tit .frm_input{padding-right:120px;}
|
||||
#bo_w .bo_w_tit #btn_autosave{position:absolute;top:5px;right:5px;line-height:30px;height:30px;}
|
||||
|
||||
@@ -138,7 +138,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
</div>
|
||||
<div class="btn_confirm">
|
||||
<input type="checkbox" name="wr_secret" value="secret" id="wr_secret">
|
||||
<label for="wr_secret">비밀글사용</label>
|
||||
<label for="wr_secret"><i class="fa fa-lock" aria-hidden="true"></i><span class="sound_only">비밀글사용</span></label>
|
||||
<input type="submit" id="btn_submit" class="btn_submit" value="댓글등록">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -34,7 +34,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
if ($is_dhtml_editor) {
|
||||
$option_hidden .= '<input type="hidden" value="html1" name="html">';
|
||||
} else {
|
||||
$option .= "\n".'<input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'."\n".'<label for="html">html</label>';
|
||||
$option .= "\n".'<input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'."\n".'<label for="html">HTML</label>';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,8 +76,8 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($is_email) { ?>
|
||||
<label for="wr_email" class="sound_only">이메일</label>
|
||||
<input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input emai full_inputl" placeholder="이메일">
|
||||
<label for="wr_email" class="sound_only">이메일</label>
|
||||
<input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email " placeholder="이메일">
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
@@ -88,6 +88,13 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($option) { ?>
|
||||
<div>
|
||||
<span class="sound_only">옵션</span>
|
||||
<?php echo $option ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="bo_w_tit">
|
||||
<label for="wr_subject" class="sound_only">제목<strong>필수</strong></label>
|
||||
|
||||
@@ -123,13 +130,6 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
|
||||
</div>
|
||||
|
||||
<?php if ($option) { ?>
|
||||
<div>
|
||||
<span class="sound_only">옵션</span>
|
||||
<?php echo $option ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php for ($i=1; $is_link && $i<=G5_LINK_COUNT; $i++) { ?>
|
||||
<div class="bo_w_link">
|
||||
<label for="wr_link<?php echo $i ?>"><i class="fa fa-link" aria-hidden="true"></i><span class="sound_only"> 링크 #<?php echo $i ?></span></label>
|
||||
@@ -165,7 +165,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
|
||||
|
||||
<div class="btn_confirm">
|
||||
<a href="./board.php?bo_table=<?php echo $bo_table ?>" class="btn_cancel btn"><i class="fa fa-list" aria-hidden="true"></i> 목록</a>
|
||||
<a href="./board.php?bo_table=<?php echo $bo_table ?>" class="btn_cancel btn">취소</a>
|
||||
<input type="submit" value="작성완료" id="btn_submit" accesskey="s" class="btn_submit btn">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
/* 쓰기 버튼 */
|
||||
#bo_w .btn_confirm {} /* 서식단계 진행 */
|
||||
#bo_w .btn_submit {}
|
||||
#bo_w .btn_submit {padding:0 20px}
|
||||
#bo_w button.btn_submit {}
|
||||
#bo_w fieldset .btn_submit {}
|
||||
#bo_w .btn_cancel {}
|
||||
@@ -277,8 +277,8 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa
|
||||
|
||||
|
||||
/* 게시판 댓글 */
|
||||
.cmt_btn{background:url('./img/cmt_btn.png') no-repeat 60px 8px;text-align:left ;width:100% ;border:0;color:#ed6478;font-weight:bold;font-size:1.167em;margin: 30px 0 10px;padding:0 0 10px ;border-bottom:1px solid #e8e8e8}
|
||||
.cmt_btn_op{background:url('./img/cmt_btn.png') no-repeat 60px -23px}
|
||||
.cmt_btn{background:url('./img/cmt_btn.png') no-repeat 85px 8px;text-align:left ;width:100% ;border:0;color:#ed6478;font-weight:bold;font-size:1.25em;margin: 30px 0 10px;padding:0 0 10px ;border-bottom:1px solid #e8e8e8}
|
||||
.cmt_btn_op{background:url('./img/cmt_btn.png') no-repeat 85px -23px}
|
||||
#bo_vc {}
|
||||
#bo_vc h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_vc article {margin:20px 0;padding-left:75px;position:relative}
|
||||
@@ -314,7 +314,7 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa
|
||||
.bo_vc_w_info .frm_input{float:left;margin-right:5px}
|
||||
.bo_vc_w_info #captcha{padding-top:10px;display:block;clear:both}
|
||||
.bo_vc_w .btn_confirm{float:right;margin-top:10px}
|
||||
.bo_vc_w .btn_confirm label{display:inline-block;background:url(./img/icon_lock.png) no-repeat 50% 50%;width:20px;height:20px;text-indent:9999px;overflow:hidden;margin-right:5px}
|
||||
.bo_vc_w .btn_confirm label{display:inline-block;margin-right:10px;border-radius:3px;font-size:1.5em;text-align:center;}
|
||||
.bo_vc_w .btn_submit{height:45px;padding:0 20px;border-radius:3px;font-weight:bold;font-size:1.083em;}
|
||||
.bo_vc_w_wr:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
|
||||
@@ -334,7 +334,7 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa
|
||||
#bo_w div{margin:10px 0;position:relative;}
|
||||
#bo_w .bo_w_info:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_w .bo_w_info .frm_input{float:left;width:33%}
|
||||
#bo_w #wr_password{margin:0 0.5%}
|
||||
#bo_w #wr_password{margin:0 0.5% }
|
||||
#bo_w .bo_w_tit{position:relative}
|
||||
#bo_w .bo_w_tit .frm_input{padding-right:120px;}
|
||||
#bo_w .bo_w_tit #btn_autosave{position:absolute;top:5px;right:5px;line-height:30px;height:30px;}
|
||||
|
||||
@@ -7,7 +7,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
var char_min = parseInt(<?php echo $comment_min ?>); // 최소
|
||||
var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
</script>
|
||||
<button type="button" class="cmt_btn">댓글목록</button>
|
||||
<button type="button" class="cmt_btn"><i class="fa fa-commenting-o" aria-hidden="true"></i> 댓글목록</button>
|
||||
<!-- 댓글 시작 { -->
|
||||
<section id="bo_vc">
|
||||
<h2>댓글목록</h2>
|
||||
@@ -15,7 +15,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
$cmt_amt = count($list);
|
||||
for ($i=0; $i<$cmt_amt; $i++) {
|
||||
$comment_id = $list[$i]['wr_id'];
|
||||
$cmt_depth = strlen($list[$i]['wr_comment_reply']) * 75;
|
||||
$cmt_depth = strlen($list[$i]['wr_comment_reply']) * 50;
|
||||
$comment = $list[$i]['content'];
|
||||
/*
|
||||
if (strstr($list[$i]['wr_option'], "secret")) {
|
||||
@@ -36,7 +36,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
<span>(<?php echo $list[$i]['ip']; ?>)</span>
|
||||
<?php } ?>
|
||||
<span class="sound_only">작성일</span>
|
||||
<span class="bo_vc_hdinfo"><time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo $list[$i]['datetime'] ?></time></span>
|
||||
<span class="bo_vc_hdinfo"><i class="fa fa-clock-o" aria-hidden="true"></i> <time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo $list[$i]['datetime'] ?></time></span>
|
||||
<?php
|
||||
include(G5_SNS_PATH.'/view_comment_list.sns.skin.php');
|
||||
?>
|
||||
@@ -138,7 +138,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
</div>
|
||||
<div class="btn_confirm">
|
||||
<input type="checkbox" name="wr_secret" value="secret" id="wr_secret">
|
||||
<label for="wr_secret">비밀글사용</label>
|
||||
<label for="wr_secret"><i class="fa fa-lock" aria-hidden="true"></i><span class="sound_only">비밀글사용</span></label>
|
||||
<input type="submit" id="btn_submit" class="btn_submit" value="댓글등록">
|
||||
</div>
|
||||
</div>
|
||||
@@ -307,15 +307,15 @@ $(function() {
|
||||
save_html = document.getElementById('bo_vc_w').innerHTML;
|
||||
}
|
||||
);
|
||||
|
||||
});
|
||||
<?php } ?>
|
||||
$(function() {
|
||||
//댓글열기
|
||||
$(".cmt_btn").click(function(){
|
||||
$(this).toggleClass("cmt_btn_op");
|
||||
$("#bo_vc").toggle();
|
||||
});
|
||||
|
||||
});
|
||||
<?php } ?>
|
||||
</script>
|
||||
<?php } ?>
|
||||
<!-- } 댓글 쓰기 끝 -->
|
||||
@@ -34,7 +34,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
if ($is_dhtml_editor) {
|
||||
$option_hidden .= '<input type="hidden" value="html1" name="html">';
|
||||
} else {
|
||||
$option .= "\n".'<input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'."\n".'<label for="html">html</label>';
|
||||
$option .= "\n".'<input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'."\n".'<label for="html">HTML</label>';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,6 +64,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<div class="bo_w_info">
|
||||
<?php if ($is_name) { ?>
|
||||
<label for="wr_name" class="sound_only">이름<strong>필수</strong></label>
|
||||
@@ -76,8 +77,8 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($is_email) { ?>
|
||||
<label for="wr_email" class="sound_only">이메일</label>
|
||||
<input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input emai full_inputl" placeholder="이메일">
|
||||
<label for="wr_email" class="sound_only">이메일</label>
|
||||
<input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email " placeholder="이메일">
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
@@ -88,6 +89,13 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($option) { ?>
|
||||
<div>
|
||||
<span class="sound_only">옵션</span>
|
||||
<?php echo $option ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="bo_w_tit">
|
||||
<label for="wr_subject" class="sound_only">제목<strong>필수</strong></label>
|
||||
|
||||
@@ -123,12 +131,6 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
|
||||
</div>
|
||||
|
||||
<?php if ($option) { ?>
|
||||
<div>
|
||||
<span class="sound_only">옵션</span>
|
||||
<?php echo $option ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php for ($i=1; $is_link && $i<=G5_LINK_COUNT; $i++) { ?>
|
||||
<div class="bo_w_link">
|
||||
|
||||
@@ -19,7 +19,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$connect_skin_url.'/style.css">',
|
||||
?>
|
||||
<li>
|
||||
<span class="crt_num"><?php echo $list[$i]['num'] ?></span>
|
||||
<span class="crt_name"><img src="<?php echo G5_THEME_IMG_URL; ?>/no_profile.gif" alt="프로필이미지"><br><?php echo $list[$i]['name'] ?></span>
|
||||
<span class="crt_name"><img src="<?php echo G5_THEME_IMG_URL ;?>/no_profile.gif" alt="프로필이미지"><br><?php echo $list[$i]['name'] ?></span>
|
||||
<span class="crt_lct"><?php echo $display_location ?></span>
|
||||
</li>
|
||||
<?php
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
@charset "utf-8";
|
||||
|
||||
/* 내용관리 */
|
||||
#ctt {margin:10px 0;padding:10px;border:1px solid #e9e9e9}
|
||||
#ctt {margin:10px 0;padding:10px;}
|
||||
.ctt_admin {text-align:right}
|
||||
#ctt header h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#ctt_con {padding:10px 0}
|
||||
#ctt_con {padding:10px 0;line-height:1.6em}
|
||||
#ctt_con img{max-width:100%;height:auto}
|
||||
.ctt_img {text-align:center}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
@@ -5,31 +5,40 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<!-- <?php echo $bo_subject; ?> 최신글 시작 { -->
|
||||
<div class="lt">
|
||||
<h2 class="lt_title"><i class="fa fa-list-alt" aria-hidden="true"></i> <a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><?php echo $bo_subject; ?></a></h2>
|
||||
<div class="lat">
|
||||
<h2 class="lat_title"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><i class="fa fa-list-ul" aria-hidden="true"></i> <?php echo $bo_subject ?></a></h2>
|
||||
<ul>
|
||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||
<li>
|
||||
<div class="lt_left">
|
||||
<?php
|
||||
//echo $list[$i]['icon_reply']." ";
|
||||
echo "<a href=\"".$list[$i]['href']."\">";
|
||||
if ($list[$i]['is_notice'])
|
||||
echo "<strong>".$list[$i]['subject']."</strong>";
|
||||
else
|
||||
echo $list[$i]['subject'];
|
||||
<?php
|
||||
if ($list[$i]['icon_secret']) echo "<i class=\"fa fa-lock\" aria-hidden=\"true\"></i> ";
|
||||
//echo $list[$i]['icon_reply']." ";
|
||||
echo "<a href=\"".$list[$i]['href']."\">";
|
||||
if ($list[$i]['is_notice'])
|
||||
echo "<strong>".$list[$i]['subject']."</strong>";
|
||||
else
|
||||
echo $list[$i]['subject'];
|
||||
|
||||
echo "</a>";
|
||||
?>
|
||||
<?php if ($list[$i]['comment_cnt']) echo $list[$i]['comment_cnt']; ?>
|
||||
</div>
|
||||
<span class="lt_date"><?php echo $list[$i]['datetime2'] ?></span>
|
||||
if ($list[$i]['comment_cnt'])
|
||||
echo $list[$i]['comment_cnt'];
|
||||
|
||||
echo "</a>";
|
||||
|
||||
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
|
||||
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
|
||||
|
||||
if ($list[$i]['icon_new']) echo " <span class=\"new_icon\">NEW</span>";
|
||||
if ($list[$i]['icon_file']) echo " <i class=\"fa fa-download\" aria-hidden=\"true\"></i>" ;
|
||||
if ($list[$i]['icon_link']) echo " <i class=\"fa fa-link\" aria-hidden=\"true\"></i>" ;
|
||||
if ($list[$i]['icon_hot']) echo " <i class=\"fa fa-heart\" aria-hidden=\"true\"></i>";
|
||||
?>
|
||||
<span class="lt_date"><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $list[$i]['datetime2'] ?></span>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if (count($list) == 0) { //게시물이 없을 때 ?>
|
||||
<li class="empty_li">게시물이 없습니다.</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>" class="lt_more"><span class="sound_only"><?php echo $bo_subject ?></span>더보기</a>
|
||||
|
||||
</div>
|
||||
<!-- } <?php echo $bo_subject; ?> 최신글 끝 -->
|
||||
@@ -1,12 +1,17 @@
|
||||
@charset "utf-8";
|
||||
/* 새글 스킨 (latest) */
|
||||
.lt_pc {float:left;margin-left:20px}
|
||||
.lt {position:relative;float:left;margin-bottom:10px;width:315px;}
|
||||
.lt ul {margin:0 0 10px;padding:10px;list-style:none;border:1px solid #e8e8e8;}
|
||||
.lt li {line-height:25px;position:relative;padding:0 70px 0 10px;;background:#fff;}
|
||||
.lt li .lt_left{display:block;}
|
||||
.lt .lt_title {font-size:1.083em;position: relative;background: #eee;border-bottom:1px solid #ffa74d;height: 40px;line-height: 40px;}
|
||||
.lt .lt_title i{width:40px;background:#ffa74d;height:39px;line-height:39px;color:#fff;text-align:center;margin-right:5px}
|
||||
.lt .cnt_cmt {position:absolute;top:0px;right:45px;display:inline-block;color:#ed6478;font-weight:bold;font-size:0.92em}
|
||||
.lt .lt_date{position:absolute;top:0;right:10px;display:inline-block;color:#777;font-style:italic;font-size:0.92em}
|
||||
.lt .empty_li{padding: 0;line-height:125px ;text-align:center;color:#777}
|
||||
.lat {position:relative;margin:0 10px}
|
||||
.lat .lat_title {display:block;padding:10px 0 ;font-size:1.167em;}
|
||||
.lat ul {margin:0 0 10px;padding:0;list-style:none;border:1px solid #ddd;border-top:2px solid #000}
|
||||
.lat li {border-top:1px solid #f3f3f3;padding:10px 60px 10px 10px ;position:relative;line-height:20px}
|
||||
.lat li:first-child{border:0}
|
||||
.lat li .fa-download{width:16px;height:16px;line-height:16px;background:#ecaa30;color:#fff;text-align:center;font-size:10px;border-radius:2px}
|
||||
.lat li .fa-link{width:16px;height:16px;line-height:16px;background:#2aa974;color:#fff;text-align:center;font-size:10px;border-radius:2px}
|
||||
.lat li .fa-heart{color:#ff0000;}
|
||||
.lat li .new_icon{display:inline-block;padding: 0 3px;line-height:16px ;font-size:0.833em;color:#fff;background:#c56bed}
|
||||
.lat li .cnt_cmt{color:#ff3970}
|
||||
.lat_title {display:block;padding:10px 0 ;font-size:1.167em;}
|
||||
.lat_more {position:absolute;top:10px;right:0;}
|
||||
.lat .empty_li{line-height:160px ;color:#666;text-align:center;padding:0;background:#fafafa}
|
||||
.lat .lt_date{position:absolute;top:10px;right:10px;font-size:0.92em;color:#888}
|
||||
.lat .lt_more {position:absolute;top:10px;right:0;display:block;background:url('img/more-btn.gif') no-repeat 0 2px;padding-left:20px;height:30px}
|
||||
@@ -37,6 +37,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
@@ -33,7 +33,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<ul id="memo_view_ul">
|
||||
<li class="memo_view_li memo_view_name">
|
||||
<span class="memo_view_subj"><?php echo $kind_str ?>사람</span>
|
||||
<strong><span class="profile_img"><img src="<?php echo G5_THEME_IMG_URL; ?>/no_profile.gif" alt="프로필이미지" width="20" height="20"></span> <?php echo $nick ?></strong>
|
||||
<strong><span class="profile_img"><img src="<?php echo G5_THEME_IMG_URL ;?>/no_profile.gif" alt="프로필이미지" width="20" height="20"></span> <?php echo $nick ?></strong>
|
||||
</li>
|
||||
<li class="memo_view_li memo_view_date">
|
||||
<span class="sound_only"><?php echo $kind_date ?>시간</span>
|
||||
|
||||
@@ -10,7 +10,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<h1 id="win_title"><?php echo $mb_nick ?>님의 프로필</h1>
|
||||
<div class="profile_name">
|
||||
<span class="profile_img">
|
||||
<img src="<?php echo G5_THEME_IMG_URL; ?>/no_profile.gif" alt="프로필이미지">
|
||||
<img src="<?php echo G5_THEME_IMG_URL ;?>/no_profile.gif" alt="프로필이미지">
|
||||
</span>
|
||||
<?php echo $mb_nick ?>
|
||||
</div>
|
||||
|
||||
@@ -7,12 +7,18 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
|
||||
<!-- 회원가입약관 동의 시작 { -->
|
||||
<div>
|
||||
|
||||
<?php
|
||||
// 소셜로그인 사용시 소셜로그인 버튼
|
||||
@include_once(get_social_skin_path().'/register_social.skin.php');
|
||||
?>
|
||||
|
||||
<form name="fregister" id="fregister" action="<?php echo $register_action_url ?>" onsubmit="return fregister_submit(this);" method="POST" autocomplete="off">
|
||||
|
||||
<p>회원가입약관 및 개인정보처리방침안내의 내용에 동의하셔야 회원가입 하실 수 있습니다.</p>
|
||||
<div id="fregister_chkall">
|
||||
<label for="chk_all">전체선택</label>
|
||||
<input type="checkbox" name="chk_all" id="chk_all">
|
||||
<input type="checkbox" name="chk_all" value="1" id="chk_all">
|
||||
|
||||
</div>
|
||||
<section id="fregister_term">
|
||||
@@ -80,17 +86,18 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
jQuery(function($){
|
||||
$(document).on("click", "#chk_all", function(e){
|
||||
|
||||
// 모두선택
|
||||
$("input[name=chk_all]").click(function() {
|
||||
if ($(this).prop('checked')) {
|
||||
$( "input[name^='agree']" ).prop('checked', true);
|
||||
$("input[name^=agree]").prop('checked', true);
|
||||
} else {
|
||||
$( "input[name^='agree']" ).prop('checked', false);
|
||||
$("input[name^=agree]").prop("checked", false);
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</div>
|
||||
<!-- } 회원가입 약관 동의 끝 -->
|
||||
@@ -192,7 +192,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<li>
|
||||
<label for="reg_mb_mailling" class="frm_label">메일링서비스</label>
|
||||
<input type="checkbox" name="mb_mailling" value="1" id="reg_mb_mailling" <?php echo ($w=='' || $member['mb_mailling'])?'checked':''; ?>>
|
||||
<label for="reg_mb_mailling">정보 메일을 받겠습니다.</label>
|
||||
정보 메일을 받겠습니다.
|
||||
|
||||
</li>
|
||||
|
||||
@@ -201,7 +201,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<label for="reg_mb_sms" class="frm_label">SMS 수신여부</label>
|
||||
|
||||
<input type="checkbox" name="mb_sms" value="1" id="reg_mb_sms" <?php echo ($w=='' || $member['mb_sms'])?'checked':''; ?>>
|
||||
<label for="reg_mb_sms">휴대폰 문자메세지를 받겠습니다.</label>
|
||||
휴대폰 문자메세지를 받겠습니다.
|
||||
|
||||
</li>
|
||||
<?php } ?>
|
||||
@@ -211,7 +211,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<label for="reg_mb_open" class="frm_label">정보공개</label>
|
||||
<input type="hidden" name="mb_open_default" value="<?php echo $member['mb_open'] ?>">
|
||||
<input type="checkbox" name="mb_open" value="1" <?php echo ($w=='' || $member['mb_open'])?'checked':''; ?> id="reg_mb_open">
|
||||
<label for="reg_mb_open">다른분들이 나의 정보를 볼 수 있도록 합니다.</label>
|
||||
다른분들이 나의 정보를 볼 수 있도록 합니다.
|
||||
<span class="frm_info">
|
||||
정보공개를 바꾸시면 앞으로 <?php echo (int)$config['cf_open_modify'] ?>일 이내에는 변경이 안됩니다.
|
||||
</span>
|
||||
@@ -224,6 +224,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
정보공개는 수정후 <?php echo (int)$config['cf_open_modify'] ?>일 이내, <?php echo date("Y년 m월 j일", isset($member['mb_open_date']) ? strtotime("{$member['mb_open_date']} 00:00:00")+$config['cf_open_modify']*86400:G5_SERVER_TIME+$config['cf_open_modify']*86400); ?> 까지는 변경이 안됩니다.<br>
|
||||
이렇게 하는 이유는 잦은 정보공개 수정으로 인하여 쪽지를 보낸 후 받지 않는 경우를 막기 위해서 입니다.
|
||||
</span>
|
||||
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
@@ -234,13 +235,6 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
//회원정보 수정인 경우 소셜 계정 출력
|
||||
if( $w == 'u' && function_exists('social_login_link_account') ){
|
||||
social_login_link_account($member['mb_id'], false, 'mb_form');
|
||||
}
|
||||
?>
|
||||
|
||||
<li class="is_captcha_use">
|
||||
자동등록방지
|
||||
<?php echo captcha_html(); ?>
|
||||
|
||||
@@ -48,7 +48,7 @@ position:absolute;z-index:-1;top:2%;bottom:0;left:10px;right:10px;
|
||||
-o-transform:skew(8deg) rotate(3deg);
|
||||
transform:skew(8deg) rotate(3deg);}
|
||||
.mbskin .frm_input{width:100%}
|
||||
.mbskin .btn_submit{width:100%;border-radius:3px;margin:10px 0 0;height:45px;font-weight:bold}
|
||||
.mbskin .btn_submit{width:100%;border-radius:3px;margin:10px 0 0;height:45px;font-weight:bold;font-size:1.25em}
|
||||
.mbskin h1{margin: 60px 0 30px;font-size: 2em;}
|
||||
|
||||
|
||||
@@ -124,9 +124,7 @@ box-shadow: 0 1px 3px #eee;
|
||||
#fregister .btn_confirm .btn_submit{height:50px;border-radius:3px;padding:0 40px;font-weight:bold;font-size:1.083em}
|
||||
|
||||
/* 회원가입 입력 */
|
||||
#register_form{
|
||||
}
|
||||
/*#fregisterform textarea {height:50px}*/
|
||||
#register_form{margin:0 auto;max-width:700px}
|
||||
#fregisterform #msg_certify {margin:5px 0 0;padding:5px;border:1px solid #dbecff;background:#eaf4ff;text-align:center}
|
||||
#fregisterform .frm_address {margin:5px 0 0}
|
||||
#fregisterform #mb_addr3 {display:inline-block;margin:5px 0 0;vertical-align:middle}
|
||||
@@ -137,6 +135,9 @@ box-shadow: 0 1px 3px #eee;
|
||||
#fregisterform .frm_info{display:block;color:#3497d9;font-size:0.92em}
|
||||
#fregisterform .form_01 div{margin: 0 0 50px}
|
||||
#fregisterform .captcha{display:block;margin:5px 0 0}
|
||||
|
||||
|
||||
|
||||
/* 회원가입 완료 */
|
||||
#reg_result {padding:100px 0 0;text-align:center}
|
||||
#reg_result h2{font-size:2em;margin:0 0 20px}
|
||||
@@ -166,6 +167,16 @@ box-shadow: 0 1px 3px #eee;
|
||||
#mb_login #login_info a{display:inline-block;width:50%;float:left}
|
||||
#login_password_lost{border-right:1px solid #ddd}
|
||||
|
||||
#mb_login_notmb{margin:30px auto;padding:20px 30px }
|
||||
#mb_login_notmb h2{font-size:1.25em;margin:20px 0 10px}
|
||||
#guest_privacy{border:1px solid #ccc;text-align:left;line-height:1.6em;color:#666;background:#fafafa;padding:10px;height:150px;margin:10px 0;overflow-y:auto}
|
||||
#mb_login_notmb .btn_submit{display:block;text-align:center;line-height:45px}
|
||||
|
||||
#mb_login_od_wr{margin:30px auto;padding:20px 30px }
|
||||
#mb_login_od_wr h2{font-size:1.25em;margin:20px 0 10px}
|
||||
#mb_login_od_wr .frm_input{margin:10px 0 0 }
|
||||
#mb_login_od_wr p{background:#f3f3f3;margin:20px 0 0 ;padding:15px 20px;line-height:1.5em}
|
||||
|
||||
/* 쪽지 */
|
||||
#memo_list .memo_name,#memo_list .memo_name .sv_wrap{font-weight:bold}
|
||||
#memo_list .memo_datetime{float:right;font-size:0.92em;color:#777;font-style:italic}
|
||||
@@ -246,4 +257,4 @@ box-shadow: 0 1px 3px #eee;
|
||||
#profile .profile_name{text-align:center;font-weight:bold}
|
||||
#profile .profile_img{display:block;margin:20px 0 5px;}
|
||||
#profile .profile_img img{border-radius:50%}
|
||||
#profile .profile_name .sv_wrap{font-weight:bold}
|
||||
#profile .profile_name .sv_wrap{font-weight:bold}
|
||||
@@ -59,11 +59,11 @@ add_stylesheet('<link rel="stylesheet" href="'.$new_skin_url.'/style.css">', 0);
|
||||
<input type="checkbox" id="all_chk">
|
||||
</th>
|
||||
<?php } ?>
|
||||
<th scope="col"><i class="fa fa-folder-open" aria-hidden="true"></i><span class="sound_only">그룹</span></th>
|
||||
<th scope="col"><i class="fa fa-list-alt" aria-hidden="true"></i><span class="sound_only">게시판</span></th>
|
||||
<th scope="col"><i class="fa fa-list-ul" aria-hidden="true"></i><span class="sound_only">제목</span></th>
|
||||
<th scope="col"><i class="fa fa-user" aria-hidden="true"></i><span class="sound_only">이름</span></th>
|
||||
<th scope="col"><i class="fa fa-clock-o" aria-hidden="true"></i><span class="sound_only">일시</span></th>
|
||||
<th scope="col">그룹</th>
|
||||
<th scope="col">게시판</th>
|
||||
<th scope="col">제목</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -87,7 +87,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$new_skin_url.'/style.css">', 0);
|
||||
<td class="td_group"><a href="./new.php?gr_id=<?php echo $list[$i]['gr_id'] ?>"><?php echo $gr_subject ?></a></td>
|
||||
<td class="td_board"><a href="./board.php?bo_table=<?php echo $list[$i]['bo_table'] ?>"><?php echo $bo_subject ?></a></td>
|
||||
<td><a href="<?php echo $list[$i]['href'] ?>" class="new_tit"><?php echo $list[$i]['comment'] ?><?php echo $wr_subject ?></a></td>
|
||||
<td class="td_name"><span class="profile_img"><img src="<?php echo G5_THEME_IMG_URL; ?>/no_profile.gif" alt="프로필이미지" width="20" height="20"></span> <?php echo $list[$i]['name'] ?></td>
|
||||
<td class="td_name"><span class="profile_img"><img src="<?php echo G5_THEME_IMG_URL ;?>/no_profile.gif" alt="프로필이미지" width="20" height="20"></span> <?php echo $list[$i]['name'] ?></td>
|
||||
<td class="td_date"><?php echo $list[$i]['datetime2'] ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
@@ -11,7 +11,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$outlogin_skin_url.'/style.css">'
|
||||
<h2>나의 회원정보</h2>
|
||||
<span class="profile_img">
|
||||
<img src="<?php echo G5_THEME_IMG_URL ;?>/no_profile.gif" alt="프로필이미지">
|
||||
<a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=register_form.php" id="ol_after_info">정보수정</a>
|
||||
<a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=register_form.php" id="ol_after_info" title="정보수정">정보수정</a>
|
||||
</span>
|
||||
<strong><?php echo $nick ?>님</strong>
|
||||
<?php if ($is_admin == 'super' || $is_auth) { ?><a href="<?php echo G5_ADMIN_URL ?>" class="btn_admin">관리자</a><?php } ?>
|
||||
|
||||
@@ -8,10 +8,12 @@ add_stylesheet('<link rel="stylesheet" href="'.$popular_skin_url.'/style.css">',
|
||||
<!-- 인기검색어 시작 { -->
|
||||
<section id="popular">
|
||||
<div>
|
||||
<h2><i class="fa fa-tags" aria-hidden="true"></i> 인기검색어</h2>
|
||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||
<a href="<?php echo G5_BBS_URL ?>/search.php?sfl=wr_subject&sop=and&stx=<?php echo urlencode($list[$i]['pp_word']) ?>"><?php echo get_text($list[$i]['pp_word']); ?></a>
|
||||
<?php } ?>
|
||||
<h2>인기검색어</h2>
|
||||
<ul>
|
||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/search.php?sfl=wr_subject&sop=and&stx=<?php echo urlencode($list[$i]['pp_word']) ?>"><?php echo get_text($list[$i]['pp_word']); ?></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<!-- } 인기검색어 끝 -->
|
||||
@@ -1,6 +1,10 @@
|
||||
@charset "utf-8";
|
||||
/* 인기검색어 */
|
||||
#popular {border-bottom:1px solid #e8e8e9;padding:20px 0}
|
||||
#popular h2{font-size:1.083em;margin: 0 0 10px;}
|
||||
#popular a{display:inline-block;height:22px;line-height:22px;background:#bbb;color:#fff;margin:2px 0;padding: 0 5px;border-radius:3px}
|
||||
#popular a:hover{background:#47aba2}
|
||||
#popular {padding:8px 0 0;text-align:center}
|
||||
#popular h2{position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#popular ul{display:inline-block;}
|
||||
#popular ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#popular li{height:13px;line-height:13px;border-left:1px solid #ddd;padding:0 10px;float:left}
|
||||
#popular li:first-child{border-left:0}
|
||||
#popular li a{color:#565656}
|
||||
#popular li a:hover{color:#000;text-decoration:underline}
|
||||
@@ -54,11 +54,11 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
|
||||
</th>
|
||||
<?php } ?>
|
||||
<th scope="col"><i class="fa fa-sort-numeric-asc" aria-hidden="true"></i><span class="sound_only">번호</span></th>
|
||||
<th scope="col"><i class="fa fa-th-list" aria-hidden="true"></i><span class="sound_only">제목</span></th>
|
||||
<th scope="col"><i class="fa fa-user" aria-hidden="true"></i><span class="sound_only">글쓴이</span></th>
|
||||
<th scope="col"><i class="fa fa-clock-o" aria-hidden="true"></i><span class="sound_only">등록일</span></th>
|
||||
<th scope="col"><i class="fa fa-check-circle-o" aria-hidden="true"></i><span class="sound_only">상태</span></th>
|
||||
<th scope="col">번호</th>
|
||||
<th scope="col">제목</th>
|
||||
<th scope="col">글쓴이</th>
|
||||
<th scope="col">등록일</th>
|
||||
<th scope="col">상태</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -24,7 +24,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0);
|
||||
|
||||
<section id="bo_v_info">
|
||||
<h2>페이지 정보</h2>
|
||||
<span class="sound_only">작성자</span><strong><span class="profile_img"><img src="<?php echo G5_THEME_IMG_URL; ?>/no_profile.gif" alt="프로필이미지" width="20" height="20"></span><?php echo $view['name'] ?></strong>
|
||||
<span class="sound_only">작성자</span><strong><span class="profile_img"><img src="<?php echo G5_THEME_IMG_URL ;?>/no_profile.gif" alt="프로필이미지" width="20" height="20"></span><?php echo $view['name'] ?></strong>
|
||||
<span class="sound_only">작성일</span><strong class="bo_date"><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $view['datetime']; ?></strong>
|
||||
<?php if($view['email'] || $view['hp']) { ?>
|
||||
<?php if($view['email']) { ?>
|
||||
|
||||
@@ -130,7 +130,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$search_skin_url.'/style.css">',
|
||||
</div>
|
||||
<p><?php echo $list[$idx][$i]['content'] ?></p>
|
||||
<div class="sch_info">
|
||||
<span class="profile_img"><img src="<?php echo G5_THEME_IMG_URL; ?>/no_profile.gif" alt="프로필이미지" width="20" height="20"></span> <?php echo $list[$idx][$i]['name'] ?>
|
||||
<span class="profile_img"><img src="<?php echo G5_THEME_IMG_URL ;?>/no_profile.gif" alt="프로필이미지" width="20" height="20"></span> <?php echo $list[$idx][$i]['name'] ?>
|
||||
<span class="sch_datetime"><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $list[$idx][$i]['wr_datetime'] ?></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
Whitespace-only changes.
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if( ! $config['cf_social_login_use']) { //소셜 로그인을 사용하지 않으면
|
||||
return;
|
||||
}
|
||||
|
||||
$social_pop_once = false;
|
||||
|
||||
$self_url = G5_BBS_URL."/login.php";
|
||||
|
||||
//새창을 사용한다면
|
||||
if( G5_SOCIAL_USE_POPUP ) {
|
||||
$self_url = G5_SOCIAL_LOGIN_URL.'/popup.php';
|
||||
}
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.get_social_skin_url().'/style.css">', 10);
|
||||
?>
|
||||
<div>
|
||||
<h2>SNS 계정으로 가입</h2>
|
||||
<div class="login-sns sns-wrap-32 sns-wrap-over">
|
||||
<div class="sns-wrap">
|
||||
<?php if( social_service_check('naver') ) { //네이버 로그인을 사용한다면 ?>
|
||||
<a href="<?php echo $self_url;?>?provider=naver&url=<?php echo $urlencode;?>" class="sns-icon social_link sns-naver" title="네이버">
|
||||
<span class="ico"></span>
|
||||
<span class="txt">네이버<i> 로그인</i></span>
|
||||
</a>
|
||||
<?php } //end if ?>
|
||||
<?php if( social_service_check('kakao') ) { //카카오 로그인을 사용한다면 ?>
|
||||
<a href="<?php echo $self_url;?>?provider=kakao&url=<?php echo $urlencode;?>" class="sns-icon social_link sns-kakao" title="카카오">
|
||||
<span class="ico"></span>
|
||||
<span class="txt">카카오<i> 로그인</i></span>
|
||||
</a>
|
||||
<?php } //end if ?>
|
||||
<?php if( social_service_check('facebook') ) { //페이스북 로그인을 사용한다면 ?>
|
||||
<a href="<?php echo $self_url;?>?provider=facebook&url=<?php echo $urlencode;?>" class="sns-icon social_link sns-facebook" title="페이스북">
|
||||
<span class="ico"></span>
|
||||
<span class="txt">페이스북<i> 로그인</i></span>
|
||||
</a>
|
||||
<?php } //end if ?>
|
||||
<?php if( social_service_check('google') ) { //구글 로그인을 사용한다면 ?>
|
||||
<a href="<?php echo $self_url;?>?provider=google&url=<?php echo $urlencode;?>" class="sns-icon social_link sns-google" title="구글">
|
||||
<span class="ico"></span>
|
||||
<span class="txt">구글+<i> 로그인</i></span>
|
||||
</a>
|
||||
<?php } //end if ?>
|
||||
<?php if( social_service_check('twitter') ) { //트위터 로그인을 사용한다면 ?>
|
||||
<a href="<?php echo $self_url;?>?provider=twitter&url=<?php echo $urlencode;?>" class="sns-icon social_link sns-twitter" title="트위터">
|
||||
<span class="ico"></span>
|
||||
<span class="txt">트위터+<i> 트위터</i></span>
|
||||
</a>
|
||||
<?php } //end if ?>
|
||||
<?php if( social_service_check('payco') ) { //페이코 로그인을 사용한다면 ?>
|
||||
<a href="<?php echo $self_url;?>?provider=payco&url=<?php echo $urlencode;?>" class="sns-icon social_link sns-payco" title="페이코">
|
||||
<span class="ico"></span>
|
||||
<span class="txt">페이코 로그인</span>
|
||||
</a>
|
||||
<?php } //end if ?>
|
||||
|
||||
<?php if( G5_SOCIAL_USE_POPUP && !$social_pop_once ){
|
||||
$social_pop_once = true;
|
||||
?>
|
||||
<script>
|
||||
jQuery(function($){
|
||||
$(".sns-wrap").on("click", "a.social_link", function(e){
|
||||
e.preventDefault();
|
||||
|
||||
var pop_url = $(this).attr("href");
|
||||
var newWin = window.open(
|
||||
pop_url,
|
||||
"social_sing_on",
|
||||
"location=0,status=0,scrollbars=0,width=600,height=500"
|
||||
);
|
||||
|
||||
if(!newWin || newWin.closed || typeof newWin.closed=='undefined')
|
||||
alert('브라우저에서 팝업이 차단되어 있습니다. 팝업 활성화 후 다시 시도해 주세요.');
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,213 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if( ! $config['cf_social_login_use']) { //소셜 로그인을 사용하지 않으면
|
||||
return;
|
||||
}
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.get_social_skin_url().'/style.css">', 10);
|
||||
?>
|
||||
|
||||
<!-- 회원정보 입력/수정 시작 { -->
|
||||
<div class="mbskin">
|
||||
|
||||
<div class="social_info_guide">
|
||||
회원님은 소셜 계정을 통하여 로그인하셨습니다.<br>
|
||||
회원님의 아이디, 패스워드, 이메일, 닉네임 정보를 입력하시면, 앞으로는 소셜계정으로도 로그인을 계속 하실 수 있으며, 또한 입력하신 회원 아이디와 패스워드로도 이 홈페이지에 로그인이 가능해집니다.<br>
|
||||
또한 이 정보를 입력하신 후에 개인정보 수정페이지에서 메일수신여부, 쪽지수신여부 등을 계속하여 설정하실 수 있습니다.
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if( $is_exists_id ){ //아이디 중복 메시지
|
||||
echo '<p class="bg-warning bg-warning1">등록할 아이디가 중복되었습니다.다른 아이디를 입력해 주세요.</p>'.PHP_EOL;
|
||||
}
|
||||
if( $is_exists_email ){ //이메일 중복 메시지
|
||||
echo '<p class="bg-warning bg-warning2">등록할 이메일이 중복되었습니다.다른 이메일을 입력해 주세요.</p>'.PHP_EOL;
|
||||
}
|
||||
if( $is_exists_name ){ //닉네임 중복 메시지
|
||||
echo '<p class="bg-warning bg-warning3">등록할 닉네임이 중복되었습니다.다른 닉네임을 입력해 주세요.</p>'.PHP_EOL;
|
||||
}
|
||||
?>
|
||||
|
||||
<script src="<?php echo G5_JS_URL ?>/jquery.register_form.js"></script>
|
||||
|
||||
<!-- 새로가입 시작 -->
|
||||
<form id="fregisterform" name="fregisterform" action="<?php echo $register_action_url; ?>" onsubmit="return fregisterform_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?php echo $w; ?>">
|
||||
<input type="hidden" name="url" value="<?php echo $urlencode; ?>">
|
||||
<input type="hidden" name="mb_name" value="<?php echo $user_nick; ?>" >
|
||||
<input type="hidden" name="provider" value="<?php echo $provider_name;?>" >
|
||||
<input type="hidden" name="action" value="register">
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption>사이트 이용정보 입력</caption>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="reg_mb_id">아이디<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<span class="frm_info">영문자, 숫자, _ 만 입력 가능. 최소 3자이상 입력하세요.</span>
|
||||
<input type="text" name="mb_id" value="<?php echo $user_id; ?>" id="reg_mb_id" <?php echo $required; ?> <?php echo $readonly; ?> class="frm_input <?php echo $required; ?> <?php echo $readonly; ?>" minlength="3" maxlength="20">
|
||||
<span id="msg_mb_id"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="reg_mb_password">비밀번호<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="password" name="mb_password" id="reg_mb_password" <?php echo $required; ?> class="frm_input <?php echo $required; ?>" minlength="3" maxlength="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="reg_mb_password_re">비밀번호 확인<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="password" name="mb_password_re" id="reg_mb_password_re" <?php echo $required; ?> class="frm_input <?php echo $required; ?>" minlength="3" maxlength="20"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption>개인정보 입력</caption>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="reg_mb_nick">닉네임<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<span class="frm_info">
|
||||
공백없이 한글,영문,숫자만 입력 가능 (한글2자, 영문4자 이상)<br>
|
||||
닉네임을 바꾸시면 앞으로 <?php echo (int)$config['cf_nick_modify'] ?>일 이내에는 변경 할 수 없습니다.
|
||||
</span>
|
||||
<input type="hidden" name="mb_nick_default" value="<?php echo isset($user_nick)?get_text($user_nick):''; ?>">
|
||||
<input type="text" name="mb_nick" value="<?php echo isset($user_nick)?get_text($user_nick):''; ?>" id="reg_mb_nick" required class="frm_input required nospace" size="10" maxlength="20">
|
||||
<span id="msg_mb_nick"></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><label for="reg_mb_email">E-mail<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<?php if ($config['cf_use_email_certify']) { ?>
|
||||
<span class="frm_info">
|
||||
<?php if ($w=='') { echo "E-mail 로 발송된 내용을 확인한 후 인증하셔야 회원가입이 완료됩니다."; } ?>
|
||||
<?php if ($w=='u') { echo "E-mail 주소를 변경하시면 다시 인증하셔야 합니다."; } ?>
|
||||
</span>
|
||||
<?php } ?>
|
||||
<input type="text" name="mb_email" value="<?php echo isset($user_email)?$user_email:''; ?>" id="reg_mb_email" required class="frm_input email required" size="70" maxlength="100">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="<?php echo $w==''?'회원가입':'정보수정'; ?>" id="btn_submit" class="btn_submit" accesskey="s">
|
||||
<a href="<?php echo G5_URL ?>" class="btn_cancel">취소</a>
|
||||
</div>
|
||||
</form>
|
||||
<!-- 새로가입 끝 -->
|
||||
|
||||
<!-- 기존 계정 연결 시작 -->
|
||||
<div id="sns-link-pnl">
|
||||
|
||||
<div>
|
||||
<form method="post" action="<?php echo $login_action_url; ?>" onsubmit="return social_obj.flogin_submit(this);">
|
||||
<input type="hidden" name="url" value="<?php echo $login_url; ?>">
|
||||
<input type="hidden" name="provider" value="<?php echo $provider_name; ?>">
|
||||
<input type="hidden" name="action" value="link">
|
||||
|
||||
<div>기존 계정에 연결하기</div>
|
||||
|
||||
<div>
|
||||
기존 아이디에 SNS 아이디를 연결합니다.
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="login_id" class="login_id">아이디<strong class="sound_only"> 필수</strong></label>
|
||||
<span class="lg_id"><input type="text" name="mb_id" id="login_id" class="frm_input required" size="20" maxLength="20" ></span>
|
||||
<label for="login_pw" class="login_pw">비밀번호<strong class="sound_only"> 필수</strong></label>
|
||||
<span class="lg_pw"><input type="password" name="mb_password" id="login_pw" class="frm_input required" size="20" maxLength="20"></span>
|
||||
<br>
|
||||
<input type="submit" value="연결하기" class="login_submit">
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 기존 계정 연결 끝 -->
|
||||
|
||||
<script>
|
||||
|
||||
// submit 최종 폼체크
|
||||
function fregisterform_submit(f)
|
||||
{
|
||||
// 회원아이디 검사
|
||||
if (f.w.value == "") {
|
||||
var msg = reg_mb_id_check();
|
||||
if (msg) {
|
||||
alert(msg);
|
||||
f.mb_id.select();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (f.w.value == "") {
|
||||
if (f.mb_password.value.length < 3) {
|
||||
alert("비밀번호를 3글자 이상 입력하십시오.");
|
||||
f.mb_password.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (f.mb_password.value != f.mb_password_re.value) {
|
||||
alert("비밀번호가 같지 않습니다.");
|
||||
f.mb_password_re.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (f.mb_password.value.length > 0) {
|
||||
if (f.mb_password_re.value.length < 3) {
|
||||
alert("비밀번호를 3글자 이상 입력하십시오.");
|
||||
f.mb_password_re.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// 닉네임 검사
|
||||
if ((f.w.value == "") || (f.w.value == "u" && f.mb_nick.defaultValue != f.mb_nick.value)) {
|
||||
var msg = reg_mb_nick_check();
|
||||
if (msg) {
|
||||
alert(msg);
|
||||
f.reg_mb_nick.select();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// E-mail 검사
|
||||
if ((f.w.value == "") || (f.w.value == "u" && f.mb_email.defaultValue != f.mb_email.value)) {
|
||||
var msg = reg_mb_email_check();
|
||||
if (msg) {
|
||||
alert(msg);
|
||||
f.reg_mb_email.select();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById("btn_submit").disabled = "disabled";
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function flogin_submit(f)
|
||||
{
|
||||
var mb_id = $.trim($(f).find("input[name=mb_id]").val()),
|
||||
mb_password = $.trim($(f).find("input[name=mb_password]").val());
|
||||
|
||||
if(!mb_id || !mb_password){
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
</div>
|
||||
<!-- } 회원정보 입력/수정 끝 -->
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if( ! $config['cf_social_login_use']) { //소셜 로그인을 사용하지 않으면
|
||||
return;
|
||||
}
|
||||
|
||||
$social_pop_once = false;
|
||||
|
||||
$self_url = G5_BBS_URL."/login.php";
|
||||
|
||||
//새창을 사용한다면
|
||||
if( G5_SOCIAL_USE_POPUP ) {
|
||||
$self_url = G5_SOCIAL_LOGIN_URL.'/popup.php';
|
||||
}
|
||||
|
||||
add_stylesheet('<link rel="stylesheet" href="'.get_social_skin_url().'/style.css">', 10);
|
||||
?>
|
||||
|
||||
<div class="login-sns sns-wrap-32 sns-wrap-over">
|
||||
<div class="sns-wrap">
|
||||
<?php if( social_service_check('naver') ) { //네이버 로그인을 사용한다면 ?>
|
||||
<a href="<?php echo $self_url;?>?provider=naver&url=<?php echo $urlencode;?>" class="sns-icon social_link sns-naver" title="네이버">
|
||||
<span class="ico"></span>
|
||||
<span class="txt">네이버<i> 로그인</i></span>
|
||||
</a>
|
||||
<?php } //end if ?>
|
||||
<?php if( social_service_check('kakao') ) { //카카오 로그인을 사용한다면 ?>
|
||||
<a href="<?php echo $self_url;?>?provider=kakao&url=<?php echo $urlencode;?>" class="sns-icon social_link sns-kakao" title="카카오">
|
||||
<span class="ico"></span>
|
||||
<span class="txt">카카오<i> 로그인</i></span>
|
||||
</a>
|
||||
<?php } //end if ?>
|
||||
<?php if( social_service_check('facebook') ) { //페이스북 로그인을 사용한다면 ?>
|
||||
<a href="<?php echo $self_url;?>?provider=facebook&url=<?php echo $urlencode;?>" class="sns-icon social_link sns-facebook" title="페이스북">
|
||||
<span class="ico"></span>
|
||||
<span class="txt">페이스북<i> 로그인</i></span>
|
||||
</a>
|
||||
<?php } //end if ?>
|
||||
<?php if( social_service_check('google') ) { //구글 로그인을 사용한다면 ?>
|
||||
<a href="<?php echo $self_url;?>?provider=google&url=<?php echo $urlencode;?>" class="sns-icon social_link sns-google" title="구글">
|
||||
<span class="ico"></span>
|
||||
<span class="txt">구글+<i> 로그인</i></span>
|
||||
</a>
|
||||
<?php } //end if ?>
|
||||
<?php if( social_service_check('twitter') ) { //트위터 로그인을 사용한다면 ?>
|
||||
<a href="<?php echo $self_url;?>?provider=twitter&url=<?php echo $urlencode;?>" class="sns-icon social_link sns-twitter" title="트위터">
|
||||
<span class="ico"></span>
|
||||
<span class="txt">트위터+<i> 트위터</i></span>
|
||||
</a>
|
||||
<?php } //end if ?>
|
||||
<?php if( social_service_check('payco') ) { //페이코 로그인을 사용한다면 ?>
|
||||
<a href="<?php echo $self_url;?>?provider=payco&url=<?php echo $urlencode;?>" class="sns-icon social_link sns-payco" title="페이코">
|
||||
<span class="ico"></span>
|
||||
<span class="txt">페이코 로그인</span>
|
||||
</a>
|
||||
<?php } //end if ?>
|
||||
|
||||
<?php if( G5_SOCIAL_USE_POPUP && !$social_pop_once ){
|
||||
$social_pop_once = true;
|
||||
?>
|
||||
<script>
|
||||
jQuery(function($){
|
||||
$(".sns-wrap").on("click", "a.social_link", function(e){
|
||||
e.preventDefault();
|
||||
|
||||
var pop_url = $(this).attr("href");
|
||||
var newWin = window.open(
|
||||
pop_url,
|
||||
"social_sing_on",
|
||||
"location=0,status=0,scrollbars=0,width=600,height=500"
|
||||
);
|
||||
|
||||
if(!newWin || newWin.closed || typeof newWin.closed=='undefined')
|
||||
alert('브라우저에서 팝업이 차단되어 있습니다. 팝업 활성화 후 다시 시도해 주세요.');
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,169 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
|
||||
if( ! $config['cf_social_login_use']) { //소셜 로그인을 사용하지 않으면
|
||||
return;
|
||||
}
|
||||
|
||||
$socials = social_get_provider_service_name('', 'all');
|
||||
|
||||
$session_id = session_id();
|
||||
|
||||
add_stylesheet('<link rel="stylesheet" href="'.get_social_skin_url().'/style.css">', 10);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<th scope="row">소셜로그인</th>
|
||||
<td>
|
||||
<div class="reg-form sns-wrap-32 sns-wrap-over">
|
||||
<div class="sns-wrap">
|
||||
|
||||
<?php foreach( $socials as $social=>$provider_name ){
|
||||
|
||||
if( !option_array_checked($social, $config['cf_social_servicelist'])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$social_nonce = social_nonce_create($social, $session_id);
|
||||
$add_class='';
|
||||
$title='';
|
||||
if( in_array($social, $my_provides) ){
|
||||
|
||||
$link_href = G5_SOCIAL_LOGIN_URL.'/unlink.php?provider='.$social.'&social_nonce='.$social_nonce;
|
||||
|
||||
$title = $provider_name.' 연결해제하기';
|
||||
} else {
|
||||
$add_class = ' sns-icon-not';
|
||||
|
||||
$link_href = $self_url.'?provider='.$social.'&mylink=1&url='.$urlencode;
|
||||
|
||||
$title = $provider_name.' 연결하기';
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
<a href="<?php echo $link_href; ?>" id="sns-<?php echo $social; ?>" class="sns-icon oauth_connect social_link sns-<?php echo $social; ?><?php echo $add_class; ?>" title="<?php echo $title; ?>" data-provider="<?php echo $social; ?>" ><span class="ico"></span><span class="txt"><?php echo $provider_name; ?> 로그인</span></a>
|
||||
|
||||
<?php } //end foreach ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<script>
|
||||
|
||||
function social_get_nonce(provider){
|
||||
var socials = [];
|
||||
|
||||
<?php foreach( $socials as $social=>$v ){ ?>
|
||||
socials["<?php echo $social; ?>"] = "<?php echo social_nonce_create($social, $session_id); ?>";
|
||||
<?php } ?>
|
||||
|
||||
return (typeof socials[provider] != 'undefined') ? socials[provider] : '';
|
||||
}
|
||||
|
||||
function social_link_fn(provider){
|
||||
|
||||
provider = provider.toLowerCase();
|
||||
|
||||
var $icon = jQuery("#sns-"+provider);
|
||||
|
||||
if( $icon.length ){
|
||||
|
||||
var social_url = "<?php echo G5_SOCIAL_LOGIN_URL; ?>",
|
||||
link_href = social_url+"/unlink.php?provider="+provider+"&social_nonce="+social_get_nonce(provider),
|
||||
atitle = provider+" 연결해제하기";
|
||||
|
||||
$icon.attr({"href":link_href, "title":atitle}).removeClass("sns-icon-not");
|
||||
|
||||
//$icon.children("img").attr({"src" : social_url+"/img/32x32/"+provider+".png", "title":atitle, "alt":atitle}).removeClass("link").addClass("unlink");
|
||||
|
||||
alert('연결 되었습니다');
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
jQuery(function($){
|
||||
|
||||
var social_img_path = "<?php echo G5_SOCIAL_LOGIN_URL; ?>",
|
||||
self_url = "<?php echo $self_url; ?>",
|
||||
urlencode = "<?php echo $urlencode; ?>";
|
||||
|
||||
$(".sns-wrap").on("click", ".social_link", function(e){
|
||||
e.preventDefault();
|
||||
|
||||
var othis = $(this);
|
||||
|
||||
if( ! othis.hasClass('sns-icon-not') ){ //소셜계정 해제하기
|
||||
|
||||
if (!confirm('정말 이 계정 연결을 해제하시겠습니까?')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var ajax_url = "<?php echo G5_SOCIAL_LOGIN_URL.'/unlink.php' ?>",
|
||||
mb_id = '',
|
||||
provider = $(this).attr("data-provider");
|
||||
|
||||
if( ! provider ){
|
||||
alert("잘못된 요청! provider 값이 없습니다.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: ajax_url,
|
||||
type: 'POST',
|
||||
data: {
|
||||
'provider': provider,
|
||||
'mb_id': mb_id,
|
||||
'nonce' : social_get_nonce(provider)
|
||||
},
|
||||
dataType: 'json',
|
||||
cache : false,
|
||||
async: false,
|
||||
success: function(data, textStatus) {
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
} else {
|
||||
var atitle = provider+" 연결하기",
|
||||
link_href = self_url+"?provider="+provider+"&mylink=1&url="+urlencode;
|
||||
|
||||
othis.attr({"href":link_href, "title":atitle}).addClass("sns-icon-not");
|
||||
|
||||
//othis.children("img").attr({"src" : social_img_path+"/img/32x32/"+provider+"_off.png", "title":atitle, "alt":atitle}).removeClass("unlink").addClass("link");
|
||||
|
||||
}
|
||||
},
|
||||
error: function(data) {
|
||||
try { console.log(data) } catch (e) { alert(data.error) };
|
||||
}
|
||||
});
|
||||
|
||||
} else { //소셜계정 연결하기
|
||||
|
||||
var pop_url = $(this).attr("href");
|
||||
var is_popup = "<?php echo G5_SOCIAL_USE_POPUP; ?>";
|
||||
|
||||
if( is_popup ){
|
||||
var newWin = window.open(
|
||||
pop_url,
|
||||
"social_sing_on",
|
||||
"location=0,status=0,scrollbars=0,width=600,height=500"
|
||||
);
|
||||
|
||||
if(!newWin || newWin.closed || typeof newWin.closed=='undefined')
|
||||
alert('브라우저에서 팝업이 차단되어 있습니다. 팝업 활성화 후 다시 시도해 주세요.');
|
||||
|
||||
} else {
|
||||
location.replace(pop_url);
|
||||
}
|
||||
|
||||
}
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,59 @@
|
||||
@charset "utf-8";
|
||||
|
||||
.social_info_guide{background:#f3f3f3;border:1px solid #ddd;margin:0 10px 10px;padding:10px 15px;line-height:1.5em}
|
||||
.bg-warning{margin:0 10px 10px;padding:10px 15px;line-height:1.5em}
|
||||
.bg-warning1{background:#f7dfe4;border:1px solid #eac3cb}
|
||||
.bg-warning2{background:#deeabf;border:1px solid #bde498}
|
||||
.bg-warning3{background:#fff8dc;border:1px solid #f1e4b2}
|
||||
|
||||
/* SNS LOGIN */
|
||||
.login-sns{padding-bottom:10px;border:1px solid #cfded8;border-bottom:none}
|
||||
.sns-wrap {margin:10px 0 0;text-align:center}
|
||||
.sns-icon {display:inline-block;vertical-align:middle;text-decoration:none}
|
||||
.sns-icon:hover {text-decoration:none}
|
||||
.sns-icon .ico {display:block;background:url('./img/sns_logo.png') no-repeat;vertical-align:middle}
|
||||
.sns-icon .txt {position:absolute;line-height:0;font-size:0;vertical-align:middle;overflow:hidden}
|
||||
.sns-icon .txt i {font-style:normal}
|
||||
|
||||
.reg-form .sns-wrap {margin:0;text-align:left}
|
||||
.reg-form .sns-icon {display:inline-block;vertical-align:middle;text-decoration:none}
|
||||
.reg-form .sns-icon:hover {text-decoration:none}
|
||||
.reg-form .sns-icon .ico {display:block;background:url('./img/sns_logo.png') no-repeat;vertical-align:middle}
|
||||
.reg-form .sns-icon-not .ico {display:block;background:url('./img/sns_logo_not.png') no-repeat;vertical-align:middle}
|
||||
.reg-form .sns-icon .txt {position:absolute;line-height:0;font-size:0;vertical-align:middle;overflow:hidden}
|
||||
.reg-form .sns-icon .txt i {font-style:normal}
|
||||
|
||||
/* SNS by COLOR */
|
||||
.sns-wrap-org .sns-naver {border-color:#18a400;background:#2db400}
|
||||
.sns-wrap-org .sns-naver .ico {background-position:-29px 0; }
|
||||
.sns-wrap-org .sns-google {border-color:#ca2c19;background:#dd5443}
|
||||
.sns-wrap-org .sns-google .ico {background-position:-58px 0}
|
||||
.sns-wrap-org .sns-facebook {border-color:#2e5393;background:#3a5897}
|
||||
.sns-wrap-org .sns-facebook .ico {background-position:0 0 }
|
||||
|
||||
.sns-wrap-over .sns-icon {border-color:#dcdcdc}
|
||||
.sns-wrap-over .sns-icon-not {border-color:#8b8b8b}
|
||||
.sns-wrap-over .sns-naver{border-color:#18a400}
|
||||
.sns-wrap-over .sns-naver .ico {background-position:-29px 0; }
|
||||
.sns-wrap-over .sns-google .ico {background-position:-58px 0}
|
||||
.sns-wrap-over .sns-google {border-color:#ca2c19}
|
||||
.sns-wrap-over .sns-facebook .ico {background-position:0 0 }
|
||||
.sns-wrap-over .sns-facebook {border-color:#2e5393}
|
||||
.sns-wrap-over .sns-kakao .ico {background-position:-87px 0}
|
||||
.sns-wrap-over .sns-twitter {border-color:#488FC9}
|
||||
.sns-wrap-over .sns-twitter .ico {background-position:-145px 0}
|
||||
.sns-wrap-over .sns-payco {border-color:#C44646}
|
||||
.sns-wrap-over .sns-payco .ico {background-position:-116px 0}
|
||||
.sns-wrap-over .sns-kakao {border-color:#f2df00}
|
||||
.reg-form .sns-icon-not {border-color:#8b8b8b}
|
||||
|
||||
/* SNS by SIZE */
|
||||
.sns-wrap-32 .sns-icon {border-width:1px;border-style:solid;overflow:hidden;margin:0 1px}
|
||||
.sns-wrap-32 .sns-icon .txt {display:inline-block;margin:0 10px 0 0;font-size:0.95em;letter-spacing:-0.1em}
|
||||
.sns-wrap-32 .sns-icon .ico {width:24px;height:24px}
|
||||
|
||||
/* LOGIN LOADING */
|
||||
.social-login-loading{width:100%;height:auto;text-align:center}
|
||||
.social-login-loading p{display:inline-block;margin-top:10px;padding:40px 0 0;line-height:30px}
|
||||
|
||||
|
||||
Reference in new issue
Block a user