-
Notifications
You must be signed in to change notification settings - Fork 2
/
taxonomy-jetpack-portfolio-tag.php
56 lines (44 loc) · 1.48 KB
/
taxonomy-jetpack-portfolio-tag.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
<?php
/**
* The template for displaying archive pages for the jetpack-portfolio-tag taxonomy.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Noah Lite
* @since Noah Lite 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
get_header(); ?>
<header class="c-page-header content-area">
<h1 class="c-page-header__title h1">
<?php esc_html_e( 'Projects', 'noah-lite' ); ?>
</h1>
<div class="c-page-header__meta h7">
<span><?php esc_html_e( 'Show', 'noah-lite' ); ?></span>
<span class="c-page-header__taxonomy u-color-accent"><?php noahlite_the_taxonomy_dropdown( 'jetpack-portfolio-tag', get_query_var( 'term' ) ); ?></span>
</div>
<?php if ( term_description() ) {
echo term_description();
} ?>
</header><!-- .archive-header -->
<?php if ( have_posts() ) : ?>
<div class="u-content-background">
<section class="c-archive-loop u-full-width u-portfolio_sides_spacing u-content-bottom-spacing">
<div class="o-wrapper u-portfolio_grid_width">
<div <?php noahlite_portfolio_class(); ?>>
<?php while ( have_posts() ) : the_post();
get_template_part( 'template-parts/project/content', 'jetpack-portfolio' );
endwhile; ?>
</div>
</div><!-- .o-wrapper -->
</section><!-- .c-archive-loop -->
</div><!-- .u-content-background -->
<?php else : ?>
<div class="u-content-width entry-content">
<?php get_template_part( 'template-parts/content', 'none' ); ?>
</div>
<?php endif;
the_posts_navigation();
get_footer();