<?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>
