<?php
if (
    !class_exists(\Tangibledesign\Framework\Core\App::class)
    || !class_exists(\Elementor\Plugin::class)
    || !tdf_app('current_template')
) :
    get_template_part('templates/blog/header');
endif;
?>
    <div class="myhome-wrapper">
        <?php while (have_posts()):the_post(); ?>
            <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                <h1 class="myhome-blog-title"><?php the_title(); ?></h1>

                <div class="myhome-layout">
                    <div class="myhome-layout__content myhome-layout__content--no-sidebar">
                        <div class="myhome-post">
                            <div class="myhome-post-inner">
                                <?php the_content(); ?>
                            </div>

                            <?php wp_link_pages(); ?>
                        </div>

                        <?php if (comments_open() || get_comments_number()) : ?>
                            <?php comments_template(); ?>
                        <?php endif; ?>
                    </div>
                </div>
            </article>
        <?php endwhile; ?>
    </div>

<?php
get_template_part('templates/blog/footer');