forked from themejack/briar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.php
More file actions
51 lines (46 loc) · 1.12 KB
/
archive.php
File metadata and controls
51 lines (46 loc) · 1.12 KB
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
<?php
/**
* The template for displaying archive pages.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package Briar
* @since 1.0
*/
get_header(); ?>
<div class="page-title">
<div class="container">
<div class="row">
<div class="col-lg-12">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<h5>', '</h5>' );
?>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container -->
</div><!-- /.page title -->
<div class="container">
<div class="row">
<div class="<?php briar_main_class(); ?>">
<div class="post-list" id="content" role="main">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="row">
<?php
get_template_part( 'content', get_post_format() );
?>
</div>
<?php endwhile; ?>
<?php briar_pagination(); ?>
<?php else : ?>
<div class="row">
<?php get_template_part( 'content', 'none' ); ?>
</div>
<?php endif; ?>
</div>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer();