<?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 will use a
 * different template.
 *
 * @package Bigfa
 * @subpackage Hera
 * @since Hera 0.0.1
 */

get_header(); ?>
<?php get_template_part('template-parts/search-bar'); ?>

<div class="articleContainer">
    <?php if (have_posts()) :
        while (have_posts()) : the_post(); ?>
            <article class="hArticle" itemscope="itemscope" itemtype="http://schema.org/Article">
                <header class="hArticle--header">
                    <h2 class="hArticle--headline" itemprop="headline"><?php the_title(); ?></h2>
                </header>
                <div class="hArticle--body hGraph" itemprop="articleBody">
                    <?php the_content(); ?>
                </div>
            </article>
            <?php if (comments_open() || get_comments_number()) :
                comments_template();
            endif; ?>
    <?php endwhile;
    endif; ?>
    <?php if ($heraSetting->get_setting('back2home')) : ?>
        <div class="back">
            <a href="<?php echo home_url(); ?>"><?php _e('Back to homepage', 'Hera'); ?></a>
        </div>
    <?php endif; ?>
</div>
<?php get_footer(); ?>