<?php get_header(); ?>
<article>
<header>
<hero
  imgurl="<?php echo get_the_post_thumbnail_url(); ?>"
  link="<?php echo get_permalink(); ?>"
  text="<?php echo get_the_title(); ?>">
</hero>
</header>


<section>
<?php the_post(); ?>
<?php the_content(); ?>
</section>

<section>
<?php
$tags = get_the_tags( get_the_ID() );

foreach( $tags as $tag ) {
  $tag_link = esc_url( get_tag_link( $tag->term_id ) );
  $tag_name = esc_html( $tag->name );
  echo "<a href='". $tag_link ."'><span class='tag'>". $tag_name ."</span></a>";
}
?>
</section>
<br>
<br>

<footer class="article-detail">
<div class="byl-container row">

<section class="social-share-bloc col col-md-3 col-sm-3 col-xs-12">
<?php get_template_part('template-parts/social-share'); ?>
</section>

<section class="pub-info col col-md-9 col-sm-9 col-xs-12 byl-txt-right">
<?php get_template_part('template-parts/pub-info'); ?>
</section>

</div>



</footer>
</article>
<br>
<section>

  <?php if( comments_open() ) : ?>


    <?php
      $current_post_ID = get_the_ID();
      set_query_var('current_post_ID', $current_post_ID);
      comments_template('/comments.php');
      //comments_template('/comments-old.php');

    ?>

  <?php endif; ?>

</section>
<?php get_footer(); ?>