| Current Path : /home/xbodynamge/www/wp-content/themes/hestia/template-parts/ |
| Current File : /home/xbodynamge/www/wp-content/themes/hestia/template-parts/content-single.php |
<?php
/**
* The default template for displaying content
*
* Used for single posts.
*
* @package Hestia
* @since Hestia 1.0
*/
$sidebar_layout = get_theme_mod( 'hestia_blog_sidebar_layout', 'sidebar_right' );
$wrap_class = apply_filters( 'hestia_filter_single_post_content_classes', 'single-post-wrap col-md-8' );
?>
<div class="row">
<?php
if ( ( $sidebar_layout === 'sidebar-left' ) && ! is_singular( 'elementor_library' ) ) {
get_sidebar();
}
?>
<div class=" <?php echo esc_attr( $wrap_class ); ?>">
<?php
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'single' ) ) {
do_action( 'hestia_before_single_post_article' );
?>
<article id="post-<?php the_ID(); ?>" class="section section-text">
<?php
do_action( 'hestia_before_single_post_content' );
the_content();
hestia_wp_link_pages(
array(
'before' => '<div class="text-center"> <ul class="nav pagination pagination-primary">',
'after' => '</ul> </div>',
'link_before' => '<li>',
'link_after' => '</li>',
)
);
?>
</article>
<?php
do_action( 'hestia_after_single_post_article' );
}
?>
</div>
<?php
if ( ( $sidebar_layout === 'sidebar-right' ) && ! is_singular( 'elementor_library' ) ) {
get_sidebar();
}
?>
</div>