-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsingle-action.php
More file actions
42 lines (36 loc) · 1.06 KB
/
single-action.php
File metadata and controls
42 lines (36 loc) · 1.06 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
<?php
/**
* Template for outputting a single action.
*
* @package Neve
*/
$container_class = apply_filters( 'neve_container_class_filter', 'container', 'single-post' );
get_header();
?>
<div class="<?php echo esc_attr( $container_class ); ?> single-post-container">
<div class="row">
<?php do_action( 'neve_do_sidebar', 'single-post', 'left' ); ?>
<article id="post-<?php echo esc_attr( get_the_ID() ); ?>"
class="<?php echo esc_attr( join( ' ', get_post_class( 'nv-single-post-wrap col' ) ) ); ?>">
<?php
do_action( 'neve_before_post_content' );
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
get_template_part( 'template-parts/content', 'single' );
}
} else {
get_template_part( 'template-parts/content', 'none' );
}
do_action( 'neve_after_post_content' );
?>
<?php
get_template_part( 'template-parts/actions/action-other-actions' );
comments_template();
?>
</article>
<?php do_action( 'neve_do_sidebar', 'single-post', 'right' ); ?>
</div>
</div>
<?php
get_footer();