<div class="swiper-slide" data-hash="grace">
	<div class="news_cont2">
		<div class="grace_top">
			<? for ($i = 1; $i <= 5; $i++):$data = $arr_headline_news[$i] ?>
				<h2 class="art-title">
					<a href="/m/news/news_view/<?= $data['content_idx'] ?>">
						<? //echo (mb_strlen($data['title']) > 25) ? iconv_substr($data['title'], 0, 25, "utf-8") . "…" : $data['title']; ?>
						<? echo $data['title']; ?>
					</a>
				</h2>
			<? endfor; ?>
		</div>
		<? include_once(APPPATH . "/views/m/common/realtime.php"); ?>
		<div class="grace_cont">
			<div class="wrap">
				<div class="grace_boxs">
					<? for ($i = 1; $i <= 2; $i++): @$data = $arr_grace_top[$i]; ?>
						<div class="grace_con<?=($data['video_url']) ? " plays_b" : ""; ?>">
							<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
								<img src="<?= thumb($data['theme_img']) ?>" class="art-img"
									 onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'">
							</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']) > 30) ? iconv_substr($data['title'], 0, 30, "utf-8") . "…" : $data['title']; ?>
								</a>
							</p>
						</div>
					<? endfor ?>
				</div>
			</div>
		</div>

		<div class="banner_grace" style="margin-bottom:0px;">
			<!-- <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>

		<? include_once(APPPATH . "views/m/common/weather.php"); ?>
		<div class="news_lists">
			<h4>
				<span class="beachblue">라이프</span>
				<span><a href="javascript:swiper1.slideTo(2);$('.news_nav > span').removeClass('current');$('.news_nav > span').eq(1).addClass('current')"
						 class="btn btn-default br20 fr beachblue more">더보기</a></span>
			</h4>
			<? for ($i = 1; $i <= 3; $i++): @$data = $arr_grace_life[$i]; ?>
				<div class="news_list_cont" style="margin-bottom:0">
					<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'">
						</a>
					</div>
					<div class="art-info2">
						<a href="/m/life/editor/<?= $data['partner_idx'] ?>">
							<p class="art-info">
								<?= $data['editor_name'] ?>
							</p>
						</a>
						<h2 class="art-title">
							<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
								<? echo (mb_strlen($data['title']) > 20) ? iconv_substr($data['title'], 0, 20, "utf-8") . "…" : $data['title']; ?>
							</a>
						</h2>
					</div>
				</div>
			<? endfor; ?>
		</div>
		<div class="channel_cont">
			<div class="wrap">
				<h4 class="beachblue">은혜의 샘</h4>


				<? for ($i = 1; $i <= 6; $i++): @$data = $arr_grace_well[$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['theme_img']);?>" class="art-img"
								 onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'">
						</a>
						<p class="chtitle">
							<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
														<span class="beachblue">
															<?

															$data['head_title'] = ($data['head_title'] != '') ? "[".$data['head_title']."]": $data['head_title'] ;
															?>
															<?=$data['head_title']?>

														</span>
								<?= $data['title'] ?>
							</a>
						</p>
					</div>

					<? if ($i % 2 == 0): ?>
						</div>
					<? endif ?>
				<? endfor ?>
			</div>
		</div>
		<div class="channel_cont" style="background:#fff;">
			<div class="wrap">
				<h4>
					<span class="beachblue">하늘 양식</span>
					<span><a href="javascript:swiper1.slideTo(2);$('.news_nav > span').removeClass('current');$('.news_nav > span').eq(1).addClass('current')"
							 class="btn btn-default br20 fr beachblue more">더보기</a></span>
				</h4>
				<? for ($i = 1; $i <= 3; $i++): @$data = $arr_grace_sky[$i]; ?>
					<div class="sky_boxs" style="">
									<span class="channel_photo<?=($data['video_url']) ? " plays_b" : ""; ?>">
										<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
											<img src="<?=thumb( $data['theme_img'] ) ?>" class="art-img"
												 onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'">
										</a>
									</span>
						<p class="chtitle">
							<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
								<?= $data['title']; ?>
							</a>
						</p>
						<p>
							<img src="/img/mobile/img_heart.gif">
							<?= $data['hit_count']; ?>
							<span class="chname">
												<a href="/m/life/editor/<?= $data['partner_idx'] ?>">
													<?= $data['editor_name']; ?>
												</a>
											</span>
						</p>
					</div>
				<? endfor ?>
			</div>
		</div>
		<div class="cont_top">

			<div class="cont_top_img">
				<span class="shadow"></span>
				<a href="/m/life/life_view/<?= $arr_card_news[0]['content_idx'] ?>">
					<img src="<?= thumb($arr_card_news[0]['main_img'])?>">
				</a>
			</div>
			<p class="cont_top_title3">카드뉴스</p>
			<p class="chn_bar2">
				<img src="/img/mobile/bg_bar.gif">
			</p>
			<p class="cont_top_title2">
				<a href="/m/life/life_view/<?= $arr_card_news[0]['content_idx'] ?>">
					<?= $arr_card_news[0]['title'] ?>
				</a>
			</p>
		</div>
		<div class="grace_top">
			<h4>
				<span class="beachblue">오늘의 칼럼</span>
				<span>
								<a href="/m/news/column" class="btn btn-default br20 fr more">더보기</a>
							</span>
			</h4>

			<? for ($i = 1; $i <= 5; $i++): @$data = $arr_headline_column[$i]; ?>
				<h2 class="art-title">

									<span class="beachblue" class="grey">
										<a style="color:#2bbec6" href="/m/news/columnist/<?= $data['partner_idx'] ?>">
											[<?= $data['column_name'] ?>]
										</a>
									</span>
					<a href="/m/news/column_view/<?= $data['content_idx'] ?>">
						<?=$data['title']?>
					</a>
					</a>
				</h2>
			<? endfor ?>
		</div>
		<div class="channel_cont" style="margin-top:20px">
			<div class="wrap">
				<h4 class="beachblue">은혜로운 영상 </h4>

				<? for ($i = 1; $i <= 6; $i++):@$data = $arr_etc_video[$i]; ?>

					<?

					$url = '';
					switch ($data['content_type']) {
						case  1:
							$url = "/m/news/news_view/" . $data['content_idx'];
							break;
						case 2:
							$url = "/m/news/column_view/" . $data['content_idx'];
							break;
						case 3:
							$url = "/m/life/life_view/" . $data['content_idx'];
							break;
						default:
							$url = "/m/life/life_view/" . $data['content_idx'];
							break;

					}

					?>
					<? if ($i % 2 != 0): ?>
						<div class="channel_boxs" style="margin-bottom:0;">
					<? endif ?>
					<div class="channel_con">
						<div class="play_box">
							<a href="<?= $url ?>">
								<img src="<?= thumb($data['main_img']) ?>"
									 onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'"
									 class="art-img">
								<span class="play">
									<?if($data['video_url'] != ''):?>
									<img src="/img/mobile/img_play.png">
									<?endif?>
								</span>
								<span class="play_time">
									<?= $data['video_playtime'] ?>
								</span>
							</a>
						</div>
						<p class="chtitle">
							<a href="<?= $url ?>">
														<span class="beachblue">
															<? if ($data['head_title']) echo "[" . $data['head_title'] . "]"; ?>
														</span>

								<? echo (mb_strlen($data['title']) > 24) ? iconv_substr($data['title'], 0, 24, "utf-8") . "…" : $data['title']; ?>
							</a>
						</p>
					</div>
					<? if ($i % 2 == 0): ?>
						</div>
					<? endif ?>
				<? endfor ?>
			</div>
		</div>
	</div>
</div>
