<?php

/**
 * Template Name: Review
 * Template Post Type: post
 *
 */
get_header(); ?>
<div id="primary" class="content-area">
  <main id="main" class="site-main" role="main">
    <?php
    if (have_posts()) : while (have_posts()) : the_post();
        $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'large');
        list($url, $width, $height, $is_intermediate) = $thumbnail;
    ?>
        <div class="woo_page__cover_qus" style="height:<?php echo $height; ?>px;background: linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),url(<?php echo $url; ?>);background-repeat:no-repeat;background-size: cover; ">
          <div class="woo_page__cover_qus-title"><?php the_title('<h1 class="h2">', '</h1>'); ?></div>
        </div>
        <div class="container">
          <section class="woo_page_qus__content">
            <div class="woo_box__content post-content">
              <?php the_content(); ?>
            </div>
          <?php endwhile;
      else : ?>
          <p><?php esc_html_e('Sorry, no posts matched your criteria.', 'liosa'); ?></p>
        <?php endif; ?>
        <div class="woo_box__content pt-0">
          <?php get_template_part('themeplat/single/related-posts', 'related'); ?>
        </div>
        <div class="woo_box__content pt-0">
          <?php get_template_part('themeplat/single/comment-single', 'comment'); ?>
        </div>
          </section>
        </div>
  </main>
</div>
<?php get_footer(); ?>