forked from bootscore/bootscore-child
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
77 lines (62 loc) · 2.15 KB
/
archive.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/**
* The template for displaying archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Bootscore
*/
get_header();
?>
<div id="content" class="site-content container">
<div id="primary" class="content-area">
<!-- Hook to add something nice -->
<?php bs_after_primary(); ?>
<div class="row">
<div class="col">
<main id="main" class="site-main">
<!-- Title & Description -->
<!--<header class="page-header mb-4">
<h1><?php the_archive_title(); ?></h1>
<?php the_archive_description('<div class="archive-description">', '</div>'); ?>
</header>-->
<!-- Grid Layout -->
<?php if (have_posts()) : ?>
<header class="entry-header">
<!-- Category name -->
<?php bootscore_category_badge(); ?>
</header>
<?php while (have_posts()) : the_post(); ?>
<ul class="wp-block-latest-posts__list has-dates wp-block-latest-posts has-large-font-size">
<li>
<!-- Title -->
<a class="wp-block-latest-posts__post-title" href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
<!-- Meta -->
<?php if ('post' === get_post_type()) : ?>
<small class="post-date">
<?php
bootscore_date();
#bootscore_author();
#bootscore_comments();
#bootscore_edit();
?>
</small>
<?php endif; ?>
</li>
</ul>
<?php endwhile; ?>
<?php endif; ?>
<!-- Pagination -->
<div>
<?php bootscore_pagination(); ?>
</div>
</main><!-- #main -->
</div><!-- col -->
<?php get_sidebar(); ?>
</div><!-- row -->
</div><!-- #primary -->
</div><!-- #content -->
<?php
get_footer();