-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsingle.php
31 lines (30 loc) · 1.05 KB
/
single.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
<?php
/**
* The Template for displaying all single posts.
*/
get_header();
?>
<?php while ( have_posts() ) : the_post();
$post_id = get_the_ID();
$thumb_id = get_post_thumbnail_id();
global $show_navigation_between_portfolio_items;
$prev_post = get_adjacent_post(false, '', true);
$next_post = get_adjacent_post(false, '', false);
global $image_gallery_system;
if ( $image_gallery_system === 'one-page-one-picture' ) {
include( locate_template ( 'template-parts/gallery-one-page-one-picture.php' ) );
}
else if ( $image_gallery_system === 'scrollpage' ) {
include( locate_template ( 'template-parts/gallery-scrollpage.php' ) );
}
else if ( $image_gallery_system === 'slider' ) {
include( locate_template ( 'template-parts/gallery-slider.php' ) );
}
if ( $show_navigation_between_portfolio_items === 'yes-navi' ) {
include( locate_template ( 'template-parts/gallery-footer.php' ) );
}
if ( $show_navigation_between_portfolio_items === 'yes-cat' ) {
include( locate_template ( 'template-parts/gallery-footer-back.php' ) );
}
endwhile; ?>
<?php get_footer(); ?>