first commit

This commit is contained in:
pakerpale
2020-06-10 06:19:03 +09:00
commit cd6b5b7832
6081 changed files with 624389 additions and 0 deletions

View File

@@ -0,0 +1,163 @@
<!DOCTYPE html>
<html lang="ko">
<head>
<?php $this->load->view('partial/head')?>
<link rel="stylesheet" href="/ART/grace/css/default.css">
</head>
<body>
<?php $this->load->view('partial/sidemenu')?>
<?php $this->load->view('partial/header')?>
<!-- //header -->
<main>
<!--mainpost-->
<section id="mainpost">
<div class="container">
<div class="row">
<div class="mainpost">
<!--popularpost-->
<div class="popularpost">
<div class="title">
<h2><a href="#"><?php echo $categoryTitle?></a></h2>
<span class="ft"><?php echo $categoryDescription?></span>
</div>
<div class="list">
<div class="swiper-container2">
<!-- Additional required wrapper -->
<div class="swiper-wrapper">
<!-- Slides -->
<?php foreach($slide as $p) { ?>
<div class="swiper-slide">
<a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>">
<figure><img src="<?php echo imgSrc($p->mainImg)?>" alt=""></figure>
<div class="info">
<p><?php echo $p->editorName?></p>
<h3><?php echo $p->title?></h3>
<span class="editor"><img src="<?php echo imgSrc($p->editorImg)?>"
alt=""></span>
</div>
</a>
</div>
<?php }?>
</div>
<!-- If we need navigation buttons -->
<div class="swiper-button-prev2"><i class="fa fa-angle-left" aria-hidden="true"></i>
</div>
<div class="swiper-button-next2"><i class="fa fa-angle-right"
aria-hidden="true"></i></div>
</div>
</div>
</div>
<!--//popularpost-->
</div>
</div>
</div>
</section>
<!--//mainpost-->
<!--editor-->
<section id="editor_section">
<div class="container">
<div class="row">
<div class="editor_section">
<div class="tit">
<h2>크로스맵 에디터</h2>
<span class="editor_num">에디터 <strong><?php echo $editorTotal?></strong></span>
</div>
<div class="editorlist">
<ul><?php foreach($editors as $editor) { ?>
<li>
<a href="/grace/editor/<?php echo cleanUrl($editor->editorName)?>/<?php echo $editor->editorId?>">
<div class="img"><img src="<?php echo imgSrc($editor->editorImg)?>" alt="">
</div>
<div class="txtbox">
<h3><?php echo $editor->editorName?></h3>
<p><?php echo $editor->editorIntro?></p>
</div>
</a>
</li>
<?php }?>
</ul>
</div>
</div>
</div>
</div>
</section>
<!-- post_listbox -->
<section id="post_listbox" class="mb50 cm-more-enabled" data-post-ids="<?php echo implode(',', $pageInitPostIds)?>" data-page-type="category">
<div class="container">
<div class="row">
<div class="post_listbox">
<div class="tit">
<h2>전체포스트</h2>
<div class="fillter">
<span><a class="<?php echo $isLikesOrder ? '': 'select'?>" href="/grace/category/<?php echo $categoryTitle?>/<?php echo $categoryId?>">업데이트순</a></span>
<span><a class="<?php echo $isLikesOrder ? 'select': ''?>" href="/grace/category/<?php echo $categoryTitle?>/<?php echo $categoryId?>/likes">좋아요순</a></span>
</div>
</div>
<ul>
<?php foreach(array_slice($posts, 0, 8) as $p) { ?>
<li>
<div class="box"><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><img
src="<?php echo imgSrc($p->mainImg)?>" alt=""></a></div>
<div class="txtbox">
<span class="editor_img"><a href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId?>"><img
src="<?php echo imgSrc($p->editorImg)?>" alt=""></a></span>
<dl>
<dd class="editor_txt"><a
href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId?>"><?php echo $p->editorName?></a>
</dd>
<dt><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><?php echo $p->title?></a></dt>
</dl>
<span class="info">
<span class="hit">조회수 <?php echo $p->views?>회</span>
<span class="reple">댓글 <?php echo $p->comments?>회</span>
</span>
</div>
</li>
<?php } ?>
</ul>
<!-- bannerstyle1 -->
<div class="bannerstyle3">
<a href="https://dramabible.org/" target="_blank"><img src="/ART/grace/img/ban1.jpg" class="img_normal" alt=""> <img
src="/ART/grace/img/ban1_@2.jpg" class="img_retina" alt=""></a>
</div>
<!-- //bannerstyle1 -->
<ul>
<?php foreach(array_slice($posts, 8, 8) as $p) { ?>
<li>
<div class="box"><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><img
src="<?php echo imgSrc($p->mainImg)?>" alt=""></a></div>
<div class="txtbox">
<span class="editor_img"><a href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId?>"><img
src="<?php echo imgSrc($p->editorImg)?>" alt=""></a></span>
<dl>
<dd class="editor_txt"><a
href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId?>"><?php echo $p->editorName?></a>
</dd>
<dt><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><?php echo $p->title?></a></dt>
</dl>
<span class="info">
<span class="hit">조회수 <?php echo $p->views?>회</span>
<span class="reple">댓글 <?php echo $p->comments?>회</span>
</span>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
</section>
<!-- //post_listbox -->
</main>
<!-- footer -->
<?php $this->load->view('partial/footer')?>
<script src="/ART/grace/js/living_slide.js"></script>
</body>
</html>

View File

@@ -0,0 +1,455 @@
<?php
$ci=& get_instance();
# session
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
$content_type = 3;
# 댓글
$req_data = array();
$req_data['content_type'] = $content_type;
$req_data['content_idx'] = $post->idx;
$req_data['offset'] = 0;
$req_data['limit'] = 15;
$req_data['sort_column'] = 'reg_date';
$req_data['sort_type'] = 'desc';
$req_data['write_id'] = $SES_MEMBER_ID;
$ci->load->library('comm');
$arr_comment_result = $ci->comm->fn_comment($req_data);
$comment_total_count = $arr_comment_result['comment_total_count'];
$comment_my_delete_count = $arr_comment_result['comment_my_delete_count'];
$arr_comment = $arr_comment_result['arr_comment'];
$ci->load->helper('cookie');
$comment_sns_id = get_cookie('crossmap_comment_sns_id');
$comment_sns_name = get_cookie('crossmap_comment_sns_name');
$comment_sns_type = get_cookie('crossmap_comment_sns_type');
$comment_list_url = '';
$main_url = '';
if($content_type == '3') {
$comment_list_url = '/web/life/life_comment/'.$post->idx;
$main_url = '/web/life/life_view/'.$post->idx;
} else if($content_type == '2') {
$comment_list_url = '/web/news/column_comment/'.$post->idx;
$main_url = '/web/news/column_view/'.$post->idx;
} else if($content_type == '1') {
$comment_list_url = '/web/news/news_comment/'.$post->idx;
$main_url = '/web/news/news_view/'.$post->idx;
}else if($content_type == '4') {
$comment_list_url = '/web/maptoon/comments?mtId='.$this->input->get('mtId'). '&no='. $post->idx;
$main_url = '/web/maptoon/article?mtId='.$this->input->get('mtId'). '&no='. $post->idx;
}
$method = $this->uri->segment(3);
$is_comment_all_list = 'N';
if($method == 'life_comment' || $method == 'column_comment'|| $method == 'news_comment') {
$is_comment_all_list = 'Y';
}
$ci=& get_instance();
$ci->load->model('web/m_member');
?>
<div class="comment-box">
<div class="reply" style="margin-top:10px">
<div class="reply_tit">댓글 <span class="beachblue"
id="comment_count"><?=number_format($comment_total_count)?></span><span class="delete">본인 삭제
<span><?=number_format($comment_my_delete_count)?></span> <a
href="javascript:comment_delete_refresh('<?=$post->idx?>', '<?=$SES_MEMBER_ID;?>', '<?=$content_type;?>');"><img
src="/img/web/icon_refresh.gif"></a></span>
<span class="btn-info fr" style="padding-left:10px; padding-top:1px;"><a href="javascript:;"
class="comment_policy_btn"><img src="/img/web/icon_info.gif"></a></span>
<span class="btn-tit fr"><a href="javascript:;" class="comment_policy_btn"
style="color: #bcbcbc;">댓글운영정책</a></span>
</div>
<?
if($comment_sns_id == '') {
$reply_css2 = 'replay_text';
$content_readonly = 'readonly';
} else {
$reply_css2 = '';
$content_readonly = '';
}
$comment_sns_img1 = '/img/web/img_cm_off.gif'; $comment_sns_class1 = 'fr'; $nameText1=""; $comment_sns_javascript1="change_toggle('login_layer');"; $comment_sns_cursor1 = 'pointer';
$comment_sns_img2 = '/img/web/img_tweet_off.gif'; $comment_sns_class2 = 'fr'; $nameText2=""; $comment_sns_javascript2="twitter_join('comment')"; $comment_sns_cursor2 = 'pointer';
$comment_sns_img3 = '/img/web/img_facebook_off.gif';$comment_sns_class3 = 'fr'; $nameText3=""; $comment_sns_javascript3="checkLoginState();"; $comment_sns_cursor3 = 'pointer';
$comment_sns_img4 = '/img/web/img_kakao_off.gif'; $comment_sns_class4 = 'fr'; $nameText4=""; $comment_sns_javascript4="kakako_login()"; $comment_sns_cursor4 = 'pointer';
$comment_sns_img5 = '/img/web/img_naver_off.gif'; $comment_sns_class5 = 'fr'; $nameText5=""; $comment_sns_javascript5="naver_login()"; $comment_sns_cursor5 = 'pointer';
if($comment_sns_type != '') {
$comment_sns_javascript1 = "logout_advice()"; $comment_sns_javascript2 = "logout_advice()"; $comment_sns_javascript3 = "logout_advice()"; $comment_sns_javascript4 = "logout_advice()"; $comment_sns_javascript5 = "logout_advice()";
//$comment_sns_cursor1 = "default"; $comment_sns_cursor2 = "default"; $comment_sns_cursor3 = "default"; $comment_sns_cursor4 = "default"; $comment_sns_cursor5 = "default";
switch ($comment_sns_type) {
case 'cm': $comment_sns_img1 = '/img/web/img_cm_on.gif'; $comment_sns_class1 = ''; $nameText1='<span>'.$comment_sns_name.'</span>'; break;
case 'twitter': $comment_sns_img2 = '/img/web/img_tweet.gif'; $comment_sns_class2 = ''; $nameText2='<span>'.$comment_sns_name.'<span style="color:#a7a7a7;padding-left:10px;font-size:11px"><a href="javascript:comment_logout();">로그아웃</a> </span></span>'; break;
case 'facebook': $comment_sns_img3 = '/img/web/img_facebook_on.gif'; $comment_sns_class3 = ''; $nameText3='<span>'.$comment_sns_name.'<span style="color:#a7a7a7;padding-left:10px;font-size:11px"><a href="javascript:comment_logout();">로그아웃</a> </span></span>'; break;
case 'kakao': $comment_sns_img4 = '/img/web/img_kakao_on.gif'; $comment_sns_class4 = ''; $nameText4='<span>'.$comment_sns_name.'<span style="color:#a7a7a7;padding-left:10px;font-size:11px"><a href="javascript:comment_logout();">로그아웃</a> </span></span>'; break;
case 'naver': $comment_sns_img5 = '/img/web/img_naver_on.gif'; $comment_sns_class5 = ''; $nameText5='<span>'.$comment_sns_name.'<span style="color:#a7a7a7;padding-left:10px;font-size:11px"><a href="javascript:comment_logout();">로그아웃</a> </span></span>'; break;
}
} else {
$comment_sns_class1 = ''; $comment_sns_class2 = ''; $comment_sns_class3 = ''; $comment_sns_class4 = ''; $comment_sns_class5 = '';
}
?>
<div class="reply_box" data-signed="<?php echo $this->session->userdata('C_Member_Id')?>"
data-postid="<?php echo $post->idx?>" data-postcontenttype="<?php echo $content_type?>"
data-iscommentalllist="<?php echo $is_comment_all_list?>">
<div class="reply_social">
<a href="javascript:<?=$comment_sns_javascript1?>" style="cursor:<?=$comment_sns_cursor1?>"><span
class="<?=$comment_sns_class1?>"><img src="<?=$comment_sns_img1?>"></span></a> <?=$nameText1?>
<a href="javascript:<?=$comment_sns_javascript2?>" style="cursor:<?=$comment_sns_cursor2?>"><span
class="tweet <?=$comment_sns_class2?>"><img src="<?=$comment_sns_img2?>"></span></a>
<?=$nameText2?>
<a href="javascript:<?=$comment_sns_javascript3?>" style="cursor:<?=$comment_sns_cursor3?>"><span
class="facebook <?=$comment_sns_class3?>"><img src="<?=$comment_sns_img3?>"></span></a>
<?=$nameText3?>
<a href="javascript:<?=$comment_sns_javascript4?>" style="cursor:<?=$comment_sns_cursor4?>"><span
class="<?=$comment_sns_class4?>"><img src="<?=$comment_sns_img4?>"></span></a> <?=$nameText4?>
<a href="javascript:<?=$comment_sns_javascript5?>" style="cursor:<?=$comment_sns_cursor5?>"><span
class="<?=$comment_sns_class5?>"><img src="<?=$comment_sns_img5?>"></span></a> <?=$nameText5?>
</div>
<div class="reply_write">
<textarea class="form-control <?=$reply_css2?> comment_text" name="comment" id="comment" rows="3"
strA="" <?=$content_readonly?> placeholder="댓글 작성 시 상대방에 대한 배려와 사랑을 담아주세요."
style="width:665px;"></textarea>
</div>
<div class="reply_regist"><span class="reply_no" id="reply_text_count">0/300</span><span class="reply_btn"
onclick="comment_add_proc();" style="cursor: pointer">등록</span></div>
</div>
<div class="reply_sort">
<input type="hidden" name="comment_sort" id="comment_sort" value="1">
<span><a href="javascript:change_comment_sort(1);" id="comment_sort1">호감순</a></span><span><a
href="javascript:change_comment_sort(2);" class="current" id="comment_sort2">최신순</a></span>
<? if($is_comment_all_list == 'Y') { ?>
<span><a href="javascript:change_comment_sort(3);" id="comment_sort3">과거순</a></span><span><a
href="javascript:change_comment_sort(4);" id="comment_sort4">답글순</a></span>
<? }?>
</div>
<div class="reply_contents">
<ul class="reply_list">
<div class="comment_box">
<div id="comment_list">
<?
if(count($arr_comment) == 0) {
echo '<div style="height:100px;text-align:center; line-height:100px;">등록된 댓글이 없습니다.</div>';
} else{
$i=1;
foreach($arr_comment as $val) {
$content_type = $val['content_type'];
$comment_status = $val['comment_status'];
$comment = $val['comment'];
$comment_del_date = $val['del_date'];
$c_sns_name = $val['sns_name'];
$comment_reg_date = $val['reg_date'];
$is_best = $val['is_best'];
$write_id = $val['write_id'];
$comment_reg_date = substr($comment_reg_date, 0, 10);
$comment_main_style = '';
if($i == count($arr_comment) && $is_comment_all_list == 'Y') {
$comment_main_style= 'style="border-bottom:0 !important"';
}
$comment_txt = $comment;
if($comment_status!='1') {
$comment_txt = '<div style="color:#bcbcbc;"><img src="/img/web/icon_info.gif"> '.$comment.'</div><div class="r_date" style="margin-top:5px;color:#bcbcbc;">'.$comment_del_date.'</div>';
}
if($is_best=='Y') $comment_txt = '<label>BEST</label>'.$comment_txt;
$arr_member = $ci->m_member->member_where_member_id_select($write_id);
$member_img = '/img/web/img_profile_l.png';
if(isset($arr_member['member_img'])==true) $member_img = $arr_member['member_img'];
$name_header = '<img src="'.(empty($member_img)? '/files/img/web/img_photo.png': $member_img).'" width="16" height="16">&nbsp;&nbsp;';
if($c_sns_name !='cm') {
$name_header = '<img src="/img/web/img_'.$c_sns_name.'_on.gif">&nbsp;&nbsp;';
}
$write_name = $val['write_name'];
//$write_name = (mb_strlen($val['write_name']) > 10) ? iconv_substr($val['write_name'], 0, 10, "utf-8") . "***" : $val['write_name'];
$write_name = !empty($val['member_nickname']) ? $val['member_nickname'] : iconv_substr($val['member_id'], 0, 4, "utf-8") . "***";
?>
<div class="reply_comment" id="reply_comment_main<?=$val['idx']?>" <?=$comment_main_style?>>
<div class="r_info">
<?=$name_header?>
<span class="beachblue">
<?
if($comment_sns_id == '') {
echo $write_name;
} else {
if($content_type=='1' || $content_type=='2') {?>
<a href="javascript:user_comment('<?=$val['write_id']?>', '<?=$val['write_name']?>');"
style="color: #2bbec6 !important;"><?=$write_name?></a>
<? } else {
if($comment_sns_id==$val['write_id']) {
?>
<a href="javascript:user_comment('<?=$val['write_id']?>', '<?=$val['write_name']?>');"
style="color: #2bbec6 !important;"><?=$write_name?></a>
<?
} else {
echo $write_name;
}
}
}
?>
</span>
<span class="r_date">
<?=$comment_reg_date?>
<? if($comment_status==1) {?>
<? if($comment_sns_id!=$val['write_id']){?><span
style="color:#e1e2e2;padding-left:10px;"> |</span> <a
href="javascript:comment_spam('<?=$val['idx']?>', '<?=$val['write_name']?>')">신고</a>
<? } ?>
<? if($comment_sns_id==$val['write_id']){?><span
style="color:#e1e2e2;padding-left:10px;"> |</span> <a
href="javascript:comment_del('<?=$val['idx']?>')">삭제</a>
<?}?>
<? }?>
</span>
</div>
<div class="r_text"><?=$comment_txt?></div>
<ul class="r_base">
<li class="btn btn-default" onclick="comment_reply_open('<?=$val['idx']?>');"
style="color:#000000;cursor: pointer">답글 <span
id="comment_reply_count<?=$val['idx']?>"><?=number_format($val['reply_count'])?></span>
</li>
<li class="icons2">
<span class="thumbup2"><a
href="javascript:comment_like_select(1, '<?=$val['idx']?>');"><img
src="/img/web/img_thumbup.jpg"></a><span
id="comment_like1_<?=$val['idx']?>"><?=number_format($val['like_count'])?></span></span>
<span class="thumbdown2"><a
href="javascript:comment_like_select(2, '<?=$val['idx']?>');"><img
src="/img/web/img_thumbdown.jpg"></a><span
id="comment_like2_<?=$val['idx']?>"><?=number_format($val['bad_count'])?></span></span>
</li>
</ul>
</div>
<!-- 대댓글 -->
<div class="reply_box2" id="reply_comment<?=$val['idx']?>" style="display:none">
<div id="reply_comment_list<?=$val['idx']?>"></div>
<input type="hidden" name="comment_reply_page<?=$val['idx']?>"
id="comment_reply_page<?=$val['idx']?>" value="1">
<div class="reply_close" id="reply_more<?=$val['idx']?>" style="display:none;"><a
href="javascript:comment_reply_more(<?=$val['idx']?>)">더보기</a> <img
src="/img/web/img_replyopen.gif"></div>
<ul class="box_wrap2">
<li class="r_img2"><img src="/img/web/img_reply1.gif"></li>
<li>
<div class="reply_box">
<div class="reply_social">
<a href="javascript:<?=$comment_sns_javascript1?>"
style="cursor:<?=$comment_sns_cursor1?>"><span
class="<?=$comment_sns_class1?>"><img
src="<?=$comment_sns_img1?>"></span></a> <?=$nameText1?>
<a href="javascript:<?=$comment_sns_javascript2?>"
style="cursor:<?=$comment_sns_cursor2?>"><span
class="tweet <?=$comment_sns_class2?>"><img
src="<?=$comment_sns_img2?>"></span></a> <?=$nameText2?>
<a href="javascript:<?=$comment_sns_javascript3?>"
style="cursor:<?=$comment_sns_cursor3?>"><span
class="facebook <?=$comment_sns_class3?>"><img
src="<?=$comment_sns_img3?>"></span></a> <?=$nameText3?>
<a href="javascript:<?=$comment_sns_javascript4?>"
style="cursor:<?=$comment_sns_cursor4?>"><span
class="<?=$comment_sns_class4?>"><img
src="<?=$comment_sns_img4?>"></span></a> <?=$nameText4?>
<a href="javascript:<?=$comment_sns_javascript5?>"
style="cursor:<?=$comment_sns_cursor5?>"><span
class="<?=$comment_sns_class5?>"><img
src="<?=$comment_sns_img5?>"></span></a> <?=$nameText5?>
</div>
<div class="reply_write">
<textarea class="form-control <?=$reply_css2?> comment_text"
<?=$content_readonly?> name="comment<?=$val['idx']?>"
id="comment<?=$val['idx']?>" strA="<?=$val['idx']?>" rows="3"
placeholder="댓글 작성 시 상대방에 대한 배려와 사랑을 담아주세요."
style=" width: 590px;"></textarea>
</div>
<div class="reply_regist">
<span class="reply_no"
id="reply_text_count<?=$val['idx']?>">0/300</span><span
class="reply_btn"><a
href="javascript:comment_reply_add_proc(<?=$val['idx']?>);">
등록</a></span>
</div>
</div>
</li>
</ul>
<div class="reply_close"><a href="javascript:comment_reply_close('<?=$val['idx']?>')">댓글
접기</a> <img src="/img/web/img_replyclose.gif"></div>
</div>
<!--// 대댓글 -->
<?
$i++;
}
}
?>
</div>
<? if($is_comment_all_list == 'Y') {
$comment_more_btn_style = 'style="display:none;"';
if($comment_total_count > count($arr_comment)) {
$comment_more_btn_style = ' style="display:block;"';
}
?>
<div class="channel_bottom3">
<button type="button" class="btn btn-default br20" id="comment_more_btn"
<?=$comment_more_btn_style?> onclick="comment_list_more();">더보기 </button>
</div>
<? }
?>
<? if($is_comment_all_list == 'Y') { ?>
<div class="reply_info" style="float:right; padding:0 0 30px 0;">
<span><img src="/img/web/mypage_arrow_left.gif" style="padding-top:9px;"> <a
href="<?=$main_url?>" style="color:#7e7f82"> 이전 페이지로 돌아가기</a> </span>
<span style="color:#d4d4d4;padding-left:10px;"> |</span>
<span><img src="/img/web/img_up2.gif" style="padding-top:12px;"><a href="#"
style="color:#7e7f82"> 맨위로</a></span>
</div>
<? } else {
$comment_all_list_style = '';
if($comment_total_count==0) $comment_all_list_style='display:none;';
?>
<div class="viewall" id="comment_all_list"
style="float:right; padding:20px 0 30px 0;<?=$comment_all_list_style?>"><a
href="<?=$comment_list_url?>">전체 댓글 보기 &gt;</a></div>
<? } ?>
</div>
</ul>
</div>
</div>
<div id="comment_policy" style="display:none;z-index: 9999">
<div class="delivery_info3" style="position: fixed;">
<p class="d_info_tit" style="text-align:center; margin:10px 0">댓글운영정책</p>
<p class="d_info_txt">
크로스맵 댓글은 게시물에 대하여 자신의 생각을 말하고 남의 생각을 들으며 서로 다양한 의견을 나누는 공간입니다. 그러나 간혹 불건전한 내용을 올리시는 분들이 계셔서 건전한 인터넷문화
정착을 위해 아래와 같은 운영원칙을 적용합니다.<br><br>
<span style="text-decoration:underline; margin-bottom: 15px;display: inline-block;">1. 댓글의 삭제 및 제한
조치</span><br>
네티즌들의 신고 또는 자제 모니터링을 통해 아래에 해당하는 내용이 포함된 댓글이 발견되면 예고없이 삭제 또는 제한 조치를 하겠습니다. <br>
</p>
<table style="font-size:13px;">
<tr>
<td>1) 타인에 대한 욕설 또는 비방 </td>
<td>2) 인신공격 또는 명예훼손 </td>
</tr>
<tr>
<td>3) 개인정보 유출 또는 사생활 침해</td>
<td>4) 음란성 내용 또는 음란물 링크 </td>
</tr>
<tr>
<td>5) 상업적 광고 또는 사이트/홈피 홍보&nbsp;&nbsp;&nbsp;</td>
<td>6) 불법정보 유출</td>
</tr>
<tr>
<td>7) 같은 내용의 반복(도배) </td>
<td>8) 폭력 또는 사행심 조장 </td>
</tr>
<tr>
<td>9) 기타 게시물 내용과 관계없는 내용</td>
<td></td>
</tr>
</table>
<br><br>
<p class="d_info_txt">
<span style="text-decoration:underline; margin-bottom: 15px;display: inline-block;">2. 댓글 작성에 대한
제한</span><br>
불건전한 댓글은 발견시 별도의 통보없이 즉시 삭제 또는 제한 조치 하며 상습적 또는 위반 정도가 심한 댓글을 올리시는 분에 대해서는 일정 기간 댓글 작성에 대한 권한을 제한할 수
있습니다.<br>
또한 비정상적인 패턴으로 조회, 추천, 반대 등이 발생하는 것으로 관리자 또는 시스템이 판단하는
경우 부정 클릭여부를 확인하여 해당 IP나 ID를 제재할 수 있습니다.<br>
명예훼손, 개인정보유츨, 욕설 등 법률에 위반되는 댓글은 관계 법령에 의거 민형사상 처벌을 받을 수 있으니 이용에 주의를 부탁 드립니다.<br><br>
<span style="text-decoration:underline; margin-bottom: 15px;display: inline-block;">3. 뉴스, 칼럼 댓글함
전체공개</span><br>
건전한 댓글 문화를 위하여 뉴스 및 칼럼 댓글에 한해서만 댓글모음이 전체공개됩니다. 제공되는 목록에 삭제한 댓글이나 답글은 포함되지 않습니다. <br>
</p>
<div class="form-group" style="margin:20px 0; display:block; text-align:center">
<button type="button" class="btn btn-success" onclick="change_toggle('comment_policy');"
style="padding:5px 20px; font-size:14px">확인</button>
</div>
</div>
<div class="mask" style="z-index: 9998"></div>
</div>
</div>
<!-- 댓글 신고 -->
<div id="comment_spam_layer" style="display:none;">
<input type="hidden" name="comment_spam_idx" id="comment_spam_idx">
<div class="popup_wrap" style="position: fixed">
<div class="popupbox trc" style=" width:445px; ">
<div class="popuptop">
<h3 class="p_title">신고하기 </h3>
<span class="btn-close"><a href="javascript:commonLayerClose('comment_spam_layer')"><img
src="/img/web/btn-close.png"></a></span>
</div>
<div class="popupbody">
<dl class="bgb notice2 pd30 ft16">
<dt>신고대상</dt>
<dd id="comment_write_name_txt"></dd>
<dt style="padding-top:6px;">내용</dt>
<dd class="info_forms">
<div class="form-group">
<input type="text" name="spam_reason_content" id="spam_reason_content" class="form-control"
placeholder="간략 내용이 들어갑니다." style="width:97%;">
</div>
</dd>
</dl>
<div class="ft18 pd30 beachblue">신고를 원하시는 이유를 선택해 주세요.</div>
<dl class="bgb notice_list ft16">
<dt>부적절한 홍보 게시물</dt>
<dd><input type="radio" name="spam_reason_type" id="spam_reason_type1" value="1" checked=""></dd>
<dt>음란성 혹은 청소년에게 유해</dt>
<dd><input type="radio" name="spam_reason_type" id="spam_reason_type2" value="2"></dd>
<dt>명예훼손 혹은 저작권 침해</dt>
<dd><input type="radio" name="spam_reason_type" id="spam_reason_type3" value="3"></dd>
</dl>
<div class="form-group" style="margin:30px 0; display:block; text-align:center">
<button type="button" class="btn btn-success br20" style="padding:10px 50px; font-size:16px"
onclick="comment_spam_proc();">확인</button>
<button type="button" class="btn btn-default_bb br20" style="padding:10px 50px; font-size:16px "
onclick="commonLayerClose('comment_spam_layer')">취소</button>
</div>
</div>
</div>
</div>
<div class="mask"></div>
</div>

View File

@@ -0,0 +1,82 @@
<!DOCTYPE html>
<html lang="ko">
<head>
<?php $this->load->view('partial/head')?>
<link rel="stylesheet" href="/ART/grace/css/default.css">
</head>
<body>
<style>
.channel_header {
background: url(<?php echo imgSrc($editor->main_img)?>) no-repeat center
}
</style>
<?php $this->load->view('partial/sidemenu')?>
<?php $this->load->view('partial/header')?>
<!-- //header -->
<main class="pb50">
<section id="channel_header">
<div class="channel_header">
<div class="container">
<div class="row">
<div class="txtbox">
<div class="img"><img src="<?php echo imgSrc($editor->partner_img)?>" alt=""></div>
<h3><?php echo $editor->partner_name?></h3>
<p><?php echo $editor->partner_intro?></p>
</div>
</div>
</div>
</div>
</section>
<!-- post_listbox -->
<section id="post_listbox" class="cm-more-enabled" data-post-ids="<?php echo implode(',', $pageInitPostIds)?>" data-page-type="editor">
<div class="container">
<div class="row">
<div class="post_listbox">
<div class="tit">
<h2>전체포스트</h2>
<div class="fillter">
<span><a class="<?php echo $isLikesOrder ? '': 'select'?>" href="/grace/editor/<?php echo cleanUrl($editor->partner_name)?>/<?php echo $editor->idx?>">업데이트순</a></span>
<span><a class="<?php echo $isLikesOrder ? 'select': ''?>" href="/grace/editor/<?php echo cleanUrl($editor->partner_name)?>/<?php echo $editor->idx?>/likes">좋아요순</a></span>
</div>
</div>
<ul>
<?php foreach ($posts as $p) {?>
<li>
<div class="box"><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx ?>"><img
src="<?php echo imgSrc($p->mainImg) ?>" alt=""></a></div>
<div class="txtbox">
<span class="editor_img"><a href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId ?>"><img
src="<?php echo imgSrc($p->editorImg) ?>" alt=""></a></span>
<dl>
<dd class="editor_txt"><a
href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId ?>"><?php echo $p->editorName ?></a>
</dd>
<dt><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx ?>"><?php echo $p->title ?></a></dt>
</dl>
<span class="info">
<span class="hit">조회수 <?php echo $p->views ?>회</span>
<span class="reple">댓글 <?php echo $p->comments ?>회</span>
</span>
</div>
</li>
<?php }?>
</ul>
</div>
</div>
</div>
</section>
<!-- //post_listbox -->
</main>
<!-- footer -->
<?php $this->load->view('partial/footer')?>
<script src="/ART/grace/js/living_slide.js"></script>
</body>
</html>

344
application/views/grace/grace.php Executable file
View File

@@ -0,0 +1,344 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#" lang="ko">
<head>
<?php $this->load->view('partial/head')?>
<link rel="stylesheet" href="/ART/grace/css/default.css">
</head>
<body>
<?php $this->load->view('partial/sidemenu')?>
<?php $this->load->view('partial/header')?>
<!-- //header -->
<main class="pb50">
<!-- banner -->
<section id="banner">
<h2 class="ir_so">최신 라이프 소식</h2>
<div class="slider">
<div class="swiper-container">
<!-- Additional required wrapper -->
<div class="swiper-wrapper">
<!-- Slides -->
<?foreach($slide as $k=>$p) {?>
<div class="swiper-slide ss<?php echo $k+1?>">
<div class="container">
<div class="row">
<div class="imgbox"><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><img src="<?php echo imgSrc($p->mainImg)?>"
alt=""></a>
</div>
<div class="txtbox">
<em><a
href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId?>"><?php echo $p->editorName?></a></em>
<h3><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><?php echo $p->title?></a></h3>
<p><a
href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><?php echo $p->sub_title? $p->sub_title : mb_substr(strip_tags($p->content), 0, 100)?></a>
</p>
</div>
</div>
</div>
</div>
<?php }?>
</div>
<!-- If we need pagination -->
<div class="swiper-pagination"></div>
<!-- If we need navigation buttons -->
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div>
</div>
</section>
<!-- //banner -->
<!-- keyword -->
<section id="keyword_box">
<div class="container">
<div class="row">
<div class="keyword_box">
<h2>크로스맵 KEYWORD</h2>
<div>
<ul>
<li><a class="<?php echo in_array('wordCards', $newUpdated) ? 'new':'' ?>"
href="/grace/category/말씀엽서/30">말씀엽서</a></li>
<li><a class="<?php echo in_array('books', $newUpdated) ? 'new':'' ?>" href="/grace/category/도서/31">크맵북스</a></li>
<li><a class="<?php echo in_array('dailyQt', $newUpdated) ? 'new':'' ?>" href="/grace/category/데일리QT/32">데일리QT</a></li>
<li><a class="<?php echo in_array('engWords', $newUpdated) ? 'new':'' ?>" class="new" href="/grace/category/영어묵상/33">영어묵상</a></li>
<li><a class="<?php echo in_array('qna', $newUpdated) ? 'new':'' ?>" href="/grace/category/QnA/34">Q&amp;A</a></li>
</ul>
</div>
</div>
</div>
</div>
</section>
<!-- //keyword -->
<!-- book_culture -->
<section id="popularpost">
<div class="container">
<div class="row">
<div class="popularpost">
<div class="title">
<h2><a href="#">인기 포스트</a></h2>
<!--<span class="more_btn"><a href="">더보기</a></span>-->
</div>
<div class="list">
<div class="swiper-container2">
<!-- Additional required wrapper -->
<div class="swiper-wrapper">
<!-- Slides -->
<?php foreach ($popularPosts as $post) {?>
<div class="swiper-slide">
<a href="/grace/<?php echo $post->titleUrl?>/<?php echo $post->idx?>">
<figure><img src="<?php echo imgSrc($post->mainImg)?>" alt=""></figure>
<div class="info">
<p><?php echo $post->editorName?></p>
<h3><?php echo $post->title?>
</h3>
<span class="editor"><img src="<?php echo imgSrc($post->editorImg)?>"
alt=""></span>
</div>
</a>
</div>
<?php }?>
</div>
<!-- If we need navigation buttons -->
<div class="swiper-button-prev2"><i class="fa fa-angle-left" aria-hidden="true"></i>
</div>
<div class="swiper-button-next2"><i class="fa fa-angle-right" aria-hidden="true"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- //book_culture -->
<!-- post_listbox -->
<section id="post_listbox">
<div class="container">
<div class="row">
<div class="post_listbox">
<div class="tit">
<h2>말씀엽서</h2>
<span class="more"><a
href="/grace/category/말씀엽서/<?php echo $wordCards[0]->categoryId?>">더보기 <i class="fa fa-angle-right" aria-hidden="true"></i></a></span>
</div>
<ul>
<?php foreach($wordCards as $p) { ?>
<li>
<div class="box"><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><img
src="<?php echo imgSrc($p->mainImg)?>" alt=""></a></div>
<div class="txtbox">
<span class="editor_img"><a href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId?>"><img
src="<?php echo imgSrc($p->editorImg)?>" alt=""></a></span>
<dl>
<dd class="editor_txt"><a
href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId?>"><?php echo $p->editorName?></a>
</dd>
<dt><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><?php echo $p->title?></a></dt>
</dl>
<span class="info">
<span class="hit">조회수 <?php echo $p->views?>회</span>
<span class="reple">댓글 <?php echo $p->comments?>회</span>
</span>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
</section>
<!-- //post_listbox -->
<!-- bannerstyle1 -->
<section id="bannerstyle1">
<div class="container">
<div class="row">
<div class="bannerstyle1">
<a href="https://dramabible.org/" target="_blank"><img src="/ART/grace/img/ban1.jpg" class="img_normal" alt=""> <img
src="/ART/grace/img/ban1_@2.jpg" class="img_retina" alt=""></a>
</div>
</div>
</div>
</section>
<!-- //bannerstyle1 -->
<!-- post_listbox -->
<section id="post_listbox">
<div class="container">
<div class="row">
<div class="post_listbox">
<div class="tit">
<h2>크맵북스</h2>
<span class="more"><a
href="/grace/category/도서/<?php echo $books[0]->categoryId?>">더보기 <i class="fa fa-angle-right" aria-hidden="true"></i></a></span>
</div>
<ul>
<?php foreach($books as $p) { ?>
<li>
<div class="box"><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><img
src="<?php echo imgSrc($p->mainImg)?>" alt=""></a></div>
<div class="txtbox">
<span class="editor_img"><a href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId?>"><img
src="<?php echo imgSrc($p->editorImg)?>" alt=""></a></span>
<dl>
<dd class="editor_txt"><a
href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId?>"><?php echo $p->editorName?></a>
</dd>
<dt><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><?php echo $p->title?></a></dt>
</dl>
<span class="info">
<span class="hit">조회수 <?php echo $p->views?>회</span>
<span class="reple">댓글 <?php echo $p->comments?>회</span>
</span>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
</section>
<!-- //post_listbox -->
<!-- bannerstyle2 -->
<section id="bannerstyle2">
<div class="container">
<div class="row">
<div class="bannerstyle2">
<div>
<a href="https://crossmap.christiandaily.co.kr/grace/%EC%84%A4%EA%B5%90%EC%9E%90-%EC%98%A8%EA%B0%96-%EC%8A%A4%ED%82%AC-%EC%9E%88%EC%96%B4%EB%8F%84-%ED%95%98%EB%82%98%EB%8B%98-%EC%98%81%EA%B4%91%EC%97%90-%EA%B2%8C%EC%9C%BC%EB%A5%B4%EB%8B%A4%EB%A9%B4/2733" target="_blank">
<img src="/ART/grace/img/ban2.jpg" class="img_normal" alt=""> <img
src="/ART/grace/img/ban2_@2.jpg" class="img_retina" alt="">
</a>
</div>
<div>
<a href="https://crossmap.christiandaily.co.kr/grace/%EB%A7%8C%EB%93%A4%EC%96%B4%EC%A7%84-%EC%A7%84%EB%A6%AC%EB%A1%9C-%EB%A7%8E%EC%9D%80-%EC%82%AC%EB%9E%8C%EB%93%A4-%ED%98%84%ED%98%B9%EC%8B%9C%ED%82%A4%EB%8A%94-%EC%9D%B4%EB%8B%A8%EC%82%AC%EC%9D%B4%EB%B9%84/2740" target="_blank">
<img src="/ART/grace/img/ban3.jpg" class="img_normal" alt=""> <img
src="/ART/grace/img/ban3_@2.jpg" class="img_retina" alt="">
</a>
</div>
</div>
</div>
</div>
</section>
<!-- //bannerstyle2 -->
<!-- post_listbox -->
<section id="post_listbox">
<div class="container">
<div class="row">
<div class="post_listbox">
<div class="tit">
<h2>데일리QT</h2>
<span class="more"><a
href="/grace/category/데일리QT/<?php echo $dailyQt[0]->categoryId?>">더보기 <i class="fa fa-angle-right" aria-hidden="true"></i></a></span>
</div>
<ul>
<?php foreach($dailyQt as $p) { ?>
<li>
<div class="box"><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><img
src="<?php echo imgSrc($p->mainImg)?>" alt=""></a></div>
<div class="txtbox">
<span class="editor_img"><a href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId?>"><img
src="<?php echo imgSrc($p->editorImg)?>" alt=""></a></span>
<dl>
<dd class="editor_txt"><a
href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId?>"><?php echo $p->editorName?></a>
</dd>
<dt><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><?php echo $p->title?></a></dt>
</dl>
<span class="info">
<span class="hit">조회수 <?php echo $p->views?>회</span>
<span class="reple">댓글 <?php echo $p->comments?>회</span>
</span>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
</section>
<!-- //post_listbox -->
<section id="col3box">
<div class="container">
<div class="row">
<div class="col3box">
<div class="boder_box">
<div class="tit">
<h2>영어묵상</h2>
<div class="more_btn"><a href="/grace/category/영어묵상/<?php echo $engWords[0]->categoryId?>"><span
class="ir_pm ">더보기 </span></a></div>
</div>
<ul class="listbox1">
<?php foreach($engWords as $p) {?>
<li>
<h3><a
href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><?php echo mb_substr($p->title, 0, 50)?></a>
</h3>
<dl>
<dt><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><?php echo $p->sub_title?></a></dt>
<dd><a
href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId?>"><?php echo $p->editorName?></a>
</dd>
</dl>
<span class="info">
<span class="hit">조회수 <?php echo $p->views?>회</span>
<span class="reple">댓글 <?php echo $p->comments?>회</span>
</span>
</li>
<?php }?>
</ul>
<div>
</div>
</div>
<div class="boder_box">
<div class="tit">
<h2>지식충전</h2>
<div class="more_btn"><a href="/grace/category/QnA/<?php echo $qna[0]->categoryId?>"><span
class="ir_pm ">더보기</span></a></div>
</div>
<ul class="listbox2">
<?php foreach($qna as $p) {?>
<li>
<dl>
<dt><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><?php echo $p->title?></a></dt>
<dd><a
href="/grace/editor/<?php echo cleanUrl($p->editorName)?>/<?php echo $p->editorId?>"><?php echo $p->editorName?></a>
</dd>
</dl>
<span class="info">
<span class="hit">조회수 <?php echo $p->views?>회</span>
<span class="reple">댓글 <?php echo $p->comments?>회</span>
</span>
</li>
<?php }?>
</ul>
</div>
<div>
<div class="banbox"><a href="https://play.google.com/store/apps/details?id=com.SS20190423.tube&hl=ko" target="_blank"><img src="/ART/grace/img/ban4.jpg" alt=""></a></div>
<div class="banbox"><a href="https://crossmap.christiandaily.co.kr/web/prayer" target="_blank"><img src="/ART/grace/img/ban5.jpg" alt=""></a></div>
</div>
</div>
</div>
</div>
</section>
</main>
<?php $this->load->view('partial/footer')?>
<script src="/ART/grace/js/living_slide.js"></script>
</body>
</html>

View File

@@ -0,0 +1,17 @@
<div class="header_menu_sub">
<div class="container">
<div class="row">
<div class="swiper-containermenu">
<div class="swiper-wrapper">
<div class="swiper-slide<?php echo $this->uri->segment(4) ? '' : ' current' ?>"><a
href="/grace">은혜충전 홈</a></div>
<?php foreach(array_values($this->config->item('categories')['grace']) as $k => $menuCategoryId) {?>
<div class="swiper-slide<?php echo $this->uri->segment(4) == $menuCategoryId ? ' current' : '' ?>">
<a
href="/grace/category/<?php echo $graceCategories[$menuCategoryId]->category_name?>/<?php echo $graceCategories[$menuCategoryId]->idx ?>"><?php echo $graceCategories[$menuCategoryId]->category_name?></a>
</div><?php }?>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,71 @@
<style>
.popup_share{ background: #fff none repeat scroll 0 0;
border: 1px solid #bfbfc0;
display: block;
left: 50%;
margin: 0 auto;
margin-left: -126px;
padding: 40px 20px 20px 20px;
position: fixed;
top: 50px;
width: 260px;
z-index: 9999999;
height: 170px;}
.popup_share a:hover{color:#2bbec6;}
.popup_share ul img{padding-bottom: 5px;width:25px;}
.popup_share li{float:left;text-align:center; width:65px; display: inline-block;}
.popup_share li a{font-size: 12px;}
.popup_share .s_share{clear:both;display: block; padding-top:15px; position: relative; width: 250px;}
.popup_share .s_window {
background: #f8f8f8 none repeat scroll 0 0;
border: 1px solid #d8d8d8;
color: #686868;
display: inline-block;
font-size: 14px;
height: 28px;
padding-left: 10px;
position: absolute;
width: 174px;
}
.popup_share .s_close{position:absolute; right:25px; top:10px;}
.popup_share .s_src_sumit {
background: #fff none repeat scroll 0 0;
border: 1px solid #d8d8d8;
height: 30px;
line-height: 30px;
overflow: visible;
width: 65px;
position: absolute;right:0;font-size: 12px;
}
</style>
<input type="hidden" name="share_content" id="share_content" value="<?php echo mb_substr(getMetaDescription($post->content), 0, 100)?>">
<input type="hidden" name="share_title" id="share_title" value="<?php echo str_replace('"', "'", $post->title)?>">
<input type="hidden" name="share_copy_url" id="share_copy_url" value="<?php echo getPathWithHost(uri_string())?>">
<input type="hidden" name="share_img_url" id="share_img_url" value="<?php echo imgSrc($post->mainImg)?>">
<div class="popup_share" id="share_box" style="display:none;">
<p class="s_close"><a href="javascript:$('#share_box').hide();"><img src="/img/web/img_x.gif"></a></p>
<ul>
<li><a href="javascript:share_facebook();" class="fb-xfbml-parse-ignore"><img src="/img/web/img_fb.jpg"
alt="페이스북"><br>페이스북</a></li>
<li><a href="javascript:share_twitter();"><img src="/img/web/img_tw.jpg" alt="트위터"><br>트위터</a></li>
<li><a href="javascript:share_kakao();"><img src="/img/web/img_kk.jpg" alt="카카오톡 "><br>카카오톡</a></li>
<li><a href="javascript:share_naver();"><img src="/img/web/img_na.jpg" alt="네이버"><br>네이버</a></li>
</ul>
<ul style="padding-top:10px; clear:both;">
<li><a href="javascript:share_kakaostory();"><img src="/img/web/img_ks.jpg" alt="카카오스토리"><br>카카오스토리 </a></li>
<li><a href="javascript:share_band();"><img src="/img/web/img_bd.jpg" alt="밴드"><br>밴드</a></li>
<li><a href="javascript:bookmark()"><img src="/img/web/img_bm.jpg" alt="북마크"><br>북마크</a></li>
</ul>
<div class="s_share">
<input type="text" class="s_window" id="copy_url" value="<?=CROSSMAP_URL?>">
<button type="button" class="s_src_sumit" onclick="copy_url();">URL복사</button>
</div>
</div>
<!-- 카카오톡 공유하기 -->
<script src="//developers.kakao.com/sdk/js/kakao.min.js"></script>

179
application/views/grace/view.php Executable file
View File

@@ -0,0 +1,179 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#" lang="ko">
<head>
<?php $this->load->view('partial/head')?>
<link rel="stylesheet" href="/ART/grace/css/default.css">
</head>
<body data-graceview-bg="<?php echo imgSrc($post->editorMainImg)?>">
<style>
.channel_header2 {
background: none;
}
</style>
<?php $this->load->view('partial/sidemenu')?>
<main>
<section id="channel_header">
<div class="channel_header2">
<h1>
<a href="#" class="nav-toggle"> <i class="fa fa-bars" aria-hidden="true"></i></a>
<a href="/grace"><img src="/ART/grace/img/logo_white.png" alt=""><span class="ir_pm">크로스맵</span></a>
</h1>
<div class="cover_cell">
<h2><?php echo $post->title?></h2>
</div>
<div class="ArticleInfo">
<strong><?php echo $post->editorName?></strong>
<p><?php echo $post->editorIntro?></p>
</div>
</div>
</section>
<!-- //channel_header -->
<section id="article_contents">
<div class="container2">
<div class="row">
<div class="article_contents" id="<?php echo $post->idx?>">
<?php echo $post->sub_title ? '<h3>'.convertEmoji($post->sub_title, 'DECODE').'</h3>' : ''?>
<?php if ($post->video_url) {?><div style="text-align:center; display: block;"><iframe
type="text/html" src="<?php echo $post->video_url ?>" allowfullscreen="true"
style="border: 0px; display: block; margin: 0px; width: 730px; height: 410px;"
data-ratio="0.5625" data-width="730" data-height="410"></iframe></div><?php }?>
<?php echo contentImgSrc(convertEmoji($post->content, 'DECODE')) ?>
</div>
<!-- //article_contents -->
<div class="article_footer">
<ul class="article_keyword">
<?php foreach(explode(' ', $post->tag) as $t) echo '<li><a href="#"><span>#</span>'.$t.'</a></li>';?>
</ul>
<ul class="comment_btn">
<li class="clicked"><a href="#" class="cm-comment-btn"><i class="fa fa-commenting"
aria-hidden="true"></i><span><?php echo $post->comments?></span></a></li>
<li <?php echo $iLike ? 'class="clicked"': ''?>><a href="#" class="cm-like-btn"><i
class="fa fa-heart"
aria-hidden="true"></i><span><?php echo $post->likes?></span></a></li>
<li><a href="#" class="cm-share-btn"><i class="fa fa-share-alt"
aria-hidden="true"></i><span><?php echo $post->share_count?></span></a></li>
</ul>
<?php require_once(APPPATH . "views/grace/socialshare.php"); ?>
</div>
<!-- //article_footer -->
<!-- commentbox -->
<?php require_once(APPPATH . "views/grace/comment.php"); ?>
<!-- //commentbox -->
</div>
</div>
</section>
<!-- //article_contents -->
<section id="writer_related_article">
<div class="container">
<div class="row">
<div class="writer_related_article">
<div class="author_box">
<div class="img"><img src="<?php echo imgSrc($post->editorImg)?>" alt=""></div>
<strong><?php echo $post->editorName?></strong>
<p><?php echo $post->editorIntro?></p>
</div>
<!-- post_listbox -->
<section id="post_listbox">
<div class="container">
<div class="row">
<div class="post_listbox">
<ul>
<?php foreach($editorPosts as $p) { ?>
<li>
<div class="box"><a
href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><img
src="<?php echo imgSrc($p->mainImg)?>" alt=""></a></div>
<div class="txtbox">
<span class="editor_img"><a
href="/grace/editor/<?php echo $p->editorNameUrl?>/<?php echo $p->editorId?>"><img
src="<?php echo imgSrc($p->editorImg)?>"
alt=""></a></span>
<dl>
<dd class="editor_txt"><a
href="/grace/editor/<?php echo $p->editorNameUrl?>/<?php echo $p->editorId?>"><?php echo $p->editorName?></a>
</dd>
<dt><a
href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><?php echo $p->title?></a>
</dt>
</dl>
<span class="info">
<span class="hit">조회수 <?php echo $p->views?>회</span>
<span class="reple">댓글 <?php echo $p->comments?>회</span>
</span>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
</section>
<!-- //post_listbox -->
</div>
</div>
</div>
</section>
<!-- //writer_related_article -->
<!-- post_listbox -->
<section id="post_listbox" class="pb50">
<div class="container">
<div class="row">
<div class="post_listbox">
<div class="tit">
<h2>추천 은혜충전</h2>
<!--<span class="more"><a href="#">더보기</a></span>-->
</div>
<ul>
<?php foreach($recentPosts as $p) { ?>
<li>
<div class="box"><a href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><img
src="<?php echo imgSrc($p->mainImg)?>" alt=""></a></div>
<div class="txtbox">
<span class="editor_img"><a
href="/grace/editor/<?php echo $p->editorNameUrl?>/<?php echo $p->editorId?>"><img
src="<?php echo imgSrc($p->editorImg)?>" alt=""></a></span>
<dl>
<dd class="editor_txt"><a
href="/grace/editor/<?php echo $p->editorNameUrl?>/<?php echo $p->editorId?>"><?php echo $p->editorName?></a>
</dd>
<dt><a
href="/grace/<?php echo $p->titleUrl?>/<?php echo $p->idx?>"><?php echo $p->title?></a>
</dt>
</dl>
<span class="info">
<span class="hit">조회수 <?php echo $p->views?>회</span>
<span class="reple">댓글 <?php echo $p->comments?>회</span>
</span>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
</section>
<!-- //post_listbox -->
</main>
<!-- footer -->
<?php $this->load->view('partial/footer')?>
</body>
</html>