-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
executable file
·41 lines (32 loc) · 1.26 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
<?php
/**
* The template for displaying archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package soapatrickeight
*/
get_header();
if ( have_posts() ) : ?>
<div class="breadcrumbs-wrapper">
<nav class="breadcrumbs">
<span class="breadcrumbs__item"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php esc_html_e( 'SoaPatrick', 'soapatrickeight' ) ?></a></span>
<?php if( is_tag() ) : ?>
<span class="breadcrumbs__item"><a href="<?php echo esc_url( home_url( '/' ) ); ?>/tags/"><?php esc_html_e( 'Tags', 'soapatrickeight' ) ?></a></span>
<?php else : ?>
<span class="breadcrumbs__item"><a href="<?php echo esc_url( home_url( '/' ) ); ?>/storage/"><?php esc_html_e( 'Storage', 'soapatrickeight' ) ?></a></span>
<?php endif; ?>
<span class="breadcrumbs__item--last"><?php the_archive_title();?></span>
</nav>
</div>
<header class="page__header">
<?php the_archive_title( '<h1 class="title-huge">', '</h1>' ); ?>
</header>
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'template-partials/content/content', 'list' );
endwhile;
soapatrickeight_posts_navigation();
endif;
get_footer();