-
Notifications
You must be signed in to change notification settings - Fork 30
/
archive-portfolio.php
48 lines (37 loc) · 1.14 KB
/
archive-portfolio.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
<?php
/**
* This is the default view for portfolio archives.
*
* @package Portfolio Press
*/
get_header(); ?>
<div id="primary">
<div id="content" role="main">
<?php if ( is_tax() || is_category() || is_tag() ) :
if ( portfoliopress_get_option( 'archive_titles', true ) ) : ?>
<header class="archive-header">
<h1 class="archive-title"><?php echo single_term_title( '', false ); ?></h1>
<?php $description = term_description();
if ( ! empty( $description ) ) {
echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $description . '</div>' );
} ?>
</header>
<?php endif;
endif;
?>
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'portfolio' ); ?>
<?php endwhile; ?>
<?php portfoliopress_paging_nav(); ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php
if ( !portfoliopress_get_option( 'portfolio_sidebar' ) ) {
get_sidebar();
} ?>
<?php get_footer(); ?>