-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
108 lines (71 loc) · 2.84 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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?php
/**
* Template for single posts.
* @subpackage Scheduler theme
* @since 1.8.0
*/
get_header();
?>
<section id="content" role="main">
<?php if (have_posts() )
{ ?>
<?php while ( have_posts() )
{ the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="postmetadata" role="content info">
<?php // Header content in functions
echo scheduler_heading_header_render(); ?>
</header>
<article class="entry">
<?php // Thumbnail page layout
if ( has_post_thumbnail() ) { ?>
<figure class="single-main-image">
<?php the_post_thumbnail('medium'); ?>
</figure>
<?php
} ?>
<div class="inner-content">
<?php the_content(); ?><div class="schdlr-clearfix"></div>
<?php wp_link_pages( array(
'before' => '<div class="pagelink"><span class="page-links-title">'
. __( 'Pages:', 'scheduler' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
) ); ?>
</div>
<footer class="scheduler-entry-footer">
<?php if( has_tag() ) { ?>
<p class="spanlink"><span><?php esc_html_e( 'Keywords: ',
'scheduler' ); ?> </span> <?php the_tags( ' ', ', ' ); ?></p>
<?php } ?>
<?php if( has_category( ) )
{ ?>
<p class="spanlink"><span><?php esc_html_e( 'Topic: ',
'scheduler' ); ?></span> <?php the_category( ', ', ' ' ); ?></p>
<?php // Ends if-Cat
} ?>
<p class="spanlink"><span><?php edit_post_link(); ?></span></p>
</footer>
</article>
</div><!-- ends single posts -->
<section id="comments">
<?php comments_template(); ?>
</section>
<nav class="pagination lower-post-links">
<?php /* using `the_post_navigation` returns block CSS property value
and incorrect characters for this theme. Falling back to inline value.
TODO: remove comment after review. */
?>
<?php previous_post_link('« %link'); ?> =|=
<?php next_post_link('%link »'); ?>
</nav>
<?php // ends while loop
} ?>
<?php // No posts found continue
} else { ?>
<?php get_template_part( 'content', '404' ); ?>
<?php // ends if-posts loop
} ?>
</section>
<?php get_footer(); ?>