init
This commit is contained in:
24
wp-content/themes/flatsome/template-parts/posts/layout.php
Normal file
24
wp-content/themes/flatsome/template-parts/posts/layout.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
do_action('flatsome_before_blog');
|
||||
?>
|
||||
|
||||
<?php if(!is_single() && get_theme_mod('blog_featured', '') == 'top'){ get_template_part('template-parts/posts/featured-posts'); } ?>
|
||||
<div class="row align-center">
|
||||
<div class="large-10 col">
|
||||
<?php if(!is_single() && get_theme_mod('blog_featured', '') == 'content'){ get_template_part('template-parts/posts/featured-posts'); } ?>
|
||||
|
||||
<?php
|
||||
if(is_single()){
|
||||
get_template_part( 'template-parts/posts/single');
|
||||
comments_template();
|
||||
} elseif(get_theme_mod('blog_style_archive', '') && (is_archive() || is_search())){
|
||||
get_template_part( 'template-parts/posts/archive', get_theme_mod('blog_style_archive', '') );
|
||||
} else{
|
||||
get_template_part( 'template-parts/posts/archive', get_theme_mod('blog_style', 'normal') );
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php do_action('flatsome_after_blog');
|
Reference in New Issue
Block a user