<!-- Start Post -->
<section class="p-60-0-30">
   <div class="container">
      <div class="row d-flex justify-content-center">
         <div  class="<?php if(monix_get_option('monix_single_post_style') == 2) { echo "col-12 col-lg-9 col-md-12 col-sm-12 col-xs-12 "; } else { echo "col-12 col-lg-9 col-md-12 col-lg-9 col-sm-12 col-xs-12 "; } ?>">
            <?php if (have_posts()) :  while (have_posts()) : the_post(); 
               $monix_global_post = monix_get_global_post();
               $postid = $monix_global_post->ID;
               $get_image = get_the_post_thumbnail_url($postid); 
               $archive_month = get_the_time('M'); 
               $archive_day   = get_the_time('d'); 
               $get_the_title   = get_the_title();				
               ?>	
            <div <?php post_class( 'blog-single-post' ); ?> id="post-<?php the_ID(); ?>">
               <!-- Publication title -->
               <?php if(!empty($get_the_title)) { ?> 
               <h1 class="thin p-title<?php if(!empty($get_image)) { ?> mb-60<?php } else { ?> mb-30<?php } ?>"><?php echo esc_attr($get_the_title) ?></h1>
               <?php } ?>
               <?php if(!empty($get_image)) { ?> 
               <div class="post-img mb-60">
                  <img src="<?php echo esc_url($get_image);?>" alt="img" class="w-100">
                  <?php if(monix_get_option('monix_single_post_date_info') == 1){ ?>
                  <?php if(monix_get_option('monix_single_post_wp_date_format') == 1){ ?>
                  <div class="date bg-color-2">
                     <p><?php the_date();?></p>
                  </div>
                  <?php } else { ?>
                  <div class="date bg-color-2">
                     <span class="bold h4"><?php echo esc_attr($archive_day);?></span>
                     <p><?php echo esc_attr($archive_month);?></p>
                  </div>
                  <?php } ?>
                  <?php } ?>		
               </div>
               <?php } ?>
               <!-- Text -->
               <div class="blog-single-content">
                  <p class="light thin mb-15"><?php the_content(); ?></p>
                  <?php
                     wp_link_pages( array(
                     'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'monix' ) . '</span>',
                     'after'       => '</div>',
                     'link_before' => '<span>',
                     'link_after'  => '</span>',
                     'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'monix' ) . ' </span>%',
                     'separator'   => '<span class="screen-reader-text">, </span>',
                     ) );
                     ?>
               </div>
               <?php if((monix_get_option('monix_single_post_social_sharing') == 1) || (has_tag() && monix_get_option('monix_blog_single_meta_tags') == 1) ){ ?>						
               <div class="row single-tags mt-45">
                  <?php if ( ( has_tag() && (monix_get_option('monix_blog_single_meta_tags') == 1) ) ) { ?>
                  <div class="<?php if((monix_get_option('monix_single_post_social_sharing') == 1)){ ?>col-lg-4 col-md-4 col-sm-12 nopadding<?php } else { ?> col-lg-12 col-md-12 col-sm-12 nopadding <?php } ?>">
                     <div class="wrap_stag_list bg2-tags tags_list">
                        <?php the_tags( '<h3>'.esc_html__('Tags', 'monix').'</h3> ', '' ); ?>
                     </div>
                  </div>
                  <?php } ?>	
                  <div class="col-lg-8 col-md-8 col-sm-12 nopadding">
                     <?php if(monix_get_option('monix_single_post_social_sharing') == 1 ){ ?>
                     <!-- =-=-=-=-=-=-= SOCIAL SHARING SECTION =-=-=-=-=-=-= -->
                     <?php if (function_exists('monix_social_sharing_buttons')) echo monix_social_sharing_buttons(); ?>
                     <!-- =-=-=-=-=-=-= SOCIAL SHARING SECTION END =-=-=-=-=-=-= -->	
                     <?php } ?>	
                  </div>
               </div>
               <?php }else{ ?>
               <div class="divider mt-45"></div>
               <?php } ?>					
               <?php endwhile; endif; ?>
               <div class="clearfix"></div>
               <?php if(comments_open()) { ?>		
               <div class="col-md-12 nopadding">
                  <?php comments_template( '', true ); ?>
               </div>
               <?php } ?>
               <?php if((monix_get_option('monix_single_post_cat_blog_section') == 1) && comments_open()){ ?>
               <div class="divider mt-30"></div>
               <?php } ?>		
            </div>
         </div>
         <?php if(monix_get_option('monix_single_post_style') == 2) { 
            get_sidebar(); } 
            ?>
      </div>
   </div>
</section>
<!-- End Post  -->