Current File : /home/kelaby89/topflowroofingplumbing.com.au/wp-content/themes/homlane/single.php |
<?php
/**
* Blog Post Main File.
*
* @package HOMLANE
* @author Theme Arc
* @version 1.0
*/
get_header();
$data = \HOMLANE\Includes\Classes\Common::instance()->data( 'single' )->get();
$layout = $data->get( 'layout' );
$sidebar = $data->get( 'sidebar' );
if (is_active_sidebar( $sidebar )) {$layout = 'right';} else{$layout = 'full';}
$class = ( !$layout || $layout == 'full' ) ? 'col-xs-12 col-sm-12 col-md-12' : 'col-xl-9 col-lg-8';
$options = homlane_WSH()->option();
if ( class_exists( '\Elementor\Plugin' ) && $data->get( 'tpl-type' ) == 'e') {
while(have_posts()) {
the_post();
the_content();
}
} else {
?>
<!--Start breadcrumb area-->
<section class="breadcrumb-area" style="background-image: url(<?php echo esc_url( $data->get( 'banner' ) ); ?>);">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="inner-content clearfix">
<div class="layer-outer" data-aos="fade-up" data-aos-easing="linear" data-aos-duration="1000">
<img src="<?php echo esc_url( $data->get( 'banner_image' ) ); ?>" alt="<?php esc_attr_e('Banner Image', 'homlane'); ?>">
</div>
<div class="title wow slideInUp animated" data-wow-delay="0.3s" data-wow-duration="1500ms">
<h2><?php if( $data->get( 'title' ) ) echo wp_kses( $data->get( 'title' ), true ); else( wp_title( '' ) ); ?></h2>
</div>
<div class="breadcrumb-menu wow slideInDown animated" data-wow-delay="0.3s" data-wow-duration="1500ms">
<ul class="clearfix">
<?php echo homlane_the_breadcrumb(); ?>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
<!--End breadcrumb area-->
<!--Start Blog Style2 Area-->
<section id="blog-area" class="blog-style2-area blog-single-area">
<div class="container">
<div class="row">
<?php
if ( $data->get( 'layout' ) == 'left' ) {
do_action( 'homlane_sidebar', $data );
}
?>
<div class="<?php echo esc_attr( $class ); ?>">
<?php while ( have_posts() ) : the_post(); ?>
<div class="thm-unit-test">
<div class="blog-posts">
<div class="single-blog-style2">
<?php if( has_post_thumbnail() ):?>
<div class="img-holder">
<div class="inner">
<?php the_post_thumbnail('homlane_840x380'); ?>
</div>
<div class="date-box">
<h2><?php echo get_the_date('d'); ?> <br><span><?php echo get_the_date('F'); ?></span></h2>
</div>
</div>
<?php endif;?>
<div class="text-holder">
<ul class="meta-info <?php if( has_post_thumbnail() ) echo 'p-t22';?>">
<li><a href="<?php echo esc_url(get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) )); ?>"><?php esc_html_e('By:', 'homlane'); ?> <?php the_author(); ?></a></li>
<?php if( has_category() ):?>
<li><?php the_category(', '); ?></li>
<?php endif;?>
<li><a href="<?php echo esc_url(get_permalink(get_the_id()).'#comments'); ?>"><?php comments_number( 'Comments: 0', 'Comment: 1', 'Comments: %' ); ?></a></li>
</ul>
</div>
</div>
<div class="blog-details-text-one">
<div class="text"><?php the_content(); ?></div>
<div class="clearfix"></div>
<?php wp_link_pages(array('before'=>'<div class="paginate-links m-b30">'.esc_html__('Pages: ', 'homlane'), 'after' => '</div>', 'link_before'=>'<span>', 'link_after'=>'</span>')); ?>
</div>
<!-- Comments Area -->
<?php comments_template(); ?>
</div>
</div>
<?php endwhile; ?>
</div>
<?php
if ( $data->get( 'layout' ) == 'right' ) {
do_action( 'homlane_sidebar', $data );
}
?>
</div>
</div>
</section>
<!--End blog area-->
<?php
}
get_footer();