<?php
/**
 * This Temaplate is display single post
 *
 * @package Evential
 * @subpackage Evential
 * @since Evential 1.0
 */
?>
<?php get_template_part( 'single', 'header' ); ?>
<?php get_template_part( 'top', 'menu' );?>

<!-- Single Page Layout 3 -->
<?php
    global $tlazya_krwn;
    switch($tlazya_krwn['single_layout']) {
    case "3":
?>      

<section id="blog" class="blog-single section">
	<div class="container">

		<div class="page-title">
			<?php if (function_exists('my_breadcrumbs')) my_breadcrumbs(); ?>
		</div>


		<div class="row">

			<div class="col-md-9">
				<?php
					if(have_posts())
					{
					while ( have_posts() ) : the_post();
					$ida = get_post_thumbnail_id( get_the_ID() );
					if(has_post_thumbnail( get_the_ID() ))
					{
						$blog_thumb = get_the_post_thumbnail(get_the_ID(), 'blog_single');
					}
					else
					{
						$blog_thumb = '<img src="http://placehold.it/850x590" alt="Blog Image"/>';
					}
				?>
				<?php
					if ( has_post_format( 'image' ))
					{
				?>
				<div class="blog-Image">
					<a href="<?php echo wp_get_attachment_url($ida); ?>" class="lightbox">
						<?php echo $blog_thumb; ?>
					</a>
				</div>

				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php
					}
					elseif ( has_post_format( 'video' ))
					{
				?>
				<div class="blog-Image">
					<div class="media fit">
						<iframe src="<?php echo get_post_meta($post->ID, "video", true); ?>" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
					</div>
				</div>

				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php
					}
					elseif ( has_post_format( 'gallery' ))
					{
				?>
				<div class="blog-Image">
					<div class="media">
						<?php $attachments = new Attachments( 'attachments' ); ?>
						<?php if( $attachments->exist() ) : ?>
						<div class="slide">
							<?php while( $attachments->get() ) : ?>	
							<div>
								<a href="<?php echo $attachments->url(); ?>" class="lightbox">
									<?php echo $attachments->image( 'blog_single' ); ?>
								</a>
							</div>
							<?php endwhile; ?>
						</div>
						<?php endif; ?>
					</div>
				</div>

				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php 
					}
					else
					{
				?>
				<?php
				$ida = get_post_thumbnail_id( get_the_ID() );
				if(has_post_thumbnail( get_the_ID() ))
				{
				?>
				<div class="blog-Image">
						<?php echo get_the_post_thumbnail(get_the_ID(), 'blog_single'); ?>
				</div>
				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>
				<?php
				}
				else
				{
				?>
				<div class="blog-author">
					<div class="Image" style="margin-top: 0px;"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>	
				<?php
				}
				?>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php } ?>
				
				<?php
					endwhile;
				?>
				<?php
				}
				else{
					get_template_part( 'content', 'none' );
				}
				wp_reset_query();
				?>
			</div>
			<div class="col-md-3">
				<!-- sidebar -->
				<div class="sidebar">
					<?php dynamic_sidebar('main-sidebar'); ?>
				</div>
				<!-- / .sidebar -->
			</div>
		</div>
	</div>
</section>
<div class="white-space-100"></div>
<!-- ./Single Page Layout 3 -->

<!-- Single Page Layout 2 -->
<?php break; case "2": ?>
<section id="blog" class="blog-single section">
	<div class="container">

		<div class="page-title">
			<?php if (function_exists('my_breadcrumbs')) my_breadcrumbs(); ?>
		</div>


		<div class="row">
			<div class="col-md-3">
				<!-- sidebar -->
				<div class="sidebar">
					<?php dynamic_sidebar('main-sidebar'); ?>
				</div>
				<!-- / .sidebar -->
			</div>
			<div class="col-md-9">
				<?php
					if(have_posts())
					{
					while ( have_posts() ) : the_post();
					$ida = get_post_thumbnail_id( get_the_ID() );
					if(has_post_thumbnail( get_the_ID() ))
					{
						$blog_thumb = get_the_post_thumbnail(get_the_ID(), 'blog_single');
					}
					else
					{
						$blog_thumb = '<img src="http://placehold.it/850x590" alt="Blog Image"/>';
					}
				?>
				<?php
					if ( has_post_format( 'image' ))
					{
				?>
				<div class="blog-Image">
					<a href="<?php echo wp_get_attachment_url($ida); ?>" class="lightbox">
						<?php echo $blog_thumb; ?>
					</a>
				</div>

				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php
					}
					elseif ( has_post_format( 'video' ))
					{
				?>
				<div class="blog-Image">
					<div class="media fit">
						<iframe src="<?php echo get_post_meta($post->ID, "video", true); ?>" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
					</div>
				</div>

				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php
					}
					elseif ( has_post_format( 'gallery' ))
					{
				?>
				<div class="blog-Image">
					<div class="media">
						<?php $attachments = new Attachments( 'attachments' ); ?>
						<?php if( $attachments->exist() ) : ?>
						<div class="slide">
							<?php while( $attachments->get() ) : ?>	
							<div>
								<a href="<?php echo $attachments->url(); ?>" class="lightbox">
									<img src="<?php echo $attachments->url(); ?>" alt="" class="img-responsive" />
								</a>
							</div>
							<?php endwhile; ?>
						</div>
						<?php endif; ?>
					</div>
				</div>

				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php 
					}
					else
					{
				?>
				<?php
				$ida = get_post_thumbnail_id( get_the_ID() );
				if(has_post_thumbnail( get_the_ID() ))
				{
				?>
				<div class="blog-Image">
						<?php echo get_the_post_thumbnail(get_the_ID(), 'blog_single'); ?>
				</div>
				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>
				<?php
				}
				else
				{
				?>
				<div class="blog-author">
					<div class="Image" style="margin-top: 0px;"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>	
				<?php
				}
				?>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php } ?>
				
				<?php
					endwhile;
				?>
				<?php
				}
				else{
					get_template_part( 'content', 'none' );
				}
				wp_reset_query();
				?>
			</div>
		</div>
	</div>
</section>
<div class="white-space-100"></div>
<!-- ./Single Page Layout 2 -->
<!-- Single Page Layout 1 -->
<?php break; case "1": ?> 
<section id="blog" class="blog-single section">
	<div class="container">

		<div class="page-title">
			<?php if (function_exists('my_breadcrumbs')) my_breadcrumbs(); ?>
		</div>


		<div class="row">
			<div class="col-md-12">
				<?php
					if(have_posts())
					{
					while ( have_posts() ) : the_post();
					$ida = get_post_thumbnail_id( get_the_ID() );
					if(has_post_thumbnail( get_the_ID() ))
					{
						$blog_thumb = get_the_post_thumbnail(get_the_ID(), 'fullpage_thumb');
					}
					else
					{
						$blog_thumb = '<img src="http://placehold.it/1140x500" alt="Blog Image"/>';
					}
				?>
				<?php
					if ( has_post_format( 'image' ))
					{
				?>
				<div class="blog-Image">
					<a href="<?php echo wp_get_attachment_url($ida); ?>" class="lightbox">
						<?php echo $blog_thumb; ?>
					</a>
				</div>

				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php
					}
					elseif ( has_post_format( 'video' ))
					{
				?>
				<div class="blog-Image">
					<div class="media fit">
						<iframe src="<?php echo get_post_meta($post->ID, "video", true); ?>" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
					</div>
				</div>

				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php
					}
					elseif ( has_post_format( 'gallery' ))
					{
				?>
				<div class="blog-Image">
					<div class="media">
						<?php $attachments = new Attachments( 'attachments' ); ?>
						<?php if( $attachments->exist() ) : ?>
						<div class="slide">
							<?php while( $attachments->get() ) : ?>	
							<div>
								<a href="<?php echo $attachments->url(); ?>" class="lightbox">
									<img src="<?php echo $attachments->url(); ?>" alt="" class="img-responsive" />
								</a>
							</div>
							<?php endwhile; ?>
						</div>
						<?php endif; ?>
					</div>
				</div>

				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php 
					}
					else
					{
				?>
				<?php
				$ida = get_post_thumbnail_id( get_the_ID() );
				if(has_post_thumbnail( get_the_ID() ))
				{
				?>
				<div class="blog-Image">
						<?php echo get_the_post_thumbnail(get_the_ID(), 'blog_single'); ?>
				</div>
				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>
				<?php
				}
				else
				{
				?>
				<div class="blog-author">
					<div class="Image" style="margin-top: 0px;"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>	
				<?php
				}
				?>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php } ?>
				
				<?php
					endwhile;
				?>
				<?php
				}
				else{
					get_template_part( 'content', 'none' );
				}
				wp_reset_query();
				?>
			</div>
		</div>
	</div>
</section>
<div class="white-space-100"></div>
<!-- ./Single Page Layout 1 -->
<!-- Single Page Layout Default -->
<?php break; default: ?> 
<section id="blog" class="blog-single section">
	<div class="container">

		<div class="page-title">
			<?php if (function_exists('my_breadcrumbs')) my_breadcrumbs(); ?>
		</div>


		<div class="row">

			<div class="col-md-9">
				<?php
					if(have_posts())
					{
					while ( have_posts() ) : the_post();
					$ida = get_post_thumbnail_id( get_the_ID() );
					if(has_post_thumbnail( get_the_ID() ))
					{
						$blog_thumb = get_the_post_thumbnail(get_the_ID(), 'blog_single');
					}
					else
					{
						$blog_thumb = '<img src="http://placehold.it/850x590" alt="Blog Image"/>';
					}
				?>
				<?php
					if ( has_post_format( 'image' ))
					{
				?>
				<div class="blog-Image">
					<a href="<?php echo wp_get_attachment_url($ida); ?>" class="lightbox">
						<?php echo $blog_thumb; ?>
					</a>
				</div>

				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php
					}
					elseif ( has_post_format( 'video' ))
					{
				?>
				<div class="blog-Image">
					<div class="media fit">
						<iframe src="<?php echo get_post_meta($post->ID, "video", true); ?>" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
					</div>
				</div>

				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php
					}
					elseif ( has_post_format( 'gallery' ))
					{
				?>
				<div class="blog-Image">
					<div class="media">
						<?php $attachments = new Attachments( 'attachments' ); ?>
						<?php if( $attachments->exist() ) : ?>
						<div class="slide">
							<?php while( $attachments->get() ) : ?>	
							<div>
								<a href="<?php echo $attachments->url(); ?>" class="lightbox">
									<img src="<?php echo $attachments->url(); ?>" alt="" class="img-responsive" />
								</a>
							</div>
							<?php endwhile; ?>
						</div>
						<?php endif; ?>
					</div>
				</div>

				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php 
					}
					else
					{
				?>
				<?php
				$ida = get_post_thumbnail_id( get_the_ID() );
				if(has_post_thumbnail( get_the_ID() ))
				{
				?>
				<div class="blog-Image">
						<?php echo get_the_post_thumbnail(get_the_ID(), 'blog_single'); ?>
				</div>
				<div class="blog-author">
					<div class="Image"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>
				<?php
				}
				else
				{
				?>
				<div class="blog-author">
					<div class="Image" style="margin-top: 0px;"><?php echo get_avatar( $comment, '' ); ?></div>
					<p>by <?php echo get_the_author(); ?></p>
				</div>	
				<?php
				}
				?>

				<div class="blog-title text-center">
					<h2><?php echo get_the_title();?></h2>
				</div>

				<!-- .blog-content -->
				<div class="blog-content">
					<p><?php the_content(); ?></p>
				</div>
				<!-- / .blog-content -->

				<!-- .blog-comments -->
				<div class="blog-comments">
					<a href="#comments" id="comments" class="comments-cont">
						<i class="icon-notepad-1"></i>
						<?php echo get_comments_number(); ?> Comments
					</a>
					<!-- .comments -->
					<?php
						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) {
							comments_template();
						}
					?>
					<!-- / .comments -->
				</div>
				<!-- / .blog-comments -->
				<?php } ?>
				
				<?php
					endwhile;
				?>
				<?php
				}
				else{
					get_template_part( 'content', 'none' );
				}
				wp_reset_query();
				?>
			</div>
			<div class="col-md-3">
				<!-- sidebar -->
				<div class="sidebar">
					<?php dynamic_sidebar('main-sidebar'); ?>
				</div>
				<!-- / .sidebar -->
			</div>
		</div>
	</div>
</section>
<div class="white-space-100"></div>
<?php } ?>
<!-- Single Page Layout Default -->
<?php
get_footer();
