first commit
This commit is contained in:
57
application/views/skin/admin/_body.php
Executable file
57
application/views/skin/admin/_body.php
Executable file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
header("Pragma: no-cache");
|
||||
header("Cache-Control: no-cache,must-revalidate");
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta http-equiv="Cache-Control" content="no-cache"/>
|
||||
<meta http-equiv="Expires" content="0"/>
|
||||
<meta http-equiv="Pragma" content="no-cache"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimun-scale=1.0, user-scalable=yes, target-densitydpi=device-dpi" />
|
||||
<meta name="format-detection" content="telephone=no, address=no, email=no" />
|
||||
<title class="title">크로스미디어 관리자</title>
|
||||
<link rel="shortcut icon" href="/img/shortcut_icon.png">
|
||||
<link rel="apple-touch-icon" href="/img/shortcut_icon.png">
|
||||
<link rel="apple-touch-startup-image" href="/img/shortcut_icon.png">
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/admin/base.css" media="all" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/admin/font_notosanskr.css" />
|
||||
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" type="text/css" href="/css/admin/loaders.css" media="all" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/admin/common.css?<?=time()?>" media="all" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/admin/main.css" media="all" />
|
||||
|
||||
<script src="<?=DIR_JS?>/jquery-3.3.1.min.js"></script>
|
||||
<script src="<?=DIR_JS?>/admin/common.js?<?=time()?>"></script>
|
||||
<script src="http://dmaps.daum.net/map_js_init/postcode.v2.js"></script>
|
||||
<script src="<?=DIR_JS?>/admin/ie8-body.js"></script>
|
||||
<script type="text/javascript" src="/smarteditor/js/HuskyEZCreator.js" charset="utf-8"></script>
|
||||
|
||||
</head>
|
||||
<div id="iquersier"></div>
|
||||
<body>
|
||||
|
||||
<div id="wrap">
|
||||
|
||||
<div id="header_wrap" class="moving_all">
|
||||
<?=$Skin_Header?>
|
||||
</div>
|
||||
<div id="container_wrap">
|
||||
<div class="inner_content">
|
||||
<?=$Skin_Content?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?=$Skin_Footer?>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
54
application/views/skin/admin/_content_comm.php
Executable file
54
application/views/skin/admin/_content_comm.php
Executable file
@@ -0,0 +1,54 @@
|
||||
<?
|
||||
include ("./static_data/admin_menu.php");
|
||||
|
||||
if(strlen($menu_code)==4) {
|
||||
$menu_code1 = substr($menu_code, 0, 2);
|
||||
$menu_code2 = substr($menu_code, 2, 1);
|
||||
$menu_code3 = substr($menu_code, 3, 1);
|
||||
} else {
|
||||
$menu_code1 = substr($menu_code, 0, 1);
|
||||
$menu_code2 = substr($menu_code, 1, 1);
|
||||
$menu_code3 = substr($menu_code, 2, 1);
|
||||
}
|
||||
|
||||
if(isset($arr_menu1[$menu_code1]) == false){
|
||||
gf_alert("잘못된 접근입니다.", "/admin/main");
|
||||
exit;
|
||||
}
|
||||
|
||||
if(isset($arr_menu2[$menu_code1][$menu_code2]) == false){
|
||||
gf_alert("잘못된 접근입니다.", "/admin/main");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="title_big">
|
||||
<p><?=$arr_menu1[$menu_code1]['menu_name']?></p>
|
||||
<ul class="clearfix location">
|
||||
<li><a href="/admin/main"><i class="fa fa-home"></i></a></li>
|
||||
<li><?=$arr_menu1[$menu_code1]['menu_name']?></li>
|
||||
<li><?=$arr_menu2[$menu_code1][$menu_code2]['menu_name']?></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<? if(isset($arr_menu3[$menu_code1][$menu_code2][$menu_code3])==true){?>
|
||||
<div class="common_depth3 clearfix">
|
||||
<ul class="clearfix depth3_tep">
|
||||
<? foreach($arr_menu3[$menu_code1][$menu_code2] as $key=>$val) {
|
||||
$sub_menu_class = '';
|
||||
if($menu_code3==$key) $sub_menu_class = 'class="on"';
|
||||
?>
|
||||
<li><a href="<?=$val['menu_url']?>" <?=$sub_menu_class?>><?=$val['menu_name']?></a></li>
|
||||
<? }?>
|
||||
</ul>
|
||||
</div>
|
||||
<?}?>
|
||||
|
||||
|
||||
<script>
|
||||
$("#left_menu<?=$menu_code1?>_<?=$menu_code2?>").addClass("on");
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
0
application/views/skin/admin/_footer.php
Executable file
0
application/views/skin/admin/_footer.php
Executable file
80
application/views/skin/admin/_header.php
Executable file
80
application/views/skin/admin/_header.php
Executable file
@@ -0,0 +1,80 @@
|
||||
<?
|
||||
require_once ("./static_data/admin_menu.php");
|
||||
|
||||
# session 정보
|
||||
$SES_ADM_NAME = $this->session->userdata('Adm_Name');
|
||||
$SES_ADM_LAST_LOGIN = $this->session->userdata('Adm_Last_Login');
|
||||
|
||||
$top_menu = $this->uri->segment(4);
|
||||
$top_img = '';
|
||||
if($admin_logo=='') {
|
||||
$top_img = '/img/admin/main_logo.gif';
|
||||
} else {
|
||||
$top_img = $admin_logo;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="tablet_header">
|
||||
<div id="header">
|
||||
<div class="logo">
|
||||
<a href="/admin/main"><img src="<?=$top_img?>" width="100"></a>
|
||||
</div>
|
||||
<ul class="utilmenu">
|
||||
<li><?=$SES_ADM_NAME?>님 환영합니다<a href="/admin/admin_member/member_edit">정보수정</a></li>
|
||||
<li>최근 접속일 <?=$SES_ADM_LAST_LOGIN?><a href='/admin/login/logout_proc'>로그아웃</a></li>
|
||||
</ul>
|
||||
<a href="#;" class="bars">
|
||||
<i class="b1 fa fa-2x fa-bars"></i>
|
||||
<i class="a1 fa fa-2x fa-angle-right" style="display:none;"></i>
|
||||
</a>
|
||||
<dl class="skip hid">
|
||||
<dt>스킵메뉴</dt>
|
||||
<dd><a href="#container">본문 바로가기</a></dd>
|
||||
<dd><a href="#gnb">메인메뉴 바로가기</a></dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="tablet_wrap" class="moving_all">
|
||||
<a href="#;" class="push"></a>
|
||||
<div class="m_gnb_wrap">
|
||||
<ul id="tablet_gnb" class="clearfix">
|
||||
|
||||
<? foreach ($arr_menu1 as $key=>$val) {
|
||||
$menu_css = '';
|
||||
if($top_menu == $key) {
|
||||
$menu_css=' class="onar"';
|
||||
}
|
||||
?>
|
||||
<li id="top_menu<?=$key?>">
|
||||
<a href="<?=$val['menu_url']?>" <?=$menu_css?>><i class="fa fa-<?=$val['menu_icon']?>"></i><?=$val['menu_name']?></a>
|
||||
<ul class="depth2 clearfix">
|
||||
<? if(!empty($arr_menu2[$key])) {
|
||||
|
||||
foreach ($arr_menu2[$key] as $key2=>$val2) {
|
||||
|
||||
|
||||
?>
|
||||
<li><a href="<?=$val2['menu_url']?>" id="left_menu<?=$key?>_<?=$key2?>">-<?=$val2['menu_name']?></a></li>
|
||||
|
||||
<? }}?>
|
||||
</ul>
|
||||
</li>
|
||||
<? }?>
|
||||
|
||||
</ul>
|
||||
<!--tablet_gnb-->
|
||||
</div>
|
||||
<!--m_gnb_wrap-->
|
||||
</div>
|
||||
<!--tablet_wrap-->
|
||||
</div>
|
||||
<!--tablet_header-->
|
||||
|
||||
<script>
|
||||
$("#top_menu<?=$top_menu?>").find(".depth2").show();
|
||||
|
||||
</script>
|
||||
94
application/views/skin/m/_body.php
Executable file
94
application/views/skin/m/_body.php
Executable file
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$title = ''; $main_img = ''; $content_txt = '';
|
||||
if(isset($arr_content['title'])==true) {
|
||||
$title = $arr_content['title'];
|
||||
$title = str_replace("'", "\\'", $title);
|
||||
$title = str_replace('"', '\\"', $title);
|
||||
}
|
||||
if(isset($arr_content['main_img'])==true) $main_img = $arr_content['main_img'];
|
||||
if(isset($arr_content['content'])==true) {
|
||||
$content = $arr_content['content'];
|
||||
$content_txt = preg_replace("(\<(/?[^\>]+)\>)", "", $content);
|
||||
$content_txt = strip_tags($content_txt);
|
||||
$content_txt = str_replace("'", "\\'", $content_txt);
|
||||
$content_txt = str_replace('”', '"', $content_txt);
|
||||
$content_txt = mb_strimwidth($content_txt, '0', '250', '..', 'utf-8');
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="naver-site-verification" content="894ba0807460988349b1e131377b26966e347fc1"/>
|
||||
<meta name="google-site-verification" content="CitaOJM4btglyBtNxZFYymBBzh3g7Pb9PxKl9YF8jDg" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta charset="utf-8">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
|
||||
<meta property="fb:app_id" content="961578337335000" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="<?=CROSSMAP_URL?>" />
|
||||
<meta property="og:title" content="<?=$title?>" />
|
||||
<meta property="og:description" content="<?=$content_txt?>" />
|
||||
<meta property="og:image" content="<?=WWW_CROSSMAP?><?=$main_img?>" />
|
||||
<title><?=$site_info['homepage_title']?></title>
|
||||
<link rel="shortcut icon" href="/img/shortcut_icon.png">
|
||||
<link rel="apple-touch-icon" href="/img/shortcut_icon.png">
|
||||
<link rel="apple-touch-startup-image" href="/img/shortcut_icon.png">
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/slick.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/m/mobile.css?t=<?=time()?>"/>
|
||||
<link rel="stylesheet" href="/css/m/swiper.min.css"><!-- 슬라이드 CSS-->
|
||||
<script src="/js/jquery-3.3.1.min.js"></script>
|
||||
<script src="//developers.kakao.com/sdk/js/kakao.min.js"></script>
|
||||
<script type="text/javascript" src="/smarteditor/js/HuskyEZCreator.js" charset="utf-8"></script>
|
||||
<script async src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
|
||||
<script type="text/javascript" src="/js/slick.js"></script>
|
||||
<script async src="/js/web/common.js"></script>
|
||||
<script src="/js/m/swiper.js"></script>
|
||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||
|
||||
<script>
|
||||
function setComma(_no) {
|
||||
return _no.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||
}
|
||||
|
||||
function zoom_in(){
|
||||
var scale = 'scale(1.25)';
|
||||
document.body.style.webkitTransform = scale; // Chrome, Opera, Safari
|
||||
document.body.style.msTransform = scale; // IE 9
|
||||
document.body.style.transform = scale;
|
||||
}
|
||||
|
||||
function zoom_out(){
|
||||
var scale = 'scale(1)';
|
||||
document.body.style.webkitTransform = scale; // Chrome, Opera, Safari
|
||||
document.body.style.msTransform = scale; // IE 9
|
||||
document.body.style.transform = scale;
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body id="<?=$body_class?>">
|
||||
<?=$Skin_Header?>
|
||||
<?=$Skin_Content?>
|
||||
|
||||
|
||||
<?=$Skin_Footer?>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
30
application/views/skin/m/_footer.php
Executable file
30
application/views/skin/m/_footer.php
Executable file
@@ -0,0 +1,30 @@
|
||||
<?
|
||||
$data = $this->session->userdata;
|
||||
?>
|
||||
|
||||
<div class="mypage_footer" style="margin-top:0">
|
||||
<div class="f_btns">
|
||||
<? if (isset($data['C_Member_Id'])): ?>
|
||||
<span><a href="/m/member/logout_proc" class="btn btn-default_bb br20">로그아웃</a></span>
|
||||
<? else: ?>
|
||||
<span><a href="/m/member/login" class="btn btn-default_bb br20">로그인</a></span>
|
||||
<? endif; ?>
|
||||
<span><a href="/?pc_screen=1" class="btn btn-default_bb br20">PC버전</a></span>
|
||||
<span><a href="/m/board/notice" class="btn btn-default_bb br20">고객센터</a></span>
|
||||
</div>
|
||||
<div class="f_policy">
|
||||
<span><a href="/m/rules/service">이용약관</a></span>
|
||||
<span style="padding:0 2px"><img src="/img/mobile/bar.gif"></span>
|
||||
<span><a href="/m/rules/privacy">개인정보취급방침</a></span>
|
||||
</div>
|
||||
<div class="f_social">
|
||||
<span><a href="/"><img src="/img/mobile/f_icon1_l.png"></a></span>
|
||||
<span><a href="https://www.facebook.com/crossmapkr/" target="_blank"><img src="/img/mobile/f_icon2_l.png"></a></span>
|
||||
<span><a href="https://www.instagram.com/crossmapkr/" target="_blank"><img src="/img/mobile/f_icon3_l.png"></a></span>
|
||||
<span><a onclick="$(window).scrollTop(0)"><img src="/img/mobile/f_icon4_l.png"></a></span>
|
||||
</div>
|
||||
<div class="copyright">
|
||||
© 2017 The CrossMap. All Rights Reserved.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
0
application/views/skin/m/_header.php
Executable file
0
application/views/skin/m/_header.php
Executable file
0
application/views/skin/m/_null.php
Executable file
0
application/views/skin/m/_null.php
Executable file
145
application/views/skin/m/news/_body.php
Executable file
145
application/views/skin/m/news/_body.php
Executable file
@@ -0,0 +1,145 @@
|
||||
<?php
|
||||
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$title = ''; $main_img = ''; $content_txt = '';
|
||||
if(isset($arr_content['title'])==true) {
|
||||
$title = $arr_content['title'];
|
||||
$title = str_replace("'", "\\'", $title);
|
||||
$title = str_replace('"', '\\"', $title);
|
||||
}
|
||||
if(isset($arr_content['main_img'])==true) $main_img = $arr_content['main_img'];
|
||||
if(isset($arr_content['content'])==true) {
|
||||
$content = $arr_content['content'];
|
||||
$content_txt = preg_replace("(\<(/?[^\>]+)\>)", "", $content);
|
||||
$content_txt = strip_tags($content_txt);
|
||||
$content_txt = str_replace("'", "\\'", $content_txt);
|
||||
$content_txt = str_replace('”', '"', $content_txt);
|
||||
$content_txt = mb_strimwidth($content_txt, '0', '250', '..', 'utf-8');
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="naver-site-verification" content="894ba0807460988349b1e131377b26966e347fc1"/>
|
||||
<meta name="google-site-verification" content="CitaOJM4btglyBtNxZFYymBBzh3g7Pb9PxKl9YF8jDg" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta charset="utf-8">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
|
||||
<meta property="fb:app_id" content="961578337335000" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="<?=CROSSMAP_URL?>" />
|
||||
<meta property="og:title" content="<?=$title?>" />
|
||||
<meta property="og:description" content="<?=$content_txt?>" />
|
||||
<meta property="og:image" content="<?=WWW_CROSSMAP?><?=$main_img?>" />
|
||||
<title><?=$site_info['homepage_title']?></title>
|
||||
<link rel="shortcut icon" href="/img/shortcut_icon.png">
|
||||
<link rel="apple-touch-icon" href="/img/shortcut_icon.png">
|
||||
<link rel="apple-touch-startup-image" href="/img/shortcut_icon.png">
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/slick.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/m/mobile.css?t=<?=time()?>"/>
|
||||
<link rel="stylesheet" href="/css/m/swiper.min.css"><!-- 슬라이드 CSS-->
|
||||
<!--script src="/js/jquery-3.3.1.min.js"></script-->
|
||||
<script src="/js/m/jquery-1.11.3.min.js"></script>
|
||||
<script src="/js/m/swiper.js"></script>
|
||||
<script src="//developers.kakao.com/sdk/js/kakao.min.js"></script>
|
||||
<script type="text/javascript" src="/smarteditor/js/HuskyEZCreator.js" charset="utf-8"></script>
|
||||
<script async src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
|
||||
<script type="text/javascript" src="/js/slick.js"></script>
|
||||
<script async src="/js/web/common.js"></script>
|
||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||
|
||||
<script>
|
||||
function setComma(_no) {
|
||||
return _no.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||
}
|
||||
function zoom_in(){
|
||||
var viewportmeta = document.querySelector('meta[name="viewport"]');
|
||||
if (viewportmeta) {
|
||||
viewportmeta.content = 'width=device-width, minimum-scale=1.0, maximum-scale=1.25, initial-scale=1.25';
|
||||
document.body.addEventListener('gesturestart', function () {
|
||||
viewportmeta.content = 'width=device-width, minimum-scale=0.25, maximum-scale=1.6';
|
||||
}, false);
|
||||
}
|
||||
}
|
||||
|
||||
function zoom_out(){
|
||||
var viewportmeta = document.querySelector('meta[name="viewport"]');
|
||||
if (viewportmeta) {
|
||||
viewportmeta.content = 'width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0';
|
||||
document.body.addEventListener('gesturestart', function () {
|
||||
viewportmeta.content = 'width=device-width, minimum-scale=0.25, maximum-scale=1.6';
|
||||
}, false);
|
||||
}
|
||||
}
|
||||
|
||||
var e2k = (function() {
|
||||
var en_h = "rRseEfaqQtTdwWczxvg";
|
||||
var reg_h = "[" + en_h + "]";
|
||||
|
||||
var en_b = {k:0,o:1,i:2,O:3,j:4,p:5,u:6,P:7,h:8,hk:9,ho:10,hl:11,y:12,n:13,nj:14,np:15,nl:16,b:17,m:18,ml:19,l:20};
|
||||
var reg_b = "hk|ho|hl|nj|np|nl|ml|k|o|i|O|j|p|u|P|h|y|n|b|m|l";
|
||||
|
||||
var en_f = {"":0,r:1,R:2,rt:3,s:4,sw:5,sg:6,e:7,f:8,fr:9,fa:10,fq:11,ft:12,fx:13,fv:14,fg:15,a:16,q:17,qt:18,t:19,T:20,d:21,w:22,c:23,z:24,x:25,v:26,g:27};
|
||||
var reg_f = "rt|sw|sg|fr|fa|fq|ft|fx|fv|fg|qt|r|R|s|e|f|a|q|t|T|d|w|c|z|x|v|g|";
|
||||
|
||||
var reg_exp = new RegExp("("+reg_h+")("+reg_b+")(("+reg_f+")(?=("+reg_h+")("+reg_b+"))|("+reg_f+"))","g");
|
||||
|
||||
var replace = function(str,h,b,f) {
|
||||
return String.fromCharCode(en_h.indexOf(h) * 588 + en_b[b] * 28 + en_f[f] + 44032);
|
||||
};
|
||||
|
||||
return (function(str) {
|
||||
return str.replace(reg_exp,replace);
|
||||
});
|
||||
})();
|
||||
|
||||
var mySwiper ;
|
||||
$(document).ready(function(){
|
||||
|
||||
$('.news_menu').click(function(){
|
||||
$('.life_menu_l').addClass('active');
|
||||
$('.mainswiper').css('height','740px');
|
||||
});
|
||||
$('.life_close').click(function(){
|
||||
if(typeof($('.life_menu_l').html()) =='undefined'){
|
||||
$('.life_menu').removeClass('active');
|
||||
}else{
|
||||
$('.life_menu_l').removeClass('active');
|
||||
}
|
||||
|
||||
$('.mainswiper').css('height','auto');
|
||||
});
|
||||
$('.dims').click(function(){
|
||||
if(typeof($('.life_menu_l').html()) =='undefined'){
|
||||
$('.life_menu').removeClass('active');
|
||||
}else{
|
||||
$('.life_menu_l').removeClass('active');
|
||||
}
|
||||
|
||||
$('.mainswiper').css('height','auto');
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body id="<?=$body_class?>">
|
||||
<?=$Skin_Header?>
|
||||
<?=$Skin_Content?>
|
||||
|
||||
<?=$Skin_Footer?>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
30
application/views/skin/m/news/_footer.php
Executable file
30
application/views/skin/m/news/_footer.php
Executable file
@@ -0,0 +1,30 @@
|
||||
<?
|
||||
$data = $this->session->userdata;
|
||||
?>
|
||||
|
||||
<div class="mypage_footer" style="margin-top:0">
|
||||
<div class="f_btns">
|
||||
<? if (isset($data['C_Member_Id'])): ?>
|
||||
<span><a href="/m/member/logout_proc" class="btn btn-default_bb br20">로그아웃</a></span>
|
||||
<? else: ?>
|
||||
<span><a href="/m/member/login" class="btn btn-default_bb br20">로그인</a></span>
|
||||
<? endif; ?>
|
||||
<span><a href="/?pc_screen=1" class="btn btn-default_bb br20">PC버전</a></span>
|
||||
<span><a href="/m/board/notice" class="btn btn-default_bb br20">고객센터</a></span>
|
||||
</div>
|
||||
<div class="f_policy">
|
||||
<span><a href="/m/rules/service">이용약관</a></span>
|
||||
<span style="padding:0 2px"><img src="/img/mobile/bar.gif"></span>
|
||||
<span><a href="/m/rules/privacy">개인정보취급방침</a></span>
|
||||
</div>
|
||||
<div class="f_social">
|
||||
<span><a href="/"><img src="/img/mobile/f_icon1_l.png"></a></span>
|
||||
<span><a href="https://www.facebook.com/crossmapkr/" target="_blank"><img src="/img/mobile/f_icon2_l.png"></a></span>
|
||||
<span><a href="https://www.instagram.com/crossmapkr/" target="_blank"><img src="/img/mobile/f_icon3_l.png"></a></span>
|
||||
<span><a onclick="$(window).scrollTop(0)"><img src="/img/mobile/f_icon4_l.png"></a></span>
|
||||
</div>
|
||||
<div class="copyright">
|
||||
© 2017 The CrossMap. All Rights Reserved.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
182
application/views/skin/m/news/_header.php
Executable file
182
application/views/skin/m/news/_header.php
Executable file
@@ -0,0 +1,182 @@
|
||||
<?
|
||||
|
||||
$data = $this->session->userdata;
|
||||
|
||||
$ci = &get_instance();
|
||||
$now_date = date("Y-m-d");
|
||||
$ci->load->model('web/m_today_word');
|
||||
$arr_today_word = $ci->m_today_word->today_word_where_display_date_select($now_date);
|
||||
$today_word = '하나님이 세상을 이처럼 사랑하사 </br>독생자를 주셨으니 이는 그를 믿는 자마다 </br>멸망하지 않고 영생을 얻게 하려 하심이라';
|
||||
$today_word_title = '요한복음 3장 16절';
|
||||
if(count($arr_today_word)>0) {
|
||||
$today_word = $arr_today_word['word'];
|
||||
$today_word_title = $arr_today_word['title'];
|
||||
}
|
||||
|
||||
$ci->load->helper('cookie');
|
||||
$comment_sns_id = get_cookie('crossmap_comment_sns_id');
|
||||
$comment_sns_name = get_cookie('crossmap_comment_sns_name');
|
||||
|
||||
$comment_sns_type = get_cookie('crossmap_comment_sns_type');
|
||||
|
||||
if (isset($data['C_Member_Id']) || isset($comment_sns_name)) {
|
||||
if($comment_sns_name) {
|
||||
$data['C_Member_Profile'] = '/img/mobile/life_profile.png';
|
||||
$data['C_Member_Nicname'] = $comment_sns_name;
|
||||
$data['C_Member_Group_Name'] = $comment_sns_type;
|
||||
$logout_link = "comment_logout();";
|
||||
} else if($data['C_Member_Id']) {
|
||||
$logout_link = "window.location='/m/member/logout_proc'";
|
||||
} else {
|
||||
$logout_link = "";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<script>
|
||||
function comment_logout(){
|
||||
location.href="/web/comm/comment_logout";
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="life_menu">
|
||||
<div class="life_menu_top">
|
||||
<h1 class="logo"><a href="/m"><img src="/img/mobile/life_logo.png"></a></h1>
|
||||
<span class="life_close"><img src="/img/mobile/close.png" style="cursor:pointer"></span>
|
||||
|
||||
<? if (isset($data['C_Member_Id']) || isset($comment_sns_name)): ?>
|
||||
|
||||
<div class="profile"><a href="https://crossmap.co.kr/m/mypage/req_password"><img src="<?= $data['C_Member_Profile'] ?>"
|
||||
onerror="this.src='/img/mobile/life_profile.png'"
|
||||
style="max-width:77px;max-height:77px;"></a></div>
|
||||
<div class="nickname"><a href="https://crossmap.co.kr/m/mypage/req_password"><?= $data['C_Member_Nicname'] ?></a></div>
|
||||
<div class="member"><a href="https://crossmap.co.kr/m/mypage/req_password"><?= $data['C_Member_Group_Name'] ?></a></div>
|
||||
<div class="life_menu_btn" style="background: #f6f6f6;">
|
||||
<button type="button" class="btn btn-default br20" style="width:100px;color:#a7a7a7"
|
||||
onclick="<?=$logout_link;?>">로그아웃
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
<? else: ?>
|
||||
|
||||
<div class="profile"><a><img src="/img/mobile/life_profile.png"></a></div>
|
||||
<div class="bible"><?=$today_word?><br><span class="chpter"><?=$today_word_title?></span>
|
||||
</div>
|
||||
<div class="life_menu_btn" style="background: #f6f6f6;">
|
||||
<button type="button" class="btn btn-default br20" style="width:100px;color:#a7a7a7" onclick="login()">
|
||||
로그인
|
||||
</button>
|
||||
</div>
|
||||
<? endif; ?>
|
||||
<div class="life_cate">
|
||||
<span style="width:30%;"><img src="/img/mobile/life_icon2.png"><a <?=(isset($data['C_Member_Id']))? 'href="/m/mypage/user_comment"' : 'href="javascript:alert(\'로그인 후 사용 가능합니다.\')" ' ?> >내댓글보기</a></span>
|
||||
<span><img src="/img/mobile/life_bar.gif"></span>
|
||||
<span style="width:28%;"><img src="/img/mobile/life_icon3.png"> <a <?=(isset($data['C_Member_Id']))? 'href="/m/mypage/bookmark"' : 'href="javascript:alert(\'로그인 후 사용 가능합니다.\')" ' ?>>북마크</a></span>
|
||||
<span><img src="/img/mobile/life_bar.gif"></span>
|
||||
<span style="width:28%;"><img src="/img/mobile/life_icon1.png"><a <?=(isset($data['C_Member_Id']))? 'href="/m/mypage/delivery"' : 'href="javascript:alert(\'로그인 후 사용 가능합니다.\')" ' ?>>배달함</a></span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<ul class="life_list_top">
|
||||
<li><a href="/web/maptoon" style="cursor:pointer;" >웹툰</a></li>
|
||||
<li><a href="/web/news" style="cursor:pointer;" >뉴스</a></li>
|
||||
<li><a href="/m/life" style="cursor:pointer;" >은혜</a></li>
|
||||
<li><a href="/m/cmtv" style="cursor:pointer;" >크맵TV</a></li>
|
||||
<li><a href="/m/prayer" style="cursor:pointer;" >기도공감</a></li>
|
||||
</ul>
|
||||
<div class="life_app">
|
||||
<h4 style="padding: 0 20px 10px 20px;">추천앱</h4>
|
||||
<?
|
||||
$ci = &get_instance();
|
||||
$ci->load->model('web/m_recommend_app');
|
||||
$result = $ci->m_recommend_app->recommend_app_list(array("offset" => 0, "limit" => 99));
|
||||
?>
|
||||
<div class="swiper-container swiper-03">
|
||||
|
||||
|
||||
<div class="swiper-wrapper">
|
||||
<? foreach ($result as $key => $app_data): ?>
|
||||
<div class="swiper-slide"><a href="<?= $app_data['market_url'] ?>" target="_blank"><img style="width:66px;height:66px;"
|
||||
src="<?= thumb($app_data['icon_img']) ?>"></a><a href="<?= $app_data['market_url'] ?>"
|
||||
target="_blank"
|
||||
class="app_txt"><?= $app_data['app_name'] ?></a>
|
||||
</div>
|
||||
<? endforeach; ?>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Add Arrows -->
|
||||
<div class="swiper-button-next"></div>
|
||||
<div class="swiper-button-prev"></div>
|
||||
<div class="swiper-pagination"> </div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="life_list_bottom">
|
||||
<li><a href="/m/board/notice">공지사항</a> <span class="new" style="display:none;">N</span></li>
|
||||
<li><a href="/m/board/faq">FAQ</a></li>
|
||||
<?if(isset($data['C_Member_Id'])):?>
|
||||
<li><a href="/m/mypage/qna">1:1 문의</a></li>
|
||||
<?endif?>
|
||||
</ul>
|
||||
<div class="life_menu_btn">
|
||||
<? if (isset($data['C_Member_Id'])): ?>
|
||||
<button type="button" class="btn btn-default br20" style="widh:100px;color:#a7a7a7"
|
||||
onclick="window.location='/m/member/logout_proc'">로그아웃
|
||||
</button>
|
||||
<? else: ?>
|
||||
<button type="button" class="btn btn-default br20" style="width:100px;color:#a7a7a7" onclick="login()">로그인
|
||||
</button>
|
||||
<? endif ?>
|
||||
</div>
|
||||
<div class="life_menu_btn" style="padding-bottom:80px;">
|
||||
<button type="button" class="btn btn-default_bb br20" style="width:100px;" onclick="window.location='/'">PC 버전
|
||||
</button>
|
||||
</div>
|
||||
<div class="dims" id='swipeme'></div>
|
||||
<div class="dims2"></div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
$(document).ready(function(){
|
||||
$(".mypage_menu").click(function(event){
|
||||
event.preventDefault();
|
||||
$(".life_menu").addClass("active");
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
$('.life_close').click(function(){
|
||||
$('.life_menu').removeClass('active');
|
||||
|
||||
});
|
||||
|
||||
$('.dims').click(function(){
|
||||
$('.life_menu').removeClass('active');
|
||||
|
||||
});
|
||||
|
||||
function login(){
|
||||
window.location="/m/member/login?redir="+window.location.href;
|
||||
}
|
||||
var swiper2 = new Swiper('.swiper-03', {
|
||||
slidesPerView: 3,
|
||||
spaceBetween: 10,
|
||||
pagination : { // 페이징 설정
|
||||
el : '.swiper-pagination',
|
||||
clickable : true, // 페이징을 클릭하면 해당 영역으로 이동, 필요시 지정해 줘야 기능 작동
|
||||
},
|
||||
navigation: {
|
||||
nextEl: '.swiper-button-next',
|
||||
prevEl: '.swiper-button-prev',
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
85
application/views/skin/web/_body.php
Executable file
85
application/views/skin/web/_body.php
Executable file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$title = ''; $main_img = ''; $content_txt = '';
|
||||
if(isset($arr_content['title'])==true) {
|
||||
$title = $arr_content['title'];
|
||||
$title = str_replace("'", "\\'", $title);
|
||||
$title = str_replace('"', '\\"', $title);
|
||||
}
|
||||
if(isset($arr_content['main_img'])==true) $main_img = $arr_content['main_img'];
|
||||
if(isset($arr_content['content'])==true) {
|
||||
$content = $arr_content['content'];
|
||||
$content_txt = preg_replace("(\<(/?[^\>]+)\>)", "", $content);
|
||||
$content_txt = strip_tags($content_txt);
|
||||
$content_txt = str_replace("'", "\\'", $content_txt);
|
||||
$content_txt = str_replace('”', '"', $content_txt);
|
||||
$content_txt = mb_strimwidth($content_txt, '0', '250', '..', 'utf-8');
|
||||
$content_txt = trim($content_txt);
|
||||
}?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="naver-site-verification" content="894ba0807460988349b1e131377b26966e347fc1"/>
|
||||
<meta name="google-site-verification" content="CitaOJM4btglyBtNxZFYymBBzh3g7Pb9PxKl9YF8jDg" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<!--meta name="viewport" content="width=1100"--><!-- by justin -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="description" content="<?php echo getMetaDescription(get_defined_vars())?>, 기독교, 교회, 목사, 크리스천, 은혜, 찬양, 뉴스, 일상">
|
||||
<meta property="fb:app_id" content="961578337335000" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="<?=CROSSMAP_URL?>" />
|
||||
<meta property="og:title" content="<?php echo mb_substr(getMetaDescription(get_defined_vars()), 0, 100)?> - 크리스천포털 크로스맵" />
|
||||
<meta property="og:description" content="<?php echo $content_txt?>" />
|
||||
<meta property="og:image" content="<?php echo strpos($main_img, '://') !==false ? $main_img: WWW_CROSSMAP.$main_img ?>" />
|
||||
<title><?php echo mb_substr(getMetaDescription(get_defined_vars()), 0, 100)?> - 크리스천포털 크로스맵</title>
|
||||
<link rel="shortcut icon" href="/img/shortcut_icon.png">
|
||||
<link rel="apple-touch-icon" href="/img/shortcut_icon.png">
|
||||
<link rel="apple-touch-startup-image" href="/img/shortcut_icon.png">
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/common.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/news.css?<?=time()?>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/channel.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/life.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/search.css"/>
|
||||
<script src="/js/jquery-3.3.1.min.js"></script>
|
||||
<script src="/js/web/common.js?<?=time()?>"></script>
|
||||
<script src="/js/web/jquery.vticker.min.js"></script>
|
||||
<script src="//developers.kakao.com/sdk/js/kakao.min.js"></script>
|
||||
<script type="text/javascript" src="/smarteditor/js/HuskyEZCreator.js" charset="utf-8"></script>
|
||||
<!-- <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({
|
||||
google_ad_client: "ca-pub-7071495522658800",
|
||||
enable_page_level_ads: true
|
||||
});
|
||||
</script> -->
|
||||
<!-- <script type="text/javascript">
|
||||
var mobile_keys = new Array('iPhone','iPod','iPad','Android','BlackBerry','Windows Phone','Windows CE','LG','MOT','SAMSUNG','SonyEricsson','Nokia');
|
||||
if(document.URL.match('pc_screen')) mobile_keys = null;
|
||||
for(i in mobile_keys){
|
||||
if(navigator.userAgent.match(mobile_keys[i]) != null){
|
||||
location.href = "/m/";
|
||||
break;
|
||||
}
|
||||
}
|
||||
</script> -->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?=$Skin_Header?>
|
||||
<?=$Skin_Content?>
|
||||
<iframe id="kmc_mobile_auth" src="/web/comm/kmc_mobile_auth" style="width:0px;height:0px;position:absolute; top:0; left:-9999px;" ></iframe>
|
||||
<?=$Skin_Footer?>
|
||||
|
||||
|
||||
<? if($SES_MEMBER_ID!='') {?>
|
||||
<? require_once(APPPATH."views/web/comm/delivery_inc.php"); ?>
|
||||
<? }?>
|
||||
<? require_once(APPPATH."views/web/comm/user_comment_inc.php"); ?>
|
||||
<? require_once(APPPATH."views/web/comm/member_inc.php"); ?>
|
||||
<? require_once(APPPATH."views/web/comm/popup_inc.php"); ?>
|
||||
</body>
|
||||
</html>
|
||||
66
application/views/skin/web/_body_ori.php
Executable file
66
application/views/skin/web/_body_ori.php
Executable file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
header("Pragma: no-cache");
|
||||
header("Cache-Control: no-cache,must-revalidate");
|
||||
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="viewport" content="width=1100">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<title><?=$site_info['homepage_title']?></title>
|
||||
<link rel="shortcut icon" href="/img/shortcut_icon.png">
|
||||
<link rel="apple-touch-icon" href="/img/shortcut_icon.png">
|
||||
<link rel="apple-touch-startup-image" href="/img/shortcut_icon.png">
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/common.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/news.css?<?=time()?>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/channel.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/life.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/search.css"/>
|
||||
<script src="/js/jquery-3.3.1.min.js"></script>
|
||||
<script src="/js/web/common.js?<?=time()?>"></script>
|
||||
<script src="/js/web/jquery.vticker.min.js"></script>
|
||||
<script src="//developers.kakao.com/sdk/js/kakao.min.js"></script>
|
||||
<script type="text/javascript" src="/smarteditor/js/HuskyEZCreator.js" charset="utf-8"></script>
|
||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||
<!-- <script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({
|
||||
google_ad_client: "ca-pub-7071495522658800",
|
||||
enable_page_level_ads: true
|
||||
});
|
||||
</script> -->
|
||||
<!-- <script type="text/javascript">
|
||||
var mobile_keys = new Array('iPhone','iPod','iPad','Android','BlackBerry','Windows Phone','Windows CE','LG','MOT','SAMSUNG','SonyEricsson','Nokia');
|
||||
if(document.URL.match('pc_screen')) mobile_keys = null;
|
||||
for(i in mobile_keys){
|
||||
if(navigator.userAgent.match(mobile_keys[i]) != null){
|
||||
location.href = "/m/";
|
||||
break;
|
||||
}
|
||||
}
|
||||
</script> -->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?=$Skin_Header?>
|
||||
<?=$Skin_Content?>
|
||||
<iframe id="kmc_mobile_auth" src="/web/comm/kmc_mobile_auth" style="width:0px;height:0px;position:absolute; top:0; left:-9999px;" ></iframe>
|
||||
<?=$Skin_Footer?>
|
||||
|
||||
|
||||
|
||||
<? if($SES_MEMBER_ID!='') {?>
|
||||
<? require_once(APPPATH."views/web/comm/delivery_inc.php"); ?>
|
||||
<? }?>
|
||||
<? require_once(APPPATH."views/web/comm/user_comment_inc.php"); ?>
|
||||
<? require_once(APPPATH."views/web/comm/member_inc.php"); ?>
|
||||
<? require_once(APPPATH."views/web/comm/popup_inc.php"); ?>
|
||||
</body>
|
||||
</html>
|
||||
26
application/views/skin/web/_footer.php
Executable file
26
application/views/skin/web/_footer.php
Executable file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
$footer_content = $site_info['footer_content'];
|
||||
$footer_script = $site_info['footer_script'];
|
||||
?>
|
||||
|
||||
|
||||
<!-- <div class="gototop"><a href=""><img src="/img/web/gototop.gif"></a></div>-->
|
||||
|
||||
<div class="footer">
|
||||
<div class="wrap">
|
||||
<ul class="foot_link">
|
||||
<li><a href="https://hwttjung.wixsite.com/mysite-1" target="https://hwttjung.wixsite.com/mysite-1">회사소개</a></li>
|
||||
<li><a href="/web/rules/privacy">개인정보 취급방침</a></li>
|
||||
<li><a href="/web/rules/service">이용약관</a></li>
|
||||
<li><a href="/web/cs/notice">고객센터</a></li>
|
||||
</ul>
|
||||
<span class="copyright"><?=$footer_content?></span>
|
||||
<div class="f_social">
|
||||
<a href="/"><img src="/img/web/f_icon1.png" alt="" title=""></a>
|
||||
<a href="https://www.instagram.com/crossmapkr/" target="_blank"><img src="/img/web/f_icon2.png" alt="" title=""></a>
|
||||
<a href="https://www.facebook.com/crossmapkr/" target="_blank"><img src="/img/web/f_icon3.png" alt="" title=""></a>
|
||||
<a href="#"><img src="/img/web/f_icon5.png" alt="" title=""></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?=htmlspecialchars_decode($footer_script)?>
|
||||
371
application/views/skin/web/_header.php
Executable file
371
application/views/skin/web/_header.php
Executable file
@@ -0,0 +1,371 @@
|
||||
<?
|
||||
# session
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$SES_MEMBER_NAME = $this->session->userdata('C_Member_Name');
|
||||
$SES_MEMBER_NICNAME = $this->session->userdata('C_Member_Nicname');
|
||||
$SES_MEMBER_PROFILE = $this->session->userdata('C_Member_Profile');
|
||||
$SES_MEMBER_GROUPNAME = $this->session->userdata('C_Member_Group_Name');
|
||||
$SES_MEMBER_INTRO = $this->session->userdata('C_Member_Intro');
|
||||
$SES_MEMBER_EMAIL = $this->session->userdata('C_Member_Email');
|
||||
|
||||
if($SES_MEMBER_PROFILE == '') $SES_MEMBER_PROFILE = '/img/web/img_profile_l.png';
|
||||
if($SES_MEMBER_NICNAME == '') $SES_MEMBER_NICNAME = $SES_MEMBER_NAME;
|
||||
|
||||
$controller = $this->uri->segment(2);
|
||||
$method = $this->uri->segment(3);
|
||||
if($controller != 'search') {
|
||||
$search_keyword = '';
|
||||
}
|
||||
$content_type = trim($this->input->get_post('content_type', TRUE));
|
||||
|
||||
|
||||
$ci=& get_instance();
|
||||
|
||||
# 영적기상도
|
||||
$ci->load->model('web/m_weather');
|
||||
$arr_weather = $ci->m_weather->weather_join_relation_article_limit1();
|
||||
|
||||
# 실시간급상승 검색어
|
||||
$ci->load->model('web/m_realtime_keyword');
|
||||
$arr_realtime_keyword = $ci->m_realtime_keyword->realtime_keyword_all_list();
|
||||
|
||||
$return_data['arr_realtime_keyword'] = $arr_realtime_keyword;
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="top">
|
||||
<div class="wrap">
|
||||
<div class="area_links">
|
||||
<span><a href="javascript:bookmark_site('<?=$site_info['homepage_title']?>', 'http://crossmap.co.kr')">즐겨찾기</a> </span>
|
||||
<span class="bar"><img src="/img/web/mypage_bar.gif" alt=""></span>
|
||||
<span><a href="/web/cs/faq_view/33?search_keyword=&search_category1=31&search_category2=02&data_num=2">시작페이지로</a> </span>
|
||||
</div>
|
||||
|
||||
|
||||
<? if($SES_MEMBER_ID=='') {?>
|
||||
<div class="area_ingo">
|
||||
<?/*<!-- <span><a href="javascript:commonLayerOpen('login_layer')">로그인</a> </span> --> 20190214 팝업 -> url이동으로 변경*/?>
|
||||
<span><a href="https://crossmap.co.kr/web/user/login">로그인</a> </span>
|
||||
<span class="bar"><img src="/img/web/mypage_bar.gif" alt=""></span>
|
||||
<span ><a href="/m/" class="current" target="_blank">모바일 보기</a> </span>
|
||||
<span class="social">
|
||||
<a href="/"><img src="/img/web/img_home.png" alt="home"></a>
|
||||
<a href="https://www.facebook.com/crossmapkr/" target="_blank"><img src="/img/web/img_facebook.png" alt="facebook"></a>
|
||||
<a href="https://www.instagram.com/crossmapkr/" target="_blank"><img src="/img/web/img_instagram.png" alt="instagram"></a>
|
||||
</span>
|
||||
</div>
|
||||
<? } else {?>
|
||||
<div class="news_ingo">
|
||||
<span class="profile"><img src="<?=$SES_MEMBER_PROFILE?>" alt="profile" width="21" width="21"></span>
|
||||
<span class="arrow"><a href="javascript:change_toggle('mybox');"><span class="beachblue"><?=$SES_MEMBER_NICNAME?></span> 님</a> </span>
|
||||
<span class="bar"><img src="/img/web/mypage_bar.gif" alt="info"></span>
|
||||
<span class="beachblue"><a href="/m/" target="_blank">모바일 보기</a> </span>
|
||||
<span class="social">
|
||||
<a href="/"><img src="/img/web/img_home.png" alt="home"></a>
|
||||
<a href="https://www.facebook.com/crossmapkr"><img src="/img/web/img_facebook.png" alt="facebook"></a>
|
||||
<a href="https://www.instagram.com/crossmapkr/"><img src="/img/web/img_instagram.png" alt="instagram"></a>
|
||||
</span>
|
||||
</div>
|
||||
<? require_once(APPPATH."views/web/comm/mybox_inc.php"); ?>
|
||||
<? }?>
|
||||
|
||||
</div> <!--wrap-->
|
||||
</div><!--top-->
|
||||
|
||||
<div class="header">
|
||||
<div class="special">
|
||||
<div class="wrap">
|
||||
<div class="logo">
|
||||
<a href="/"><img src="/img/web/logo.jpg" alt="logo"></a>
|
||||
</div>
|
||||
<div class="search">
|
||||
<form name="search_form" id="search_form" method="get" action="/web/search/" onsubmit="return submit_check(); return false;">
|
||||
<input type="text" class="window" id="search_keyword" name="search_keyword" value="<?=$search_keyword?>" onkeyup="onkeyup_search_keyword(this.value);">
|
||||
<span id="search_arrow" class="src_icon arrow_down_on"></span>
|
||||
<div class="src_sumit" style="cursor:pointer;" onclick="search_keyword_proc('')" id="search_btn">
|
||||
<img src="/img/web/img_search.gif" style="padding-left: 10px; padding-top: 9px;">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="open_search" id="search_keyword_box" style="display:none">
|
||||
<div class="roll_box" id="search_keyword_list"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section_navbar">
|
||||
<div class="wrap">
|
||||
|
||||
<? if($controller == 'search' || $controller == 'news') {?>
|
||||
<? if($controller=='search') {?>
|
||||
<ul class="menu">
|
||||
<li><a href="/web/search/?search_keyword=<?=urlencode($search_keyword)?>" <? if($method=='') { echo 'class="current"';}?>>통합검색 </a></li>
|
||||
<li><a href="/web/search/image?search_keyword=<?=urlencode($search_keyword)?>" <? if($method=='image') { echo 'class="current"';}?>>이미지 </a></li>
|
||||
<li><a href="/web/search/list?search_keyword=<?=urlencode($search_keyword)?>&content_type=3" <? if($content_type=='3') { echo 'class="current"';}?>>라이프</a></li>
|
||||
<li><a href="/web/search/news?search_keyword=<?=urlencode($search_keyword)?>" <? if($method=='news') { echo 'class="current"';}?>>뉴스</a></li>
|
||||
<li><a href="/web/search/video?search_keyword=<?=urlencode($search_keyword)?>" <? if($method=='video') { echo 'class="current"';}?>>동영상</a></li>
|
||||
<li><a href="/web/search/list?search_keyword=<?=urlencode($search_keyword)?>&content_type=2" <? if($content_type=='2') { echo 'class="current"';}?>>칼럼</a></li>
|
||||
</ul>
|
||||
<? } else {?>
|
||||
|
||||
<ul class="menu">
|
||||
<li><a href="/">홈</a></li>
|
||||
<li><a href="/web/news/" class="current">뉴스</a></li>
|
||||
<li><a href="/web/maptoon">웹툰</a></li>
|
||||
<!-- <li><a href="/web/life/">은혜충전</a></li> -->
|
||||
<li><a href="/grace">은혜충전</a></li>
|
||||
<li><a href="/cmtv/" >크맵TV</a></li>
|
||||
<li><a href="/web/prayer/" >기도공감</a></li>
|
||||
<li><a href="/reference" >자료실</a></li>
|
||||
</ul>
|
||||
|
||||
<? }?>
|
||||
|
||||
|
||||
<!--div class="condition" id="cross_header_weather" style="display:none">
|
||||
<span class="tt">영적기상도 </span>
|
||||
<ul>
|
||||
<?
|
||||
foreach ($arr_weather as $val) {
|
||||
?>
|
||||
<li style="height:40px;cursor: pointer" onclick="location.href='/web/news/news_view/<?=$val['relation_article_idx']?>'">
|
||||
<span class="country"><?=$val['continent']?></span>
|
||||
<span><?=$val['country']?><span class="weather"><img src="<?=$val['weather_icon']?>" width="22"></span> <?=$val['weather_content']?></span>
|
||||
</li>
|
||||
|
||||
<? }?>
|
||||
</ul>
|
||||
|
||||
</div-->
|
||||
|
||||
<? } else {?>
|
||||
|
||||
<ul class="menu">
|
||||
<li><a href="/" <? if($controller=='') { echo 'class="current"'; }?> >홈</a></li>
|
||||
<li><a href="/web/news/" <? if($controller=='news') { echo 'class="current"'; }?>>뉴스</a></li>
|
||||
<li><a href="/web/maptoon/" <? if($controller=='maptoon') { echo 'class="current"'; }?>>웹툰</a></li>
|
||||
<!-- <li><a href="/web/life/" <? if($controller=='life') { echo 'class="current"'; }?>>은혜충전</a></li> -->
|
||||
<li><a href="/grace" <? if($controller=='grace') { echo 'class="current"'; }?>>은혜충전</a></li>
|
||||
<li><a href="/cmtv/" <? if($controller=='cmtv') { echo 'class="current"'; }?>>크맵TV</a></li>
|
||||
<li><a href="/web/prayer/" <? if($controller=='prayer') { echo 'class="current"'; }?>>기도공감</a></li>
|
||||
<li><a href="/reference" >자료실</a></li>
|
||||
</ul>
|
||||
<!--<div class="roll" id="roll_realtime_keyword" style="display:none">
|
||||
<ul>
|
||||
<?
|
||||
foreach ($arr_realtime_keyword as $key=>$val) {
|
||||
$keyword = mb_strimwidth($val['keyword'], '0', '25', '..', 'utf-8');
|
||||
?>
|
||||
<li>
|
||||
<span class="number beachblue"><?=$val['rank']?></span>
|
||||
<span class="roll_txt"><a href="/web/search/?search_keyword=<?=urlencode($keyword)?>"><?=$keyword?></a></span>
|
||||
<span><a href="javascript:change_toggle('realtime_rank');"><img src="/img/web/roll_down.gif"></a></span>
|
||||
</li>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>-->
|
||||
|
||||
<div class="open_roll" id="realtime_rank" style="display:none">
|
||||
<div class="txt">실시간 급상승</div>
|
||||
<ul class="ranking">
|
||||
<li style="width:48%"><a href="javascript:change_realtime_rank(1);" id="realtime_btn1" class="current">1-10위</a></li>
|
||||
<li style="width:2%"><img src="/img/web/img_ranking.gif"></li>
|
||||
<li style="width:48%"><a href="javascript:change_realtime_rank(2);" id="realtime_btn2">11-20위</a></li>
|
||||
</ul>
|
||||
<ul class="roll_box" id="realtime_keyword_list1">
|
||||
<?
|
||||
foreach ($arr_realtime_keyword as $key=>$val) {
|
||||
|
||||
if($key == 10) echo '<ul class="roll_box" id="realtime_keyword_list2" style="display:none">';
|
||||
|
||||
$last_rank = $val['last_rank'];
|
||||
$rank = $val['rank'];
|
||||
|
||||
$class = '';
|
||||
$last_rank_txt = '';
|
||||
if($last_rank==0){
|
||||
$class = 'new';
|
||||
$last_rank_txt = 'NEW';
|
||||
} else {
|
||||
$calc_rank = $last_rank - $rank;
|
||||
if($calc_rank == 0){ // 같음
|
||||
$last_rank_txt = '-';
|
||||
} else if($calc_rank > 0){ // up
|
||||
$last_rank_txt = '<img src="/img/web/btn_up.jpg">'.$calc_rank;
|
||||
} else {
|
||||
$last_rank_txt = '<img src="/img/web/btn_down.jpg">'.abs($calc_rank);
|
||||
}
|
||||
}
|
||||
|
||||
$keyword = mb_strimwidth($val['keyword'], '0', '25', '..', 'utf-8');
|
||||
|
||||
|
||||
?>
|
||||
<div>
|
||||
<div class="issue_box">
|
||||
<span class="no"><?=$rank?></span>
|
||||
<span><a href="/web/search/?search_keyword=<?=urlencode($val['keyword'])?>"><?=$keyword?></a></span>
|
||||
<span class="bbox <?=$class?> updown"><?=$last_rank_txt?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?
|
||||
if($key == 9) echo '</ul>';
|
||||
|
||||
|
||||
} ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<? }?>
|
||||
|
||||
</div>
|
||||
</div><!--//section_navbar-->
|
||||
</div><!--//header-->
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
<? if($controller == 'search' || $controller == 'news') {?>
|
||||
$('#cross_header_weather').show();
|
||||
$('#cross_header_weather').vTicker();
|
||||
<? } else {?>
|
||||
|
||||
<?//20180808 높이 조정문제 수정을 위해 시차 조정?>
|
||||
$(document).ready(function() {
|
||||
$('#roll_realtime_keyword').show();
|
||||
$('#roll_realtime_keyword').vTicker();
|
||||
});
|
||||
|
||||
|
||||
<? }?>
|
||||
});
|
||||
|
||||
// 레이어 이외의 공간 클릭시 close
|
||||
$(document).mouseup(function (e){
|
||||
var container = $("#mybox");
|
||||
if( container.has(e.target).length === 0) container.hide();
|
||||
|
||||
var container = $("#realtime_rank");
|
||||
if( container.has(e.target).length === 0) container.hide();
|
||||
|
||||
var container = $("#search_keyword_box");
|
||||
if( container.has(e.target).length === 0){
|
||||
container.hide();
|
||||
$("#search_arrow").removeClass();
|
||||
$("#search_arrow").addClass('src_icon arrow_down_on');
|
||||
}
|
||||
});
|
||||
|
||||
$(".mask").on('click', function(event){
|
||||
$(event.target).parent().hide();
|
||||
|
||||
});
|
||||
|
||||
|
||||
// 실시간급상승
|
||||
function change_realtime_rank(page){
|
||||
$("#realtime_keyword_list1").hide();
|
||||
$("#realtime_keyword_list2").hide();
|
||||
$("#realtime_keyword_list"+page).show();
|
||||
|
||||
|
||||
$("#realtime_btn1").removeClass();
|
||||
$("#realtime_btn2").removeClass();
|
||||
$("#realtime_btn"+page).addClass('current');
|
||||
|
||||
}
|
||||
|
||||
|
||||
// 검색
|
||||
function onkeyup_search_keyword(val){
|
||||
if(val == '') {
|
||||
$("#search_arrow").removeClass();
|
||||
$("#search_keyword_list").empty();
|
||||
$("#search_keyword_box").hide();
|
||||
$("#search_arrow").addClass('src_icon arrow_down_on');
|
||||
} else {
|
||||
var form_data = {
|
||||
"keyword" : val
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/search/search_keyword',
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
var count = rtnJson.data.length;
|
||||
var content = '';
|
||||
for(var i=0;i<count;i++) {
|
||||
var result = rtnJson.data[i];
|
||||
var result_keyword = result.keyword;
|
||||
keyword = result_keyword.replace(val, '<span class="on">'+val+'</span>')
|
||||
content+= ' <div><span><a href="javascript:search_keyword_proc(\''+result_keyword+'\');">'+keyword+'</a></span><span class="close fr"></span><span class="date fr"></span></div>';
|
||||
}
|
||||
$("#search_keyword_list").html(content);
|
||||
$("#search_arrow").removeClass();
|
||||
$("#search_keyword_box").show();
|
||||
$("#search_arrow").addClass('src_icon arrow_up_on');
|
||||
} else {
|
||||
$("#search_arrow").removeClass();
|
||||
$("#search_keyword_list").empty();
|
||||
$("#search_keyword_box").hide();
|
||||
$("#search_arrow").addClass('src_icon arrow_down_on');
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function submit_check() {
|
||||
if(!$("#search_keyword").val()) {
|
||||
alert('검색어를 입력하세요.');
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function search_keyword_proc(search_keyword){
|
||||
if(search_keyword == '') {
|
||||
search_keyword = $("#search_keyword").val();
|
||||
}
|
||||
|
||||
var result = true;
|
||||
if(search_keyword!='') result = search_keyword_reg(search_keyword);
|
||||
if(result==true) {
|
||||
$("#search_keyword").val(search_keyword);
|
||||
$("#search_form").submit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// 즐겨찾기
|
||||
function bookmark_site(title,url) {
|
||||
if(window.chrome){ // Google Chrome
|
||||
alert("Ctrl+D키를 누르시면 즐겨찾기에 추가하실 수 있습니다.");
|
||||
} else if (window.sidebar) { // firefox
|
||||
window.sidebar.addPanel(title, url, "");
|
||||
} else if(window.opera && window.print) { // opera
|
||||
var elem = document.createElement('a');
|
||||
elem.setAttribute('href',url);
|
||||
elem.setAttribute('title',title);
|
||||
elem.setAttribute('rel','sidebar');
|
||||
elem.click();
|
||||
} else if(window.external) { // Internet Explorer
|
||||
window.external.AddFavorite(url, title);
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
360
application/views/skin/web/_header_test.php
Executable file
360
application/views/skin/web/_header_test.php
Executable file
@@ -0,0 +1,360 @@
|
||||
<?
|
||||
# session
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$SES_MEMBER_NAME = $this->session->userdata('C_Member_Name');
|
||||
$SES_MEMBER_NICNAME = $this->session->userdata('C_Member_Nicname');
|
||||
$SES_MEMBER_PROFILE = $this->session->userdata('C_Member_Profile');
|
||||
$SES_MEMBER_GROUPNAME = $this->session->userdata('C_Member_Group_Name');
|
||||
$SES_MEMBER_INTRO = $this->session->userdata('C_Member_Intro');
|
||||
$SES_MEMBER_EMAIL = $this->session->userdata('C_Member_Email');
|
||||
|
||||
if($SES_MEMBER_PROFILE == '') $SES_MEMBER_PROFILE = '/img/web/img_profile_l.png';
|
||||
if($SES_MEMBER_NICNAME == '') $SES_MEMBER_NICNAME = $SES_MEMBER_NAME;
|
||||
|
||||
$controller = $this->uri->segment(2);
|
||||
$method = $this->uri->segment(3);
|
||||
if($controller != 'search') {
|
||||
$search_keyword = '';
|
||||
}
|
||||
$content_type = trim($this->input->get_post('content_type', TRUE));
|
||||
|
||||
|
||||
$ci=& get_instance();
|
||||
|
||||
# 영적기상도
|
||||
$ci->load->model('web/m_weather');
|
||||
$arr_weather = $ci->m_weather->weather_join_relation_article_limit1();
|
||||
|
||||
# 실시간급상승 검색어
|
||||
$ci->load->model('web/m_realtime_keyword');
|
||||
$arr_realtime_keyword = $ci->m_realtime_keyword->realtime_keyword_all_list();
|
||||
|
||||
$return_data['arr_realtime_keyword'] = $arr_realtime_keyword;
|
||||
|
||||
?>
|
||||
|
||||
<div class="top">
|
||||
<div class="wrap">
|
||||
<div class="area_links">
|
||||
<span><a href="javascript:bookmark_site('<?=$site_info['homepage_title']?>', 'http://crossmap.co.kr')">즐겨찾기</a> </span>
|
||||
<span class="bar"><img src="/img/web/mypage_bar.gif" alt=""></span>
|
||||
<span><a href="/web/cs/faq_view/33?search_keyword=&search_category1=31&search_category2=02&data_num=2">시작페이지로</a> </span>
|
||||
</div>
|
||||
|
||||
|
||||
<? if($SES_MEMBER_ID=='') {?>
|
||||
<div class="area_ingo">
|
||||
<span><a href="javascript:commonLayerOpen('login_layer')">로그인</a> </span>
|
||||
<span class="bar"><img src="/img/web/mypage_bar.gif" alt=""></span>
|
||||
<span ><a href="/m/" class="current" target="_blank">모바일 보기</a> </span>
|
||||
<span class="social">
|
||||
<a href="/"><img src="/img/web/img_home.png" alt="home"></a>
|
||||
<a href="https://www.facebook.com/crossmapkr/" target="_blank"><img src="/img/web/img_facebook.png" alt="facebook"></a>
|
||||
<a href="https://www.instagram.com/crossmapkr/" target="_blank"><img src="/img/web/img_instagram.png" alt="instagram"></a>
|
||||
</span>
|
||||
</div>
|
||||
<? } else {?>
|
||||
<div class="news_ingo">
|
||||
<span class="profile"><img src="<?=$SES_MEMBER_PROFILE?>" alt="profile" width="21" width="21"></span>
|
||||
<span class="arrow"><a href="javascript:change_toggle('mybox');"><span class="beachblue"><?=$SES_MEMBER_NICNAME?></span> 님</a> </span>
|
||||
<span class="bar"><img src="/img/web/mypage_bar.gif" alt="info"></span>
|
||||
<span class="beachblue"><a href="/m/" target="_blank">모바일 보기</a> </span>
|
||||
<span class="social">
|
||||
<a href="/"><img src="/img/web/img_home.png" alt="home"></a>
|
||||
<a href="https://www.facebook.com/crossmapkr"><img src="/img/web/img_facebook.png" alt="facebook"></a>
|
||||
<a href="https://www.instagram.com/crossmapkr/"><img src="/img/web/img_instagram.png" alt="instagram"></a>
|
||||
</span>
|
||||
</div>
|
||||
<? require_once(APPPATH."views/web/comm/mybox_inc.php"); ?>
|
||||
<? }?>
|
||||
|
||||
</div> <!--wrap-->
|
||||
</div><!--top-->
|
||||
|
||||
<div class="header">
|
||||
<div class="special">
|
||||
<div class="wrap">
|
||||
<div class="logo">
|
||||
<a href="/"><img src="/img/web/logo.jpg" alt="logo"></a>
|
||||
</div>
|
||||
<div class="search">
|
||||
<form name="search_form" id="search_form" method="get" action="/web/search/" onsubmit="return submit_check(); return false;">
|
||||
<input type="text" class="window" id="search_keyword" name="search_keyword" value="<?=$search_keyword?>" onkeyup="onkeyup_search_keyword(this.value);">
|
||||
<span id="search_arrow" class="src_icon arrow_down_on"></span>
|
||||
<div class="src_sumit" style="cursor:pointer;" onclick="search_keyword_proc('')" id="search_btn">
|
||||
<img src="/img/web/img_search.gif" style="padding-left: 10px; padding-top: 9px;">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="open_search" id="search_keyword_box" style="display:none">
|
||||
<div class="roll_box" id="search_keyword_list"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section_navbar">
|
||||
<div class="wrap">
|
||||
|
||||
<? if($controller == 'search' || $controller == 'news') {?>
|
||||
<? if($controller=='search') {?>
|
||||
<ul class="menu">
|
||||
<li><a href="/web/search/?search_keyword=<?=urlencode($search_keyword)?>" <? if($method=='') { echo 'class="current"';}?>>통합검색 </a></li>
|
||||
<li><a href="/web/search/image?search_keyword=<?=urlencode($search_keyword)?>" <? if($method=='image') { echo 'class="current"';}?>>이미지 </a></li>
|
||||
<li><a href="/web/search/list?search_keyword=<?=urlencode($search_keyword)?>&content_type=3" <? if($content_type=='3') { echo 'class="current"';}?>>라이프</a></li>
|
||||
<li><a href="/web/search/news?search_keyword=<?=urlencode($search_keyword)?>" <? if($method=='news') { echo 'class="current"';}?>>뉴스</a></li>
|
||||
<li><a href="/web/search/video?search_keyword=<?=urlencode($search_keyword)?>" <? if($method=='video') { echo 'class="current"';}?>>동영상</a></li>
|
||||
<li><a href="/web/search/list?search_keyword=<?=urlencode($search_keyword)?>&content_type=2" <? if($content_type=='2') { echo 'class="current"';}?>>칼럼</a></li>
|
||||
</ul>
|
||||
<? } else {?>
|
||||
|
||||
<ul class="menu">
|
||||
<li><a href="/">홈</a></li>
|
||||
<li><a href="/web/life/">라이프 </a></li>
|
||||
<li><a href="/web/news/" class="current">뉴스</a></li>
|
||||
</ul>
|
||||
|
||||
<? }?>
|
||||
|
||||
|
||||
<!--div class="condition" id="cross_header_weather" style="display:none">
|
||||
<span class="tt">영적기상도 </span>
|
||||
<ul>
|
||||
<?
|
||||
foreach ($arr_weather as $val) {
|
||||
?>
|
||||
<li style="height:40px;cursor: pointer" onclick="location.href='/web/news/news_view/<?=$val['relation_article_idx']?>'">
|
||||
<span class="country"><?=$val['continent']?></span>
|
||||
<span><?=$val['country']?><span class="weather"><img src="<?=$val['weather_icon']?>" width="22"></span> <?=$val['weather_content']?></span>
|
||||
</li>
|
||||
|
||||
<? }?>
|
||||
</ul>
|
||||
|
||||
</div-->
|
||||
|
||||
<? } else {?>
|
||||
|
||||
<ul class="menu">
|
||||
<li><a href="/" <? if($controller=='') { echo 'class="current"'; }?> >홈</a></li>
|
||||
<li><a href="/web/life/" <? if($controller=='life') { echo 'class="current"'; }?>>라이프 </a></li>
|
||||
<li><a href="/web/news/" <? if($controller=='news') { echo 'class="current"'; }?>>뉴스</a></li>
|
||||
</ul>
|
||||
<div class="roll" id="roll_realtime_keyword" style="display:none">
|
||||
<ul>
|
||||
<?
|
||||
foreach ($arr_realtime_keyword as $key=>$val) {
|
||||
$keyword = mb_strimwidth($val['keyword'], '0', '25', '..', 'utf-8');
|
||||
?>
|
||||
<li>
|
||||
<span class="number beachblue"><?=$val['rank']?></span>
|
||||
<span class="roll_txt"><a href="/web/search/?search_keyword=<?=urlencode($keyword)?>"><?=$keyword?></a></span>
|
||||
<span><a href="javascript:change_toggle('realtime_rank');"><img src="/img/web/roll_down.gif"></a></span>
|
||||
</li>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="open_roll" id="realtime_rank" style="display:none">
|
||||
<div class="txt">실시간 급상승</div>
|
||||
<ul class="ranking">
|
||||
<li style="width:48%"><a href="javascript:change_realtime_rank(1);" id="realtime_btn1" class="current">1-10위</a></li>
|
||||
<li style="width:2%"><img src="/img/web/img_ranking.gif"></li>
|
||||
<li style="width:48%"><a href="javascript:change_realtime_rank(2);" id="realtime_btn2">11-20위</a></li>
|
||||
</ul>
|
||||
<ul class="roll_box" id="realtime_keyword_list1">
|
||||
<?
|
||||
foreach ($arr_realtime_keyword as $key=>$val) {
|
||||
|
||||
if($key == 10) echo '<ul class="roll_box" id="realtime_keyword_list2" style="display:none">';
|
||||
|
||||
$last_rank = $val['last_rank'];
|
||||
$rank = $val['rank'];
|
||||
|
||||
$class = '';
|
||||
$last_rank_txt = '';
|
||||
if($last_rank==0){
|
||||
$class = 'new';
|
||||
$last_rank_txt = 'NEW';
|
||||
} else {
|
||||
$calc_rank = $last_rank - $rank;
|
||||
if($calc_rank == 0){ // 같음
|
||||
$last_rank_txt = '-';
|
||||
} else if($calc_rank > 0){ // up
|
||||
$last_rank_txt = '<img src="/img/web/btn_up.jpg">'.$calc_rank;
|
||||
} else {
|
||||
$last_rank_txt = '<img src="/img/web/btn_down.jpg">'.abs($calc_rank);
|
||||
}
|
||||
}
|
||||
|
||||
$keyword = mb_strimwidth($val['keyword'], '0', '25', '..', 'utf-8');
|
||||
|
||||
|
||||
?>
|
||||
<div>
|
||||
<div class="issue_box">
|
||||
<span class="no"><?=$rank?></span>
|
||||
<span><a href="/web/search/?search_keyword=<?=urlencode($val['keyword'])?>"><?=$keyword?></a></span>
|
||||
<span class="bbox <?=$class?> updown"><?=$last_rank_txt?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?
|
||||
if($key == 9) echo '</ul>';
|
||||
|
||||
|
||||
} ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<? }?>
|
||||
|
||||
</div>
|
||||
</div><!--//section_navbar-->
|
||||
</div><!--//header-->
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
<? if($controller == 'search' || $controller == 'news') {?>
|
||||
$('#cross_header_weather').show();
|
||||
$('#cross_header_weather').vTicker();
|
||||
<? } else {?>
|
||||
|
||||
<?//20180808 높이 조정문제 수정을 위해 시차 조정?>
|
||||
$(document).ready(function() {
|
||||
$('#roll_realtime_keyword').show();
|
||||
$('#roll_realtime_keyword').vTicker();
|
||||
});
|
||||
|
||||
|
||||
<? }?>
|
||||
});
|
||||
|
||||
// 레이어 이외의 공간 클릭시 close
|
||||
$(document).mouseup(function (e){
|
||||
var container = $("#mybox");
|
||||
if( container.has(e.target).length === 0) container.hide();
|
||||
|
||||
var container = $("#realtime_rank");
|
||||
if( container.has(e.target).length === 0) container.hide();
|
||||
|
||||
var container = $("#search_keyword_box");
|
||||
if( container.has(e.target).length === 0){
|
||||
container.hide();
|
||||
$("#search_arrow").removeClass();
|
||||
$("#search_arrow").addClass('src_icon arrow_down_on');
|
||||
}
|
||||
});
|
||||
|
||||
$(".mask").on('click', function(event){
|
||||
$(event.target).parent().hide();
|
||||
|
||||
});
|
||||
|
||||
|
||||
// 실시간급상승
|
||||
function change_realtime_rank(page){
|
||||
$("#realtime_keyword_list1").hide();
|
||||
$("#realtime_keyword_list2").hide();
|
||||
$("#realtime_keyword_list"+page).show();
|
||||
|
||||
|
||||
$("#realtime_btn1").removeClass();
|
||||
$("#realtime_btn2").removeClass();
|
||||
$("#realtime_btn"+page).addClass('current');
|
||||
|
||||
}
|
||||
|
||||
|
||||
// 검색
|
||||
function onkeyup_search_keyword(val){
|
||||
if(val == '') {
|
||||
$("#search_arrow").removeClass();
|
||||
$("#search_keyword_list").empty();
|
||||
$("#search_keyword_box").hide();
|
||||
$("#search_arrow").addClass('src_icon arrow_down_on');
|
||||
} else {
|
||||
var form_data = {
|
||||
"keyword" : val
|
||||
};
|
||||
console.log("this data is "+JSON.stringify(form_data));
|
||||
$.ajax({
|
||||
url: '/web/search/search_keyword',
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
console.log("retrun Json code"+ JSON.stringify(rtnJson));
|
||||
if (rtnJson.code == "0000") {
|
||||
var count = rtnJson.data.length;
|
||||
var content = '';
|
||||
for(var i=0;i<count;i++) {
|
||||
var result = rtnJson.data[i];
|
||||
var result_keyword = result.keyword;
|
||||
keyword = result_keyword.replace(val, '<span class="on">'+val+'</span>')
|
||||
content+= ' <div><span><a href="javascript:search_keyword_proc(\''+result_keyword+'\');">'+keyword+'</a></span><span class="close fr"></span><span class="date fr"></span></div>';
|
||||
}
|
||||
$("#search_keyword_list").html(content);
|
||||
$("#search_arrow").removeClass();
|
||||
$("#search_keyword_box").show();
|
||||
$("#search_arrow").addClass('src_icon arrow_up_on');
|
||||
} else {
|
||||
$("#search_arrow").removeClass();
|
||||
$("#search_keyword_list").empty();
|
||||
$("#search_keyword_box").hide();
|
||||
$("#search_arrow").addClass('src_icon arrow_down_on');
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function submit_check() {
|
||||
if(!$("#search_keyword").val()) {
|
||||
alert('검색어를 입력하세요.');
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function search_keyword_proc(search_keyword){
|
||||
if(search_keyword == '') {
|
||||
search_keyword = $("#search_keyword").val();
|
||||
}
|
||||
|
||||
var result = true;
|
||||
if(search_keyword!='') result = search_keyword_reg(search_keyword);
|
||||
if(result==true) {
|
||||
$("#search_keyword").val(search_keyword);
|
||||
$("#search_form").submit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// 즐겨찾기
|
||||
function bookmark_site(title,url) {
|
||||
if(window.chrome){ // Google Chrome
|
||||
alert("Ctrl+D키를 누르시면 즐겨찾기에 추가하실 수 있습니다.");
|
||||
} else if (window.sidebar) { // firefox
|
||||
window.sidebar.addPanel(title, url, "");
|
||||
} else if(window.opera && window.print) { // opera
|
||||
var elem = document.createElement('a');
|
||||
elem.setAttribute('href',url);
|
||||
elem.setAttribute('title',title);
|
||||
elem.setAttribute('rel','sidebar');
|
||||
elem.click();
|
||||
} else if(window.external) { // Internet Explorer
|
||||
window.external.AddFavorite(url, title);
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
93
application/views/skin/web/life/_body.php
Executable file
93
application/views/skin/web/life/_body.php
Executable file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
header("Pragma: no-cache");
|
||||
header("Cache-Control: no-cache,must-revalidate");
|
||||
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$title = ''; $main_img = ''; $content_txt = '';
|
||||
if(isset($arr_content['title'])==true) {
|
||||
$title = $arr_content['title'];
|
||||
$title = str_replace("'", "\\'", $title);
|
||||
$title = str_replace('"', '\\"', $title);
|
||||
}
|
||||
if(isset($arr_content['main_img'])==true) $main_img = $arr_content['main_img'];
|
||||
if(isset($arr_content['content'])==true) {
|
||||
$content = $arr_content['content'];
|
||||
$content_txt = preg_replace("(\<(/?[^\>]+)\>)", "", $content);
|
||||
$content_txt = strip_tags($content_txt);
|
||||
$content_txt = str_replace("'", "\\'", $content_txt);
|
||||
$content_txt = str_replace('”', '"', $content_txt);
|
||||
$content_txt = mb_strimwidth($content_txt, '0', '250', '..', 'utf-8');
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="naver-site-verification" content="894ba0807460988349b1e131377b26966e347fc1"/>
|
||||
<meta name="google-site-verification" content="CitaOJM4btglyBtNxZFYymBBzh3g7Pb9PxKl9YF8jDg" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="viewport" content="width=1100">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="description" content="세상을 바꿀 착한 웹툰 크로스맵 웹툰, 크리스천, 기독교, 일상, 은혜, 포털, <?php echo getMetaDescription(get_defined_vars())?>">
|
||||
<meta property="fb:app_id" content="961578337335000" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="<?=CROSSMAP_URL?>" />
|
||||
<meta property="og:title" content="<?=$title?>" />
|
||||
<meta property="og:description" content="<?=$content_txt. ' '.getMetaDescription(get_defined_vars())?>" />
|
||||
<meta property="og:image" content="<?=WWW_CROSSMAP?><?=$main_img?>" />
|
||||
<title><?=$site_info['homepage_title']?></title>
|
||||
<link rel="shortcut icon" href="/img/shortcut_icon.png">
|
||||
<link rel="apple-touch-icon" href="/img/shortcut_icon.png">
|
||||
<link rel="apple-touch-startup-image" href="/img/shortcut_icon.png">
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/common.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/news.css?<?=time()?>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/channel.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/life.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/search.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/mypage.css"/>
|
||||
<script src="/js/jquery-3.3.1.min.js"></script>
|
||||
<script src="/js/web/common.js?<?=time()?>"></script>
|
||||
<script src="//developers.kakao.com/sdk/js/kakao.min.js"></script>
|
||||
<script type="text/javascript" src="/smarteditor/js/HuskyEZCreator.js" charset="utf-8"></script>
|
||||
<!-- <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({
|
||||
google_ad_client: "ca-pub-7071495522658800",
|
||||
enable_page_level_ads: true
|
||||
});
|
||||
</script> -->
|
||||
<!-- <script type="text/javascript">
|
||||
var mobile_keys = new Array('iPhone','iPod','iPad','Android','BlackBerry','Windows Phone','Windows CE','LG','MOT','SAMSUNG','SonyEricsson','Nokia');
|
||||
if(document.URL.match('pc_screen')) mobile_keys = null;
|
||||
for(i in mobile_keys){
|
||||
if(navigator.userAgent.match(mobile_keys[i]) != null){
|
||||
location.href = "/m/";
|
||||
break;
|
||||
}
|
||||
}
|
||||
</script> -->
|
||||
</head>
|
||||
|
||||
<?=$Skin_Header?>
|
||||
<body id="channel">
|
||||
<?=$Skin_Content?>
|
||||
<iframe src="/web/comm/kmc_mobile_auth" frameborder="0" width="0" height="0"></iframe>
|
||||
<?=$Skin_Footer?>
|
||||
|
||||
<? include_once (APPPATH."views/web/comm/side_menu_inc.php");?>
|
||||
<? if($SES_MEMBER_ID!='') {?>
|
||||
<? require_once(APPPATH."views/web/comm/delivery_inc.php"); ?>
|
||||
<? }?>
|
||||
<? require_once(APPPATH."views/web/comm/user_comment_inc.php"); ?>
|
||||
<? require_once(APPPATH."views/web/comm/member_inc.php"); ?>
|
||||
<? require_once(APPPATH."views/web/comm/popup_inc.php"); ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
80
application/views/skin/web/life/_header_simple.php
Executable file
80
application/views/skin/web/life/_header_simple.php
Executable file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
# session
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$SES_MEMBER_NAME = $this->session->userdata('C_Member_Name');
|
||||
$SES_MEMBER_NICNAME = $this->session->userdata('C_Member_Nicname');
|
||||
$SES_MEMBER_PROFILE = $this->session->userdata('C_Member_Profile');
|
||||
$SES_MEMBER_GROUPNAME = $this->session->userdata('C_Member_Group_Name');
|
||||
$SES_MEMBER_INTRO = $this->session->userdata('C_Member_Intro');
|
||||
$SES_MEMBER_EMAIL = $this->session->userdata('C_Member_Email');
|
||||
if($SES_MEMBER_NICNAME == '') $SES_MEMBER_NICNAME = $SES_MEMBER_NAME;
|
||||
if($SES_MEMBER_PROFILE==''){
|
||||
$SES_MEMBER_PROFILE = '/img/web/life_profile.png';
|
||||
}
|
||||
$method = $this->uri->segment(3);
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="channel_header bgb3">
|
||||
<div class="wrap">
|
||||
<h1 class="channel_logo2"><a href="/"><img src="/img/web/logo_mypage.png"></a></h1>
|
||||
<? if($method == 'channel_recommend') { ?>
|
||||
<a href="/web/life/channel_recommend"><span class="channel_title2">추천채널</span></a>
|
||||
<? } else if($method == 'tag') { ?>
|
||||
<a href="<?=CROSSMAP_URL?>"><span class="channel_title2">#태그모음</span></a>
|
||||
<? } else { ?>
|
||||
<a href="/web/life/category"><span class="channel_title2">추천카테고리</span></a>
|
||||
<? }?>
|
||||
|
||||
<form name="search_form" id="search_form" action="/web/search/" method="get" onsubmit="return submit_check(); return false;">
|
||||
<div class="channel_search2" id="life_search1" style="z-index:8887;"><a href="javascript:search_show()"><img src="/img/web/img_search2.gif"></a></div>
|
||||
<div class="srch3" id="life_search2" style="display:none">
|
||||
<span>
|
||||
<input type="text" id="search_keyword" name="search_keyword">
|
||||
<a href="javascript:search();"><img src="/img/web/img_search2.gif" alt="검색하기"></a>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
<span class="channel_menu2"><a href="javascript:;"><img src="/img/web/search_menu2.png" class="side_menu_btn"></a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
$('.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_show(){
|
||||
$("#life_search1").hide();
|
||||
$("#life_search2").show();
|
||||
$("#search_keyword").focus();
|
||||
}
|
||||
|
||||
function submit_check() {
|
||||
if(!$("#search_keyword").val()) {
|
||||
alert('검색어를 입력하세요.');
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function search(){
|
||||
$('#search_form').submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
156
application/views/skin/web/maptoon/_body.php
Executable file
156
application/views/skin/web/maptoon/_body.php
Executable file
@@ -0,0 +1,156 @@
|
||||
<?php
|
||||
|
||||
# session
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$SES_MEMBER_NAME = $this->session->userdata('C_Member_Name');
|
||||
$SES_MEMBER_NICNAME = $this->session->userdata('C_Member_Nicname');
|
||||
$SES_MEMBER_PROFILE = $this->session->userdata('C_Member_Profile');
|
||||
$SES_MEMBER_GROUPNAME = $this->session->userdata('C_Member_Group_Name');
|
||||
$SES_MEMBER_INTRO = $this->session->userdata('C_Member_Intro');
|
||||
$SES_MEMBER_EMAIL = $this->session->userdata('C_Member_Email');
|
||||
if($SES_MEMBER_NICNAME == '') $SES_MEMBER_NICNAME = $SES_MEMBER_NAME;
|
||||
if($SES_MEMBER_PROFILE==''){
|
||||
$SES_MEMBER_PROFILE = '/img/web/life_profile.png';
|
||||
}
|
||||
$method = $this->uri->segment(3);
|
||||
|
||||
|
||||
// header("Pragma: no-cache");
|
||||
// header("Cache-Control: no-cache,must-revalidate");
|
||||
?>
|
||||
<!doctype html>
|
||||
<!--[if lt IE 7]><html class="no-js lt-ie10 lt-ie9 lt-ie8 lt-ie7" lang="kr"><![endif]-->
|
||||
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie10 lt-ie9 lt-ie8" lang="kr"><![endif]-->
|
||||
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie10 lt-ie9" lang="kr"><![endif]-->
|
||||
<!--[if (IE 9)&!(IEMobile)]><html class="no-js lt-ie10" lang="kr"><![endif]-->
|
||||
<!--[if gt IE 9]><!--> <html class="no-js" lang="kr"><!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="naver-site-verification" content="894ba0807460988349b1e131377b26966e347fc1">
|
||||
<meta name="google-site-verification" content="CitaOJM4btglyBtNxZFYymBBzh3g7Pb9PxKl9YF8jDg">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
|
||||
<!-- <meta http-equiv="cleartype" content="on"> -->
|
||||
<?if(strpos($_SERVER['REQUEST_URI'], "article")){?>
|
||||
<title><?=htmlspecialchars($mt_data[0]['name'])?> - <?=htmlspecialchars($data['title'])?>::: 크리스천포털 크로스맵</title>
|
||||
<?}else if(strpos($_SERVER['REQUEST_URI'], "list")){?>
|
||||
<title><?=htmlspecialchars($mt_data[0]['name'])?>:::크로스맵 웹툰</title>
|
||||
<?}else{?>
|
||||
<title>크로스맵 웹툰</title>
|
||||
<?}?>
|
||||
<meta name="description" content="세상을 바꿀 착한 웹툰 크로스맵 웹툰, 크리스천, 기독교, 일상, 은혜, 포털, <?php echo getMetaDescription(get_defined_vars())?>">
|
||||
<meta name="author" content="크로스맵 웹툰">
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta name="MobileOptimized" content="320">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
|
||||
<?if(strpos($_SERVER['REQUEST_URI'], "article")){?>
|
||||
<meta property="og:url" content="https://crossmap.co.kr<?=$_SERVER['REQUEST_URI']?>" />
|
||||
<meta property="og:title" content="<?=$mt_data[0]['name']?> - 크리스천포털 크로스맵">
|
||||
<meta property="og:image" content="https://crossmap.co.kr<?=$mt_data[0]['main_img']?>">
|
||||
<meta property="og:description" content="<?=$mt_data[0]['description']. ' '.getMetaDescription(get_defined_vars())?>">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:article:author" content="크로스맵 웹툰">
|
||||
<meta property="og:article:author:url" content="https://crossmap.co.kr/web/maptoon">
|
||||
<?}else{?>
|
||||
<meta property="og:url" content="https://crossmap.co.kr<?=$_SERVER['REQUEST_URI']?>" />
|
||||
<meta property="og:title" content="크리스천포털 크로스맵">
|
||||
<meta property="og:description" content="유쾌한 은혜 플러스 크로스맵 웹툰 <?php echo getMetaDescription(get_defined_vars())?>">
|
||||
<meta property="og:image" content="https://crossmap.co.kr/files/img/op_mt_title_img.jpg">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:article:author" content="크로스맵 웹툰">
|
||||
<meta property="og:article:author:url" content="https://crossmap.co.kr/web/maptoon">
|
||||
<?}?>
|
||||
|
||||
<meta property="fb:app_id" content="961578337335000">
|
||||
|
||||
<!-- favicons -->
|
||||
<link rel="shortcut icon" href="/img/shortcut_icon.png">
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon">
|
||||
<link rel="apple-touch-icon" href="/img/shortcut_icon.png">
|
||||
<link rel="apple-touch-startup-image" href="/img/shortcut_icon.png">
|
||||
|
||||
<!-- css -->
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
<link rel="stylesheet" href="/css/section.css">
|
||||
<link rel="stylesheet" href="/css/web/toastr.min.css">
|
||||
<!-- Font -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Nanum+Gothic" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css?family=Nanum+Myeongjo" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
|
||||
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.1/tiny-slider.css">
|
||||
<!--[if (lt IE 9)]><script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.1/min/tiny-slider.helper.ie8.js"></script><![endif]-->
|
||||
|
||||
<!-- javascript -->
|
||||
<!--[if (lt IE 9)]>
|
||||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<script src="assets/js/ie.min.js"></script>
|
||||
|
||||
<link href="http://externalcdn.com/respond-proxy.html" id="respond-proxy" rel="respond-proxy" />
|
||||
<link href="assets/cross-domain/respond.proxy.gif" id="respond-redirect" rel="respond-redirect" />
|
||||
<script src="assets/cross-domain/respond.proxy.js"></script>
|
||||
<![endif]-->
|
||||
<script src="//code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
|
||||
<script src="/js/script.js"></script>
|
||||
<script src="/js/web/common.js"></script>
|
||||
<script src="/js/web/toastr.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.1/min/tiny-slider.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<p class="enable-js">
|
||||
To enjoy our website, you'll need to enable <b>JavaScript</b> in your web browser. Please <a href="http://enable-javascript.com/" target="_blank"><b>click here</b></a> to learn how.
|
||||
</p>
|
||||
</noscript>
|
||||
<!--[if lte IE 8]>
|
||||
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/" target="_blank">upgrade your browser</a> to improve your experience.</p>
|
||||
<![endif]-->
|
||||
|
||||
<!-- Mobile nav Overlayer -->
|
||||
<div class="offcanvas" aria-hidden="true">
|
||||
<div class="nav-wrap">
|
||||
<button class="btn-close" data-remove=".nav-wrap"><i class="fas fa-times"></i></button>
|
||||
<nav class="site-nav">
|
||||
<ul>
|
||||
<li><a href="/web/news">뉴스</a></li>
|
||||
<li class="current"><a href="/web/maptoon">웹툰</a></li>
|
||||
<li><a href="/web/life/">은혜</a></li>
|
||||
<li><a href="/cmtv" >크맵TV</a></li>
|
||||
<li><a href="/web/prayer">기도공감</a></li>
|
||||
<!-- <li><a href="" onclick="alert('준비중입니다.');">자료실</a></li> -->
|
||||
<?if($SES_MEMBER_ID=='') {?>
|
||||
<li class="login"><a onclick="go_loging(event)" href="javascript:void(0);">로그인</a></li>
|
||||
<?}?>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?=$Skin_Header?>
|
||||
|
||||
<?=$Skin_Content?>
|
||||
|
||||
<?=$Skin_Footer?>
|
||||
|
||||
|
||||
<script src="/js/script.js"></script>
|
||||
|
||||
<!--[if (lt IE 9)]>
|
||||
<script>
|
||||
var sheets = document.styleSheets;
|
||||
for (var i = 0, l = sheets.length; i <l; i++){
|
||||
sheets[i].disabled = true;
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
body{font-family: Helvetica, Arial, sans-serif;}
|
||||
@media \0screen {img{width:auto;}}
|
||||
img{
|
||||
border: 0;
|
||||
height: auto;
|
||||
}
|
||||
</style>
|
||||
<![endif]-->
|
||||
</body>
|
||||
</html>
|
||||
19
application/views/skin/web/maptoon/_footer.php
Executable file
19
application/views/skin/web/maptoon/_footer.php
Executable file
@@ -0,0 +1,19 @@
|
||||
<!--footer start-->
|
||||
<div class="footer">
|
||||
<div class="container">
|
||||
<div class="ftLogo"><a href="/"><img src="/renew2/img/logo.svg" alt="크로스맵" style="width:77.969px; height:22px"></a></div>
|
||||
<ul>
|
||||
<li><a href="https://hwttjung.wixsite.com/mysite-1" target="https://hwttjung.wixsite.com/mysite-1">회사소개</a></li>
|
||||
<li><a href="/web/rules/privacy">개인정보 취급방침</a></li>
|
||||
<li><a href="/web/rules/service">이용약관</a></li>
|
||||
<li><a href="/web/cs/notice">고객센터</a></li>
|
||||
<li><a href="#"><i class="fab fa-facebook-f"></i>페이스북</a></li>
|
||||
<li><a href="#"><i class="fab fa-instagram"></i>인스타그램</a></li>
|
||||
</ul>
|
||||
<div class="copy">Copyright © All rights reserved.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="address">서울시 성북구 안암로 53 (안암동5가 1136) | Tel : 02) 598-4564 | Fax : 02) 6008-4204</div>
|
||||
</div>
|
||||
<!--footer end-->
|
||||
65
application/views/skin/web/maptoon/_header_simple.php
Executable file
65
application/views/skin/web/maptoon/_header_simple.php
Executable file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
# session
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$SES_MEMBER_NAME = $this->session->userdata('C_Member_Name');
|
||||
$SES_MEMBER_NICNAME = $this->session->userdata('C_Member_Nicname');
|
||||
$SES_MEMBER_PROFILE = $this->session->userdata('C_Member_Profile');
|
||||
$SES_MEMBER_GROUPNAME = $this->session->userdata('C_Member_Group_Name');
|
||||
$SES_MEMBER_INTRO = $this->session->userdata('C_Member_Intro');
|
||||
$SES_MEMBER_EMAIL = $this->session->userdata('C_Member_Email');
|
||||
if($SES_MEMBER_NICNAME == '') $SES_MEMBER_NICNAME = $SES_MEMBER_NAME;
|
||||
if($SES_MEMBER_PROFILE==''){
|
||||
$SES_MEMBER_PROFILE = '/img/web/life_profile.png';
|
||||
}
|
||||
$method = $this->uri->segment(3);
|
||||
?>
|
||||
|
||||
<header class="site-head--inner">
|
||||
<div class="logoline">
|
||||
<div class="container">
|
||||
<button class="nav-toggle" data-toggle=".nav-wrap"><img src="/renew2/img/ic-menu.png"></button>
|
||||
<div class="logo"><a href="/"><img src="/renew2/img/logo.svg" alt="크로스맵" style="width:63.797px; height:18px"></a></div>
|
||||
<div class="login">
|
||||
<?if($SES_MEMBER_ID=='') {?>
|
||||
<a onclick="go_loging()" href="javascript:void(0);">로그인</a>
|
||||
<a href="/web/user/register">회원가입</a>
|
||||
<?} else {?>
|
||||
<a href="/web/mypage/bookmark">내 정보</a>
|
||||
<a href="/web/member/logout_proc">로그아웃</a>
|
||||
<?}?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--Desktop Nav-->
|
||||
<div class="navline">
|
||||
<div class="container">
|
||||
<nav class="section-nav">
|
||||
<h1 <?php if((isset($menu_home)==TRUE && $menu_home>0) || (isset($menu_list)==TRUE && $menu_list>0)|| (isset($menu_article)==TRUE && $menu_article>0)) echo 'class="current"'; ?>><a href="/web/maptoon">웹툰</a></h1>
|
||||
<ul>
|
||||
<li <?php if(isset($menu_ongoing)==TRUE && $menu_ongoing>0) echo 'class="current"'; ?>><a href="/web/maptoon/ongoing">연재웹툰</a></li>
|
||||
<li <?php if(isset($menu_completed)==TRUE && $menu_completed>0) echo 'class="current"'; ?>><a href="/web/maptoon/completed">완결웹툰</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<button class="search-toggle" data-add=".search"><img src="/renew2/img/ic-search.png"></button>
|
||||
<!-- Search Over -->
|
||||
<div class="search">
|
||||
<div class="container">
|
||||
<button class="btn-close" data-remove=".search"><img src="/renew2/img/ic-close.gif"></button>
|
||||
<form action="/web/search/" class="site-head-search" method="get">
|
||||
<input type="text" name="search_keyword" id="site-head-search" placeholder="검색어를 입력하세요">
|
||||
<button type="submit"><i class="fa fa-search"></i></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- <script>
|
||||
function go_loging(e){
|
||||
e.preventDefault();
|
||||
location.href="/web/user/login?url="+encodeURIComponent(document.URL);
|
||||
}
|
||||
</script> -->
|
||||
65
application/views/skin/web/mypage/_body.php
Executable file
65
application/views/skin/web/mypage/_body.php
Executable file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
header("Pragma: no-cache");
|
||||
header("Cache-Control: no-cache,must-revalidate");
|
||||
$method = $this->uri->segment(3);
|
||||
$controller = $this->uri->segment(2);
|
||||
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="naver-site-verification" content="894ba0807460988349b1e131377b26966e347fc1"/>
|
||||
<meta name="google-site-verification" content="CitaOJM4btglyBtNxZFYymBBzh3g7Pb9PxKl9YF8jDg" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="viewport" content="width=1100">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<title><?=$site_info['homepage_title']?></title>
|
||||
<link rel="shortcut icon" href="/img/shortcut_icon.png">
|
||||
<link rel="apple-touch-icon" href="/img/shortcut_icon.png">
|
||||
<link rel="apple-touch-startup-image" href="/img/shortcut_icon.png">
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/common.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/mypage.css"/>
|
||||
<? if($method!='qna' && $method!='notice') {?>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/search.css"/>
|
||||
<? }?>
|
||||
<script src="/js/jquery-3.3.1.min.js"></script>
|
||||
<script src="/js/web/common.js?<?=time()?>"></script>
|
||||
<script src="//developers.kakao.com/sdk/js/kakao.min.js"></script>
|
||||
<script type="text/javascript" src="/smarteditor/js/HuskyEZCreator.js" charset="utf-8"></script>
|
||||
<!-- <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({
|
||||
google_ad_client: "ca-pub-7071495522658800",
|
||||
enable_page_level_ads: true
|
||||
});
|
||||
</script> -->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="mypage">
|
||||
<?=$Skin_Header?>
|
||||
<div class="contents">
|
||||
<? if($controller == 'mypage'){ ?>
|
||||
<?=$Skin_Left?>
|
||||
<? }?>
|
||||
<?=$Skin_Content?>
|
||||
</div>
|
||||
<iframe id="kmc_mobile_auth" src="/web/comm/kmc_mobile_auth" style="width:0px;height:0px;position:absolute; top:0; left:-9999px;" ></iframe>
|
||||
<?=$Skin_Footer?>
|
||||
|
||||
<? if($SES_MEMBER_ID!='') {?>
|
||||
<? require_once(APPPATH."views/web/comm/delivery_inc.php"); ?>
|
||||
<? }?>
|
||||
<? require_once(APPPATH."views/web/comm/user_comment_inc.php"); ?>
|
||||
<? require_once(APPPATH."views/web/comm/member_inc.php"); ?>
|
||||
<? require_once(APPPATH."views/web/comm/popup_inc.php"); ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
66
application/views/skin/web/mypage/_header.php
Executable file
66
application/views/skin/web/mypage/_header.php
Executable file
@@ -0,0 +1,66 @@
|
||||
<?
|
||||
# session
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$SES_MEMBER_NAME = $this->session->userdata('C_Member_Name');
|
||||
$SES_MEMBER_NICNAME = $this->session->userdata('C_Member_Nicname');
|
||||
$SES_MEMBER_PROFILE = $this->session->userdata('C_Member_Profile');
|
||||
$SES_MEMBER_GROUPNAME = $this->session->userdata('C_Member_Group_Name');
|
||||
$SES_MEMBER_INTRO = $this->session->userdata('C_Member_Intro');
|
||||
$SES_MEMBER_EMAIL = $this->session->userdata('C_Member_Email');
|
||||
|
||||
if($SES_MEMBER_PROFILE == '') $SES_MEMBER_PROFILE = '/img/web/img_profile_l.png';
|
||||
if($SES_MEMBER_NICNAME == '') $SES_MEMBER_NICNAME = $SES_MEMBER_NAME;
|
||||
|
||||
$controller = $this->uri->segment(2);
|
||||
|
||||
if($controller != 'rules' && $controller != 'cs') {
|
||||
if($SES_MEMBER_ID==''){
|
||||
gf_alert("로그인 후에 이용가능합니다.", '/');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="mypage_header">
|
||||
<h1 class="mypage_logo"><a href="/"><img src="/img/web/logo_mypage.png" alt="logo"></a></h1>
|
||||
<? if($controller == 'cs') {?><div class="mypage_tit"><a href="/web/cs/notice">고객센터</a></div><? } ?>
|
||||
<? if($controller == 'rules') {?><div class="mypage_tit"><a href="/web/rules/service">정책</a></div><? } ?>
|
||||
<div class="mypage_header_ingo">
|
||||
|
||||
<? if($SES_MEMBER_ID=='') {?>
|
||||
<span><a href="javascript:commonLayerOpen('login_layer')">로그인</a> </span>
|
||||
<span class="bar"><img src="/img/web/mypage_bar.gif" alt=""></span>
|
||||
<span ><a href="/m/" class="current" target="_blank">모바일 보기</a> </span>
|
||||
<span class="social">
|
||||
<a href="/"><img src="/img/web/img_home.png" alt="home"></a>
|
||||
<a href="https://www.facebook.com/crossmapkr/" target="_blank"><img src="/img/web/img_facebook.png" alt="facebook"></a>
|
||||
<a href="https://www.instagram.com/crossmapkr/" target="_blank"><img src="/img/web/img_instagram.png" alt="instagram"></a>
|
||||
</span>
|
||||
<? } else {?>
|
||||
<span class="profile"><img src="<?=$SES_MEMBER_PROFILE?>" alt="profile" width="21" width="21"></span>
|
||||
<span class="arrow"><a href="javascript:change_toggle('mybox');"><span class="beachblue"><?=$SES_MEMBER_NICNAME?></span> 님</a> </span>
|
||||
<span class="bar"><img src="/img/web/mypage_bar.gif" alt="info"></span>
|
||||
<span class="beachblue"><a href="/m/" target="_blank">모바일 보기</a> </span>
|
||||
<span class="social">
|
||||
<a href="/"><img src="/img/web/img_home.png" alt="home"></a>
|
||||
<a href="https://www.facebook.com/crossmapkr/" target="_blank"><img src="/img/web/img_facebook.png" alt="facebook"></a>
|
||||
<a href="https://www.instagram.com/crossmapkr/" target="_blank"><img src="/img/web/img_instagram.png" alt="instagram"></a>
|
||||
</span>
|
||||
<? require_once(APPPATH."views/web/comm/mybox_inc.php"); ?>
|
||||
<? }?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
// 레이어 이외의 공간 클릭시 close
|
||||
$(document).mouseup(function (e){
|
||||
var container = $("#mybox");
|
||||
if( container.has(e.target).length === 0) container.hide();
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
18
application/views/skin/web/mypage/_left.php
Executable file
18
application/views/skin/web/mypage/_left.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
$method = $this->uri->segment(3);
|
||||
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$SES_MEMBER_NICNAME = $this->session->userdata('C_Member_Nicname');
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="mypage_left">
|
||||
<h3 class="left_title"><a href="">마이페이지</a></h3>
|
||||
<h3><a href="javascript:commonLayerOpen('passwd_check_layer')" <? if($method=='member_edit') { echo ' class="current"';}?> >프로필 수정</a></h3>
|
||||
<h3><a href="/web/mypage/bookmark" <? if($method=='bookmark') { echo ' class="current"';}?> >북마크함</a></h3>
|
||||
<h3><a href="/web/mypage/qna" <? if($method == 'qna' || $method == 'qna_add' || $method == 'qna_view') { echo 'class="current"';}?>>1:1 문의</a></h3>
|
||||
<h3 style="text-align:center;"><a href="javascript:user_comment('<?=$SES_MEMBER_ID?>', '<?=$SES_MEMBER_NICNAME?>');" display="blank"><button type="button" class="btn btn-default br20" style="width: 120px;padding: 5px;font-size: 14px;"><img src="/img/web/img_pen.gif"> 내댓글보기</button></a></h3>
|
||||
<h3 style="text-align:center;"><a href="javascript:change_toggle('delivery_layer')" display="blank"><button type="button" class="btn btn-default br20" style="width: 120px;padding: 5px;font-size: 14px;"><img src="/img/web/img_box.gif"> 배달함</button></a></h3>
|
||||
</div>
|
||||
Reference in New Issue
Block a user