-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
36 lines (27 loc) · 989 Bytes
/
single.php
File metadata and controls
36 lines (27 loc) · 989 Bytes
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
<?php defined('ABSPATH') || exit; ?>
<?php get_header(); ?>
<main id="main">
<?php while (have_posts()) : the_post(); ?>
<?php if (scratchstart_should_render('post_title')) : ?>
<h1><?php the_title(); ?></h1>
<?php endif; ?>
<?php if (scratchstart_should_render('post_meta')) : ?>
<p class="entry-meta">
<?php
printf(
/* translators: 1: publication date, 2: author name */
esc_html__('%1$s by %2$s', 'scratchstart'),
esc_html(get_the_date()),
esc_html(get_the_author())
);
?>
</p>
<?php endif; ?>
<?php the_content(); ?>
<?php if (scratchstart_should_render('comments') && (comments_open() || get_comments_number())) :
comments_template();
endif; ?>
<?php endwhile; ?>
</main>
<?php get_sidebar(); ?>
<?php get_footer(); ?>