first commit
This commit is contained in:
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>
|
||||
Reference in New Issue
Block a user