init
This commit is contained in:
24
wp-content/themes/flatsome/template-parts/posts/single.php
Normal file
24
wp-content/themes/flatsome/template-parts/posts/single.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<?php /* Start the Loop */ ?>
|
||||
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<div class="article-inner <?php flatsome_blog_article_classes(); ?>">
|
||||
<?php
|
||||
if(flatsome_option('blog_post_style') == 'default' || flatsome_option('blog_post_style') == 'inline'){
|
||||
get_template_part('template-parts/posts/partials/entry-header', flatsome_option('blog_posts_header_style') );
|
||||
}
|
||||
?>
|
||||
<?php get_template_part( 'template-parts/posts/content', 'single' ); ?>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<?php get_template_part( 'no-results', 'index' ); ?>
|
||||
|
||||
<?php endif; ?>
|
Reference in New Issue
Block a user