<?php
/**
 * The template for displaying all single posts.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package luzuk Premium
 */
$luzuk_lite_single_breadcrumb_section = get_theme_mod('luzuk_lite_single_breadcrumb_section', '1');
$luzuk_lite_single_tags_section = get_theme_mod('luzuk_lite_single_tags_section', '1');
$luzuk_lite_authorbox_section = get_theme_mod('luzuk_lite_authorbox_section', '1');
$luzuk_lite_relatedposts_section = get_theme_mod('luzuk_lite_relatedposts_section', '1');

get_header(); ?> 
 <?php $image = wp_get_attachment_url( get_post_thumbnail_id($post->ID));?>
<header class="page-main-header"  <?php  if (!empty($image)) : ?> style="background: url('<?php echo esc_url($image); ?>'); background-repeat: no-repeat; background-size:cover; position: relative;"  <?php endif ?> >
    <div class="overlay1"></div>
    <div class="headpginn">
        <div class="pginn1">
        <?php 
            $pginn1_image5 = get_theme_mod('pginn1_image5');
            if(!empty($pginn1_image5)){
                echo '<img alt="'. esc_html(get_the_title()) .'" src="'.esc_url($pginn1_image5).'" class="img-responsive" />';
            }else{
                echo '<img alt="headimg" src="'.get_template_directory_uri().'/images/hdinnerpb.png" class="img-responsive" />';
            }
        ?>
        </div>
        <?php if( get_theme_mod('breadcrumb_button_display','show' ) == 'show') : ?>
            <div class="breadcrumbbox wow zoomIn">
                <div class="container">
                    <div class='button'><?php luzuk_lite_the_breadcrumb(); ?></div>
                    <!--  <?php //luzuk_lite_the_breadcrumb(); ?> -->
                </div>
            </div>
        <?php endif ?>   
        <div class="container">
            <?php the_title( '<h1 class="ht-main-title wow zoomIn">', '</h1>' ); ?>
            <div class="clearfix"></div>
        </div>  
        <div class="pginn2">
        <?php 
            $pginn2_image5 = get_theme_mod('pginn2_image5');
            if(!empty($pginn2_image5)){
                echo '<img alt="'. esc_html(get_the_title()) .'" src="'.esc_url($pginn2_image5).'" class="img-responsive" />';
            }else{
                echo '<img alt="headimg2" src="'.get_template_directory_uri().'/images/hdinnerpb2.png" class="img-responsive" />';
            }
        ?>
        </div> 
    </div>
</header><!-- .entry-header -->
<main id="innerpage-box">
    <div class="inner_contentbox">
        <div id="content-box" class="innerpage-whitebox">
            <div class="container">
                <div class="col-md-8">
                    <article class="article">       
                        <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
                        <div id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
                            <div class="single_post">
                                <div id="content" class="post-single-content box mark-links">
                                    <div class="blog-innimg ">

                                       <?php  echo get_the_post_thumbnail(get_the_ID(),'larger');?>
                                       <!--  <//?php the_post_thumbnail(); ?>  -->
                                    </div>
                                    <div class= "bdate">
                                        <?php if( get_theme_mod('postdate_button_display','show' ) == 'show') :
                                           ?>
                                        <li><div class="post-date-publishable"><i class="fa fa-user" aria-hidden="true"></i><?php echo get_the_author(); ?></div></li>

                                        <li><div class="post-date-publishable"><i class="fa fa-clock-o" aria-hidden="true"></i><?php the_time( get_option( 'date_format' ) ); ?></div></li>
                                       <?php endif ?> 
                                       <!-- Start Title -->
                                   </div>
                                    <?php the_content(); ?>
                                    <div class="col-md-6 col-sm-6">
                                        <div class="catg">
                                        <?php 
                                            $categories = get_the_category();
                                            if ( ! empty( $categories ) ) {
                                                echo '<span>Categories : </span><a href="'. esc_url( get_category_link( $categories[0]->term_id ) ) . '">' . esc_html( $categories[0]->name ) . '</a>';
                                            }
                                            ?>
                                        </div>
                                    </div>
                                    <div class="col-md-6 col-sm-6">
                                        <div class="blogsocialMedia">
                                            <li><a href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink();?>" target="_blank" class="site-button sharp"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
                                            <li><a href="https://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink();?>&title=<?php the_title();?>&source=<?php the_title();?>" target="_blank" class="site-button sharp"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li>
                                            
                                            <li><a href="https://twitter.com/share?url=<?php the_permalink();?>&amp;text=<?php the_title();?>" class="site-button sharp" target="_blank"><i class="fa-brands fa-x-twitter"></i></a></li>
                                            <li><a href="https://in.pinterest.com/submit?url=<?php the_permalink();?>" target="_blank" class="site-button sharp"><i class="fa fa-pinterest-p" aria-hidden="true"></i></a></li>
                                           
                                            <div class="clearfix"></div>
                                        </div>
                                    </div>
                                    <div class="clearfix"></div>
                            
                                     <div class="tags ">         
                                      <?php if($luzuk_lite_single_tags_section == '1') { ?>                            
                                         <?php the_tags('<span class="tagtext">'.__('Tags ','Luzuk Premium').':</span>',' ') ?>                
                                        <?php } ?>           
                                    </div>       
                                </div>
                                <div class="clearfix"></div>
                            </div><!-- End Content -->
                            

                            <?php if($luzuk_lite_authorbox_section == '1') { ?>
                                    <!-- Start Author Box 
                                    <div class="postauthor">
                                        <h4><?php _e('About The Author', 'luzuk Premium'); ?></h4>
                                        <?php //if(function_exists('get_avatar')) { echo get_avatar( get_the_author_meta('email'), '85' );  } ?>
                                        <h5><?php //the_author(); ?></h5>
                                        <p><?php //the_author_meta('description') ?></p>
                                    </div>
                                    <!- End Author Box -->
                                <?php }?>  
                                <?php comments_template( '', true ); ?>
                        </div>
                    <!-- </div> -->
                        <?php endwhile; ?>
                    </article>
                </div>
                <div class="col-md-4">
                    <div id="secondary" class="widget-area">
                        <?php  dynamic_sidebar('luzuk-single-post-sidebar'); ?>
                        <!-- <//?php  dynamic_sidebar('luzuk-single-post-sidebar'); ?> -->
                    </div>
                </div>

        <!-- End Article -->
        <!-- Start Sidebar -->
        <?php // get_sidebar(); ?>
        <!-- End Sidebar -->
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
  <div class="clearfix"></div>
</main>
<div class="clearfix"></div>
<?php get_footer(); ?>
