-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsingle.php
37 lines (23 loc) · 826 Bytes
/
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
<?php
/**
* The Template for displaying all single posts.
*
* @package The7
* @since 1.0.0
*/
// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; }
get_header( 'single' ); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'header-main' ); ?>
<?php if ( presscore_is_content_visible() ): ?>
<?php do_action( 'presscore_before_loop' ); ?>
<!-- !- Content -->
<div id="content" class="content" role="main">
<?php get_template_part( 'content-single', str_replace( 'dt_', '', get_post_type() ) ); ?>
<?php comments_template( '', true ); ?>
</div><!-- #content .wf-cell -->
<?php do_action( 'presscore_after_content' ); ?>
<?php endif; // content is visible ?>
<?php endwhile; endif; // end of the loop. ?>
<?php get_footer(); ?>