first commit
This commit is contained in:
2580
application/views/web/maptoon/maptoon_article.php
Executable file
2580
application/views/web/maptoon/maptoon_article.php
Executable file
File diff suppressed because it is too large
Load Diff
2345
application/views/web/maptoon/maptoon_comments.php
Executable file
2345
application/views/web/maptoon/maptoon_comments.php
Executable file
File diff suppressed because it is too large
Load Diff
59
application/views/web/maptoon/maptoon_completed.php
Executable file
59
application/views/web/maptoon/maptoon_completed.php
Executable file
@@ -0,0 +1,59 @@
|
||||
<style>
|
||||
.widget_menu {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
<main id="main" role="main" tabindex="-1">
|
||||
<div class="container">
|
||||
<div class="layout-blog">
|
||||
<div>
|
||||
<section class="recommended-webtoon gap-bottom-md">
|
||||
<h2>추천 완결 웹툰</h2>
|
||||
<ul class="gallery-3">
|
||||
<?php foreach($completed as $c) {?>
|
||||
<li>
|
||||
<a class="img-scaleup" href="/web/maptoon/list?mtId=<?php echo $c->idx?>"><img
|
||||
src="<?php echo imgSrc($c->main_img)?>" alt="" width="218" height="120"></a>
|
||||
<h3 class="row-title">
|
||||
<a href="/web/maptoon/list?mtId=<?php echo $c->idx?>"><?php echo $c->name?></a>
|
||||
</h3>
|
||||
<div class="row-user">
|
||||
<a href="/web/maptoon/list?mtId=<?php echo $c->idx?>"><?php echo $c->cartoonist?></a>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="gap-bottom-md">
|
||||
<header class="row-header row-header-tools">
|
||||
<h2 class="title">
|
||||
<a href="">추천 웹툰</a>
|
||||
</h2>
|
||||
|
||||
</header>
|
||||
<ul class="gallery-3">
|
||||
<?php foreach($completed as $c) {?>
|
||||
<li>
|
||||
<a class="img-scaleup" href="/web/maptoon/list?mtId=<?php echo $c->idx?>"><img
|
||||
src="<?php echo imgSrc($c->main_img)?>"
|
||||
alt="" width="218" height="120"></a>
|
||||
<h3 class="row-title">
|
||||
<a href="/web/maptoon/list?mtId=<?php echo $c->idx?>"><?php echo $c->name?></a>
|
||||
</h3>
|
||||
<div class="row-user">
|
||||
<a href="/web/maptoon/list?mtId=<?php echo $c->idx?>"><?php echo $c->cartoonist?></a>
|
||||
</div>
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- side bar -->
|
||||
|
||||
<?php include_once ('mt_right_inc.php');?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
117
application/views/web/maptoon/maptoon_list.php
Executable file
117
application/views/web/maptoon/maptoon_list.php
Executable file
@@ -0,0 +1,117 @@
|
||||
<?$data=$mt_data[0] //맵툰 정보?>
|
||||
<main id="main" role="main" tabindex="-1">
|
||||
<div class="container">
|
||||
<div class="layout-blog">
|
||||
<div>
|
||||
<article class="current-webtoon poster gap-bottom-sm">
|
||||
<a href=""><img src="<?=imgSrc($data['main_img'])?>" alt="" width="191" height="241"></a>
|
||||
<h2 class="title"><?=$data['name']?></h2>
|
||||
<div class="summary">
|
||||
<p><?=$data['description']?></p>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="" id="recommend">추천</a>
|
||||
<?//<!-- <a class="add" href="">관심웹툰 <span class="plus-circle"></span></a> -->?>
|
||||
<a href="/web/maptoon/article?mtId=<?=$data['idx']?>&no=1">첫화보기</a>
|
||||
</div>
|
||||
</article>
|
||||
<?if(count($notice)!=0){?>
|
||||
<div class="webtoon-tips gap-bottom-md">
|
||||
<span>공지</span>
|
||||
<?foreach($notice as $val){
|
||||
echo $val;
|
||||
}?>
|
||||
</div>
|
||||
<?}?>
|
||||
<div class="webtoon-series-list-wrapper">
|
||||
<table class="webtoon-series-list" cellspacing="0" cellpadding="0">
|
||||
<caption><span class="visually-hidden">회차별 목록</span></caption>
|
||||
<colgroup>
|
||||
<col width="99">
|
||||
<col width="*">
|
||||
<col width="141">
|
||||
<col width="76">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">이미지</th>
|
||||
<th scope="col">제목</th>
|
||||
<th scope="col">별점</th>
|
||||
<th scope="col">등록일</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<!-- 게임배너 or 광고배너 -->
|
||||
<tbody>
|
||||
<?foreach($episodes as $val){?>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/web/maptoon/article?mtId=<?=$val['mt_list_idx']?>&no=<?=$val['ep_no']?>">
|
||||
<img src="<?=imgSrc($val['main_img'])?>" title="<?=$val['title']?>" alt="31화" onerror="this.src='https://static-comic.pstatic.net/staticImages/COMICWEB/NAVER/img/common/non71_41.gif'" width="71" height="41">
|
||||
<span class="mask"></span>
|
||||
</a>
|
||||
</td>
|
||||
<td class="title">
|
||||
<a href="/web/maptoon/article?mtId=<?=$val['mt_list_idx']?>&no=<?=$val['ep_no']?>"><span class="episode"><?=$val['title']?></span></a></td>
|
||||
<td>
|
||||
<div>
|
||||
<span class="webtoon-star"><span style="width:<?=$val['grade']*10?>%">평점</span></span>
|
||||
<strong><?=$val['grade']?></strong>
|
||||
</div>
|
||||
</td>
|
||||
<td class="num"><?=explode(" ",$val['reg_date'])[0]?></td>
|
||||
</tr>
|
||||
<?}?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?=$pagination?>
|
||||
<?/*<!--
|
||||
<div class="pagination">
|
||||
<a href="" class="prev prev-angle">이전</a>
|
||||
<a href="">1</a>
|
||||
<span class="current">2</span>
|
||||
<a href="">3</a>
|
||||
<a href="">4</a>
|
||||
<a href="" class="next next-angle">다음</a>
|
||||
</div>-->*/?>
|
||||
</div>
|
||||
|
||||
<!-- side bar -->
|
||||
<? include_once ('mt_right_inc.php');?>
|
||||
<!-- side bar -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script >
|
||||
$("#recommend").on("click",function(e){
|
||||
e.preventDefault();
|
||||
$.ajax({
|
||||
url: '/web/maptoon/mt_recommend',
|
||||
sync: false,
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
data:{
|
||||
mt_list_idx: <?=$data['idx']?>
|
||||
},
|
||||
success: function (response_data){
|
||||
if(response_data.state==0){
|
||||
var _login = confirm(response_data.message+" 로그인 페이지로 이동하시겠습니까?");
|
||||
if(_login){
|
||||
window.location.href='https://crossmap.co.kr/web/user/login';
|
||||
}
|
||||
}else{
|
||||
alert(response_data.message);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (response_data) {
|
||||
console.log(response_data);
|
||||
alert("실패했습니다 관리자에게 문의주세요");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
||||
214
application/views/web/maptoon/maptoon_main.php
Executable file
214
application/views/web/maptoon/maptoon_main.php
Executable file
@@ -0,0 +1,214 @@
|
||||
<style>
|
||||
.widget_menu {cursor:pointer;}
|
||||
</style>
|
||||
<main id="main" role="main" tabindex="-1">
|
||||
<div class="container">
|
||||
<div class="layout-blog">
|
||||
<div>
|
||||
<section class="gap-bottom-md">
|
||||
<h2 class="visually-hidden">Webtoon hot</h2>
|
||||
<div class="img-slider-wrapper">
|
||||
<div class="img-slider-tools">
|
||||
<button class="arr prev"><span class="visually-hidden">Previous slide</span></button>
|
||||
<span class="current-index">1</span>/<span class="count">10</span>
|
||||
<button class="arr next"><span class="visually-hidden">Next slide</span></button>
|
||||
</div>
|
||||
<ul class="img-slider">
|
||||
<?php
|
||||
$len_slideshow = count($slideshow);
|
||||
if(isset($slideshow)==TRUE && $len_slideshow>0) {
|
||||
foreach($slideshow as $v) {
|
||||
echo '<li class="photo-news">';
|
||||
echo '<a href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="500" height="281"></a>';
|
||||
echo '<div class="txt">
|
||||
<h3 class="title">'.stripslashes($v['name'])." - ".stripslashes($v['title']).'</h3>
|
||||
<div class="author">'.stripslashes($v['cartoonist']).'</div>
|
||||
</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="gap-bottom-md">
|
||||
<header class="row-header row-header-tools">
|
||||
<h2 class="title"><a>뜨끈뜨끈한</a><a class="new">신작</a></h2>
|
||||
<div class="tools sortby">
|
||||
<a class="update current widget_menu" base="hot_toons" tg="hot_toon_update">업데이트순</a>
|
||||
<a class="view-count widget_menu" base="hot_toons" tg="hot_toon_count">조회순</a>
|
||||
<a class="star-score widget_menu" base="hot_toons" tg="hot_toon_grade">별점순</a>
|
||||
</div>
|
||||
</header>
|
||||
<ul class="gallery-3 hot_toons" id="hot_toon_update">
|
||||
<?php
|
||||
foreach($new_release_date as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
||||
<ul class="gallery-3 hot_toons" id="hot_toon_count" style="display:none;">
|
||||
<?php
|
||||
foreach($new_release_count as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
||||
<ul class="gallery-3 hot_toons" id="hot_toon_grade" style="display:none;">
|
||||
<?php
|
||||
foreach($new_release_grade as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="gap-bottom-md">
|
||||
<header class="row-header row-header-tools">
|
||||
<h2 class="title"><a href="">성경을 재미있게</a></h2>
|
||||
<div class="tools sortby">
|
||||
<a class="update current widget_menu" base="fun_toons" tg="fun_update">업데이트순</a>
|
||||
<a class="view-count widget_menu" base="fun_toons" tg="fun_count">조회순</a>
|
||||
<a class="star-score widget_menu" base="fun_toons" tg="fun_grade">별점순</a>
|
||||
</div>
|
||||
</header>
|
||||
<ul class="gallery-3 fun_toons" id="fun_update">
|
||||
<?php
|
||||
foreach($fun_date as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 fun_toons" id="fun_count" style="display:none;">
|
||||
<?php
|
||||
foreach($fun_count as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 fun_toons" id="fun_grade" style="display:none;">
|
||||
<?php
|
||||
foreach($fun_grade as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<!-- banner box -->
|
||||
<!--
|
||||
<div class="banner-box gap-bottom-md">
|
||||
<div><a href=""><img src="img/banner1.png" alt="" width="294" height="172"></a></div>
|
||||
<div><a href=""><img src="img/banner2.png" alt="" width="295" height="172"></a></div>
|
||||
</div>-->
|
||||
|
||||
<section class="gap-bottom-md">
|
||||
<header class="row-header row-header-tools">
|
||||
<h2 class="title"><a href="">신앙터치</a></h2>
|
||||
<div class="tools sortby">
|
||||
<a class="update current widget_menu" base="faith_toons" tg="faith_update">업데이트순</a>
|
||||
<a class="view-count widget_menu" base="faith_toons" tg="faith_count">조회순</a>
|
||||
<a class="star-score widget_menu" base="faith_toons" tg="faith_grade">별점순</a>
|
||||
</div>
|
||||
</header>
|
||||
<ul class="gallery-3 faith_toons" id="faith_update">
|
||||
<?php
|
||||
foreach($faith_date as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 faith_toons" id="faith_count" style="display:none;">
|
||||
<?php
|
||||
foreach($faith_count as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 faith_toons" id="faith_grade" style="display:none;">
|
||||
<?php
|
||||
foreach($faith_grade as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- side bar -->
|
||||
<?php include_once ('mt_right_inc.php');?>
|
||||
<!-- //side bar -->
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(".widget_menu").click(function() {
|
||||
base = $(this).attr('base');
|
||||
tg_id = $(this).attr('tg');
|
||||
|
||||
if(base!=undefined && tg_id!=undefined) {
|
||||
reset_menu(base);
|
||||
$("#"+tg_id).show();
|
||||
$(this).addClass('current');
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
var reset_menu = function(menu_class) {
|
||||
if(menu_class!=undefined) {
|
||||
$("."+menu_class).hide();
|
||||
$(".widget_menu[base="+menu_class+"]").removeClass('current');
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
214
application/views/web/maptoon/maptoon_main_test.php
Executable file
214
application/views/web/maptoon/maptoon_main_test.php
Executable file
@@ -0,0 +1,214 @@
|
||||
<style>
|
||||
.widget_menu {cursor:pointer;}
|
||||
</style>
|
||||
<main id="main" role="main" tabindex="-1">
|
||||
<div class="container">
|
||||
<div class="layout-blog">
|
||||
<div>
|
||||
<section class="gap-bottom-md">
|
||||
<h2 class="visually-hidden">Webtoon hot</h2>
|
||||
<div class="img-slider-wrapper">
|
||||
<div class="img-slider-tools">
|
||||
<button class="arr prev"><span class="visually-hidden">Previous slide</span></button>
|
||||
<span class="current-index">1</span>/<span class="count">10</span>
|
||||
<button class="arr next"><span class="visually-hidden">Next slide</span></button>
|
||||
</div>
|
||||
<ul class="img-slider">
|
||||
<?php
|
||||
$len_slideshow = count($slideshow);
|
||||
if(isset($slideshow)==TRUE && $len_slideshow>0) {
|
||||
foreach($slideshow as $v) {
|
||||
echo '<li class="photo-news">';
|
||||
echo '<a href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="500" height="281"></a>';
|
||||
echo '<div class="txt">
|
||||
<h3 class="title">'.stripslashes($v['name'])." - ".stripslashes($v['title']).'</h3>
|
||||
<div class="author">'.stripslashes($v['cartoonist']).'</div>
|
||||
</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="gap-bottom-md">
|
||||
<header class="row-header row-header-tools">
|
||||
<h2 class="title"><a>뜨끈뜨끈한</a><a class="new">신작</a></h2>
|
||||
<div class="tools sortby">
|
||||
<a class="update current widget_menu" base="hot_toons" tg="hot_toon_update">업데이트순</a>
|
||||
<a class="view-count widget_menu" base="hot_toons" tg="hot_toon_count">조회순</a>
|
||||
<a class="star-score widget_menu" base="hot_toons" tg="hot_toon_grade">별점순</a>
|
||||
</div>
|
||||
</header>
|
||||
<ul class="gallery-3 hot_toons" id="hot_toon_update">
|
||||
<?php
|
||||
foreach($new_release_date as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
||||
<ul class="gallery-3 hot_toons" id="hot_toon_count" style="display:none;">
|
||||
<?php
|
||||
foreach($new_release_count as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
||||
<ul class="gallery-3 hot_toons" id="hot_toon_grade" style="display:none;">
|
||||
<?php
|
||||
foreach($new_release_grade as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="gap-bottom-md">
|
||||
<header class="row-header row-header-tools">
|
||||
<h2 class="title"><a href="">성경을 재미있게</a></h2>
|
||||
<div class="tools sortby">
|
||||
<a class="update current widget_menu" base="fun_toons" tg="fun_update">업데이트순</a>
|
||||
<a class="view-count widget_menu" base="fun_toons" tg="fun_count">조회순</a>
|
||||
<a class="star-score widget_menu" base="fun_toons" tg="fun_grade">별점순</a>
|
||||
</div>
|
||||
</header>
|
||||
<ul class="gallery-3 fun_toons" id="fun_update">
|
||||
<?php
|
||||
foreach($fun_date as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 fun_toons" id="fun_count" style="display:none;">
|
||||
<?php
|
||||
foreach($fun_count as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 fun_toons" id="fun_grade" style="display:none;">
|
||||
<?php
|
||||
foreach($fun_grade as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<!-- banner box -->
|
||||
<!--
|
||||
<div class="banner-box gap-bottom-md">
|
||||
<div><a href=""><img src="img/banner1.png" alt="" width="294" height="172"></a></div>
|
||||
<div><a href=""><img src="img/banner2.png" alt="" width="295" height="172"></a></div>
|
||||
</div>-->
|
||||
|
||||
<section class="gap-bottom-md">
|
||||
<header class="row-header row-header-tools">
|
||||
<h2 class="title"><a href="">신앙터치</a></h2>
|
||||
<div class="tools sortby">
|
||||
<a class="update current widget_menu" base="faith_toons" tg="faith_update">업데이트순</a>
|
||||
<a class="view-count widget_menu" base="faith_toons" tg="faith_count">조회순</a>
|
||||
<a class="star-score widget_menu" base="faith_toons" tg="faith_grade">별점순</a>
|
||||
</div>
|
||||
</header>
|
||||
<ul class="gallery-3 faith_toons" id="faith_update">
|
||||
<?php
|
||||
foreach($faith_date as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 faith_toons" id="faith_count" style="display:none;">
|
||||
<?php
|
||||
foreach($faith_count as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 faith_toons" id="faith_grade" style="display:none;">
|
||||
<?php
|
||||
foreach($faith_grade as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- side bar -->
|
||||
<?php include_once ('mt_right_inc.php');?>
|
||||
<!-- //side bar -->
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(".widget_menu").click(function() {
|
||||
base = $(this).attr('base');
|
||||
tg_id = $(this).attr('tg');
|
||||
|
||||
if(base!=undefined && tg_id!=undefined) {
|
||||
reset_menu(base);
|
||||
$("#"+tg_id).show();
|
||||
$(this).addClass('current');
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
var reset_menu = function(menu_class) {
|
||||
if(menu_class!=undefined) {
|
||||
$("."+menu_class).hide();
|
||||
$(".widget_menu[base="+menu_class+"]").removeClass('current');
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
270
application/views/web/maptoon/maptoon_ongoing.php
Executable file
270
application/views/web/maptoon/maptoon_ongoing.php
Executable file
@@ -0,0 +1,270 @@
|
||||
<style>
|
||||
.widget_menu {cursor:pointer;}
|
||||
</style>
|
||||
<main id="main" role="main" tabindex="-1">
|
||||
<div class="container">
|
||||
<div class="layout-blog">
|
||||
<div>
|
||||
<?php
|
||||
if(isset($today[$today_date])==TRUE) {
|
||||
switch ($today_date) {
|
||||
case 'mon' : $yoil = '월'; break;
|
||||
case 'tue' : $yoil = '화'; break;
|
||||
case 'wed' : $yoil = '수'; break;
|
||||
case 'thu' : $yoil = '목'; break;
|
||||
case 'fri' : $yoil = '금'; break;
|
||||
case 'sat' : $yoil = '토'; break;
|
||||
}
|
||||
$today_maptoon = $today[$today_date];
|
||||
if(count($today_maptoon)) {
|
||||
?>
|
||||
<article class="featured-webtoon poster gap-bottom-sm">
|
||||
<div class="webtoon-slider">
|
||||
<?foreach($today_maptoon as $v){?>
|
||||
<div>
|
||||
<a href="<?=$v['maptoon_url']?>"><img src="<?php echo imgSrc($v['main_img'])?>" alt="" width="191" height="241"></a>
|
||||
<div class="label"><span class="highlight"><?php echo $yoil;?></span>오늘의 웹툰</div>
|
||||
<a href="<?=$v['maptoon_url']?>"><h2 class="title"><?php echo stripslashes($v['name']);?></h2></a>
|
||||
<div class="summary"><?php echo stripslashes($v['description']);?></div>
|
||||
</div>
|
||||
<?}?>
|
||||
</div>
|
||||
<?if(count($today_maptoon)>1){?>
|
||||
<div class="webtoon-controls">
|
||||
<div class="arrowPrev"><i class="fas fa-chevron-left"></i></div>
|
||||
<div class="arrowNext"><i class="fas fa-chevron-right"></i></div>
|
||||
</div>
|
||||
<?}?>
|
||||
</article>
|
||||
<? }
|
||||
} else {
|
||||
echo '<article class="featured-webtoon poster gap-bottom-sm"> </article>';
|
||||
}?>
|
||||
|
||||
<section class="todays-webtoon gap-bottom-md">
|
||||
<header>
|
||||
<h2>오늘의 웹툰</h2>
|
||||
<div class="link"><a>공지사항</a></div>
|
||||
</header>
|
||||
<ol>
|
||||
<?php
|
||||
foreach($today as $k=>$v){
|
||||
foreach($v as $x){
|
||||
if(isset($x['maptoon_url'])==TRUE) {
|
||||
echo '<li>';
|
||||
if($k=='mon') {
|
||||
echo '<span class="week">월요일</span>';
|
||||
} else if($k=='tue') {
|
||||
echo '<span class="week">화요일</span>';
|
||||
} else if($k=='wed') {
|
||||
echo '<span class="week">수요일</span>';
|
||||
} else if($k=='thu') {
|
||||
echo '<span class="week">목요일</span>';
|
||||
} else if($k=='fri') {
|
||||
echo '<span class="week">금요일</span>';
|
||||
} else if($k=='sat') {
|
||||
echo '<span class="week">토요일</span>';
|
||||
} else if($k=='sun') {
|
||||
}
|
||||
echo '<a href="'.$x['maptoon_url'].'" class="thumb"><img src="'.imgSrc($x['main_img']).'" alt="" width="83" height="90"></a>';
|
||||
echo ' <span class="txt">
|
||||
<a href="'.$x['maptoon_url'].'" class="title">'.stripslashes($x['name']).'</a>
|
||||
<span class="summary">'.stripslashes($x['description']).'</span>
|
||||
<a class="artist">'.$x['cartoonist'].'</a>
|
||||
</span>';
|
||||
}
|
||||
echo '</li>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<section class="gap-bottom-md">
|
||||
<header class="row-header row-header-tools">
|
||||
<h2 class="title"><a>추천 웹툰</a></h2>
|
||||
<div class="tools sortby">
|
||||
<a class="update current widget_menu" base="recomm_toons" tg="recomm_toon_update">업데이트순</a>
|
||||
<a class="view-count widget_menu" base="recomm_toons" tg="recomm_toon_count">조회순</a>
|
||||
<a class="star-score widget_menu" base="recomm_toons" tg="recomm_toon_grade">별점순</a>
|
||||
</div>
|
||||
</header>
|
||||
<ul class="gallery-3 recomm_toons" id="recomm_toon_update">
|
||||
<?php
|
||||
foreach($recomm_date as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 recomm_toons" id="recomm_toon_count" style="display:none;">
|
||||
<?php
|
||||
foreach($recomm_count as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 recomm_toons" id="recomm_toon_grade" style="display:none;">
|
||||
<?php
|
||||
foreach($recomm_grade as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="gap-bottom-md">
|
||||
<header class="row-header row-header-tools">
|
||||
<h2 class="title"><a>신앙하는 우리 이야기</a></h2>
|
||||
<div class="tools sortby">
|
||||
<a class="update current widget_menu" base="story_toons" tg="story_toon_update">업데이트순</a>
|
||||
<a class="view-count widget_menu" base="story_toons" tg="story_toon_count">조회순</a>
|
||||
<a class="star-score widget_menu" base="story_toons" tg="story_toon_grade">별점순</a>
|
||||
</div>
|
||||
</header>
|
||||
<ul class="gallery-3 story_toons" id="story_toon_update">
|
||||
<?php
|
||||
foreach($story_date as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 story_toons" id="story_toon_count" style="display:none;">
|
||||
<?php
|
||||
foreach($story_count as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 story_toons" id="story_toon_grade" style="display:none;">
|
||||
<?php
|
||||
foreach($story_grade as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="gap-bottom-md">
|
||||
<header class="row-header row-header-tools">
|
||||
<h2 class="title"><a>말씀 새롭게 읽기</a></h2>
|
||||
<div class="tools sortby">
|
||||
<a class="update current widget_menu" base="read_toons" tg="read_toon_update">업데이트순</a>
|
||||
<a class="view-count widget_menu" base="read_toons" tg="read_toon_count">조회순</a>
|
||||
<a class="star-score widget_menu" base="read_toons" tg="read_toon_grade">별점순</a>
|
||||
</div>
|
||||
</header>
|
||||
<ul class="gallery-3 read_toons" id="read_toon_update">
|
||||
<?php
|
||||
foreach($read_date as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 read_toons" id="read_toon_count" style="display:none;">
|
||||
<?php
|
||||
foreach($read_count as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 read_toons" id="read_toon_grade" style="display:none;">
|
||||
<?php
|
||||
foreach($read_grade as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.imgSrc($v['main_img']).'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- side bar -->
|
||||
<?php include_once ('mt_right_inc.php');?>
|
||||
<!-- //side bar -->
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(".widget_menu").click(function() {
|
||||
base = $(this).attr('base');
|
||||
tg_id = $(this).attr('tg');
|
||||
|
||||
if(base!=undefined && tg_id!=undefined) {
|
||||
reset_menu(base);
|
||||
$("#"+tg_id).show();
|
||||
$(this).addClass('current');
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
var reset_menu = function(menu_class) {
|
||||
if(menu_class!=undefined) {
|
||||
$("."+menu_class).hide();
|
||||
$(".widget_menu[base="+menu_class+"]").removeClass('current');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var today_webtoon=<?=count($today[$today_date])?>;
|
||||
if(today_webtoon>1){
|
||||
var webtoon_wrapper = doc.querySelector('.webtoon-slider'),
|
||||
webtoon_controls = doc.querySelector('.webtoon-controls');
|
||||
if (webtoon_wrapper) {
|
||||
var logo_box_slider = tns({
|
||||
container: webtoon_wrapper,
|
||||
items: 1,
|
||||
mouseDrag: true,
|
||||
controlsContainer: webtoon_controls,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
274
application/views/web/maptoon/maptoon_ongoing_1.php
Executable file
274
application/views/web/maptoon/maptoon_ongoing_1.php
Executable file
@@ -0,0 +1,274 @@
|
||||
<?
|
||||
|
||||
printf("MYsql server version : %s\n" , mysql_get_server_info());
|
||||
?>
|
||||
|
||||
<style>
|
||||
.widget_menu {cursor:pointer;}
|
||||
</style>
|
||||
<main id="main" role="main" tabindex="-1">
|
||||
<div class="container">
|
||||
<div class="layout-blog">
|
||||
<div>
|
||||
<?php
|
||||
if(isset($today[$today_date])==TRUE) {
|
||||
switch ($today_date) {
|
||||
case 'mon' : $yoil = '월'; break;
|
||||
case 'tue' : $yoil = '화'; break;
|
||||
case 'wed' : $yoil = '수'; break;
|
||||
case 'thu' : $yoil = '목'; break;
|
||||
case 'fri' : $yoil = '금'; break;
|
||||
case 'sat' : $yoil = '토'; break;
|
||||
}
|
||||
|
||||
$today_maptoon = $today['today_date'];?>
|
||||
|
||||
<article class="featured-webtoon poster gap-bottom-sm">
|
||||
<div class="webtoon-slider">
|
||||
<?foreach($today_maptoon as $v){?>
|
||||
<div>
|
||||
<a href="<?=$v['maptoon_url']?>"><img src="<?php echo imgSrc($v['main_img'])?>" alt="" width="191" height="241"></a>
|
||||
<div class="label"><span class="highlight"><?php echo $yoil;?></span>오늘의 웹툰</div>
|
||||
<a href="<?=$v['maptoon_url']?>"><h2 class="title"><?php echo stripslashes($v['name']);?></h2></a>
|
||||
<div class="summary"><?php echo stripslashes($v['description']);?></div>
|
||||
</div>
|
||||
<?}?>
|
||||
</div>
|
||||
<?if(count($today_maptoon)>1){?>
|
||||
<div class="webtoon-controls">
|
||||
<div class="arrowPrev"><i class="fas fa-chevron-left"></i></div>
|
||||
<div class="arrowNext"><i class="fas fa-chevron-right"></i></div>
|
||||
</div>
|
||||
<?}?>
|
||||
</article>
|
||||
|
||||
<?
|
||||
} else {
|
||||
echo '<article class="featured-webtoon poster gap-bottom-sm"> </article>';
|
||||
}?>
|
||||
|
||||
<section class="todays-webtoon gap-bottom-md">
|
||||
<header>
|
||||
<h2>오늘의 웹툰</h2>
|
||||
<div class="link"><a>공지사항</a></div>
|
||||
</header>
|
||||
<ol>
|
||||
<?php
|
||||
foreach($today as $k=>$v){
|
||||
foreach($v as $x){
|
||||
if(isset($x['maptoon_url'])==TRUE) {
|
||||
echo '<li>';
|
||||
if($k=='mon') {
|
||||
echo '<span class="week">월요일</span>';
|
||||
} else if($k=='tue') {
|
||||
echo '<span class="week">화요일</span>';
|
||||
} else if($k=='wed') {
|
||||
echo '<span class="week">수요일</span>';
|
||||
} else if($k=='thu') {
|
||||
echo '<span class="week">목요일</span>';
|
||||
} else if($k=='fri') {
|
||||
echo '<span class="week">금요일</span>';
|
||||
} else if($k=='sat') {
|
||||
echo '<span class="week">토요일</span>';
|
||||
} else if($k=='sun') {
|
||||
}
|
||||
echo '<a href="'.$x['maptoon_url'].'" class="thumb"><img src="'.$x['main_img'].'" alt="" width="83" height="90"></a>';
|
||||
echo ' <span class="txt">
|
||||
<a href="'.$x['maptoon_url'].'" class="title">'.stripslashes($x['name']).'</a>
|
||||
<span class="summary">'.stripslashes($x['description']).'</span>
|
||||
<a class="artist">'.$x['cartoonist'].'</a>
|
||||
</span>';
|
||||
}
|
||||
echo '</li>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<section class="gap-bottom-md">
|
||||
<header class="row-header row-header-tools">
|
||||
<h2 class="title"><a>추천 웹툰</a></h2>
|
||||
<div class="tools sortby">
|
||||
<a class="update current widget_menu" base="recomm_toons" tg="recomm_toon_update">업데이트순</a>
|
||||
<a class="view-count widget_menu" base="recomm_toons" tg="recomm_toon_count">조회순</a>
|
||||
<a class="star-score widget_menu" base="recomm_toons" tg="recomm_toon_grade">별점순</a>
|
||||
</div>
|
||||
</header>
|
||||
<ul class="gallery-3 recomm_toons" id="recomm_toon_update">
|
||||
<?php
|
||||
foreach($recomm_date as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 recomm_toons" id="recomm_toon_count" style="display:none;">
|
||||
<?php
|
||||
foreach($recomm_count as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 recomm_toons" id="recomm_toon_grade" style="display:none;">
|
||||
<?php
|
||||
foreach($recomm_grade as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="gap-bottom-md">
|
||||
<header class="row-header row-header-tools">
|
||||
<h2 class="title"><a>신앙하는 우리 이야기</a></h2>
|
||||
<div class="tools sortby">
|
||||
<a class="update current widget_menu" base="story_toons" tg="story_toon_update">업데이트순</a>
|
||||
<a class="view-count widget_menu" base="story_toons" tg="story_toon_count">조회순</a>
|
||||
<a class="star-score widget_menu" base="story_toons" tg="story_toon_grade">별점순</a>
|
||||
</div>
|
||||
</header>
|
||||
<ul class="gallery-3 story_toons" id="story_toon_update">
|
||||
<?php
|
||||
foreach($story_date as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 story_toons" id="story_toon_count" style="display:none;">
|
||||
<?php
|
||||
foreach($story_count as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 story_toons" id="story_toon_grade" style="display:none;">
|
||||
<?php
|
||||
foreach($story_grade as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="gap-bottom-md">
|
||||
<header class="row-header row-header-tools">
|
||||
<h2 class="title"><a>말씀 새롭게 읽기</a></h2>
|
||||
<div class="tools sortby">
|
||||
<a class="update current widget_menu" base="read_toons" tg="read_toon_update">업데이트순</a>
|
||||
<a class="view-count widget_menu" base="read_toons" tg="read_toon_count">조회순</a>
|
||||
<a class="star-score widget_menu" base="read_toons" tg="read_toon_grade">별점순</a>
|
||||
</div>
|
||||
</header>
|
||||
<ul class="gallery-3 read_toons" id="read_toon_update">
|
||||
<?php
|
||||
foreach($read_date as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 read_toons" id="read_toon_count" style="display:none;">
|
||||
<?php
|
||||
foreach($read_count as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="gallery-3 read_toons" id="read_toon_grade" style="display:none;">
|
||||
<?php
|
||||
foreach($read_grade as $v) {
|
||||
echo '<li>';
|
||||
echo '<a class="img-scaleup" href="'.$v['episode_url'].'"><img src="'.$v['main_img'].'" alt="" width="218" height="120"></a>';
|
||||
echo '<h3 class="row-title"><a href="'.$v['maptoon_url'].'">'.stripslashes($v['name']).'</a></h3>';
|
||||
echo '<div class="row-des"><a href="'.$v['episode_url'].'">'.stripslashes($v['title']).'</a></div>';
|
||||
echo '<div class="row-user">'.stripslashes($v['cartoonist']).'</div>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- side bar -->
|
||||
<?php include_once ('mt_right_inc.php');?>
|
||||
<!-- //side bar -->
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(".widget_menu").click(function() {
|
||||
base = $(this).attr('base');
|
||||
tg_id = $(this).attr('tg');
|
||||
|
||||
if(base!=undefined && tg_id!=undefined) {
|
||||
reset_menu(base);
|
||||
$("#"+tg_id).show();
|
||||
$(this).addClass('current');
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
var reset_menu = function(menu_class) {
|
||||
if(menu_class!=undefined) {
|
||||
$("."+menu_class).hide();
|
||||
$(".widget_menu[base="+menu_class+"]").removeClass('current');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var today_webtoon=<?=count($today[$today_date])?>;
|
||||
if(today_webtoon>1){
|
||||
var webtoon_wrapper = doc.querySelector('.webtoon-slider'),
|
||||
webtoon_controls = doc.querySelector('.webtoon-controls');
|
||||
if (webtoon_wrapper) {
|
||||
var logo_box_slider = tns({
|
||||
container: webtoon_wrapper,
|
||||
items: 1,
|
||||
mouseDrag: true,
|
||||
controlsContainer: webtoon_controls,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
108
application/views/web/maptoon/mt_right_inc.php
Executable file
108
application/views/web/maptoon/mt_right_inc.php
Executable file
@@ -0,0 +1,108 @@
|
||||
<?
|
||||
$method = $this->uri->segment(3);
|
||||
$controller = $this->uri->segment(2);
|
||||
|
||||
$ci=& get_instance();
|
||||
|
||||
$ci->load->library('comm');
|
||||
$arr_mt_comm = $ci->comm->fn_mt_right();
|
||||
|
||||
$arr_recomm_life = $arr_mt_comm['arr_recomm_life'];
|
||||
$arr_ep_view_rank = $arr_mt_comm['arr_ep_view_rank'];
|
||||
$arr_mt_pop_rank = $arr_mt_comm['arr_mt_pop_rank'];
|
||||
|
||||
#광고
|
||||
$ci->load->model('web/m_advertisement');
|
||||
$advertisement = $ci->m_advertisement->find_ad_by_page_key('Maptoon');
|
||||
|
||||
//$ci->config->load('filecache',TRUE);
|
||||
//$filecache = $ci->config->item('file_cache_path','filecache');
|
||||
//$ci->load->library('advertisement_lib',['file_cache_path'=>$filecache]);
|
||||
//$advertisement = json_decode($ci->advertisement_lib->get_ad_cache());
|
||||
?>
|
||||
|
||||
<div class="sidebar">
|
||||
<div class="ad gap-bottom-sm"><a href="<?=$advertisement[0]['ad_lending']?>" target="_blank"><img src="<?=imgSrc($advertisement[0]['ad_file'])?>" alt="" width="300" height="250"></a></div>
|
||||
<section class="realtime-rank gap-bottom-md">
|
||||
<header class="row-header">
|
||||
<h2>실시간 조회 순위</h2>
|
||||
</header>
|
||||
<div class="rank-list two-cols">
|
||||
<?$i=0; foreach($arr_ep_view_rank as $val){
|
||||
if($i==0||$i==5){?>
|
||||
<ol class="col-item">
|
||||
<?}?>
|
||||
<li><a href="/web/maptoon/article?mtId=<?=$val['mt_list_idx']?>&no=<?=$val['ep_no']?>"><?=$val['name']?> <?=explode(".", $val['title'])[0]?></a></li>
|
||||
<?if($i==4||$i==9){?>
|
||||
</ol>
|
||||
<?}$i++;?>
|
||||
<?}?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="recommend-rank gap-bottom-xs">
|
||||
<header class="row-header row-header--compact">
|
||||
<h2>최신 업데이트 웹툰</h2>
|
||||
</header>
|
||||
<ol class="rank-list rank-list--thumbs rank-list--border">
|
||||
<?
|
||||
foreach($arr_mt_pop_rank as $val){?>
|
||||
<li>
|
||||
<div class="thumb"><a href="/web/maptoon/list?mtId=<?=$val['idx']?>">
|
||||
<img src="<?=imgSrc($val['main_img'])?>" alt="" width="40" height="43" style="height:43px !important;"></a></div>
|
||||
<div class="info"><a href="/web/maptoon/list?mtId=<?=$val['idx']?>" class="title"><?=$val['mt_name']?></a><a href="/web/maptoon/list?mtId=<?=$val['idx']?>" class="artist"><?=$val['ct_name']?></a></div>
|
||||
<div class="rank-count"><?=$val['recommend']?></div>
|
||||
</li>
|
||||
<?}?>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- sidebar banners
|
||||
<div class="ad gap-bottom-xs"><a href=""><img src="/renew2/img/sidebar-banner1.png" alt="" width="300" height="86"></a></div>
|
||||
<div class="ad gap-bottom-xs"><a href=""><img src="/renew2/img/sidebar-banner2.png" alt="" width="300" height="86"></a></div>
|
||||
<div class="ad gap-bottom-md"><a href=""><img src="/renew2/img/sidebar-banner3.png" alt="" width="300" height="86"></a></div> -->
|
||||
|
||||
<section class="recommend-life" style="margin-top:30px;">
|
||||
<header class="row-header row-header--compact">
|
||||
<h2>추천 콘텐츠</h2>
|
||||
</header>
|
||||
<div class="photo-news">
|
||||
<div class="thumb"><a href="/web/life/life_view/<?=$arr_recomm_life[1]['content_idx']?>"><img src="<?=imgSrc($arr_recomm_life[1]['main_img'])?>" alt="" width="666" height="461"></a></div>
|
||||
<div class="txt"><a href="/web/life/life_view/<?=$arr_recomm_life[1]['content_idx']?>">오늘의 묵상</a></div>
|
||||
</div>
|
||||
<ul class="list-card">
|
||||
<li>
|
||||
<a href="/web/life/life_view/<?=$arr_recomm_life[2]['content_idx']?>"><img src="<?=imgSrc($arr_recomm_life[2]['main_img'])?>" alt="" width="640" height="444">
|
||||
<span><?=$arr_recomm_life[2]['title']?></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/web/life/life_view/<?=$arr_recomm_life[3]['content_idx']?>"><img src="<?=imgSrc($arr_recomm_life[3]['main_img'])?>" alt="" width="640" height="426">
|
||||
<span><?=$arr_recomm_life[3]['title']?></span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
<script type="text/javascript" src="//wcs.naver.net/wcslog.js"></script>
|
||||
<script type="text/javascript">
|
||||
if(!wcs_add) var wcs_add = {};
|
||||
wcs_add["wa"] = "2ee4bea3106352";
|
||||
wcs_do();
|
||||
</script>
|
||||
<!-- Default Statcounter code for Crossmap.co.kr
|
||||
http://crossmap.co.kr -->
|
||||
<script type="text/javascript">
|
||||
var sc_project=10767957;
|
||||
var sc_invisible=1;
|
||||
var sc_security="0cf2c0fe";
|
||||
</script>
|
||||
<script type="text/javascript"
|
||||
src="https://www.statcounter.com/counter/counter.js"
|
||||
async></script>
|
||||
<noscript><div class="statcounter"><a title="Web Analytics"
|
||||
href="https://statcounter.com/" target="_blank"><img
|
||||
class="statcounter"
|
||||
src="//c.statcounter.com/10767957/0/0cf2c0fe/1/" alt="Web
|
||||
Analytics"></a></div></noscript>
|
||||
<!-- End of Statcounter Code -->
|
||||
Reference in New Issue
Block a user