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