<?php $locale = get_locale(); ?>

<div class="single_sns_area">
  <div class="back">
    <a href="#" onClick="history.back(); return false;"><i class="fas fa-chevron-left"></i>&nbsp;&nbsp;Back</a>
    <ul>
    <!--Twitter-->
    <li class="twitter">
      <a href="https://twitter.com/intent/tweet?text=<?php echo urlencode(get_the_title()); ?>&amp;url=<?php echo urlencode(get_permalink()); ?>" target="_blank" title="Twitterで共有" class="sns_cbyn twitter">
        <i class="fab fa-twitter"></i>
      </a>
    </li>
    <!--FaceBook-->
    <li class="facebook">
      <a href="https://www.facebook.com/sharer.php?src=bm&u=<?php echo urlencode(get_permalink()); ?>&t=<?php echo urlencode(get_the_title()); ?>" target="_blank" title="Facebookで共有" class="sns_cbyn facebook">
        <i class="fab fa-facebook"></i>
      </a>
    </li>
    </ul>
  </div>
</div>
<article <?php post_class("mt-lg-5 pt-lg-5") ?>>
  <header>
    <div class="meta"><time class="en"><?php echo e(get_the_date()); ?></time>
    <?php if('ja' == $locale): ?>
      <span class="ctegory en">
        <?php
          if($terms = get_the_terms($post->ID, 'ncat')) {
            foreach ( $terms as $term ) {
        ?>
        <a href="<?php echo e(home_url('/news_release?ncat=')); ?><?php echo $term->slug; ?>" class="c_<?php echo $term->slug; ?>">
          <?php echo $term->name; ?>
        </a></span><?php }}?>
      </div>
    <?php endif; ?>

    <h1 class="entry-title weight_bold mt-md-4 mb-md-5"><?php echo get_the_title(); ?></h1>

    <ul class="single_sns_area_sp">
      <li class="share_btn"><a class="sns_cbyn facebook_sp" href="https://www.facebook.com/sharer.php?src=bm&u=<?php echo urlencode(get_permalink()); ?>&t=<?php echo urlencode(get_the_title()); ?>"><i class="fab fa-facebook"></i></a></li>
      <li class="share_btn"><a class="sns_cbyn twitter_sp" href="https://twitter.com/intent/tweet?text=<?php echo urlencode(get_the_title()); ?>&amp;url=<?php echo urlencode(get_permalink()); ?>"><i class="fab fa-twitter"></i></a></li>
    </ul>

    <?php if(has_post_thumbnail() && $post->ID != 3843): ?>

      <?php the_post_thumbnail( 'thumb-square', array('class' => 'img-fluid mb-md-5') ); ?>
    <?php endif; ?>
  </header>
  <div class="entry-content">
    <?php the_content() ?>
  </div>
  <footer>
    <?php echo wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']); ?>

  </footer>
  <?php comments_template('/partials/comments.blade.php') ?>
</article>
