- File: single.php
- Full Path: /home/matthif/www/wp-content/themes/neve/single.php
- Date Modified: 01/24/2024 5:49 PM
- File size: 1.17 KB
- MIME-type: text/x-php
- Charset: utf-8
<?php
/**
* Author: Andrei Baicus <andrei@themeisle.com>
* Created on: 28/08/2018
*
* @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
/**
* Executes actions before the post content.
*
* @since 2.3.8
*/
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' );
}
/**
* Executes actions after the post content.
*
* @since 2.3.8
*/
do_action( 'neve_after_post_content' );
?>
</article>
<?php do_action( 'neve_do_sidebar', 'single-post', 'right' ); ?>
</div>
</div>
<?php
get_footer();