This repository was archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsingle-portfolio.php
More file actions
73 lines (51 loc) · 1.76 KB
/
single-portfolio.php
File metadata and controls
73 lines (51 loc) · 1.76 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
* The template for displaying the singular portfolio post.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Snazzy
* @link https://themebeans.com/themes/snazzy
*/
get_header();
snazzy_set_post_views( get_the_ID() ); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
while ( have_posts() ) :
the_post();
snazzy_gallery( $post->ID, 'port-full' );
get_template_part( 'template-parts/portfolio-content' );
echo '<div class="project-description">';
the_title( '<h1 class="entry-title">', '</h1>' );
echo '<div class="entry-content">';
the_content();
echo '</div>';
// Output the post meta.
get_template_part( 'template-parts/portfolio-meta' );
// Include the post-to-post navigational arrows if selected via the Customizer.
if ( true === get_theme_mod( 'portfolio_navigation' ) ) {
the_post_navigation(
array(
'next_text' => '<span class="meta-nav" aria-hidden="true"></span><span class="screen-reader-text">' . esc_html__( 'Next Post', 'snazzy' ) . '</span><span class="post-title">→</span>',
'prev_text' => '<span class="meta-nav" aria-hidden="true"></span><span class="screen-reader-text">' . esc_html__( 'Previous Post', 'snazzy' ) . '</span><span class="post-title">←</span>',
)
);
}
echo '</div">';
endwhile;
if ( true === get_theme_mod( 'portfolio_lightbox' ) ) {
get_template_part( 'template-parts/photoswipe' );
}
?>
</article>
</main>
<?php
if ( true === get_theme_mod( 'portfolio_loop' ) ) {
get_template_part( 'template-parts/portfolio-more' );
}
?>
</div>
<?php
get_footer();