Current File : /home/kelaby89/sergio-cuchi.tattoo/wp-content/themes/maori/category.php
<?php get_header(); ?>
<?php 
$maori_archive_page_layout = esc_attr(get_theme_mod('maori_archive_page_layout', '2column'));
$maori_category_id = get_query_var('cat');
$maori_cat_name = get_category($maori_category_id)->name;
$maori_cat_desc = get_category($maori_category_id)->description;
?>
<div class="maori-page-title">
    <h1><span><?php echo esc_html($maori_cat_name); ?></span></h1>
    <?php if (!empty($maori_cat_desc)) { ?>
    <p class="maori-page-subtitle"><?php echo stripslashes(esc_html($maori_cat_desc)); ?></p>
    <?php } ?>
</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 !