Current File : /home/kelaby89/topflowroofingplumbing.com.au/wp-content/themes/homlane/tag.php
<?php
/**
 * Tag Main File.
 *
 * @package HOMLANE
 * @author  Theme Arc
 * @version 1.0
 */

get_header();
global $wp_query;
$data  = \HOMLANE\Includes\Classes\Common::instance()->data( 'tag' )->get();
$layout = $data->get( 'layout' );
$sidebar = $data->get( 'sidebar' );
$layout = ( $layout ) ? $layout : 'right';
$sidebar = ( $sidebar ) ? $sidebar : 'default-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';
if ( class_exists( '\Elementor\Plugin' ) AND $data->get( 'tpl-type' ) == 'e' AND $data->get( 'tpl-elementor' ) ) {
	echo Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $data->get( 'tpl-elementor' ) );
} else {
?>

<?php if ( class_exists( '\Elementor\Plugin' )):?>
	<?php do_action( 'homlane_banner', $data );?>
<?php 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">
					<?php if($data->get( 'banner_image' )) { ?>
                    <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>
					<?php } ?>
                    <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-->
<?php endif;?>

<!--Start Blog Style2 Area-->
<section id="blog-area" class="blog-style2-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 ); ?>">
                <div class="blog-posts">
                    <div class="thm-unit-test">
                        <?php
                            while ( have_posts() ) :
                                the_post();
                                homlane_template_load( 'templates/blog/blog.php', compact( 'data' ) );
                            endwhile;
                            wp_reset_postdata();
                        ?>
                    </div>
                
                    <!--Pagination-->
					<div class="row">
						<div class="col-xl-12">
							<?php homlane_the_pagination( $wp_query->max_num_pages );?>
						</div>
					</div>
            	</div>  
            </div>
        	<?php
				if ( $data->get( 'layout' ) == 'right' ) {
					do_action( 'homlane_sidebar', $data );
				}
			?>
        </div>
    </div>
</section> 
<!--End blog area--> 

<?php
}
get_footer();
Page not found – Hello World !