<?php get_header(); ?>
<?php
$wrapper_class = '';
$prefix = BREEK_LITE_THEMEPREFIX.'_';
$enable_sidebar = $page_class = '';

if( !has_post_thumbnail() ){
    $page_class .= ' no-thumb';
}
?>
<!-- start: #page -->
<main id="page" class="main grid-container">
	<?php if( have_posts() ): the_post(); ?>
		<!-- start: .center -->
	    <div id="single" class="center content fullcover no-sidebar <?php echo esc_attr($page_class); ?>" data-aos="fade">
            
            <?php if( has_post_thumbnail() ): ?>
                <div class="featured-image cover" style="background: url('<?php the_post_thumbnail_url('breek_lite_page_header'); ?>');">
                    <div class="center grid-container">
                        <div class="info">
                            <!-- start: .meta -->
                            <div class="meta">
                                <h1 class="title ularge white bold"><?php the_title(); ?></h1>
                            </div>
                            <!-- end: .meta -->
                        </div>
                    </div>
                </div>
            <?php endif; ?>

            <!-- start: .epcl-page-wrapper -->
            <div class="epcl-page-wrapper">

                <!-- start: .left-content -->
                <div class="left-content grid-70 np-mobile">
                    <article <?php post_class('main-article'); ?>>

                        <?php edit_post_link( esc_html__('Edit this post', 'breek-lite'), '', '', '', 'edit-post-button epcl-button dark'); ?>

                        <section class="post-content">
                            
                            <h1 class="title ularge bordered bold"><?php the_title(); ?></h1>

                            <div class="text">
                                <?php the_content(); ?>
                            </div>
                            <div class="clear"></div>
                            
                        </section>
                        
                        <?php
                            $link_pages_args = array(
                                'before'           => '<div class="epcl-pagination link-pages section"><div class="nav"><span class="page-number">'.esc_html__( 'Pages', 'breek-lite' ).'</span>',
                                'after'            => '</div></div>',
                                'link_before'      => '',
                                'link_after'       => '',
                                'next_or_number'   => 'number',
                                'separator'        => '',
                                'nextpagelink'     => esc_html__( 'Next', 'breek-lite'),
                                'previouspagelink' => esc_html__( 'Previous', 'breek-lite' ),
                                'pagelink'         => '<span class="page-number">%</span>',
                                'echo'             => 1
                            );
                            wp_link_pages( $link_pages_args );
                        ?>

                    </article>                    

                    <?php comments_template(); ?>
                    
                </div>
                <!-- end: .left-content -->

            </div>
            <!-- end: .epcl-page-wrapper -->
            
        </div>
        <!-- end: .center -->
    <?php endif; ?>
</main>
<!-- end: #page -->
<?php get_footer(); ?>
