<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site may use a
* different template.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Ilex
*/

get_header();
?>

<div class="grid-top container">

<main id="site-content" role="main" class="col-70">

  <?php if (have_posts()) :?><?php while(have_posts()) : the_post(); ?>

    <!-- loop content -->

    <article <?php post_class(); ?>>

      <?php if ( has_post_thumbnail() ) { ?>

        <?php the_post_thumbnail('large', array('class' => 'img-res','alt' => get_the_title())); ?>

      <?php } ?>

      <div class="mb-3 mt-2"><h1 class="aligncenter"><?php the_title(); ?></h1></div> 

       <div class="entry-content"><?php the_content(esc_html__('Read More...', 'ilex'));?></div>

    </article>

  <?php endwhile; ?>

<?php else : ?>
  <p><?php esc_html_e('Sorry, no posts matched your criteria.', 'ilex'); ?></p>
<?php endif; ?>

</main>
  <?php if(is_active_sidebar('sidebar-1') ) { ?>
  <aside id="site-complementary" role="complementary" class="col-20">
      <?php get_sidebar(); ?>
  </aside>
  <?php } ?>
</div>
<?php get_footer(); ?>
