This repository was archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
76 lines (59 loc) · 1.76 KB
/
single.php
File metadata and controls
76 lines (59 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
74
75
<?php
/**
* The template for displaying all single posts
*
* @package Positor
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*/
?>
<?php get_header(); ?>
<?php
while ( have_posts() ) :
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( '' ); ?>>
<?php get_template_part( 'components/post/content-single-header', get_post_format() ); ?>
<div class="container">
<div class="row">
<div class="col-md-8">
<?php
get_template_part( 'components/post/content-single-body', get_post_format() );
$this_hide_footer = (bool) get_post_meta( $post->ID, '_positor_hide_footer_section', true );
if ( ! $this_hide_footer ) {
// Multipage post pagination.
wp_link_pages();
// Facebook like page.
get_template_part( 'components/social/facebook-like-page' );
// Social sharing.
get_template_part( 'components/social/sharebuttons' );
// Comments.
get_template_part( 'components/common/comments' );
// Social sharing.
get_template_part( 'components/common/social-sharing', get_post_format() );
// Related posts.
get_template_part( 'components/common/related-posts', get_post_format() );
// Post navigation for prev/next posts.
get_template_part( 'components/common/post-navigation', get_post_format() );
}
?>
</main>
</div>
<?php
$this_hide_sidebar = (bool) get_post_meta( $post->ID, '_positor_hide_sidebar', true );
if ( ! $this_hide_sidebar ) {
?>
<div class="col-md-3 offset-md-1 d-print-none">
<aside id="secondary" role="complementary">
<?php
get_template_part( 'components/common/meta', get_post_format() );
get_template_part( 'sidebar', get_post_format() );
?>
</aside>
</div>
<?php } ?>
</div>
</div>
</article>
<?php
endwhile; // End of the loop.
get_footer();