<?php
  the_post();
  $page_title = get_the_title();
  $page_description = str_replace(PHP_EOL, "", mb_strimwidth(strip_tags(get_the_content()), 0, 350, "..."));
  $cat_info = get_the_category()[0];
  $cat_name = $cat_info->name;
  $cat_desc = $cat_info->description;
  $template_url = get_bloginfo("template_url")."/";
  $home_url = home_url()."/";
  $thumbnail_id = get_post_thumbnail_id($post->ID);
  if($thumbnail_id){
    $OG_Img = wp_get_attachment_image_src($thumbnail_id, "full")[0];
  }
  if(!$thumbnail_id){
    $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $thisContent, $matches);
    $OG_Img = $matches[1][0];
  }
  if(!$OG_Img){
    $OG_Img = "https://sanyokobe.com/img/og_image.jpg";
  }
?>

<!doctype html>
<html lang="ja"><!-- InstanceBegin template="/Templates/kenyu_temp.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<!-- InstanceBeginEditable name="doctitle" -->
<title><?=$page_title ?>｜K&amp;STARボクシングジム｜ジムからの新着情報やお知らせを紹介しております。</title>
<meta name="description" content="<?=$page_description ?>" />
<meta property="og:title" content="<?=$page_title ?>｜K&amp;STARボクシングジム">
<meta property="og:description" content="<?=$page_description ?>">
<meta property="og:type" content="article">
<meta property="og:url" content="<?php the_permalink() ?>">
<meta property="og:image" content="<?=$OG_Img ?>">
<!-- InstanceEndEditable -->
<meta name="author" content="K&amp;STARボクシングジム">
<meta name="keywords" content="K&amp;STAR,ボクシング,ジム,KENYU,BOXING,GYM,西宮,オヤジファイター">
<meta property="og:url" content="https://kenyu-boxing.com/">
<meta property="og:image" content="https://kenyu-boxing.com/og_image.png">
<meta property="og:site_name" content="K&amp;STARボクシングジム">
<meta name="format-detection" content="telephone=no">
<link rel="home" href="https://kenyu-boxing.com/" />
<link rel="index" href="https://kenyu-boxing.com/" />
<link rel="SHORTCUT ICON" href="https://kenyu-boxing.com/favicon.ico">
<link rel="apple-touch-icon" href="https://kenyu-boxing.com/img/k_and_star_logo_fix.jpg">
<link rel="icon" type="image/png" sizes="192x192" href="https://kenyu-boxing.com/img/k_and_star_logo_fix.jpg">
<link rel="stylesheet" type="text/css" href="https://kenyu-boxing.com/css/opt.css">
<link rel="stylesheet" type="text/css" href="https://kenyu-boxing.com/css/common.css">
<link href="https://fonts.googleapis.com/css?family=Averia+Serif+Libre" rel="stylesheet">
<link rel="stylesheet" id="prefix-font-awesome-css" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css?ver=4.0.3" type="text/css" media="all">
<link href="//fonts.googleapis.com/earlyaccess/notosansjapanese.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<script src="https://kenyu-boxing.com/js/jquery-3.4.1.min.js"></script>
<script src="https://kenyu-boxing.com/js/base.js"></script>
<link href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" rel="stylesheet">
<!-- InstanceBeginEditable name="head" -->
<link rel="stylesheet" type="text/css" href="https://kenyu-boxing.com/css/sub.css">
<link rel="stylesheet" type="text/css" href="https://kenyu-boxing.com/css/news.css">
<link rel="stylesheet" type="text/css" href="https://kenyu-boxing.com/css/cms.css">
<!-- InstanceEndEditable -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TL9J23CWPN"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-TL9J23CWPN');
</script>
</head>
<body>
<div id="wrapper">
<header>
	<div class="inner">
<!-- InstanceBeginEditable name="h1Area" -->
	  <h1><a href="https://kenyu-boxing.com/"><img src="https://kenyu-boxing.com/img/common/h_logo.png" alt="<?=$page_title ?>"></a></h1>
<!-- InstanceEndEditable -->
	  <div class="h_top">
			<div class="gnavArea">
		<div class="toggle"></div>
				<ul class="gnav">
					<li><a href="https://kenyu-boxing.com/">TOP</a></li>
					<li><a href="https://kenyu-boxing.com/about.html">ABOUT US</a></li>
					<li><a href="https://kenyu-boxing.com/newslist/">NEWS</a></li>
					<li><a href="https://kenyu-boxing.com/facilities.html">FACILITIES</a></li>
					<li><a href="https://kenyu-boxing.com/company.html">COMPANY</a></li>
					<li><a href="https://kenyu-boxing.com/price.html">PRICE</a></li>
					<li class="mobile_only"><a href="https://kenyu-boxing.com/access.html">ACCESS</a></li>
					<li class="mobile_only"><a href="https://kenyu-boxing.com/faq.html">FAQ</a></li>
					<li class="mobile_only"><a href="https://kenyu-boxing.com/privacy.html">PRIVACY</a></li>
					<li class="mobile_only"><a href="https://kenyu-boxing.com/contact/">CONTACT</a></li>
					<li class="mobile_only"><a href="https://www.instagram.com/kenyugym/" target="_blank">INSTAGRAM</a></li>
				</ul>
			</div>
		</div>
	</div>
</header>

<div id="main">
<!-- InstanceBeginEditable name="contents" -->
<section>
	<div class="mainArea">
		<div class="h2Box">
			<h2>NEWS</h2>
		</div>
	</div>
</section>
<section>
	<div class="breadArea">
		<p><a href="https://kenyu-boxing.com/"><i class="fa fa-home" aria-hidden="true"></i></a>　＞　<a href="https://kenyu-boxing.com/news/">新着情報一覧</a>　＞　<?php echo mb_strimwidth(the_title(), 0, 20, "..."); ?></p>
	</div>
</section>
<section>
	<div class="singleBox">
		<div class="inner">
			<div class="single">
				<div class="titleArea">
					<h3 class="ttl"><?php the_title(); ?></h3>
					<div class="date"><?php the_time("Y-m-d"); ?></div>
				</div>
				<div class="contentArea">
					<?php the_content(); ?>
				</div>
					<div class="pager">
						<?php if (get_next_post()):?>
						<div class="prev"><?php next_post_link('%link', '≪ NEXT'); ?></div>
						<?php endif; ?>
						<?php if (get_previous_post()):?>
						<div class="next"><?php previous_post_link('%link', 'PREV ≫'); ?></div>
						<?php endif; ?>
					</div>				
			</div>
		</div>
	</div>
</section>
<!-- InstanceEndEditable -->
</div>
<footer>
	<div class="fnavBox">
	<ul class="fnav lt">
		<li><a href="https://kenyu-boxing.com/access.html">ACCESS</a></li>
		<li><a href="https://kenyu-boxing.com/privacy.html">PRIVACY</a></li>
		<li><a href="https://kenyu-boxing.com/faq.html">FAQ</a></li>
		<li><a href="https://kenyu-boxing.com/contact/">CONTACT</a></li>
	</ul>
	</div>
	<ul class="sns">
      <li><a href="https://www.instagram.com/kenyugym/" target="_blank"><span class="fab fa-instagram"></span></a></li>
<!--      <li><a href="#" target="_blank"><span class="fab fa-facebook-f"></span></a></li>
      <li><a href="#" target="_blank"><span class="fab fa-twitter"></span></a></li>-->
    </ul>
	<div class="copyright ns">
		<p>© K &amp; STAR - ボクシングジム</p>
	</div>
	<p class="pagetop"><a><i class="fa fa-chevron-up" aria-hidden="true"></i></a></p>
</footer>
<!-- InstanceBeginEditable name="footerjs" -->
<script src="https://kenyu-boxing.com/js/fade.js"></script>
<!-- InstanceEndEditable -->
</div>
</body>
<!-- InstanceEnd --></html>
