<?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"); ?>
