Current File : /home/kelaby89/sergio-cuchi.tattoo/wp-content/themes/maori/search.php
<?php get_header(); ?>
<?php
$maori_search_query = get_search_query();
$maori_archive_page_layout = esc_attr(get_theme_mod('maori_archive_page_layout', '2column'));
?>
<div class="maori-page-title">
    <h1>
        <span>
            <?php
            if ( have_posts() ) {
                global $wp_query;
                $maori_post_count = $wp_query->found_posts;
                echo esc_html($maori_post_count) . ' ';
                if ($maori_post_count > 1) {
                    echo esc_html__( 'Results Found', 'maori' );
                }
                else {
                    echo esc_html__( 'Result Found', 'maori' );
                }
            }
            else {
                echo esc_html__( 'No Results Found', 'maori' );
            }
            ?>
        </span>
    </h1>
    <?php if (!empty($maori_search_query)) { ?>
    <p class="maori-page-subtitle">
        <?php echo esc_html__( 'Search Results for:', 'maori' ); ?> <?php echo esc_html($maori_search_query); ?>
    </p>
    <?php } ?>
</div>
<div class="maori-search-page-form">
    <?php get_template_part( 'templates/searchlg', 'template'); ?>
</div>
<?php if ($maori_archive_page_layout == 'fullwidth') { ?>
<?php while(have_posts()) : the_post(); ?>
<?php get_template_part( 'templates/post', 'template'); ?>
<?php endwhile; ?>
<?php } elseif ($maori_archive_page_layout == '3column') { ?>
<div class="maori-masonry-grid small-masonry">
    <div class="maori-three-columns" data-columns>
        <?php while(have_posts()) : the_post(); ?>
        <?php get_template_part( 'templates/xsmasonry', 'template'); ?>
        <?php endwhile; ?>
    </div>
</div>
<?php } else { ?>
<div class="maori-masonry-grid">
    <div class="maori-two-columns" data-columns>
        <?php while(have_posts()) : the_post(); ?>
        <?php get_template_part( 'templates/masonry', 'template'); ?>
        <?php endwhile; ?>
    </div>
</div>
<?php } ?>
<?php if ( (get_next_posts_link()) || (get_previous_posts_link())) : ?>
<div class="maori-pager">
    <?php maori_pagination(); ?>
</div>
<div class="clearfix"></div>
<?php endif; ?>
<?php get_footer(); ?>
Page not found – Hello World !