first commit
This commit is contained in:
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