Make WordPress Themes

source: beauty-cosmetic-store/0.0.9/archive.php

Last change on this file was 251746, checked in by themedropbox, 12 months ago

New version of Beauty Cosmetic Store - 0.0.6

File size: 1.7 KB
Line 
1<?php
2/**
3 * The template for displaying archive pages
4 *
5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
6 *
7 * @package Beauty Cosmetic Store
8 */
9
10get_header(); ?>
11
12    <div id="skip-content" class="container">
13        <div class="row">
14            <div id="primary" class="content-area <?php echo is_active_sidebar('sidebar') ? "col-lg-9 col-lg-8" : "col-lg-12"; ?>">
15                <main id="main" class="site-main module-border-wrap">
16                    <?php if (have_posts()) { ?>
17
18                        <header class="page-header">
19                            <?php
20                            the_archive_title('<h2 class="page-title">', '</h2>');
21                            the_archive_description('<div class="archive-description">', '</div>');
22                            ?>
23                        </header>
24
25                        <div class="row">
26                            <?php /* Start the Loop */
27                            while (have_posts()) :
28                                the_post();
29                               
30                                get_template_part( 'template-parts/content',get_post_format());
31
32                            endwhile; ?>
33                        </div>
34                           
35                        <?php if( get_theme_mod('beauty_cosmetic_store_post_page_pagination',1) == 1){ 
36                            the_posts_navigation();
37                        }
38
39                    }else {
40
41                        get_template_part('template-parts/content', 'none');
42
43                    } ?>
44                   
45                </main>
46            </div>
47            <?php get_sidebar(); ?>
48        </div>
49    </div>
50
51<?php get_footer();
Note: See TracBrowser for help on using the repository browser.