Current File : /home/getxxhzo/tinyrnd.com/wp-content/themes/flyweb/single.php
<?php

   $blog_details_banner_image = flyweb_get_opt('blog_details_banner_image');
   $pos_sidebar = flyweb_get_opt( 'post_sidebar_pos', 'right' );
   $home_text = flyweb_get_opt('home_text');
   $post_social_share_on = flyweb_get_opt('post_social_share_on');
   $post_tags_on = flyweb_get_opt('post_tags_on');

   get_header(); 
   while (have_posts()): the_post();
?>

<!-- PAGE TITLE
================================================== -->
<?php if(isset ($blog_details_banner_image['url']) && !empty ($blog_details_banner_image['url']) ){?>
<section class="page-title-section bg-img cover-background left-overlay-secondary" data-overlay-dark="6" data-background="<?php printf ( esc_url($blog_details_banner_image['url'])); ?>">
    <?php }else{?>
        <section class="page-title-section bg-img cover-background secondary-overlay" data-overlay-dark="95">
            <?php }?>
            <div class="container">
                <div class="row">
                    <div class="col-md-12">
                        <div class="text-start">
                            <div class="position-relative">
                                <h1><?php the_title();?></h1>
                                <ul>
                                    <li><a href="<?php echo esc_url(home_url('/')); ?>">
                                        <?php if(isset($home_text) && !empty($home_text)){?>
                                            <?php echo wp_specialchars_decode(esc_attr($home_text)); ?>
                                        <?php }else{?>
                                            <?php echo esc_html__( 'Home', 'flyweb' );
                                        }?>
                                    </a></li>
                                    <li><?php the_title(); ?></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
</section>

<!-- BLOG DETAILS
================================================== -->
<section class="page-section">
    <div class="container">
        <div <?php flyweb_primary_class( $pos_sidebar ); ?>>

            <?php if ( is_active_sidebar( 'sidebar-1' ) ){?>
            <div class="col-lg-8 mb-5 mb-lg-0">
            <?php }else{ ?>
            <div class="col-lg-12">
                <?php } ?>

                <div class="posts-wrapper">

                    <article class="card border-0 primary-shadow h-auto mb-2-9">
                        <?php if ( has_post_thumbnail() ) { ?>
                        <div class="blog-img position-relative overflow-hidden image-hover">
                            <img src="<?php echo wp_get_attachment_url(get_post_thumbnail_id());?>" alt="<?php the_title_attribute(); ?>" class="rounded-top">
                        </div>
                        <?php } ?>
                        <div class="post-content-details card-body p-1-6 p-sm-1-9">
                            <ul class="entry-meta list-unstyled mb-3">
                                <li class="d-inline-block me-3 my-1"><i class="ti-calendar me-1 text-primary"></i> <?php the_time(get_option( 'date_format' ));?></li>
                                <li class="d-inline-block me-3 my-1"><i class="fas fa-comment me-1 text-primary"></i> <?php comments_number( esc_html__('0 Comments' , 'flyweb') , esc_html__('1 Comment' , 'flyweb' ), esc_html__('% Comments' , 'flyweb')); ?></li>
                                <li class="d-inline-block my-1"><i class="far fa-user me-2 text-primary"></i><?php echo esc_html__( 'By', 'flyweb' ); ?> <?php the_author_posts_link(); ?></li>
                            </ul>
                            <div class="page-content">
                                <?php the_content(); ?>
                                <?php wp_link_pages( array(
                                'before'      => '<div class="page-links">' . esc_html__( 'Pages:', 'flyweb' ),
                                'after'       => '</div>',
                                'link_before' => '<span class="page-number">',
                                'link_after'  => '</span>',
                                ) ); ?>
                            </div>
                        </div>
                            
                        <?php if(isset($post_social_share_on) && ($post_social_share_on) != ''){?><div class="border-top border-color-light-black p-2-0 g-0 d-md-flex align-items-center entry-footer w-100"><?php if($post_tags_on){ flyweb_entry_tagged_in(); } ?><?php if($post_social_share_on){ flyweb_socials_share_default(); } ?></div><?php }else{?><div class="border-top border-color-light-black p-2-0 g-0 d-md-flex align-items-center entry-footer w-100"><?php flyweb_entry_tagged_in(); ?></div><?php } ?>

                    </article>

                <?php get_template_part('page-templates/post-navigation'); ?>

                <!-- Comments -->
                <?php comments_template(); ?>
                <!-- End Comments -->  

                </div>

            </div>

            <?php if ( 'left' == $pos_sidebar && is_active_sidebar( 'sidebar-1' ) || 'right' == $pos_sidebar && is_active_sidebar( 'sidebar-1' ) ) : ?>
                <div class="col-lg-4">
                    <div <?php flyweb_secondary_class( $pos_sidebar ); ?>>
                        <?php get_sidebar();?>
                    </div>
                </div>
            <?php endif; ?>
                        
        </div>
    </div>
</section>

<?php endwhile; ?>
<?php
    get_footer();
?>