Current File : /home/kelaby89/iluxelectrical.com.au/wp-content/themes/strnix/search.php
<?php
/**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package strnix
 */

get_header();
if (is_active_sidebar('sidebar-1')) :
    $blog_post_list_class = 'col-lg-8';
else :
    $blog_post_list_class = 'col-lg-12';
endif;
?>
<div class="sidebar-page-container">
	<div class="auto-container">
		<div class="row clearfix">
			<!--Content Side-->
			<div class="content-side <?php echo esc_attr($blog_post_list_class); ?> col-md-12 col-sm-12">
				<div class="blog-content">
					<?php
						if (have_posts()) :
							
							while (have_posts()) :
								the_post();
								get_template_part('template-parts/content', get_post_format());

							endwhile;
						else :
							get_template_part('template-parts/content', 'none');
						endif;
					?>
				</div>
				<?php if(get_the_posts_pagination()) : ?>
					<div class="pagination-box">
						<?php
							the_posts_pagination(array(
								'mid_size' => 2,
								'prev_text' => '<span class="fa fa-angle-left"></span>',
								'next_text' => '<span class="fa fa-angle-right"></span>'
							));
						?>
					</div>
				<?php endif; ?>
			</div>
			<?php if (is_active_sidebar('sidebar-1')) { ?>
				<div class="sidebar-side col-lg-4 col-md-12 col-sm-12">
					<aside class="sidebar blog-sidebar">
						<?php get_sidebar(); ?>
					</aside>
				</div>
			<?php } ?>
		</div>
	</div>
</div>

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