first commit
This commit is contained in:
131
application/views/m/life/category.php
Executable file
131
application/views/m/life/category.php
Executable file
@@ -0,0 +1,131 @@
|
||||
<script src="/js/web/swiper.min.js"></script>
|
||||
<link rel="stylesheet" href="/js/web/swiper.min.css">
|
||||
|
||||
|
||||
<?echo trim($swiper_page);?>
|
||||
<?
|
||||
$page_title = "추천카테고리";
|
||||
$page_title_link = '#';
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
<div class="channel_cont channel_cont_fixed">
|
||||
<div class="wrap">
|
||||
<div class="channel_top" style="text-align:center; margin-bottom:0 !important;">
|
||||
<button type="button" onclick="location.href='/m/life/channel_recommend'" class="btn btn-default br10" style="padding:7px 30px;font-size: 19px; font-weight: 200 !important;">추천채널 </button>
|
||||
<button type="button" onclick="location.href='/m/life/category'" class="btn btn-default_bb br10" style="padding:7px 30px;font-size: 19px; font-weight: 200 !important; margin-left:10px;">카테고리 </button>
|
||||
</div>
|
||||
|
||||
<div class="channel_category bgb3">
|
||||
<div class="swiper-container">
|
||||
<div class="swiper-wrapper" style="padding-bottom: 10px;">
|
||||
<? foreach ($arr_category as $key=>$val) {
|
||||
$category_name_txt = mb_strimwidth($val['category_name'], '0', '10', '..', 'utf-8');
|
||||
?>
|
||||
<div class="swiper-slide"><a
|
||||
style = " font-weight: bold;font-size:15px;"
|
||||
href="/m/life/category/<?=$val['idx']?>" <? if($category_idx==$val['idx']) { echo 'class="current"';}?>><?=$category_name_txt?></a></div>
|
||||
<? }?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_tit">
|
||||
<?=$category_name?> <span class="beachblue"><?=number_format($total_count)?></span>
|
||||
<ul class="fr life_click2">
|
||||
<li><a style="cursor:pointer" onclick="location.href='/m/life/category/<?=$category_idx?>?search_sort=1'" <?=($search_sort=='1')? 'class="current"':''?>>최신순</a></li>
|
||||
<li>|</li>
|
||||
<li><a style="cursor:pointer" onclick="location.href='/m/life/category/<?=$category_idx?>?search_sort=2'" <?=($search_sort=='2')? 'class="current"':''?>>인기순</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<? $i=1;
|
||||
$editor_count = count($list);
|
||||
if($editor_count == 0) echo '<div style="height:100px; text-align:center; padding-top:30px">등록된 에디터가 없습니다.</div>';
|
||||
foreach ($list as $i=>$val) {
|
||||
if($i%2==0) echo '<div class="channel_boxs">';
|
||||
|
||||
|
||||
?>
|
||||
<div class="bk_con" onclick="location.href='/m/life/editor/<?=$val['idx']?>'" >
|
||||
<span class="shadow" style="cursor:pointer"></span>
|
||||
<a ><img style="cursor:pointer" src="<?=$val['main_img']?>" class="art-img"></a>
|
||||
<p class="chn_tit"><a href="/m/life/editor/<?=$val['idx']?>"><?=$val['partner_name']?></a></p>
|
||||
<p class="chn_bar"> <img src="/img/web/bg_bar.gif"></p>
|
||||
<p class="chn_reply"><span class="beachblue" style="font-size:18px;"><a href="/m/life/editor/<?=$val['idx']?>"><?=number_format($val['article_count'])?></a></span><span style="font-size:14px;"> 개 글</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
<?
|
||||
|
||||
if($i%2==1 || $editor_count==($i+1)) echo '</div>';
|
||||
|
||||
}
|
||||
|
||||
$more_btn_style = 'style="display:none"';
|
||||
if($editor_count < $total_count) {
|
||||
$more_btn_style = 'style="display:block"';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<p style="text-align:center;">
|
||||
<button type="button" onclick="category_list_more();" class="btn btn-default br20" style="padding:8px 40px; font-size:16px;">더보기 <img src="/img/mobile/arr_down.gif" style="vertical-align:middle;">
|
||||
</button>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var swiper = new Swiper('.swiper-container', {
|
||||
slidesPerView: 4,
|
||||
spaceBetween: 0,
|
||||
initialSlide: 0
|
||||
});
|
||||
|
||||
|
||||
var page = 2;
|
||||
function category_list_more(){
|
||||
var form_data = {
|
||||
"sort" : "<?=$search_sort?>",
|
||||
"page" : page,
|
||||
"category_idx" : "<?=$category_idx?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/life/editor_list_more',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'HTML',
|
||||
data: form_data,
|
||||
success: function (rtnHtml) {
|
||||
if(rtnHtml=='') return false;
|
||||
var arrHtml = rtnHtml.split("|||||");
|
||||
if(arrHtml[0].trim()=='0000') {
|
||||
$("#editor_list").append(arrHtml[1]);
|
||||
if (arrHtml[3] == "N") {
|
||||
$("#editor_more_btn").hide();
|
||||
} else {
|
||||
$("#editor_more_btn").show();
|
||||
}
|
||||
page++;
|
||||
|
||||
} else {
|
||||
alert(arrHtml[1]);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('리스트 가져오기에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
111
application/views/m/life/channel.php
Executable file
111
application/views/m/life/channel.php
Executable file
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
$channel_name = $result['channel_name'];
|
||||
$channel_main_img = $result['main_img'];
|
||||
$channel_idx = $result['idx'];
|
||||
$category_idx = $result['category_idx'];
|
||||
$category_name = $result['category_name'];
|
||||
$channel_intro = $result['channel_intro'];
|
||||
$channel_icon = $result['channel_icon'];
|
||||
|
||||
$content_type = '3';
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<? include_once ('life_header_inc.php');?>
|
||||
|
||||
|
||||
|
||||
<div class="channel_cont">
|
||||
<div class="wrap" style="padding-top:10px;">
|
||||
<div class="channel_top">
|
||||
<span class="fl">전체글 수 <span class="beachblue"><?=number_format($total_count)?></span></span>
|
||||
<span class="fr">
|
||||
<button type="button" onclick="location.href='/m/life/channel/<?=$channel_idx?>?search_sort=1'" class="btn br10 <? if($search_sort=='1') { echo 'btn-default_bb'; } else { echo 'btn-default';}?> br20" >최신순</button>
|
||||
<button type="button" onclick="location.href='/m/life/channel/<?=$channel_idx?>?search_sort=2'" class="btn br10 <? if($search_sort=='2') { echo 'btn-default_bb'; } else { echo 'btn-default';}?> br20">인기순</button>
|
||||
</span>
|
||||
</div>
|
||||
<div class="channel_boxs" id="life_list" style="margin-bottom: 0 !important;">
|
||||
<?
|
||||
|
||||
$i = 1;
|
||||
foreach ($list as $val) {
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '90', '..', 'utf-8');
|
||||
|
||||
$channel_article_style = '';
|
||||
if($i == count($list)) {
|
||||
$channel_article_style= 'style="border-bottom:0 !important"';
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="channel_cont" style="padding-top:0">
|
||||
<span class="channel_photo"><a onclick="location.href='/m/life/life_view/<?=$val['idx']?>'" style="cursor:pointer"><img src="<?=$val['main_img']?>" class="art-img"></a></span>
|
||||
<p class="chtitle2">
|
||||
|
||||
<?if($val['head_title'] != ""):?>
|
||||
|
||||
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><span class="beachblue">[<?=$val['head_title']?>]</span> </a>
|
||||
<?endif?>
|
||||
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><?=$title_txt?></a></p>
|
||||
<p class="ch_txt"><img src="/img/mobile/haert.png"><span class="like"><?=number_format($val['like_count'])?></span><span class="chname pdl25"><a href="/m/life/editor/<?=$val['partner_idx']?>"><?=$val['editor_name']?></a></span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?}?>
|
||||
|
||||
</div>
|
||||
<p style="text-align:center;"><button type="button" class="btn btn-default br20" style="padding:8px 40px; font-size:16px; margin-top:20px;" onclick="channel_list_more();">더보기 <img src="/img/mobile/arr_down.gif" style="vertical-align:middle"></button></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var life_page = 2;
|
||||
function channel_list_more(){
|
||||
var form_data = {
|
||||
"sort" : "<?=$search_sort?>",
|
||||
"page" : life_page,
|
||||
"channel_idx" : "<?=$channel_idx?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/life/life_list_more',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'HTML',
|
||||
data: form_data,
|
||||
success: function (rtnHtml) {
|
||||
if(rtnHtml=='') return false;
|
||||
var arrHtml = rtnHtml.split("|||||");
|
||||
if(arrHtml[0].trim()=='0000') {
|
||||
|
||||
$("#life_list").append(arrHtml[1]);
|
||||
|
||||
if (arrHtml[3] == "N") {
|
||||
$("#life_more_btn").hide();
|
||||
} else {
|
||||
$("#life_more_btn").show();
|
||||
}
|
||||
life_page++;
|
||||
|
||||
} else {
|
||||
alert(arrHtml[1]);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('저장에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
132
application/views/m/life/channel_recommend.php
Executable file
132
application/views/m/life/channel_recommend.php
Executable file
@@ -0,0 +1,132 @@
|
||||
|
||||
|
||||
<?
|
||||
$page_title = "추천채널";
|
||||
$page_title_link = '#';
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
|
||||
<div class="channel_cont channel_cont_fixed">
|
||||
<div class="wrap">
|
||||
<div class="channel_top" style="text-align:center; margin-bottom:0 !important;">
|
||||
<button type="button" class="btn btn-default_bb br20"
|
||||
style="padding:10px 40px;font-size: 19px; font-weight: 200 !important;">추천채널
|
||||
</button>
|
||||
<button type="button" class="btn btn-default br20" onclick="location.href='/m/life/category'"
|
||||
style="padding:10px 40px;font-size: 19px; font-weight: 200 !important;">카테고리
|
||||
</button>
|
||||
</div>
|
||||
<div id="channel_list">
|
||||
<?
|
||||
$i = 1;
|
||||
$etc_section_count = count($arr_etc_section);
|
||||
$etc_section_page = ceil($etc_section_count / 3);
|
||||
|
||||
foreach ($arr_etc_section as $val1) {
|
||||
|
||||
$curr_page = ceil($i / 3);
|
||||
|
||||
$style = 'display:block;';
|
||||
if ($i > 3) $style = 'display:none;';
|
||||
|
||||
|
||||
$class = 'bgb3';
|
||||
if ($etc_section_count < 3 || $i % 3 == 0) {
|
||||
$style .= 'margin-bottom: 0 !important;';
|
||||
$class = '';
|
||||
}
|
||||
|
||||
$class .= ' channel_page' . $curr_page;
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="channel_boxs <?=$class?>" style="margin-top:10px;<?=$style?>">
|
||||
<div class="channel_detail_box">
|
||||
<div class="channel_detail fl">
|
||||
<div class="channel_profile">
|
||||
<div onclick="location.href='/m/life/channel/<?= $val1['channel_idx'] ?>'"
|
||||
style="cursor:pointer;border-radius: 50px;width:50px;height:50px;background:url('<?= $val1['channel_icon'] ?>') no-repeat center; background-size:cover;"></div>
|
||||
</div>
|
||||
<div style="padding-top:7px;"><a href="/m/life/channel/<?= $val1['channel_idx'] ?>"><span
|
||||
class="chinfo"><?= $val1['channel_name'] ?></span></a>
|
||||
<p><span class="beachblue"><?= number_format($val1['channel_article_count']) ?></span>
|
||||
stories</p></a></div>
|
||||
</div>
|
||||
<div class="fr" style="margin-top:15px !important; margin-right:10px;">
|
||||
<span class="delivery"><?= number_format($val1['delivery_count']) ?>명에게 배달중</span>
|
||||
<button type="button" class="btn btn-success br20"
|
||||
onclick="location.href='/m/life/channel/<?= $val1['channel_idx'] ?>'">더보기 <img
|
||||
src="/img/web/img_down.png" style="padding-top:8px;"></button>
|
||||
</div>
|
||||
</div>
|
||||
<? if (isset($arr_etc_section_detail[$val1['idx']]) == true) {
|
||||
foreach ($arr_etc_section_detail[$val1['idx']] as $j=>$val2) {
|
||||
if($j >2 )break;
|
||||
$head_title = '';
|
||||
if ($val2['head_title'] != '') $head_title = '<span class="beachblue">[' . $val2['head_title'] . ']</span> ';
|
||||
$title = $head_title . $val2['title'];
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '90', '..', 'utf-8');
|
||||
?>
|
||||
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/<?= $val2['content_idx'] ?>"><img src="<?= $val2['main_img'] ?>" class="art-img"></a>
|
||||
<p class="chtitle"><a href="/m/life/life_view/<?= $val2['content_idx'] ?>"><?= $title_txt ?></a>
|
||||
<a href="/m/life/editor/<?= $val2['partner_idx'] ?>"><?= $val2['editor_name'] ?></a></span></p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?
|
||||
$i++;
|
||||
|
||||
|
||||
}
|
||||
$more_btn_style = 'style="display:none;';
|
||||
if ($etc_section_count > 3) {
|
||||
$more_btn_style = 'style="display:block;"';
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<p style="text-align:center;" <?=$more_btn_style?> id="life_more_btn"><button onclick="channel_list_more();" type="button" class="btn btn-default br20" style="padding:8px 40px; font-size:16px; ">더보기 <img src="/img/mobile/arr_down.gif" style="padding-top:3px"> </button></p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
var channel_page = 2;
|
||||
|
||||
function channel_list_more() {
|
||||
$(".channel_page" + channel_page).show();
|
||||
|
||||
|
||||
if ("<?=$curr_page?>" == channel_page) {
|
||||
$("#life_more_btn").hide();
|
||||
} else {
|
||||
channel_page++;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
117
application/views/m/life/editor.php
Executable file
117
application/views/m/life/editor.php
Executable file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
$partner_idx = $result['idx'];
|
||||
$editor_name = $result['partner_name'];
|
||||
$editor_main_img = $result['main_img'];
|
||||
$editor_intro = $result['partner_intro'];
|
||||
$partner_img = $result['partner_img'];
|
||||
$category_idx = $result['category_idx'];
|
||||
$category_name = $result['category_name'];
|
||||
$channel_idx = $result['channel_idx'];
|
||||
$channel_name = $result['channel_name'];
|
||||
$sns_id1 = $result['sns_id1'];
|
||||
$sns_id2 = $result['sns_id2'];
|
||||
$sns_id3 = $result['sns_id3'];
|
||||
$sns_id4 = $result['sns_id4'];
|
||||
$sns_id5 = $result['sns_id5'];
|
||||
|
||||
|
||||
|
||||
|
||||
$content_type = '3';
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<? include_once ('life_header_inc.php');?>
|
||||
|
||||
<div class="channel_cont" style="padding-top:80px;">
|
||||
<div class="wrap">
|
||||
<div class="channel_top bgb3">
|
||||
<span class="fl art_no">전체글 수 <span class="beachblue"><?=number_format($total_count)?></span></span>
|
||||
<span class="fr art_bt">
|
||||
<button type="button" onclick="location.href='/m/life/editor/<?=$partner_idx?>?search_sort=1'" class="btn <? if($search_sort=='1') { echo 'btn-default_bb'; } else { echo 'btn-default';}?> br20" >최신순</button>
|
||||
<button type="button" onclick="location.href='/m/life/editor/<?=$partner_idx?>?search_sort=2'" class="btn <? if($search_sort=='2') { echo 'btn-default_bb'; } else { echo 'btn-default';}?> br20">인기순</button>
|
||||
</span>
|
||||
</div>
|
||||
<div id="life_list">
|
||||
<?
|
||||
$i = 1;
|
||||
$row_count = count($list);
|
||||
foreach ($list as $val) {
|
||||
$head_title = '';
|
||||
if($val['head_title'] != '') $head_title = '<span class="beachblue">['.$val['head_title'].']</span> ';
|
||||
$title = $head_title.$val['title'];
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '90', '..', 'utf-8');
|
||||
|
||||
|
||||
if($i%4==1) echo '<div class="channel_boxs" style="margin-bottom: 0 !important;">';
|
||||
|
||||
?>
|
||||
<div class="channel_con">
|
||||
<a onclick="location.href='/m/life/life_view/<?=$val['idx']?>'" ><img src="<?=$val['main_img']?>"> </a>
|
||||
<p class="chtitle" style="height:56px"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$title_txt?></a></p>
|
||||
</div>
|
||||
<?
|
||||
|
||||
if($i%4==0 || $row_count==$i) echo '</div>';
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
$life_more_btn_style = 'display:none;';
|
||||
if($total_count > $row_count) {
|
||||
$life_more_btn_style = 'display:inline-block;';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
<p style="text-align:center;"><button type="button" onclick="editor_list_more();" class="btn btn-default br20" style="padding:8px 40px; font-size:16px;<?=$life_more_btn_style?>">더보기 <img src="/img/mobile/arr_down.gif" style="vertical-align:middle;"> </button></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
var life_page = 2;
|
||||
function editor_list_more(){
|
||||
var form_data = {
|
||||
"sort" : "<?=$search_sort?>",
|
||||
"page" : life_page,
|
||||
"partner_idx" : "<?=$partner_idx?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/life/life_list_more',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'HTML',
|
||||
data: form_data,
|
||||
success: function (rtnHtml) {
|
||||
if(rtnHtml=='') return false;
|
||||
var arrHtml = rtnHtml.split("|||||");
|
||||
if(arrHtml[0].trim()=='0000') {
|
||||
$("#life_list").append(arrHtml[1]);
|
||||
|
||||
if (arrHtml[3] == "N") {
|
||||
$("#life_more_btn").hide();
|
||||
} else {
|
||||
$("#life_more_btn").show();
|
||||
}
|
||||
life_page++;
|
||||
|
||||
} else {
|
||||
alert(arrHtml[1]);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('저장에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
38
application/views/m/life/editor_life_list_more.php
Executable file
38
application/views/m/life/editor_life_list_more.php
Executable file
@@ -0,0 +1,38 @@
|
||||
<?
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
if(count($list) > 0) {
|
||||
|
||||
$i = 1;
|
||||
$row_count = count($list);
|
||||
foreach ($list as $val) {
|
||||
$head_title = '';
|
||||
if($val['head_title'] != '') $head_title = '<span class="beachblue">['.$val['head_title'].']</span> ';
|
||||
$title = $head_title.$val['title'];
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '90', '..', 'utf-8');
|
||||
|
||||
if($i%4==1) echo '<div class="channel_boxs" style="margin-bottom: 0 !important;">';
|
||||
|
||||
?>
|
||||
<div class="channel_con">
|
||||
<div class="art-img" onclick="location.href='/m/life/life_view/<?=$val['idx']?>'" style="border-top-left-radius: 5px;border-top-right-radius: 5px;cursor:pointer;width:309.39px;height:200.3px;background:url('<?=$val['main_img']?>') no-repeat center; background-size:cover;"></div>
|
||||
<p class="chtitle" style="height:56px"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$title_txt?></a></p>
|
||||
</div>
|
||||
<?
|
||||
|
||||
if($i%4==0 || $row_count==$i) echo '</div>';
|
||||
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
echo '|||||'.$total_count.'|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||글가져오기에 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
37
application/views/m/life/editor_list_more.php
Executable file
37
application/views/m/life/editor_list_more.php
Executable file
@@ -0,0 +1,37 @@
|
||||
<?
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
if(count($list) > 0) {
|
||||
$i=1;
|
||||
$editor_count = count($list);
|
||||
foreach ($list as $val) {
|
||||
if($i%4==1) echo '<div class="channel_boxs">';
|
||||
|
||||
?>
|
||||
<div class="bk_con" onclick="location.href='/m/life/editor/<?=$val['idx']?>'" style="cursor: pointer">
|
||||
<span class="shadow"></span>
|
||||
<div class="art-img" onclick="location.href='/m/life/editor/<?=$val['idx']?>'" style="border-radius: 5px;cursor:pointer;width:173px;height:246px;background:url('<?=$val['main_img']?>') no-repeat center; background-size:cover;"></div>
|
||||
<p class="chn_tit"><a href="/m/life/editor/<?=$val['idx']?>"><?=$val['partner_name']?></a></p>
|
||||
<p class="chn_bar"> <img src="/img/web/bg_bar.gif"></p>
|
||||
<p class="chn_reply"><span class="beachblue" style="font-size:18px;"><a href="/m/life/editor/<?=$val['idx']?>"><?=number_format($val['article_count'])?></a></span><span style="font-size:14px;"> 개 글</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
<?
|
||||
|
||||
if($i%4==0 || $editor_count==$i) echo '</div>';
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
echo '|||||'.$total_count.'|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||글가져오기에 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
251
application/views/m/life/index.php
Executable file
251
application/views/m/life/index.php
Executable file
@@ -0,0 +1,251 @@
|
||||
<?php
|
||||
$i = 1;
|
||||
$list1 = array();
|
||||
$list2 = array();
|
||||
$list3 = array();
|
||||
foreach($list as $val) {
|
||||
if($i%3 == 1) $list1[] = array('idx'=> $val['idx'], 'main_img' => $val['main_img'], 'sub_title'=> $val['sub_title'], 'title'=> $val['title'], 'hit_count'=> $val['hit_count'], 'comment_count'=> $val['comment_count']);
|
||||
if($i%3 == 2) $list2[] = array('idx'=> $val['idx'], 'main_img' => $val['main_img'], 'sub_title'=> $val['sub_title'], 'title'=> $val['title'], 'hit_count'=> $val['hit_count'], 'comment_count'=> $val['comment_count']);
|
||||
if($i%3 == 0) $list3[] = array('idx'=> $val['idx'], 'main_img' => $val['main_img'], 'sub_title'=> $val['sub_title'], 'title'=> $val['title'], 'hit_count'=> $val['hit_count'], 'comment_count'=> $val['comment_count']);
|
||||
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?=DIR_CSS?>/web/jquery-ui.custom.css" />
|
||||
<script src="<?=DIR_JS?>/jquery-ui.min.js"></script>
|
||||
<script src="<?=DIR_JS?>/jquery-ui.multidatespicker.js"></script>
|
||||
|
||||
|
||||
<div class="contents">
|
||||
<div class="wrap" style="background:0 !important">
|
||||
<div class="life_left">
|
||||
<div class="life_header">
|
||||
<form name="input_form" id="input_form" method="post" action="/m/life/">
|
||||
<input type="hidden" name="search_sort" id="search_sort" value="<?=$search_sort?>">
|
||||
<input type="hidden" name="search_date" id="search_date" value="<?=$search_date?>">
|
||||
<input type="hidden" name="search_popular" id="search_popular" value="<?=$search_popular?>">
|
||||
<span class="life_date"><a href="javascript:life_search('search_date', '<?=$prev_date?>')"><img src="/img/web/ico_date_prev.gif"></a> <?=$month_txt?> <a href="javascript:life_search('search_date', '<?=$next_date?>')"><img src="/img/web/ico_date_next.gif"></a></span>
|
||||
<span class="life_story">라이프 스토리 </span>
|
||||
<span class="btn btn-default br15" style="font-size:12px; background-color:#fff"><a href="javascript:life_search('search_date', '');">최근</a></span>
|
||||
|
||||
<span class="fr">
|
||||
<ul class="life_click2">
|
||||
<li><a href="javascript:life_search('search_sort', '1');" <? if($search_sort=='1') { echo 'class="current"';}?>>최신순</a></li>
|
||||
<li><a href="javascript:life_search('search_sort', '2');" <? if($search_sort=='2') { echo 'class="current"';}?>>인기순</a></li>
|
||||
</ul>
|
||||
</span>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<? if(count($list) == 0) {
|
||||
echo '<div style="height:100px;width:100%; margin-top:100px;text-align: center">등록된 글이 없습니다.</div>';
|
||||
|
||||
} else {
|
||||
?>
|
||||
|
||||
<div class="item_story" id="life_list">
|
||||
<ul class="list_story item_1" id="item_list1">
|
||||
<?
|
||||
if(count($list1) > 0) {
|
||||
$i = 1;
|
||||
foreach($list1 as $val) {
|
||||
$style = '';
|
||||
if($i > 3) {
|
||||
$style = 'style="display:none;"';
|
||||
}
|
||||
?>
|
||||
<li class="life_box item1_1" id="item_1_<?=$i?>" <?=$style?>>
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" width="226"></a>
|
||||
<p class="life_info"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['sub_title']?></a></p>
|
||||
<p class="life_title"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['title']?></a></p>
|
||||
<p class="life_click"><span>조회 <?=number_format($val['hit_count'])?></span> <span>댓글수 <?=number_format($val['comment_count'])?></span></p>
|
||||
</li>
|
||||
<? $i++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<ul class="list_story2 item_2" id="item_list2">
|
||||
|
||||
<?
|
||||
if(count($list2) > 0) {
|
||||
$i = 1;
|
||||
foreach($list2 as $val) {
|
||||
$style = '';
|
||||
if($i > 4) {
|
||||
$style = 'style="display:none;"';
|
||||
}
|
||||
|
||||
?>
|
||||
<li class="life_box2 item2_1" id="item_2_<?=$i?>" <?=$style?>>
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" width="226"></a>
|
||||
<p class="life_info"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['sub_title']?></a></p>
|
||||
<p class="life_title"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['title']?></a></p>
|
||||
<p class="life_click"><span>조회 <?=number_format($val['hit_count'])?></span> <span>댓글수 <?=number_format($val['comment_count'])?></span></p>
|
||||
</li>
|
||||
<?
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<ul class="list_story3 item_3" id="item_list3">
|
||||
<?
|
||||
if(count($list3) > 0) {
|
||||
$i = 1;
|
||||
foreach($list3 as $val) {
|
||||
$style = '';
|
||||
if($i > 3) {
|
||||
$style = 'style="display:none;"';
|
||||
}
|
||||
?>
|
||||
<li class="life_box3 item3_1" id="item_3_<?=$i?>" <?=$style?>>
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" width="226"></a>
|
||||
<p class="life_info"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['sub_title']?></a></p>
|
||||
<p class="life_title"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['title']?></a></p>
|
||||
<p class="life_click"><span>조회 <?=number_format($val['hit_count'])?></span> <span>댓글수 <?=number_format($val['comment_count'])?></span></p>
|
||||
</li>
|
||||
|
||||
<?
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div >
|
||||
<a href="javascript:life_list_more();">
|
||||
<div id="more_btn" class="btn btn-default btn_life">
|
||||
<span >더보기 <img src="/img/web/img_replyopen.gif"></span>
|
||||
</div></a>
|
||||
<? }?>
|
||||
</div>
|
||||
|
||||
<div class="life_right">
|
||||
<div class="lifestory">
|
||||
<div class="lifestory_title">
|
||||
라이프 STORY
|
||||
</div>
|
||||
<ul class="life_tab">
|
||||
<li <? if($search_popular == '1') { echo 'class="current"';}?>><a href="/m/life/?search_date=<?=$search_date?>&search_sort=<?=$search_sort?>&search_popular=1">인기채널</a></li>
|
||||
<li <? if($search_popular == '2') { echo 'class="current"';}?>><a href="/m/life/?search_date=<?=$search_date?>&search_sort=<?=$search_sort?>&search_popular=2">인기에디터</a></li>
|
||||
</ul>
|
||||
<ul class="lifestory_list">
|
||||
<? foreach ($arr_popular as $val) {
|
||||
if($search_popular == 1) {
|
||||
$list_idx = $val['idx'];
|
||||
$list_icon = $val['channel_icon'];
|
||||
$list_title = $val['channel_name'];
|
||||
$list_intro = $val['channel_intro'];
|
||||
$view_url = '/m/life/channel/'.$list_idx;
|
||||
} else {
|
||||
$list_idx = $val['idx'];
|
||||
$list_icon = $val['partner_img'];
|
||||
$list_title = $val['partner_name'];
|
||||
$list_intro = $val['partner_intro'];
|
||||
$view_url = '/m/life/editor/'.$list_idx;
|
||||
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?=$view_url?>"><img src="<?=$list_icon?>"></a>
|
||||
<p class="life_cate"><a href="<?=$view_url?>"><?=$list_title?></a></p>
|
||||
<p class="life_tit"><a href="<?=$view_url?>"><?=$list_intro?></a></p>
|
||||
</li>
|
||||
<? }?>
|
||||
|
||||
</ul>
|
||||
<div class="pagenumber">
|
||||
<?=$pagination?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div style="height:50px"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var list_height = $(".item_1").outerHeight(true);
|
||||
$('.item_story').css('height', list_height);
|
||||
|
||||
});
|
||||
|
||||
function life_search(id, val) {
|
||||
$("#"+id).val(val);
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
|
||||
var page = 2;
|
||||
function life_list_more() {
|
||||
var calc_count = parseInt("<?=$total_count?>") - (page * 10);
|
||||
var form_data = {
|
||||
"sort" : "<?=$search_sort?>",
|
||||
"page" : page,
|
||||
"start_date" : "<?=$start_date?>",
|
||||
"end_date" : "<?=$end_date?>",
|
||||
"type" : "main"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/life/life_list_more',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'HTML',
|
||||
data: form_data,
|
||||
success: function (rtnHtml) {
|
||||
if(rtnHtml=='') return false;
|
||||
var arrHtml = rtnHtml.split("|||||");
|
||||
if(arrHtml[0].trim()=='0000') {
|
||||
$("#item_list1").append(arrHtml[1]);
|
||||
$("#item_list2").append(arrHtml[2]);
|
||||
$("#item_list3").append(arrHtml[3]);
|
||||
|
||||
$(".item1_"+page).show();
|
||||
$(".item2_"+page).show();
|
||||
$(".item3_"+page).show();
|
||||
if (arrHtml[5] == "N") {
|
||||
$("#more_btn").hide();
|
||||
|
||||
var list_height = $(".item_1").outerHeight(true);
|
||||
var list_height2 = $(".item_2").outerHeight(true);
|
||||
var list_height3 = $(".item_3").outerHeight(true);
|
||||
if(list_height < list_height2) list_height = list_height2;
|
||||
if(list_height < list_height3) list_height = list_height3;
|
||||
|
||||
list_height = list_height + 200;
|
||||
} else {
|
||||
$("#more_btn").show();
|
||||
var list_height = $(".item_1").outerHeight(true);
|
||||
}
|
||||
$('.item_story').css('height', list_height);
|
||||
|
||||
page++;
|
||||
|
||||
} else {
|
||||
alert(arrHtml[1]);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
console.log(rtnHtml);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
35
application/views/m/life/life_comment.php
Executable file
35
application/views/m/life/life_comment.php
Executable file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
$title = $result['title'];
|
||||
$content = $result['content'];
|
||||
$main_img = $result['main_img'];
|
||||
$channel_main_img = $result['channel_main_img'];
|
||||
$editor_name = $result['editor_name'];
|
||||
$category_name = $result['category_name'];
|
||||
$channel_name = $result['channel_name'];
|
||||
$sub_title = $result['sub_title'];
|
||||
$hit_count = $result['hit_count'];
|
||||
$display_date = $result['display_date'];
|
||||
$partner_img = $result['partner_img'];
|
||||
$channel_idx = $result['channel_idx'];
|
||||
$partner_idx = $result['partner_idx'];
|
||||
$category_idx = $result['category_idx'];
|
||||
|
||||
$content_type = '3';
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<? include_once (APPPATH.'views/m/life/life_header_inc.php');?>
|
||||
<div class="reply" style="margin-top:60px;">
|
||||
<div class="reply_title">
|
||||
<h4 class="beachblue">댓글전체보기</h4>
|
||||
</div>
|
||||
<? require_once(APPPATH."views/m/common/comment_inc.php");?>
|
||||
</div>
|
||||
<script>
|
||||
change_comment_sort(2);
|
||||
</script>
|
||||
<? include_once (APPPATH.'views/m/life/life_footer_inc.php');?>
|
||||
|
||||
314
application/views/m/life/life_footer_inc.php
Executable file
314
application/views/m/life/life_footer_inc.php
Executable file
@@ -0,0 +1,314 @@
|
||||
<?
|
||||
$ci=& get_instance();
|
||||
|
||||
# 테마
|
||||
# theme_type = 13 (라이프스타일), theme_type = 14 (지금뜨는 라이프)
|
||||
$ci->load->model('web/m_theme');
|
||||
$req_data = array();
|
||||
$req_data['theme_types'] = array('13', '14');
|
||||
$arr_theme = $ci->m_theme->theme_join_vw_content_where_in_theme_type_list($req_data);
|
||||
|
||||
$arr_life_style = array();
|
||||
$arr_boomup_life = array();
|
||||
$i=1;$z=1;
|
||||
foreach ($arr_theme as $val) {
|
||||
if($val['theme_type'] == 13) {
|
||||
$arr_life_style[$val['rank']] = array('title' => $val['title'], 'sub_title'=> $val['sub_title'], 'sub_content' => $val['sub_content'], 'theme_img' => $val['theme_img'], 'content_idx' => $val['content_idx']);
|
||||
if($i>25) continue;
|
||||
}
|
||||
if($val['theme_type'] == 14) {
|
||||
$arr_boomup_life[$val['rank']] = array('title' => $val['title'], 'sub_content' => $val['sub_content'], 'theme_img' => $val['theme_img'], 'content_idx' => $val['content_idx']);
|
||||
if($i>12) continue;
|
||||
}
|
||||
$z++;
|
||||
$i++;
|
||||
}
|
||||
|
||||
|
||||
# 많이본 TOP5
|
||||
$req_data = array();
|
||||
$req_data['ranking_type'] = '1';
|
||||
$req_data['content_type'] = $content_type;
|
||||
$req_data['offset'] = 0;
|
||||
$req_data['limit'] = 5;
|
||||
$ci->load->model('web/m_ranking');
|
||||
$arr_ranking = $ci->m_ranking->ranking_join_life_list($req_data);
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="life_footer">
|
||||
|
||||
<div class="life_cont1">
|
||||
<h4>라이프 스타일</h4>
|
||||
<?
|
||||
$i=1;
|
||||
$life_style_count = count($arr_life_style);
|
||||
foreach ($arr_life_style as $val) {
|
||||
$display_style = 'display:block';
|
||||
$curr_page = '1';
|
||||
if($i > 4) {
|
||||
$display_style = 'display:none;';
|
||||
$curr_page='2';
|
||||
}
|
||||
if($i%4==1) echo '<ul class="life_cont1_box life_style_page'.$curr_page.'" style="'.$display_style.'">';
|
||||
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '55', '..', 'utf-8');
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<li>
|
||||
<a href='/m/life/life_view/<?=$val['content_idx']?>' ><img src="<?=$val['theme_img']?>" class="art-img"></a>
|
||||
<p class="life_title"><a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$title_txt?></a></p>
|
||||
</li>
|
||||
|
||||
|
||||
<?
|
||||
if($i%4==0 || $life_style_count == $i) echo '</ul>';
|
||||
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="channel_bottom2">
|
||||
<button type="button" class="btn btn-success br20" id="life_style_more_btn" onclick="life_style_more();">더보기 <img src="/img/web/img_down.png" style=padding-top:7px;></button>
|
||||
</div>
|
||||
<div class="life_cont2">
|
||||
<h4>지금 뜨는 라이프 </h4>
|
||||
|
||||
|
||||
|
||||
<?
|
||||
$i=1;
|
||||
$boomup_life_count = count($arr_boomup_life);
|
||||
foreach ($arr_boomup_life as $val) {
|
||||
$display_style = $i == 1 ? 'display:block' : 'display:none';
|
||||
$curr_page = '1';
|
||||
if($i >= 2) {
|
||||
$display_style = 'display:none;';
|
||||
$curr_page='2';
|
||||
}
|
||||
echo '<div class="life_cont2_box boomup_life_page'.$curr_page.'" style="'.$display_style.'">';
|
||||
|
||||
?>
|
||||
|
||||
<a href="/m/life/life_view/<?=$val['content_idx']?>">
|
||||
<span class="shadow"></span><a href="/m/life/life_view/<?=$val['content_idx']?>"><img src="<?=$val['theme_img']?>"></a><span class="photo_info2"><a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$val['title']?></a></a></span>
|
||||
|
||||
<?
|
||||
echo '</div>';
|
||||
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="channel_bottom2">
|
||||
<button type="button" class="btn btn-success br20" id="boomup_life_more_btn" onclick="boomup_life_more();">더보기 <img src="/img/web/img_down.png" style=padding-top:7px;></button>
|
||||
</div>
|
||||
|
||||
<? if(count($arr_ranking) > 0) {?>
|
||||
<div class="life_cont4" style="margin-top:30px;">
|
||||
<h4>많이 본 <span class="beachblue">TOP 5</span> </h4>
|
||||
<span class="a_left"><a href=""><img src="/img/mobile/editor_left.gif"></a></span>
|
||||
<div class="life_cont4_box responsive">
|
||||
<? foreach ($arr_ranking as $val) {?>
|
||||
<div class="tr_img">
|
||||
<a href="/m/life/life_view/<?=$val['content_idx']?>"><img src="<?=$val['main_img']?>" class="art-img"></a>
|
||||
<p class="tr_txt"><a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$val['title']?></a></p>
|
||||
</div>
|
||||
|
||||
<? }?>
|
||||
</div>
|
||||
<span class="a_right"><a href=""><img src="/img/mobile/editor_right.gif"></a></span>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<? }?>
|
||||
|
||||
|
||||
<div class="banner_grace">
|
||||
<!-- <a href="#"><img src="/img/mobile/banner_grace.jpg" alt="banner"></a> -->
|
||||
<!-- m크맵 _라이프_뷰 -->
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:720px;height:74px"
|
||||
data-ad-client="ca-pub-7071495522658800"
|
||||
data-ad-slot="5412203153"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
function life_style_more() {
|
||||
$(".life_style_page2").show();
|
||||
$("#life_style_more_btn").hide();
|
||||
}
|
||||
|
||||
function boomup_life_more() {
|
||||
$(".boomup_life_page2").show();
|
||||
$("#boomup_life_more_btn").hide();
|
||||
}
|
||||
|
||||
$('.share_btn').click(function(e) {
|
||||
$("#share_box").toggle();
|
||||
var popH = $(this).offset().top;
|
||||
$('.popup_share').css('left','50%');
|
||||
$('.popup_share').css('top',popH+'px');
|
||||
|
||||
});
|
||||
|
||||
$(".mask").on('click', function(event){
|
||||
$(event.target).parent().hide();
|
||||
|
||||
});
|
||||
|
||||
|
||||
function bookmark(){
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
var form_data = {
|
||||
"content_idx" : "<?=$idx?>",
|
||||
"content_type" : "<?=$content_type?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/bookmark_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
$("#bookmark_img").attr("src", "/img/web/star_"+rtnJson.data.bookmark_status+".png");
|
||||
color = rtnJson.data.bookmark_status == "on" ? "#fdbb00" : "gray";
|
||||
$("#bookmark_img").css("color",color);
|
||||
$("#share_box").hide();
|
||||
if(rtnJson.data.bookmark_status == 'off') {
|
||||
alert("북마크함에서 삭제 되었습니다");
|
||||
return false;
|
||||
} else {
|
||||
alert("북마크함에 추가 되었습니다");
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
alert("북마크에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('북마크에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function like_proc(){
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
var form_data = {
|
||||
"content_idx" : "<?=$idx?>",
|
||||
"content_type" : "<?=$content_type?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/like_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.result_code == "0000") {
|
||||
var like_count = setComma(rtnJson.result_data.like_count);
|
||||
$("#like_count").html('<img src="/img/mobile/img_heart.gif"> '+like_count);
|
||||
|
||||
} else {
|
||||
alert("저장에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('저장에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
|
||||
$('.responsive').slick({
|
||||
dots: false,
|
||||
infinite: true,
|
||||
speed: 300,
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 1024,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 600,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
|
||||
.life_cont4_box .tr_txt{text-align:center}
|
||||
.life_cont4 .tr_txt a{display:block;width:90%;margin:0 auto;}
|
||||
.life_cont4 .a_left, .life_cont4 .a_right{display:none}
|
||||
.life_cont4 {position:relative}
|
||||
.life_cont4 .life_cont4_box{float:none;margin:0 auto}
|
||||
.life_cont4 .slick-prev.slick-arrow{cursor:pointer;z-index:99;position:absolute;left:-5%;top:30%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4 .slick-next.slick-arrow{cursor:pointer;z-index:99;position:absolute;right:-5%;top:30%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4_box .tr_txt{padding-top:1rem}
|
||||
.life_cont4 .life_cont4_box div img{margin:0 5%;}
|
||||
@media screen and (max-width: 640px){
|
||||
.life_cont4 .slick-prev.slick-arrow{left:-5%;top:20%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:10px;background-size:100% auto }
|
||||
.life_cont4 .slick-next.slick-arrow{ right:-5%;top:20%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:10px;background-size:100% auto}
|
||||
}
|
||||
@media screen and (max-width: 400px){
|
||||
.life_cont4 .slick-prev.slick-arrow{top:10%;}
|
||||
.life_cont4 .slick-next.slick-arrow{top:10%;}
|
||||
}
|
||||
</style>
|
||||
204
application/views/m/life/life_header_inc.php
Executable file
204
application/views/m/life/life_header_inc.php
Executable file
@@ -0,0 +1,204 @@
|
||||
<?php
|
||||
$method = $this->uri->segment(3);
|
||||
|
||||
$content_type = '3';
|
||||
# session
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
|
||||
$logo_url = '/';
|
||||
if($method=='editor' || $method=='channel') {
|
||||
$logo_url = '/m/life/channel_recommend';
|
||||
}
|
||||
else if($bookmark_count > 0) {
|
||||
$bookmark_img = '/img/web/star_on.png';
|
||||
$bookmark_color = '#fdbb00';
|
||||
}
|
||||
$content_type = '3';
|
||||
|
||||
?>
|
||||
|
||||
<div class="mypage_top mypage_top_fixed bgb3">
|
||||
<div class="mypage_logo"><a href="/"><img src="/img/mobile/logo_cm.jpg" alt="logo"></a>
|
||||
</div>
|
||||
<div class="mypage_title" style="width: 100%;">
|
||||
<? if($method=='channel') {?>
|
||||
<a href="/m/life/channel/<?=$channel_idx?>"><span class="header_tit"><?=$channel_name?></span></a>
|
||||
<? } else {?>
|
||||
<span class="channel_title"><a href="/m/life/editor/<?=$partner_idx?>"><?=$editor_name?></a></span>
|
||||
<? }?>
|
||||
|
||||
</div>
|
||||
<div class="mypage_search" style="width: 150px; text-align: right;">
|
||||
<form name="search_form" id="search_form" method="get" action="/m/search/">
|
||||
<span><input type="text" class="inputer" id="search_keyword" name="search_keyword" value=""
|
||||
onkeyup="onkeyup_search_keyword(this.value);"><a href="javascript:search_form.submit();"><img
|
||||
src="/img/mobile/mypage_serch_icon.gif" alt="검색하기"></a></span>
|
||||
</form>
|
||||
</div>
|
||||
<div class="mypage_menu"><a href=""><img src="/img/mobile/menu_list.gif" alt="menu"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="channel_header channel_header_fixed">
|
||||
<div class="wrap_cover">
|
||||
|
||||
<?if($method!='editor' && $method !='channel') {?>
|
||||
<a href="#" class="bookmark" onclick="bookmark();" id="bookmark_img" style="color:<?=@$bookmark_color;?>;<?=($method=='life_comment') ? "display:none":""?>;z-index:99999">★</a>
|
||||
<?}?>
|
||||
<?
|
||||
$imgs = ($method=='editor') ? $editor_main_img : $channel_main_img;
|
||||
?>
|
||||
<div class="cover_image2" style="background:url(<?=$imgs?>)">
|
||||
</div>
|
||||
<div class="cover_inner">
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrap_channel">
|
||||
<? if($method=='channel') {
|
||||
$channel_delivery_btn = '/img/web/bt_delivery_off_white.png';
|
||||
if($channel_delivery_count > 0) {
|
||||
$channel_delivery_btn = '/img/web/bt_delivery_on_white.png';
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="cover_cell">
|
||||
<p class="chcate" style="margin-bottom:15px;"><span><a href="/m/life/category/<?=$category_idx?>"><?=$category_name?></a></span></p>
|
||||
<p><span class="chdate icon_home" style="padding-left:25px"><?=number_format($total_count)?> Stories</span></p>
|
||||
<div class="titlewrap">
|
||||
<span class="chtit"><a><img src="<?=$channel_icon?>" style="width:39px;height:39px;"><?=$channel_name?></a></span>
|
||||
</div>
|
||||
<p class="cheditor2"><a><?=$channel_intro?> </a></p>
|
||||
<p class="chtxt2"><?=number_format($channel_delivery_total_count)?>명에게 배달중</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="wrap_btn" style="position:absolute;right:0;bottom:-20px;right:10px">
|
||||
<a href="javascript:channel_delivery();"><img src="<?=$channel_delivery_btn?>" id="channel_delivery_btn"></a>
|
||||
</div>
|
||||
|
||||
|
||||
<? } else if ($method=='editor'){?>
|
||||
<div class="cover_cell">
|
||||
<p class="chcate" style="margin-bottom:15px;"><span><a href="/m/life/category/<?=$category_idx?>"><?=$category_name?></a> <img src="/img/mobile/bg5.gif" style="padding: 2px 5px 0 5px;"> <a href="/m/life/channel/<?=$channel_idx?>"><?=$channel_name?></a></span></p>
|
||||
<p><span class="chdate icon_home" style="padding-left:25px"><?=number_format($total_count)?> Stories</span></p>
|
||||
<div class="titlewrap">
|
||||
<span class="chtit"><a href="/m/life/editor/<?=$partner_idx?>"><?=$editor_name?></a></span>
|
||||
</div>
|
||||
<p class="cheditor2"><a ><?=$editor_intro?></a></p>
|
||||
</div>
|
||||
<div class="cover_profile">
|
||||
<a><img src="<?=$partner_img?>" style="width:50px;height:50px;"></a>
|
||||
</div>
|
||||
<div class="cover_social" style="border-bottom:1px solid #ebeef3; padding-bottom:10px; padding-top: 15px;">
|
||||
|
||||
<a href="/m/life/editor/<?=$partner_idx?>"><img src="/img/web/f_icon1.png" alt="" title=""></a>
|
||||
<? if($sns_id1!='') { ?><a href="https://www.facebook.com/<?=$sns_id1?>" target="_blank"><img src="/img/web/f_icon3.png"></a><? }?>
|
||||
<? if($sns_id2!='') { ?><a href="https://instagram.com/<?=$sns_id2?>" target="_blank"><img src="/img/web/f_icon2.png"></a><? }?>
|
||||
<? if($sns_id3!='') { ?><a href="https://band.us/band/<?=$sns_id3?>" target="_blank"><img src="/img/web/f_icon8.png"></a><? }?>
|
||||
<? if($sns_id4!='') { ?><a href="https://story.kakao.com/ch/<?=$sns_id4?>" target="_blank"><img src="/img/web/f_icon6.png"></a><? }?>
|
||||
<? if($sns_id5!='') { ?><a href="https://story.kakao.com/<?=$sns_id5?>" target="_blank"><img src="/img/web/f_icon7.png"></a><? }?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<? } else {?>
|
||||
<div class="cover_cell">
|
||||
<p class="chcate" style="margin-bottom:15px;"><span><a href=""><a href="/m/life/category/<?=$category_idx?>"><?=$category_name?></a></a> <img src="/img/mobile/bg5.gif" style="padding: 2px 5px 0 5px;">
|
||||
<a href="/m/life/channel/<?=$channel_idx?>"><?=$channel_name?></a></span></p>
|
||||
<div class="titlewrap">
|
||||
<span class="chtit"><?=@$title?></span>
|
||||
</div>
|
||||
|
||||
<? if(@$sub_title != '') {
|
||||
echo '<p class="chdate">';
|
||||
echo $sub_title.' <span style="padding:0 10px;">|</span>';
|
||||
echo '</p>';
|
||||
|
||||
} ?>
|
||||
<p class="chdate">조회 <?=@number_format($hit_count)?><span style="padding:0 10px;">|</span><?=substr(@$display_date, 0, 10)?> </p>
|
||||
<p class="cheditor" style="margin-top:10px;"><a onclick="location.href='/m/life/editor/<?=$partner_idx?>'" style="cursor:pointer"><?=$editor_name?></a></p>
|
||||
</div>
|
||||
<div class="cover_profile" style="margin-top:5px;">
|
||||
<a href="/m/life/editor/<?=$partner_idx?>"><img src="<?=$partner_img?>"></a>
|
||||
</div>
|
||||
<? }?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
// 레이어 이외의 공간 클릭시 close
|
||||
$(document).mouseup(function (e){
|
||||
var container = $("#life_search2");
|
||||
if( container.has(e.target).length === 0) container.hide();
|
||||
$("#life_search1").show();
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('.side_menu_btn').click(function(e) {
|
||||
var element = $(".channel_header");
|
||||
var doc_width = element.width();
|
||||
|
||||
$("#side_menu_layer").toggle();
|
||||
var popH = $(this).offset().top;
|
||||
$("#side_menu_layer").css('top','0px');
|
||||
$("#side_menu_layer").css('left',doc_width+'px');
|
||||
|
||||
});
|
||||
|
||||
|
||||
function search(){
|
||||
$("#search_form").submit();
|
||||
}
|
||||
|
||||
function search_show(){
|
||||
$("#life_search1").hide();
|
||||
$("#life_search2").show();
|
||||
$("#search_keyword").focus();
|
||||
}
|
||||
|
||||
function channel_delivery(){
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
var form_data = {
|
||||
"main_idx" : <?=$channel_idx?>,
|
||||
"content_type" : <?=$content_type?>
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/delivery_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
$("#channel_delivery_btn").attr("src","/img/web/bt_delivery_"+rtnJson.data+"_white.png");
|
||||
|
||||
} else {
|
||||
alert("저장에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('저장에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
44
application/views/m/life/life_list_more.php
Executable file
44
application/views/m/life/life_list_more.php
Executable file
@@ -0,0 +1,44 @@
|
||||
<?
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
if(count($list) > 0) {
|
||||
$i = 1;
|
||||
foreach ($list as $val) {
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '90', '..', 'utf-8');
|
||||
|
||||
$channel_article_style = '';
|
||||
if($i == count($list)) {
|
||||
$channel_article_style= 'style="border-bottom:0 !important"';
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="channel_cont" style="padding-top:0">
|
||||
<span class="channel_photo"><a onclick="location.href='/m/life/life_view/<?=$val['idx']?>'" style="cursor:pointer"><img src="<?=$val['main_img']?>" class="art-img"></a></span>
|
||||
<p class="chtitle2">
|
||||
|
||||
<?if($val['head_title'] != ""):?>
|
||||
|
||||
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><span class="beachblue">[<?=$val['head_title']?>]</span> </a>
|
||||
<?endif?>
|
||||
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><?=$title_txt?></a></p>
|
||||
<p class="ch_txt"><img src="/img/mobile/haert.png"><span class="like"><?=number_format($val['like_count'])?></span><span class="chname pdl25"><a href="/m/life/editor/<?=$val['partner_idx']?>"><?=$val['editor_name']?></a></span></p>
|
||||
</div>
|
||||
|
||||
<?
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo '|||||'.$total_count.'|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||글가져오기에 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
84
application/views/m/life/life_main_list_more.php
Executable file
84
application/views/m/life/life_main_list_more.php
Executable file
@@ -0,0 +1,84 @@
|
||||
<?
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
if(count($list) > 0) {
|
||||
$i = 1;
|
||||
$list1 = array();
|
||||
$list2 = array();
|
||||
$list3 = array();
|
||||
foreach($list as $val) {
|
||||
if($i%3 == 1) $list1[] = array('idx'=> $val['idx'], 'main_img' => $val['main_img'], 'sub_title'=> $val['sub_title'], 'title'=> $val['title'], 'hit_count'=> $val['hit_count'], 'comment_count'=> $val['comment_count']);
|
||||
if($i%3 == 2) $list2[] = array('idx'=> $val['idx'], 'main_img' => $val['main_img'], 'sub_title'=> $val['sub_title'], 'title'=> $val['title'], 'hit_count'=> $val['hit_count'], 'comment_count'=> $val['comment_count']);
|
||||
if($i%3 == 0) $list3[] = array('idx'=> $val['idx'], 'main_img' => $val['main_img'], 'sub_title'=> $val['sub_title'], 'title'=> $val['title'], 'hit_count'=> $val['hit_count'], 'comment_count'=> $val['comment_count']);
|
||||
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<?
|
||||
if(count($list1) > 0) {
|
||||
$i = 1;
|
||||
foreach($list1 as $val) {
|
||||
$style = 'style="display:none;"';
|
||||
|
||||
?>
|
||||
<li class="life_box item1_<?=$page?>" id="item_1_<?=$val['idx']?>" <?=$style?>>
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" width="226"></a>
|
||||
<p class="life_info"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['sub_title']?></a></p>
|
||||
<p class="life_title"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['title']?></a></p>
|
||||
<p class="life_click"><span>조회 <?=number_format($val['hit_count'])?></span> <span>댓글수 <?=number_format($val['comment_count'])?></span></p>
|
||||
</li>
|
||||
<? $i++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|||||
|
||||
<?
|
||||
if(count($list2) > 0) {
|
||||
$i = 1;
|
||||
foreach($list2 as $val) {
|
||||
$style = 'style="display:none;"';
|
||||
|
||||
|
||||
?>
|
||||
<li class="life_box2 item2_<?=$page?>" id="item_2_<?=$val['idx']?>" <?=$style?>>
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" width="226"></a>
|
||||
<p class="life_info"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['sub_title']?></a></p>
|
||||
<p class="life_title"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['title']?></a></p>
|
||||
<p class="life_click"><span>조회 <?=number_format($val['hit_count'])?></span> <span>댓글수 <?=number_format($val['comment_count'])?></span></p>
|
||||
</li>
|
||||
<?
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|||||
|
||||
<?
|
||||
if(count($list3) > 0) {
|
||||
$i = 1;
|
||||
foreach($list3 as $val) {
|
||||
$style = 'style="display:none;"';
|
||||
|
||||
?>
|
||||
<li class="life_box3 item3_<?=$page?>" id="item_3_<?=$val['idx']?>" <?=$style?>>
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" width="226"></a>
|
||||
<p class="life_info"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['sub_title']?></a></p>
|
||||
<p class="life_title"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['title']?></a></p>
|
||||
<p class="life_click"><span>조회 <?=number_format($val['hit_count'])?></span> <span>댓글수 <?=number_format($val['comment_count'])?></span></p>
|
||||
</li>
|
||||
<? }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
echo '|||||'.$total_count.'|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||글가져오기에 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
80
application/views/m/life/life_right_inc.php
Executable file
80
application/views/m/life/life_right_inc.php
Executable file
@@ -0,0 +1,80 @@
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="list_right">
|
||||
<div class="hotlife">
|
||||
<h4>지금 뜨는 라이프 <span style="float: right;"><a href="javascript:change_boomup_life_page(-1)"><img src="/img/web/img_section_left.jpg"></a><a href="javascript:change_boomup_life_page(1)"><img src="/img/web/img_section_right.jpg"></a></span></h4>
|
||||
<?
|
||||
$i=1;
|
||||
$boomup_life_count = count($arr_boomup_life);
|
||||
$boomup_life_page = $boomup_life_count;
|
||||
foreach ($arr_boomup_life as $key=>$val) {
|
||||
$curr_page = $i;
|
||||
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '38', '..', 'utf-8');
|
||||
$display_style = 'block';
|
||||
if($i > 1) $display_style = 'none';
|
||||
?>
|
||||
|
||||
<div class="i-cover boomup_life_page<?=$curr_page?>" style="display:<?=$display_style?>">
|
||||
<a href="/m/life/life_view/<?=$val['content_idx']?>"><span class="shadow"></span>
|
||||
<div style="width:269px; height:150px; background:url('<?=$val['theme_img']?>') no-repeat center; background-size:cover;"></div>
|
||||
<p class="bar"> <img src="/img/web/bg_bar.gif"></p>
|
||||
<p class="txt"><a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$title_txt?></a> </p>
|
||||
</div>
|
||||
<?
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<? if(count($arr_life_ranking) > 0) {?>
|
||||
<div class="top3">
|
||||
<h4>공감글 TOP3</h4>
|
||||
<? foreach ($arr_life_ranking as $val) {?>
|
||||
<div class="top3_box" onclick="location.href='/m/life/life_view/<?=$val['content_idx']?>'" style="cursor: pointer">
|
||||
<div class="art-img" style="width:108px; height:90px; background:url('<?=$val['main_img']?>') no-repeat center; background-size:cover;"></div>
|
||||
<div class="art-info">
|
||||
<div><a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$val['title']?></a></div>
|
||||
</div>
|
||||
</div>
|
||||
<? }?>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
<? if(count($arr_life_style) > 0) {?>
|
||||
<div class="lifestyle">
|
||||
<h4>라이프 스타일</h4>
|
||||
<? foreach ($arr_life_style as $val) {?>
|
||||
<div class="top3_box" onclick="location.href='/m/life/life_view/<?=$val['content_idx']?>'" style="cursor: pointer">
|
||||
<div class="art-img" style="width:108px; height:90px; background:url('<?=$val['theme_img']?>') no-repeat center; background-size:cover;"></div>
|
||||
<div class="art-info">
|
||||
<div><a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$val['title']?></a></div>
|
||||
</div>
|
||||
</div>
|
||||
<? }?>
|
||||
<? }?>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
var boomup_life_curr_page = 1;
|
||||
function change_boomup_life_page(page){
|
||||
var total_page = "<?=$boomup_life_page?>";
|
||||
var move_page = boomup_life_curr_page + page;
|
||||
if(move_page > 0 && total_page >= move_page) {
|
||||
$(".boomup_life_page"+move_page).show();
|
||||
$(".boomup_life_page"+boomup_life_curr_page).hide();
|
||||
boomup_life_curr_page = move_page;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
87
application/views/m/life/life_view.php
Executable file
87
application/views/m/life/life_view.php
Executable file
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
$arr_tag = explode(" ",$result['tag']);
|
||||
$arr_tag = array_filter(array_map('trim',$arr_tag));
|
||||
|
||||
$title = $result['title'];
|
||||
$content = $result['content'];
|
||||
$main_img = $result['main_img'];
|
||||
$channel_main_img = $result['channel_main_img'];
|
||||
$editor_name = $result['editor_name'];
|
||||
$category_name = $result['category_name'];
|
||||
$channel_name = $result['channel_name'];
|
||||
$sub_title = $result['sub_title'];
|
||||
$hit_count = $result['hit_count'];
|
||||
$display_date = $result['display_date'];
|
||||
$partner_img = $result['partner_img'];
|
||||
$channel_idx = $result['channel_idx'];
|
||||
$partner_idx = $result['partner_idx'];
|
||||
$category_idx = $result['category_idx'];
|
||||
$video_url = $result['video_url'];
|
||||
|
||||
|
||||
# session
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
|
||||
|
||||
$bookmark_img = '/img/web/star_off.png';
|
||||
$bookmark_color = 'gray';
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<? include_once (APPPATH.'views/m/life/life_header_inc.php');?>
|
||||
<div class="article_cont" style="margin-top:50px;">
|
||||
<div class="news_list">
|
||||
|
||||
<div class="view_article">
|
||||
<? if($video_url) { ?>
|
||||
<iframe src="<?=$video_url;?>" width="100%" height="240" frameborder="0"></iframe>
|
||||
<? } ?>
|
||||
<?=$content?>
|
||||
</div>
|
||||
<!-- <div class="middle_banners">-->
|
||||
<!-- <div class="mbleft">-->
|
||||
<!-- <a href=""><span class="shadow"></span>-->
|
||||
<!-- <img src="/img/mobile/mbleft.jpg" class="art-img"></a>-->
|
||||
<!-- <p class="chn_bar"> <img src="/img/mobile/bg_bar.gif"></p>-->
|
||||
<!-- <p class="card_main_title">이<span>전</span>글 </p>-->
|
||||
<!-- <p class="card_main_txt"><a href="">더운 여름, 감기 안 걸리는 방법 5가지 </a> </p>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="mbright">-->
|
||||
<!-- <a href=""><span class="shadow"></span>-->
|
||||
<!-- <a href=""><img src="/img/mobile/mbright.jpg" class="art-img"></a>-->
|
||||
<!-- <p class="chn_bar"> <img src="/img/mobile/bg_bar.gif"></p>-->
|
||||
<!-- <p class="card_main_title">다<span>음</span>글 </p>-->
|
||||
<!-- <p class="card_main_txt"><a href="">벽이 깊은 집 </a> </p>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="life_tags">
|
||||
<div class="cover_profile3">
|
||||
<a href="/m/life/editor/<?=$partner_idx?>"><img src="<?=$result['partner_img']?>"></a>
|
||||
</div>
|
||||
<? if(count($arr_tag)>0) { ?>
|
||||
<div class="tags">Tags
|
||||
<? foreach ($arr_tag as $key=>$val) {
|
||||
if($key>0) echo ', ';
|
||||
?>
|
||||
<span class="beachblue"><a href="/m/life/tag/<?=$val?>"><?=$val?></a></span>
|
||||
<? }?>
|
||||
</div>
|
||||
|
||||
<? }?>
|
||||
<div class="panel_btns">
|
||||
<span><a href="javascript:;" class="share_btn btn btn-default br10 "><img src="/img/mobile/img_upload2.gif"> </a></span>
|
||||
<span><a href="javascript:like_proc();" id="like_count" class="btn btn-default br10"><img src="/img/mobile/img_heart.gif"> <?=number_format($result['like_count'])?></a></span>
|
||||
</div>
|
||||
</div>
|
||||
<? require_once(APPPATH."views/m/common/comment_inc.php");?>
|
||||
|
||||
<? include_once (APPPATH.'views/m/life/life_footer_inc.php');?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<? require_once(APPPATH."views/web/comm/share_box_inc.php"); ?>
|
||||
393
application/views/m/life/main.php
Executable file
393
application/views/m/life/main.php
Executable file
@@ -0,0 +1,393 @@
|
||||
|
||||
<div class="news_cont2">
|
||||
<div class="cont_top">
|
||||
<div class="cont_top_img">
|
||||
<span class="shadow"></span>
|
||||
<a href="/m/life/life_view/<?=$arr_grace_bigone[1]['content_idx']?>">
|
||||
<img src="<?= thumb($arr_grace_bigone[1]['theme_img']) ?>">
|
||||
</a>
|
||||
</div>
|
||||
<p class="cont_top_txt2">
|
||||
<a href="/m/life/editor/<?=$arr_grace_bigone[1]['partner_idx']?>">
|
||||
<?= $arr_grace_bigone[1]['editor_name'] ?>
|
||||
</a>
|
||||
</p>
|
||||
<p class="chn_bar2">
|
||||
<img src="/img/mobile/bg_bar.gif">
|
||||
</p>
|
||||
<p class="cont_top_title4">
|
||||
<a href="/m/life/life_view/<?=$arr_grace_bigone[1]['content_idx']?>">
|
||||
<?= $arr_grace_bigone[1]['title'] ?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="news_lists">
|
||||
|
||||
<? for ($i = 1; $i <= 6; $i++):@$data = $arr_grace_middle[$i]; ?>
|
||||
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2<?=($data['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="/m/life/life_view/<?=$data['content_idx']?>">
|
||||
<img src="<?= thumb($data['theme_img']) ?>"
|
||||
onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'"
|
||||
class="art-img">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<a href="/m/life/life_view/<?=$data['content_idx']?>">
|
||||
<p class="art-info">
|
||||
<?= $data['sub_title']; ?>
|
||||
</p>
|
||||
</a>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/<?=$data['content_idx']?>">
|
||||
<span class="beachblue"><a href="/m/life/editor/<?=$data['partner_idx']?>" style="color:#2bbec6">[<?=$data['editor_name']?>]</a></span>
|
||||
<a href="/m/life/life_view/<?=$data['content_idx']?>"> <?= $data['title'] ?></a>
|
||||
</a>
|
||||
</h2>
|
||||
<p class="art-info">
|
||||
<?= $data['hit_count'] ?>명이 봤어요</p>
|
||||
</div>
|
||||
</div>
|
||||
<? endfor ?>
|
||||
|
||||
</div>
|
||||
<div class="channel_cont">
|
||||
<div class="wrap">
|
||||
<div class="channel_top">
|
||||
|
||||
<?$a = $ci->db->query("select * from (select a.*, b.category_name, c.channel_name, c.channel_icon, (select count(*) from partner where channel_idx=a.channel_idx) as editor_count, (select count(*) from life where channel_idx=a.channel_idx and is_del='N') as article_count, (select sum(hit_count) from life where channel_idx=a.channel_idx and is_del='N') as hit_count from life_etc_section as a join category as b on (a.category_idx = b.idx) join channel as c on (a.channel_idx = c.idx) where a.is_del='N' and b.is_del='N' and c.is_del='N' and a.etc_section_type = '2') as AA where is_del = 'N' order by AA.reg_date desc limit 0, 30")->result(); ?>
|
||||
<a href="/m/life/channel/<?=$a[0]->channel_idx?>">
|
||||
<span class="fl beachblue"><?=$a[0]->channel_name?></span>
|
||||
</a>
|
||||
<span class="fr">
|
||||
<a href="/m/life/channel/<?=$a[0]->channel_idx?>"><button type="button" class="btn btn-default br20">더보기</button></a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<? for ($i = 0; $i < 6; $i++) : @$data = $arr_random_chanel[$i]; ?>
|
||||
|
||||
<? if ($i % 2 == 0): ?><div class="channel_boxs" style="margin-bottom:0;"><? endif ?>
|
||||
<div class="channel_con2<?=($data['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="/m/life/life_view/<?=$data['content_idx']?>">
|
||||
<img src="<?= thumb($data['main_img']) ?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?=$data['content_idx']?>">
|
||||
<span class="beachblue"><? if ($data['head_title']) echo "[" . $data['head_title'] . "]"; ?></span> <?= $data['title']; ?>
|
||||
</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/<?=$data['partner_idx']?>">
|
||||
by <?= $data['editor_name'] ?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<? if ($i % 2 != 0): ?></div><? endif ?>
|
||||
<? endfor; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="channel_cont" style="background:#fff;">
|
||||
<div class="wrap">
|
||||
|
||||
<?
|
||||
$ci->db->select("*");
|
||||
$ci->db->from('vw_mid_editor');
|
||||
$res = $ci->db->get();
|
||||
$mid = $res->result_array();
|
||||
|
||||
$ci->db->select("*");
|
||||
$ci->db->from('life_etc_section_detail');
|
||||
$ci->db->where('etc_section_type', 4);
|
||||
$ci->db->where('is_del', 'N');
|
||||
$ci->db->order_by('life_etc_section_idx', 'asc');
|
||||
$ci->db->order_by('rank', 'asc');
|
||||
$res = $ci->db->get();
|
||||
|
||||
$tmp = $res->result_array();
|
||||
$detail = array();
|
||||
foreach ($tmp as $data) {
|
||||
$detail[$data['life_etc_section_idx']][] = $data;
|
||||
}
|
||||
|
||||
$detail = array_values($detail);
|
||||
|
||||
// var_dump($detail);
|
||||
|
||||
foreach ($mid as $key => $data):?>
|
||||
|
||||
|
||||
<div class="channel_boxs bgb3" style="margin-top:10px;">
|
||||
<div class="channel_detail_box">
|
||||
<div class="channel_detail fl">
|
||||
<a href="/m/life/editor/<?= $data['partner_idx'] ?>">
|
||||
<span class="channel_profile">
|
||||
<img src="<?= thumb($data['partner_img']) ?>" style="width:50px;height:50px;">
|
||||
</span>
|
||||
<div style="padding-top:15px;">
|
||||
<span class="chinfo"><?= $data['partner_name'] ?></span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="fr" style="margin-top:20px;">
|
||||
<p>
|
||||
<a href="/m/life/editor/<?= $data['partner_idx'] ?>">
|
||||
<span class="beachblue"
|
||||
style="font-size:13px;"><?= $data['article_count'] ?></span> stories</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?
|
||||
// var_dump($d);
|
||||
foreach ($detail[$key] as $d):
|
||||
|
||||
|
||||
?>
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/<?= $d['content_idx'] ?>">
|
||||
<img src="<?= thumb($d['main_img']) ?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?= $d['content_idx'] ?>"> <?= $d['title'] ?></a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<? endforeach; ?>
|
||||
</div>
|
||||
|
||||
<? endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cont_middle">
|
||||
<div class="cont_top_img">
|
||||
<span class="shadow"></span>
|
||||
|
||||
<a href="/m/life/editor/<?= $bigone_main['partner_idx'] ?>" class="img_profile">
|
||||
<?
|
||||
$ci->db->from("partner");
|
||||
$ci->db->where("idx=", $data['partner_idx']);
|
||||
$res = $ci->db->get();
|
||||
$res = $res->result_array();
|
||||
|
||||
?>
|
||||
<img src="<?= thumb($res[0]['main_img']) ?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="cover_profile2">
|
||||
<a href="/m/life/editor/<?= $bigone_main['partner_idx'] ?>">
|
||||
<img src="<?= thumb($bigone_main['partner_img']) ?>" style="width:50px;height:50px;">
|
||||
</a>
|
||||
</div>
|
||||
<div class="life_editor3">
|
||||
<a href="/m/life/editor/<?= $bigone_main['partner_idx'] ?>"> <?= $bigone_main['partner_name'] ?> </a>
|
||||
</div>
|
||||
<div class="life_editor2">
|
||||
<a href="/m/life/life_view/<?= $d['content_idx'] ?>"> <?= $bigone_main['partner_intro'] ?> </a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="channel_cont">
|
||||
<div class="wrap">
|
||||
|
||||
<? foreach ($arr_mid_bigone as $i => $data): ?>
|
||||
|
||||
<? if ($i % 2 == 0): ?>
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<? endif; ?>
|
||||
|
||||
<div class="channel_con2<?=($data['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<img src="<?= thumb($data['main_img']) ?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<span class="beachblue"><? if ($data['head_title']) echo "[" . $data['head_title'] . "]"; ?></span> <? echo (mb_strlen($data['title']) > 18) ? iconv_substr($data['title'], 0, 18, "utf-8") . "…" : $data['title']; ?></a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href=""><?= $data['hit_count'] ?>명이 봤어요</a>
|
||||
</p>
|
||||
</div>
|
||||
<? if ($i % 2 != 0): ?>
|
||||
</div>
|
||||
</div>
|
||||
<? endif ?>
|
||||
<? endforeach; ?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?
|
||||
|
||||
// $ci->load->model('admin/etc_section/m_life_etc_section');
|
||||
$req_data = array(
|
||||
|
||||
"search_type" => "",
|
||||
"search_keyword" => "",
|
||||
"search_category" => "",
|
||||
"search_etc_section_type" => "6",
|
||||
"sort_column" => "reg_date",
|
||||
"offset" => 0,
|
||||
"limit" => "1"
|
||||
|
||||
);
|
||||
$result = $ci->m_life_etc_section->life_editor_etc_section_list($req_data);
|
||||
?>
|
||||
<div class="life_cont4" style="margin-top:30px;">
|
||||
<h4 class="beachblue">
|
||||
<a href="/m/life/editor/<?=$result[0]['partner_idx']?>"><?=$result[0]['partner_name']?>
|
||||
<br>
|
||||
<span style="color:#818181; font-weight:normal; font-size:12px;">(읽을거리 <?=$result[0]['article_count']?>) </span>
|
||||
</a>
|
||||
</h4>
|
||||
<span class="a_left"><!--<a><img src="/img/mobile/editor_left.gif"></a>--></span>
|
||||
<div class="life_cont4_box responsive" style="width:86%;">
|
||||
|
||||
<?
|
||||
$result2 = $this->m_life_etc_section->life_etc_section_detail_list($result[0]['idx']);
|
||||
$arr_etc_section_detail_rank = array();
|
||||
foreach ($result2 as $val) {
|
||||
$arr_etc_section_detail_rank[$val['rank']] = array('idx'=>$val['idx'], 'main_img'=> $val['main_img'], 'head_title'=> $val['head_title'], 'title'=> $val['title'], 'content_idx'=> $val['content_idx'], 'hit_count'=>$val['hit_count'], 'editor_name'=>$val['editor_name'], 'video_url' => $val['video_url']);
|
||||
}
|
||||
|
||||
foreach($arr_etc_section_detail_rank as $data):
|
||||
?>
|
||||
<div class="tr_img<?=($data['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<img src="<?=thumb($data['main_img'])?>" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>"><?=$data['title']?></a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<?endforeach;?>
|
||||
|
||||
</div>
|
||||
<span class="a_right"><!--<a><img src="/img/mobile/editor_right.gif"></a>--></span>
|
||||
</div>
|
||||
<div class="news_lists">
|
||||
<?
|
||||
|
||||
// $ci->load->model('admin/etc_section/m_life_etc_section');
|
||||
$req_data = array(
|
||||
|
||||
"search_type" => "",
|
||||
"search_keyword" => "",
|
||||
"search_category" => "",
|
||||
"search_etc_section_type" => "3",
|
||||
"sort_column" => "reg_date",
|
||||
"offset" => 0,
|
||||
"limit" => "1"
|
||||
);
|
||||
$result = $ci->m_life_etc_section->life_etc_section_list($req_data);
|
||||
// $result1 = $this->m_life_etc_section->life_etc_section_select();
|
||||
$result2 = $this->m_life_etc_section->life_etc_section_detail_list($result[0]['idx']);
|
||||
|
||||
|
||||
$arr_etc_section_detail_rank = array();
|
||||
foreach ($result2 as $val) {
|
||||
$arr_etc_section_detail_rank[$val['rank']] = array('idx'=>$val['idx'], 'main_img'=> $val['main_img'], 'head_title'=> $val['head_title'], 'title'=> $val['title'], 'content_idx'=> $val['content_idx'], 'hit_count'=>$val['hit_count'], 'editor_name'=>$val['editor_name'],
|
||||
'partner_idx'=>$val['partner_idx'],
|
||||
'video_url' => $val['video_url']
|
||||
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<div class="news_lists_top" style="border-top:1px solid #64cacf; padding-top:20px;">
|
||||
<?$d = $ci->db->query("select * from (select a.*, b.category_name, c.channel_name, c.channel_icon, (select count(*) from partner where channel_idx=a.channel_idx) as editor_count, (select count(*) from life where channel_idx=a.channel_idx and is_del='N') as article_count, (select sum(hit_count) from life where channel_idx=a.channel_idx and is_del='N') as hit_count from life_etc_section as a join category as b on (a.category_idx = b.idx) join channel as c on (a.channel_idx = c.idx) where a.is_del='N' and b.is_del='N' and c.is_del='N' and a.etc_section_type = '3') as AA where 1 order by AA.reg_date desc limit 0, 30");
|
||||
$d= $d->result()[0];?>
|
||||
<span class="fl" >
|
||||
<a href="/m/life/channel/<?=$d->channel_idx?>">
|
||||
<?
|
||||
|
||||
echo $d->channel_name;
|
||||
?>
|
||||
|
||||
<span class="beachblue" style="padding-left: 10px;">인기베스트 5</span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<?
|
||||
foreach($arr_etc_section_detail_rank as $i=>$data):
|
||||
|
||||
?>
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2<?=($data['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<img src="<?=thumb($data['main_img'])?>" onerror="this.src='<?=$data['main_img']?>'">
|
||||
</a>
|
||||
</div>
|
||||
<div class="box_no"><?=$i?></div>
|
||||
<div class="art-info2">
|
||||
<p class="art-info">
|
||||
|
||||
<a href="/m/life/editor/<?= $data['partner_idx'] ?>"><?=$data['editor_name']?></a>
|
||||
</p>
|
||||
<h2 class="art-title">
|
||||
<?if($data['head_title'] != ''):?><a href="/m/life/life_view/<?= $data['content_idx'] ?>">[<?=$data['head_title']?>] </a><?endif?> <a href="/m/life/life_view/<?= $data['content_idx'] ?>"><?=$data['title']?></a>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<?endforeach?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <link rel="stylesheet" type="text/css" href="/css/slick.css" />
|
||||
<script type="text/javascript" src="/js/slick.js"></script>
|
||||
--><script>
|
||||
window.onload=function(){
|
||||
$('.responsive').slick({
|
||||
dots: false,
|
||||
infinite: true,
|
||||
speed: 300,
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 1024,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 600,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
/*.life_cont4 .a_left, .life_cont4 .a_right{display:none}*/
|
||||
.life_cont4 {position:relative}
|
||||
.life_cont4 .life_cont4_box{/*float:none;*/margin:0 auto}
|
||||
.life_cont4 .slick-prev.slick-arrow{cursor:pointer;z-index:99;position:absolute;left:-5%;top:30%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4 .slick-next.slick-arrow{cursor:pointer;z-index:99;position:absolute;right:-5%;top:30%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4_box .tr_txt{padding-top:1rem}
|
||||
.life_cont4 .life_cont4_box div img{margin:0 auto}
|
||||
@media screen and (max-width: 640px){
|
||||
.life_cont4 .slick-prev.slick-arrow{left:-5%;top:20%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:10px;background-size:100% auto }
|
||||
.life_cont4 .slick-next.slick-arrow{ right:-5%;top:20%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:10px;background-size:100% auto}
|
||||
}
|
||||
@media screen and (max-width: 400px){
|
||||
.life_cont4 .slick-prev.slick-arrow{top:10%;}
|
||||
.life_cont4 .slick-next.slick-arrow{top:10%;}
|
||||
}
|
||||
</style>
|
||||
724
application/views/m/life/main2.php
Executable file
724
application/views/m/life/main2.php
Executable file
@@ -0,0 +1,724 @@
|
||||
<?
|
||||
$page_title = $page_title_1;
|
||||
$page_title_link = '#';
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
|
||||
<div class="swiper-slide swiper-slide-active" data-hash="life" data-swiper-slide-index="1" style="width: 411px;">
|
||||
|
||||
<div class="news_cont2">
|
||||
<div class="cont_top" style="margin-top: 40px;">
|
||||
<div class="cont_top_img">
|
||||
<span class="shadow"></span>
|
||||
<a href="/m/life/life_view/582">
|
||||
<img src="/files/theme/2019/01/201_edccbd3030087df6905d95b9516084ac.jpg">
|
||||
</a>
|
||||
</div>
|
||||
<p class="cont_top_txt2">
|
||||
<a href="/m/life/editor/49">
|
||||
하늘바보
|
||||
</a>
|
||||
</p>
|
||||
<p class="chn_bar2">
|
||||
<img src="/img/mobile/bg_bar.gif">
|
||||
</p>
|
||||
<p class="cont_top_title4">
|
||||
<a href="/m/life/life_view/582">
|
||||
기도에 대한 18가지 명언
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="news_lists">
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2 plays_b">
|
||||
<a href="/m/life/life_view/581">
|
||||
<img src="/files/theme/2019/01/211_42ae986b7262927c982487ade8ca12dd.jpg" onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'" class="art-img">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<a href="/m/life/life_view/581">
|
||||
<p class="art-info">
|
||||
</p>
|
||||
</a>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/581">
|
||||
<span class="beachblue"></span></a><a href="/m/life/editor/46" style="color:#2bbec6">[은혜]</a>
|
||||
<a href="/m/life/life_view/581"> 소망의 눈이 열려야 합니다</a>
|
||||
</h2>
|
||||
<p class="art-info">
|
||||
642명이 봤어요</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2">
|
||||
<a href="/m/life/life_view/580">
|
||||
<img src="/files/theme/2019/01/212_438514cdde3cbcfaf1287401dfe2ca52.jpg" onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'" class="art-img">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<a href="/m/life/life_view/580">
|
||||
<p class="art-info">
|
||||
</p>
|
||||
</a>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/580">
|
||||
<span class="beachblue"></span></a><a href="/m/life/editor/3" style="color:#2bbec6">[하늘소]</a>
|
||||
<a href="/m/life/life_view/580"> 하늘보다 높으신 주님의 영광</a>
|
||||
|
||||
</h2>
|
||||
<p class="art-info">
|
||||
609명이 봤어요</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2">
|
||||
<a href="/m/life/life_view/587">
|
||||
<img src="/files/theme/2018/12/213_a90874ab14449095d9f5210bbe0511c8.jpg" onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'" class="art-img">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<a href="/m/life/life_view/587">
|
||||
<p class="art-info">
|
||||
</p>
|
||||
</a>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/587">
|
||||
<span class="beachblue"></span></a><a href="/m/life/editor/50" style="color:#2bbec6">[탕자 아버지]</a>
|
||||
<a href="/m/life/life_view/587"> 한 가지 놀이만 반복하는 우리 아이, 괜찮은 걸까요?</a>
|
||||
|
||||
</h2>
|
||||
<p class="art-info">
|
||||
503명이 봤어요</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2">
|
||||
<a href="/m/life/life_view/577">
|
||||
<img src="/files/theme/2019/01/214_c1a0c66a5f8886e39947b48bef29f46b.jpg" onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'" class="art-img">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<a href="/m/life/life_view/577">
|
||||
<p class="art-info">
|
||||
</p>
|
||||
</a>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/577">
|
||||
<span class="beachblue"></span></a><a href="/m/life/editor/69" style="color:#2bbec6">[주님 사랑]</a>
|
||||
<a href="/m/life/life_view/577"> 파키스탄, 크리스천 겨냥한 폭력사태 잇따라</a>
|
||||
|
||||
</h2>
|
||||
<p class="art-info">
|
||||
616명이 봤어요</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2">
|
||||
<a href="/m/life/life_view/576">
|
||||
<img src="/files/theme/2018/11/215_8f1fac94d6134bd944c31df398227118.jpg" onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'" class="art-img">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<a href="/m/life/life_view/576">
|
||||
<p class="art-info">
|
||||
</p>
|
||||
</a>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/576">
|
||||
<span class="beachblue"></span></a><a href="/m/life/editor/6" style="color:#2bbec6">[하늘시인]</a>
|
||||
<a href="/m/life/life_view/576"> 기도밖에 드릴 게 없습니다</a>
|
||||
|
||||
</h2>
|
||||
<p class="art-info">
|
||||
643명이 봤어요</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2">
|
||||
<a href="/m/life/life_view/575">
|
||||
<img src="/files/theme/2019/01/216_d8b0042d8d9f233616a549d4710ab845.jpg" onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'" class="art-img">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<a href="/m/life/life_view/575">
|
||||
<p class="art-info">
|
||||
</p>
|
||||
</a>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/575">
|
||||
<span class="beachblue"></span></a><a href="/m/life/editor/67" style="color:#2bbec6">[은혜의 감동]</a>
|
||||
<a href="/m/life/life_view/575"> 인생의 흥망성쇠를 쥐고 계신 하나님께 드리는 기도</a>
|
||||
|
||||
</h2>
|
||||
<p class="art-info">
|
||||
744명이 봤어요</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="channel_cont">
|
||||
<div class="wrap">
|
||||
<div class="channel_top">
|
||||
|
||||
<a href="/m/life/channel/1">
|
||||
<span class="fl beachblue">찬양의 향기</span>
|
||||
</a>
|
||||
<span class="fr">
|
||||
<a href="/m/life/channel/1"><button type="button" class="btn btn-default br20">더보기</button></a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_boxs" style="margin-bottom:0;"> <div class="channel_con2 plays_b">
|
||||
<a href="/m/life/life_view/410">
|
||||
<img src="/files/etc_section/2018/08/21_1e35a2b8317815758f480c91ed392fe1.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/410">
|
||||
<span class="beachblue">[a]</span> 당신께 하나님의 사랑으로(축복교제) </a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/1">
|
||||
by 오여정 </a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_con2 plays_b">
|
||||
<a href="/m/life/life_view/401">
|
||||
<img src="/files/etc_section/2018/08/22_b1491bc659ead1a67a414b0c731cccd1.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/401">
|
||||
<span class="beachblue">[a]</span> [찬양모음] 십자가 앞에 선 나를 봅니다 </a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/1">
|
||||
by 오여정 </a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="channel_boxs" style="margin-bottom:0;"> <div class="channel_con2">
|
||||
<a href="/m/life/life_view/377">
|
||||
<img src="/files/etc_section/2018/08/23_508214f152156a3c8953da8c18bdc977.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/377">
|
||||
<span class="beachblue">[본향을 향하여]</span> 아름다운 본향 천국 바라보며 </a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/21">
|
||||
by 아침을 여는 기도 </a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_con2 plays_b">
|
||||
<a href="/m/life/life_view/142">
|
||||
<img src="/files/etc_section/2018/08/24_349944b7660e42ecf33a0c4e27e747fa.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/142">
|
||||
<span class="beachblue">[기분 업]</span> 기분이 울적할 때 듣기 좋은 찬양 </a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/1">
|
||||
by 오여정 </a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="channel_boxs" style="margin-bottom:0;"> <div class="channel_con2 plays_b">
|
||||
<a href="/m/life/life_view/284">
|
||||
<img src="/files/etc_section/2018/08/25_9061ec7ffca31cf7e90eb8c1a2915502.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/284">
|
||||
<span class="beachblue">[test]</span> 십자가를 묵상하며 part 1 </a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/1">
|
||||
by 오여정 </a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_con2 plays_b">
|
||||
<a href="/m/life/life_view/401">
|
||||
<img src="/files/etc_section/2018/08/26_b1491bc659ead1a67a414b0c731cccd1.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/401">
|
||||
<span class="beachblue"></span> [찬양모음] 십자가 앞에 선 나를 봅니다 </a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/1">
|
||||
by 오여정 </a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div> </div>
|
||||
</div>
|
||||
<div class="channel_cont" style="background:#fff;">
|
||||
<div class="wrap">
|
||||
|
||||
|
||||
|
||||
<div class="channel_boxs bgb3" style="margin-top:10px;">
|
||||
<div class="channel_detail_box">
|
||||
<div class="channel_detail fl">
|
||||
<a href="/m/life/editor/2">
|
||||
<span class="channel_profile">
|
||||
<img src="/files/partner/2018/05/6ffa83ec29e03a9e48577def38b40778.png" style="width:50px;height:50px;">
|
||||
</span>
|
||||
<div style="padding-top:15px;">
|
||||
<span class="chinfo">숨은진주</span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="fr" style="margin-top:20px;">
|
||||
<p>
|
||||
<a href="/m/life/editor/2">
|
||||
<span class="beachblue" style="font-size:13px;">1</span> stories</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/410">
|
||||
<img src="/files/etc_section/2018/08/41_1e35a2b8317815758f480c91ed392fe1.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/410"> 당신께 하나님의 사랑으로(축복교제)</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/316">
|
||||
<img src="/files/etc_section/2018/08/412_2b953d0e94cd4188e85c3576e27e66ea.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/316"> 믿음의 확신이 생기지 않는다면</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="channel_boxs bgb3" style="margin-top:10px;">
|
||||
<div class="channel_detail_box">
|
||||
<div class="channel_detail fl">
|
||||
<a href="/m/life/editor/5">
|
||||
<span class="channel_profile">
|
||||
<img src="/files/partner/2018/05/e70d2eb99fe9c6abee52226b078b9024.png" style="width:50px;height:50px;">
|
||||
</span>
|
||||
<div style="padding-top:15px;">
|
||||
<span class="chinfo">주님찬양해</span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="fr" style="margin-top:20px;">
|
||||
<p>
|
||||
<a href="/m/life/editor/5">
|
||||
<span class="beachblue" style="font-size:13px;">7</span> stories</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/356">
|
||||
<img src="/files/etc_section/2018/08/421_ebd86221d99c3973667b5201e92bafd4.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/356"> 풍성한 사랑이 흘러가서</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/299">
|
||||
<img src="/files/etc_section/2018/08/422_d5aa021914a21feacc2188cf416c6bd0.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/299"> 가슴 벅차 심장이 쿵쿵</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cont_middle">
|
||||
<div class="cont_top_img">
|
||||
<span class="shadow"></span>
|
||||
|
||||
<a href="/m/life/editor/8" class="img_profile">
|
||||
<img src="/files/editor/2018/05/946247d4c2435e17f1e9a289f41a3a13.jpg">
|
||||
</a>
|
||||
</div>
|
||||
<div class="cover_profile2">
|
||||
<a href="/m/life/editor/8">
|
||||
<img src="/files/partner/2018/05/570d7ba7b4b40acbd9595ba2d896dbf9.png" style="width:50px;height:50px;">
|
||||
</a>
|
||||
</div>
|
||||
<div class="life_editor3">
|
||||
<a href="/m/life/editor/8"> Lizzy </a>
|
||||
</div>
|
||||
<div class="life_editor2">
|
||||
<a href="/m/life/life_view/299"> 영어 어렵지 않아요~ </a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="channel_cont">
|
||||
<div class="wrap">
|
||||
|
||||
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/378">
|
||||
<img src="/files/etc_section/2018/08/51_6df1cd341b50b6086753035644183c61.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/378">
|
||||
<span class="beachblue">[주님과 함께]</span> 괴로우나 즐거우나</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="">2111명이 봤어요</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/183">
|
||||
<img src="/files/etc_section/2018/08/52_f60b156a67fb56d7ade8bd701806e0eb.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/183">
|
||||
<span class="beachblue">[콘티나눔]</span> 어버이 주일 예배 찬양 콘티 나눔</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="">1152명이 봤어요</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/357">
|
||||
<img src="/files/etc_section/2018/08/53_7600839f97e593efa0450728c25e8daa.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/357">
|
||||
<span class="beachblue">[성령 하나님]</span> 성령의 사귐이 모두와 함께</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="">551명이 봤어요</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/308">
|
||||
<img src="/files/etc_section/2018/08/54_7acd022979d8ec0ee8856231d9a81d5e.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/308">
|
||||
<span class="beachblue">[내가 주인 삼은]</span> 주일예배 찬양 콘티 나눔</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="">5916명이 봤어요</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/392">
|
||||
<img src="/files/etc_section/2018/08/55_73a5c3dc440632af9457cfc5f5c39a7c.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/392">
|
||||
<span class="beachblue">[세상의 기준]</span> BC와 AD의 의미는 뭘까?</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="">2010명이 봤어요</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/281">
|
||||
<img src="/files/etc_section/2018/08/56_dbde1b3c98442362aeeb4dc9008fca72.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/281">
|
||||
<span class="beachblue">[기도의 능력]</span> 다른 기도보다 ‘효과적인’ 기도에…</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="">1187명이 봤어요</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="life_cont4" style="margin-top:30px;">
|
||||
<h4 class="beachblue">
|
||||
<a href="/m/life/editor/24">해외통신 <br>
|
||||
<span style="color:#818181; font-weight:normal; font-size:12px;">(읽을거리 27) </span>
|
||||
</a>
|
||||
</h4>
|
||||
<span class="a_left"><!--<a><img src="/img/mobile/editor_left.gif"></a>--></span>
|
||||
<div class="life_cont4_box responsive slick-initialized slick-slider" style="width:86%;"><button type="button" data-role="none" class="slick-prev slick-arrow" aria-label="Previous" role="button" style="display: block;">Previous</button>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div aria-live="polite" class="slick-list draggable"><div class="slick-track" role="listbox" style="opacity: 1; width: 1070px; left: -321px;"><div class="tr_img slick-slide slick-cloned" tabindex="-1" role="option" aria-describedby="slick-slide01" style="width: 107px;" data-slick-index="-3" aria-hidden="true">
|
||||
<a href="/m/life/life_view/235" tabindex="-1">
|
||||
<img src="/files/etc_section/2018/08/612_0606ed3d34052293a1f66ec79878f19f.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/235" tabindex="-1">지도자들의 일반적 3가지 맹점</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-cloned" tabindex="-1" role="option" aria-describedby="slick-slide02" style="width: 107px;" data-slick-index="-2" aria-hidden="true">
|
||||
<a href="/m/life/life_view/589" tabindex="-1">
|
||||
<img src="/files/etc_section/2018/12/63_5a3dc2eff40a49cb0d1dd03bebbc8249.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/589" tabindex="-1">이번 크리스마스에 기독교인이 되는 방법 10가지</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-cloned" tabindex="-1" role="option" aria-describedby="slick-slide03" style="width: 107px;" data-slick-index="-1" aria-hidden="true">
|
||||
<a href="/m/life/life_view/566" tabindex="-1">
|
||||
<img src="/files/etc_section/2018/12/64_065fe3a91e1b2136ed3463a9589070b9.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/566" tabindex="-1">예수 그리스도</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-current slick-active" tabindex="-1" role="option" aria-describedby="slick-slide00" style="width: 107px;" data-slick-index="0" aria-hidden="false">
|
||||
<a href="/m/life/life_view/338" tabindex="0">
|
||||
<img src="/files/etc_section/2018/08/611_1a82315d576b74da43cf5b28f37644ad.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/338" tabindex="0">아무도 도와줄 수 없는 7가지 유형의 사람들</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-active" tabindex="-1" role="option" aria-describedby="slick-slide01" style="width: 107px;" data-slick-index="1" aria-hidden="false">
|
||||
<a href="/m/life/life_view/235" tabindex="0">
|
||||
<img src="/files/etc_section/2018/08/612_0606ed3d34052293a1f66ec79878f19f.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/235" tabindex="0">지도자들의 일반적 3가지 맹점</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-active" tabindex="-1" role="option" aria-describedby="slick-slide02" style="width: 107px;" data-slick-index="2" aria-hidden="false">
|
||||
<a href="/m/life/life_view/589" tabindex="0">
|
||||
<img src="/files/etc_section/2018/12/63_5a3dc2eff40a49cb0d1dd03bebbc8249.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/589" tabindex="0">이번 크리스마스에 기독교인이 되는 방법 10가지</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide" tabindex="-1" role="option" aria-describedby="slick-slide03" style="width: 107px;" data-slick-index="3" aria-hidden="true">
|
||||
<a href="/m/life/life_view/566" tabindex="-1">
|
||||
<img src="/files/etc_section/2018/12/64_065fe3a91e1b2136ed3463a9589070b9.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/566" tabindex="-1">예수 그리스도</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-cloned" tabindex="-1" role="option" aria-describedby="slick-slide00" style="width: 107px;" data-slick-index="4" aria-hidden="true">
|
||||
<a href="/m/life/life_view/338" tabindex="-1">
|
||||
<img src="/files/etc_section/2018/08/611_1a82315d576b74da43cf5b28f37644ad.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/338" tabindex="-1">아무도 도와줄 수 없는 7가지 유형의 사람들</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-cloned" tabindex="-1" role="option" aria-describedby="slick-slide01" style="width: 107px;" data-slick-index="5" aria-hidden="true">
|
||||
<a href="/m/life/life_view/235" tabindex="-1">
|
||||
<img src="/files/etc_section/2018/08/612_0606ed3d34052293a1f66ec79878f19f.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/235" tabindex="-1">지도자들의 일반적 3가지 맹점</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-cloned" tabindex="-1" role="option" aria-describedby="slick-slide02" style="width: 107px;" data-slick-index="6" aria-hidden="true">
|
||||
<a href="/m/life/life_view/589" tabindex="-1">
|
||||
<img src="/files/etc_section/2018/12/63_5a3dc2eff40a49cb0d1dd03bebbc8249.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/589" tabindex="-1">이번 크리스마스에 기독교인이 되는 방법 10가지</a>
|
||||
</p>
|
||||
</div></div></div><button type="button" data-role="none" class="slick-next slick-arrow" aria-label="Next" role="button" style="display: block;">Next</button></div>
|
||||
<span class="a_right"><!--<a><img src="/img/mobile/editor_right.gif"></a>--></span>
|
||||
</div>
|
||||
<div class="news_lists">
|
||||
|
||||
|
||||
|
||||
<div class="news_lists_top" style="border-top:1px solid #64cacf; padding-top:20px;">
|
||||
<span class="fl">
|
||||
<a href="/m/life/channel/1">
|
||||
찬양의 향기
|
||||
<span class="beachblue" style="padding-left: 10px;">인기베스트 5</span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2 plays_b">
|
||||
<a href="/m/life/life_view/284">
|
||||
<img src="/files/etc_section/2018/06/111_9061ec7ffca31cf7e90eb8c1a2915502.jpg" onerror="this.src='/files/etc_section/2018/06/111_9061ec7ffca31cf7e90eb8c1a2915502.jpg'">
|
||||
</a>
|
||||
</div>
|
||||
<div class="box_no">1</div>
|
||||
<div class="art-info2">
|
||||
<p class="art-info">
|
||||
|
||||
<a href="/m/life/editor/1">오여정</a>
|
||||
</p>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/284">십자가를 묵상하며 part 1</a>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2 plays_b">
|
||||
<a href="/m/life/life_view/236">
|
||||
<img src="/files/etc_section/2018/06/112_84dcc68dc6897b7e688fd9c4933eae7e.jpg" onerror="this.src='/files/etc_section/2018/06/112_84dcc68dc6897b7e688fd9c4933eae7e.jpg'">
|
||||
</a>
|
||||
</div>
|
||||
<div class="box_no">2</div>
|
||||
<div class="art-info2">
|
||||
<p class="art-info">
|
||||
|
||||
<a href="/m/life/editor/61">찬양영상</a>
|
||||
</p>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/236">[좋아요b] </a> <a href="/m/life/life_view/236">들으면 들을수록 좋은 찬양</a>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2 plays_b">
|
||||
<a href="/m/life/life_view/142">
|
||||
<img src="/files/etc_section/2018/06/113_349944b7660e42ecf33a0c4e27e747fa.jpg" onerror="this.src='/files/etc_section/2018/06/113_349944b7660e42ecf33a0c4e27e747fa.jpg'">
|
||||
</a>
|
||||
</div>
|
||||
<div class="box_no">3</div>
|
||||
<div class="art-info2">
|
||||
<p class="art-info">
|
||||
|
||||
<a href="/m/life/editor/1">오여정</a>
|
||||
</p>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/142">[기분 업] </a> <a href="/m/life/life_view/142">기분이 울적할 때 듣기 좋은 찬양</a>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2 plays_b">
|
||||
<a href="/m/life/life_view/238">
|
||||
<img src="/files/etc_section/2018/09/314_24cf32deadbafb07898ff1a707154b4d.jpg" onerror="this.src='/files/etc_section/2018/09/314_24cf32deadbafb07898ff1a707154b4d.jpg'">
|
||||
</a>
|
||||
</div>
|
||||
<div class="box_no">4</div>
|
||||
<div class="art-info2">
|
||||
<p class="art-info">
|
||||
|
||||
<a href="/m/life/editor/1">오여정</a>
|
||||
</p>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/238">주님 만나는 기도 시간에 들으면 좋은 찬양</a>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2">
|
||||
<a href="/m/life/life_view/336">
|
||||
<img src="/files/etc_section/2018/09/35_02cc1c9f4555e6349717797d068996f1.jpg" onerror="this.src='/files/etc_section/2018/09/35_02cc1c9f4555e6349717797d068996f1.jpg'">
|
||||
</a>
|
||||
</div>
|
||||
<div class="box_no">5</div>
|
||||
<div class="art-info2">
|
||||
<p class="art-info">
|
||||
|
||||
<a href="/m/life/editor/24">해외통신</a>
|
||||
</p>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/336">불신자들에게 그리스도의 사랑을 전할 수 있는 12가지 방법</a>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <link rel="stylesheet" type="text/css" href="/css/slick.css" />
|
||||
<script type="text/javascript" src="/js/slick.js"></script>
|
||||
--><script>
|
||||
window.onload=function(){
|
||||
$('.responsive').slick({
|
||||
dots: false,
|
||||
infinite: true,
|
||||
speed: 300,
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 1024,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 600,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
/*.life_cont4 .a_left, .life_cont4 .a_right{display:none}*/
|
||||
.life_cont4 {position:relative}
|
||||
.life_cont4 .life_cont4_box{/*float:none;*/margin:0 auto}
|
||||
.life_cont4 .slick-prev.slick-arrow{cursor:pointer;z-index:99;position:absolute;left:-5%;top:30%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4 .slick-next.slick-arrow{cursor:pointer;z-index:99;position:absolute;right:-5%;top:30%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4_box .tr_txt{padding-top:1rem}
|
||||
.life_cont4 .life_cont4_box div img{margin:0 auto}
|
||||
@media screen and (max-width: 640px){
|
||||
.life_cont4 .slick-prev.slick-arrow{left:-5%;top:20%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:10px;background-size:100% auto }
|
||||
.life_cont4 .slick-next.slick-arrow{ right:-5%;top:20%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:10px;background-size:100% auto}
|
||||
}
|
||||
@media screen and (max-width: 400px){
|
||||
.life_cont4 .slick-prev.slick-arrow{top:10%;}
|
||||
.life_cont4 .slick-next.slick-arrow{top:10%;}
|
||||
}
|
||||
</style>
|
||||
</div>
|
||||
272
application/views/m/life/main3.php
Executable file
272
application/views/m/life/main3.php
Executable file
@@ -0,0 +1,272 @@
|
||||
<?
|
||||
$page_title = $page_title_1;
|
||||
$page_title_link = '#';
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
<div class="swiper-slide swiper-slide-active" data-hash="life" data-swiper-slide-index="1" style="width: 100%;">
|
||||
<div class="news_cont2">
|
||||
<div class="cont_top" style="margin-top: 40px;">
|
||||
<div class="cont_top_img">
|
||||
<span class="shadow"></span>
|
||||
<a href="/m/life/life_view/<?=$arr_daily_cutie[1]['content_idx']?>">
|
||||
<img src="<?=$arr_daily_cutie[1]['theme_img']?>">
|
||||
</a>
|
||||
</div>
|
||||
<p class="cont_top_txt2">
|
||||
<a href="/m/life/editor/72">
|
||||
데일리 큐티
|
||||
</a>
|
||||
</p>
|
||||
<p class="chn_bar2">
|
||||
<img src="/img/mobile/bg_bar.gif">
|
||||
</p>
|
||||
<p class="cont_top_title4">
|
||||
<a href="/m/life/life_view/<?=$arr_daily_cutie[1]['content_idx']?>">
|
||||
<?=$arr_daily_cutie[1]['title']?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="life_cont4" style="background: #f8f8f8;">
|
||||
<h4 class="beachblue">
|
||||
<a href="">추천채널
|
||||
<br>
|
||||
<?/*<!-- <span style="color:#818181; font-weight:normal; font-size:12px;">(읽을거리 <$arr_channel[0]['article_count']?>) </span> -->*/?>
|
||||
</a>
|
||||
</h4>
|
||||
<span class="a_left"><!--<a><img src="/img/mobile/editor_left.gif"></a>--></span>
|
||||
<div class="life_cont4_box responsive" style="width:86%;">
|
||||
<?foreach($arr_channel as $val):?>
|
||||
<div class="tr_img">
|
||||
<a href="/m/life/channel/<?=$val['idx']?>">
|
||||
<img src="<?=thumb($val['channel_icon'])?>" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/channel/<?=$val['idx']?>"><?=$val['channel_name']?></a>
|
||||
</p>
|
||||
</div>
|
||||
<?endforeach;?>
|
||||
</div>
|
||||
<span class="a_right"><!--<a><img src="/img/mobile/editor_right.gif"></a>--></span>
|
||||
</div>
|
||||
|
||||
<div class="channel_cont">
|
||||
<div class="wrap">
|
||||
<div class="channel_top">
|
||||
<a href="/m/life/channel/<?=$arr_book['idx']?>">
|
||||
<span class="fl beachblue"><?=$arr_book['channel_name']?></span>
|
||||
</a>
|
||||
<span class="fr">
|
||||
<a href="/m/life/channel/<?=$arr_book['idx']?>"><button type="button" class="btn btn-default br20">더보기</button></a>
|
||||
</span>
|
||||
</div>
|
||||
<?for($i=0 ; $i<6; $i++):@$data = $arr_book['data'][$i]?>
|
||||
<?if($i%2==0){?><div class="channel_boxs" style="margin-bottom:0;"><?}?>
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>">
|
||||
<img src="<?=$data['main_img']?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>">
|
||||
<span class="beachblue"></span><?=$data['title']?></a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/<?=$data['partner_idx']?>">by <?=$data['editor_name']?></a>
|
||||
</p>
|
||||
</div>
|
||||
<?if($i%2==1){?></div><?}?>
|
||||
<?endfor?>
|
||||
</div>
|
||||
<div class="wrap">
|
||||
<div class="channel_top">
|
||||
<a href="/m/life/channel/<?=$arr_card['idx']?>">
|
||||
<span class="fl beachblue"><?=$arr_card['channel_name']?></span>
|
||||
</a>
|
||||
<span class="fr">
|
||||
<a href="/m/life/channel/<?=$arr_card['idx']?>"><button type="button" class="btn btn-default br20">더보기</button></a>
|
||||
</span>
|
||||
</div>
|
||||
<?for($i=0 ; $i<4; $i++):@$data = $arr_card['data'][$i]?>
|
||||
<?if($i%2==0){?><div class="channel_boxs" style="margin-bottom:0;"><?}?>
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>">
|
||||
<img src="<?=$data['main_img']?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>">
|
||||
<span class="beachblue"></span><?=$data['title']?></a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/<?=$data['partner_idx']?>">by <?=$data['editor_name']?></a>
|
||||
</p>
|
||||
</div>
|
||||
<?if($i%2==1){?></div><?}?>
|
||||
<?endfor?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="channel_cont" style="background:#fff;">
|
||||
<div class="wrap">
|
||||
<div class="channel_boxs bgb3" style="margin-top:10px;">
|
||||
<div class="channel_detail_box">
|
||||
<div class="channel_detail fl">
|
||||
<a href="/m/life/channel/<?=$arr_en['idx']?>">
|
||||
<span class="channel_profile">
|
||||
<img src="<?=$arr_en['channel_icon']?>" style="width:50px;height:50px;">
|
||||
</span>
|
||||
<div style="padding-top:15px;">
|
||||
<span class="chinfo"><?=$arr_en['channel_name']?></span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="fr" style="margin-top:20px;">
|
||||
<p><a href="/m/life/channel/<?=$arr_en['idx']?>">
|
||||
<span class="beachblue" style="font-size:13px;"><?=$arr_en['channel_article_count']?></span> stories
|
||||
</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<?for($i=0; $i<2; $i++):@$data = $arr_en['data'][$i]?>
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>">
|
||||
<img src="<?=$data['main_img']?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>"><?=$data['title']?></a>
|
||||
</p>
|
||||
</div>
|
||||
<?endfor?>
|
||||
</div>
|
||||
|
||||
<div class="channel_boxs bgb3" style="margin-top:10px;">
|
||||
<div class="channel_detail_box">
|
||||
<div class="channel_detail fl">
|
||||
<a href="/m/life/channel/<?=$arr_knowledge['idx']?>">
|
||||
<span class="channel_profile">
|
||||
<img src="<?=$arr_knowledge['channel_icon']?>" style="width:50px;height:50px;">
|
||||
</span>
|
||||
<div style="padding-top:15px;">
|
||||
<span class="chinfo"><?=$arr_knowledge['channel_name']?></span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="fr" style="margin-top:20px;">
|
||||
<p><a href="/m/life/channel/<?=$arr_knowledge['idx']?>">
|
||||
<span class="beachblue" style="font-size:13px;"><?=$arr_knowledge['channel_article_count']?></span> stories
|
||||
</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<?for($i=0; $i<2; $i++):@$data = $arr_knowledge['data'][$i]?>
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>">
|
||||
<img src="<?=$data['main_img']?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>"><?=$data['title']?></a>
|
||||
</p>
|
||||
</div>
|
||||
<?endfor?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cont_middle">
|
||||
<div class="cont_top_img">
|
||||
<span class="shadow"></span>
|
||||
<a href="/m/life/channel/<?=$arr_post['idx']?>" class="img_profile">
|
||||
<img src="<?=$arr_post['main_img']?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="cover_profile2">
|
||||
<a href="/m/life/channel/<?=$arr_post['idx']?>">
|
||||
<img src="<?=$arr_post['channel_icon']?>" style="width:50px;height:50px;">
|
||||
</a>
|
||||
</div>
|
||||
<div class="life_editor3">
|
||||
<a href="/m/life/editor/8"> <?=$arr_post['channel_name']?> </a>
|
||||
</div>
|
||||
<div class="life_editor2">
|
||||
<a href="/m/life/channel/<?=$arr_post['idx']?>"> <?=$arr_post['channel_intro']?> </a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="channel_cont">
|
||||
<div class="wrap">
|
||||
<?for($i=0;$i<4;$i++):@$data=$arr_poem['data'][$i]?>
|
||||
<?if($i%2==0){?>
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<?}?>
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>">
|
||||
<img src="<?=$data['main_img']?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/><?=$data['idx']?>">
|
||||
<span class="beachblue"></span> <?=$data['title']?>
|
||||
</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/<?=$data['partner_idx']?>">by <?=$data['editor_name']?></a>
|
||||
</p>
|
||||
</div>
|
||||
<?if($i%2==1){?>
|
||||
</div>
|
||||
</div>
|
||||
<?}?>
|
||||
<?endfor?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <link rel="stylesheet" type="text/css" href="/css/slick.css" />
|
||||
<script type="text/javascript" src="/js/slick.js"></script>
|
||||
--><script>
|
||||
window.onload=function(){
|
||||
$('.responsive').slick({
|
||||
dots: false,
|
||||
infinite: true,
|
||||
speed: 300,
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 1024,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 600,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
/*.life_cont4 .a_left, .life_cont4 .a_right{display:none}*/
|
||||
.life_cont4 {position:relative}
|
||||
.life_cont4 .life_cont4_box{/*float:none;*/margin:0 auto}
|
||||
.life_cont4 .slick-prev.slick-arrow{cursor:pointer;z-index:99;position:absolute;left:-5%;top:30%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4 .slick-next.slick-arrow{cursor:pointer;z-index:99;position:absolute;right:-5%;top:30%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4_box .tr_txt{padding-top:1rem}
|
||||
.life_cont4 .life_cont4_box div img{margin:0 auto}
|
||||
@media screen and (max-width: 640px){
|
||||
.life_cont4 .slick-prev.slick-arrow{left:-5%;top:20%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:10px;background-size:100% auto }
|
||||
.life_cont4 .slick-next.slick-arrow{ right:-5%;top:20%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:10px;background-size:100% auto}
|
||||
}
|
||||
@media screen and (max-width: 400px){
|
||||
.life_cont4 .slick-prev.slick-arrow{top:10%;}
|
||||
.life_cont4 .slick-next.slick-arrow{top:10%;}
|
||||
}
|
||||
</style>
|
||||
</div>
|
||||
92
application/views/m/life/ranking.php
Executable file
92
application/views/m/life/ranking.php
Executable file
@@ -0,0 +1,92 @@
|
||||
<?
|
||||
$now_date = date("Y.m.d");
|
||||
?>
|
||||
|
||||
<div class="contents">
|
||||
<div class="wrap">
|
||||
<div class="list_left">
|
||||
<div class="news_list">
|
||||
<div class="rankynews">
|
||||
<div class="rankytop">
|
||||
<span class="ranky_tit">인기 라이프</span>
|
||||
<span class="ranky_date"><span class="btn-default_bb" style="margin-right:10px;">오늘</span> <?=$now_date?></span>
|
||||
</div>
|
||||
<ul class="rankylist">
|
||||
<li><a href="/m/life/ranking" <? if($ranking_type=='1') { echo 'class="current"'; }?>>많이본</a></li>
|
||||
<li><a href="/m/life/ranking?ranking_type=2" <? if($ranking_type=='2') { echo 'class="current"'; }?>>댓글많은 </a></li>
|
||||
<li><a href="/m/life/ranking?ranking_type=3" <? if($ranking_type=='3') { echo 'class="current"'; }?>>공감많은</a> </li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<?
|
||||
if(count($list) == 0) {
|
||||
echo '<div style="width: 100%; padding-left:40%">등록된 내용이 없습니다.</div>';
|
||||
|
||||
} else {
|
||||
|
||||
foreach ($list as $val) {
|
||||
|
||||
if($ranking_type=='1') {
|
||||
$ranking_view_txt = '조회 '.number_format($val['hit_count']);
|
||||
} else if($ranking_type=='2') {
|
||||
$comment_count = $val['comment_count'];
|
||||
$comment_count_txt = $comment_count;
|
||||
if($comment_count > 9) {
|
||||
$calc_count = str_pad(1, strlen($comment_count), "0", STR_PAD_RIGHT);
|
||||
$comment_count_txt = (floor($comment_count/$calc_count)) * $calc_count;
|
||||
$comment_count_txt = $comment_count_txt.'+';
|
||||
}
|
||||
$ranking_view_txt = '<img src="/img/web/img_comment.png"> '.$comment_count_txt;
|
||||
} else if($ranking_type=='3') {
|
||||
$ranking_view_txt = '<img src="/img/web/img_heart.gif"> '.number_format($val['like_count']);
|
||||
}
|
||||
|
||||
$ranking_css ='art-info';
|
||||
$title_length = '40';
|
||||
$content_length = '250';
|
||||
if($val['rank'] < 3) {
|
||||
$ranking_css ='art-info';
|
||||
$title_length = '40';
|
||||
$content_length = '250';
|
||||
}
|
||||
$title_txt = mb_strimwidth($val['title'], '0', $title_length, '..', 'utf-8');
|
||||
$content = preg_replace("(\<(/?[^\>]+)\>)", "", $val['content']);
|
||||
$content_txt = mb_strimwidth(strip_tags($content), '0', $content_length, '..', 'utf-8');
|
||||
|
||||
|
||||
?>
|
||||
<div class="news_list_cont">
|
||||
<div class="list_no beachblue"><?=$val['rank']?></div>
|
||||
<div class="<?=$ranking_css?>">
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$title_txt?></a>
|
||||
<span class="origin"> | <a href="/m/life/editor/<?=$val['partner_idx']?>"><?=$val['editor_name']?></a></span>
|
||||
<span class="comment fr"> <?=$ranking_view_txt?></span>
|
||||
</h2>
|
||||
<p class="art-sum"><a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$content_txt?></a> </p>
|
||||
</div>
|
||||
<div class="art-img"><a href="/m/life/life_view/<?=$val['content_idx']?>"><img src="<?=$val['main_img']?>" width="160"></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
<? }
|
||||
|
||||
}?>
|
||||
|
||||
|
||||
</div>
|
||||
<? if($pagination !='') {?>
|
||||
<div class="pagenumber">
|
||||
<?=$pagination?>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<? include_once ('life_right_inc.php');?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
156
application/views/m/life/tag.php
Executable file
156
application/views/m/life/tag.php
Executable file
@@ -0,0 +1,156 @@
|
||||
<?php
|
||||
$tag_delivery_btn = '/img/web/bt_delivery_off_gray.png';
|
||||
if($tag_delivery_count > 0) {
|
||||
$tag_delivery_btn = '/img/web/bt_delivery_on_gray.png';
|
||||
}
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
?>
|
||||
|
||||
|
||||
<?
|
||||
$page_title = '#태그모음';
|
||||
$page_title_link = '#';
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
|
||||
|
||||
|
||||
<div class="channel_contents4 channel_contents4_fixed">
|
||||
<div class="wrap">
|
||||
<div style="text-align:center;">
|
||||
<p class="c_title" >#<?=$tag?> <span style="padding-top:1px;"><a href="javascript:tag_delivery();"><img src="<?=$tag_delivery_btn?>" id="tag_delivery_btn"></a></span></p>
|
||||
<p style="padding-bottom:20px;"><span><?=number_format($total_count)?>개의 글이 있어요</span></p>
|
||||
|
||||
</div>
|
||||
<div class="channel_top" style="text-align:center;">
|
||||
|
||||
<? foreach ($arr_relation_tag as $val) {?>
|
||||
<button type="button" class="btn btn-default_bb br20" onclick="location.href='/m/life/tag/<?=$val['tag']?>'" style="padding:10px 40px;"><?=$val['tag']?></button>
|
||||
<? }?>
|
||||
</div>
|
||||
<? $i=1;
|
||||
$tag_count = count($list);
|
||||
if($tag_count == 0) echo '<div style="height:100px; text-align:center; padding-top:30px">등록된 태그가 없습니다.</div>';
|
||||
foreach ($list as $val) {
|
||||
|
||||
$head_title = '';
|
||||
if($val['head_title'] != '') $head_title = '<span class="beachblue">['.$val['head_title'].']</span> ';
|
||||
$title = $head_title.$val['title'];
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '80', '..', 'utf-8');
|
||||
|
||||
?>
|
||||
|
||||
<div class="channel_boxs" style="margin-top:20px;">
|
||||
<div class="channel_con3">
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" class="art-img"></a>
|
||||
<p class="chtitle">
|
||||
|
||||
|
||||
|
||||
<!-- <a href="/m/life/editor/--><?//=$val['partner_idx']?><!--">--><?//=$val['editor_name']?><!--</a>-->
|
||||
<span class="c_name"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$title_txt?></a></span>
|
||||
<span class="checkno fr">조회 <?=number_format($val['hit_count'])?> </span></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?
|
||||
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?
|
||||
$more_btn_style = 'style="display:none"';
|
||||
if($tag_count < $total_count) {
|
||||
$more_btn_style = 'style="display:block"';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="channel_bottom2" <?=$more_btn_style?>>
|
||||
<button type="button" class="btn btn-success br10" onclick="tag_list_more();">더보기 <img src="/img/mobile/img_down.png" style="padding-top:7px;"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var page = 2;
|
||||
function tag_list_more(){
|
||||
var form_data = {
|
||||
"page" : page,
|
||||
"tag" : "<?=$tag?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/life/tag_list_more',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'HTML',
|
||||
data: form_data,
|
||||
success: function (rtnHtml) {
|
||||
if(rtnHtml=='') return false;
|
||||
var arrHtml = rtnHtml.split("|||||");
|
||||
if(arrHtml[0].trim()=='0000') {
|
||||
$(".wrap").append(arrHtml[1]);
|
||||
if (arrHtml[3] == "N") {
|
||||
$("#tag_more_btn").hide();
|
||||
} else {
|
||||
$("#tag_more_btn").show();
|
||||
}
|
||||
page++;
|
||||
|
||||
} else {
|
||||
alert(arrHtml[1]);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('데이터 가져오기에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function tag_delivery(){
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
var form_data = {
|
||||
"main_idx" : '<?=$tag?>',
|
||||
"content_type" : '9'
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/delivery_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
$("#tag_delivery_btn").attr("src","/img/web/bt_delivery_"+rtnJson.data+"_gray.png");
|
||||
|
||||
} else {
|
||||
alert("저장에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('저장에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
38
application/views/m/life/tag_list_more.php
Executable file
38
application/views/m/life/tag_list_more.php
Executable file
@@ -0,0 +1,38 @@
|
||||
<?
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
if(count($list) > 0) {
|
||||
$i=1;
|
||||
$tag_count = count($list);
|
||||
foreach ($list as $val) {
|
||||
|
||||
$head_title = '';
|
||||
if($val['head_title'] != '') $head_title = '<span class="beachblue">['.$val['head_title'].']</span> ';
|
||||
$title = $head_title.$val['title'];
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '80', '..', 'utf-8');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="channel_boxs" style="margin-top:20px;">
|
||||
<div class="channel_con3">
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" class="art-img"></a>
|
||||
<p class="chtitle"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$title_txt?></a><span class="c_name"><a href="/m/life/editor/<?=$val['partner_idx']?>"><?=$val['editor_name']?></a></span><span class="checkno fr">조회 <?=number_format($val['hit_count'])?> </span></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
echo '|||||'.$total_count.'|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||글가져오기에 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user