%k25u25%fgd5n!
/home/nancmxek/ljsecuredoors.com/wp-content/themes/fauxis/archive.php
<?php
/**
 * Archive Main File.
 *
 * @package FAUXIS
 * @author  Template Path
 * @version 1.0
 */
get_header();
global $wp_query;
$data  = \FAUXIS\Includes\Classes\Common::instance()->data( 'archive' )->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-xs-12 col-sm-12 col-md-12 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( 'fauxis_banner', $data );?>
<?php else:?>
	<!--Page Title-->
<?php if ( $data->get( 'banner' ) ) : ?>
<section class="page-title" style="background-image: url(<?php echo esc_url( $data->get( 'banner' ) ); ?>);">
<?php else : ?>	
<section class="page-title" style="background-image: url(<?php echo esc_url(get_template_directory_uri().'/assets/images/banner.jpg');?>);">	
<?php endif; ?>
	
		<div class="auto-container">
			<div class="content-box">
				<div class="title">
					<h1><?php if( $data->get( 'title' ) ) echo wp_kses( $data->get( 'title' ), true ); else( wp_title( '' ) ); ?></h1>
				</div>
				<ul class="bread-crumb clearfix">
					<?php echo fauxis_the_breadcrumb(); ?>
				</ul>
			</div>
		</div>
	</section>
	<!--End Page Title-->
<?php endif;?>
        <!-- sidebar-page-container -->
        <section class="sidebar-page-container blog-list sec-pad-2">
            <div class="auto-container">
                <div class="row clearfix">
                
                <!--Sidebar Start-->
                <?php
				if ( $data->get( 'layout' ) == 'left' ) {
					do_action( 'fauxis_sidebar', $data );
				}
				?>
                
                <div class="content-side <?php echo esc_attr( $class ); ?> col-md-12 col-sm-12">
                    
                    <div class="blog-list-content mr-20">
                    
                        <?php
                            while ( have_posts() ) :
                                the_post();
                                fauxis_template_load( 'templates/blog/blog.php', compact( 'data' ) );
                            endwhile;
                            wp_reset_postdata();
                        ?>
                        
                    </div>
                    
                    <!--Pagination-->
                   <div class="pagination-wrapper centred">
                        <?php fauxis_the_pagination( $wp_query->max_num_pages );?>
                    </div>
                    
                </div>
                
                <!--Sidebar Start-->
                <?php
				if ( $data->get( 'layout' ) == 'right' ) {
					do_action( 'fauxis_sidebar', $data );
				}
				?>
                
            </div>
        </div>
    </section> 
    <!--End blog area--> 
<!--End blog area--> 
<?php
}
get_footer();