This repository has been archived by the owner on Feb 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle.php
executable file
·68 lines (55 loc) · 2.13 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
<?php
/**
* Twenty'em WordPress Framework.
*
* WARNING: This file is part of Twenty'em WordPress Framework.
* DO NOT edit this file under any circumstances. Do all your modifications in the form of a child theme.
*
* @package WordPress
* @subpackage Twenty'em
* @author RogerTM
* @license license.txt
* @link https://themingisprose.com/twenty-em
* @since Twenty'em 1.0
*/
/**
* The template for displaying all single posts.
*
* @link http://codex.wordpress.org/Template_Hierarchy
*/
get_header(); ?>
<section id="main-content" <?php t_em_breakpoint( 'main-content' ); ?>>
<section id="content" role="main" <?php t_em_breakpoint( 'content' ); ?>>
<?php do_action( 't_em_action_content_before' ); ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php do_action( 't_em_action_post_before' ); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php do_action( 't_em_action_post_inside_before' ); ?>
<header>
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-meta entry-meta-header mb-3">
<?php do_action( 't_em_action_entry_meta_header' ) ?>
</div><!-- .entry-meta -->
</header>
<?php do_action( 't_em_action_post_content_before' ); ?>
<?php if ( ! empty( get_post_field( 'post_excerpt' ) ) ) : ?>
<div class="entry-excerpt"><?php echo t_em_wrap_paragraph( $post->post_excerpt ) ?></div>
<?php endif; ?>
<div class="entry-content">
<?php the_content(); ?>
</div><!-- .entry-content -->
<?php do_action( 't_em_action_post_content_after' ); ?>
<footer class="entry-meta entry-meta-footer mb-3">
<?php do_action( 't_em_action_entry_meta_footer' ) ?>
</footer><!-- .entry-meta .entry-meta-footer -->
<?php do_action( 't_em_action_post_inside_after' ); ?>
</article><!-- #post-## -->
<?php do_action( 't_em_action_post_after' ); ?>
<?php endwhile; // end of the loop. ?>
<?php t_em_comments_template(); ?>
<?php do_action( 't_em_action_content_after' ); ?>
</section><!-- #content -->
<?php get_sidebar(); ?>
<?php get_sidebar( 'alt' ); ?>
</section><!-- #main-content -->
<?php get_footer(); ?>