This commit is contained in:
nguyen dung
2022-02-18 16:43:41 +07:00
commit 39b8cb3612
4470 changed files with 1378320 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php if ( have_posts() ) : ?>
<?php
// Create IDS
$ids = array();
while ( have_posts() ) : the_post();
array_push($ids, get_the_ID());
endwhile; // end of the loop.
$ids = implode(',', $ids);
?>
<?php
echo flatsome_apply_shortcode( 'blog_posts', array(
'type' => get_theme_mod( 'blog_style_type', 'masonry' ),
'depth' => get_theme_mod( 'blog_posts_depth', 0 ),
'depth_hover' => get_theme_mod( 'blog_posts_depth_hover', 0 ),
'text_align' => get_theme_mod( 'blog_posts_title_align', 'center' ),
'columns' => '2',
'show_date' => get_theme_mod( 'blog_badge', 1 ) ? 'true' : 'false',
'ids' => $ids,
) );
?>
<?php flatsome_posts_pagination(); ?>
<?php else : ?>
<?php get_template_part( 'template-parts/posts/content','none'); ?>
<?php endif; ?>

View File

@@ -0,0 +1,30 @@
<?php if ( have_posts() ) : ?>
<?php
// Create IDS
$ids = array();
while ( have_posts() ) : the_post();
array_push($ids, get_the_ID());
endwhile; // end of the loop.
$ids = implode(',', $ids);
?>
<?php
echo flatsome_apply_shortcode( 'blog_posts', array(
'type' => get_theme_mod( 'blog_style_type', 'masonry' ),
'depth' => get_theme_mod( 'blog_posts_depth', 0 ),
'depth_hover' => get_theme_mod( 'blog_posts_depth_hover', 0 ),
'text_align' => get_theme_mod( 'blog_posts_title_align', 'center' ),
'columns' => '3',
'show_date' => get_theme_mod( 'blog_badge', 1 ) ? 'true' : 'false',
'ids' => $ids,
) );
?>
<?php flatsome_posts_pagination(); ?>
<?php else : ?>
<?php get_template_part( 'template-parts/posts/content','none'); ?>
<?php endif; ?>

View File

@@ -0,0 +1,37 @@
<?php if ( have_posts() ) : ?>
<div id="post-list">
<?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(); ?>">
<header class="entry-header">
<div class="entry-header-text text-<?php echo get_theme_mod( 'blog_posts_title_align', 'center' );?>">
<?php get_template_part( 'template-parts/posts/partials/entry', 'title'); ?>
</div>
</header>
<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. ?>
<div class="entry-image-float">
<?php get_template_part( 'template-parts/posts/partials/entry-image', 'default'); ?>
<?php if ( get_theme_mod( 'blog_badge', 1 ) ) get_template_part( 'template-parts/posts/partials/entry', 'post-date' ); ?>
</div>
<?php } ?>
<?php get_template_part('template-parts/posts/content', 'default' ); ?>
<div class="clearfix"></div>
<?php get_template_part('template-parts/posts/partials/entry-footer', 'default' ); ?>
</div>
</article>
<?php endwhile; ?>
<?php flatsome_posts_pagination(); ?>
</div>
<?php else : ?>
<?php get_template_part( 'template-parts/posts/content','none'); ?>
<?php endif; ?>

View File

@@ -0,0 +1,32 @@
<?php if ( have_posts() ) : ?>
<?php
// Create IDS
$ids = array();
while ( have_posts() ) : the_post();
array_push($ids, get_the_ID());
endwhile; // end of the loop.
$ids = implode(',', $ids);
?>
<?php
echo flatsome_apply_shortcode( 'blog_posts', array(
'type' => 'row',
'image_width' => '40',
'depth' => get_theme_mod( 'blog_posts_depth', 0 ),
'depth_hover' => get_theme_mod( 'blog_posts_depth_hover', 0 ),
'text_align' => get_theme_mod( 'blog_posts_title_align', 'center' ),
'style' => 'vertical',
'columns' => '1',
'show_date' => get_theme_mod( 'blog_badge', 1 ) ? 'true' : 'false',
'ids' => $ids,
) );
?>
<?php flatsome_posts_pagination(); ?>
<?php else : ?>
<?php get_template_part( 'template-parts/posts/content','none'); ?>
<?php endif; ?>

View File

@@ -0,0 +1,25 @@
<?php if ( have_posts() ) : ?>
<div id="post-list">
<?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 get_template_part('template-parts/posts/partials/entry-header', flatsome_option('blog_posts_header_style') ); ?>
<?php get_template_part('template-parts/posts/content', 'default' ); ?>
<?php get_template_part('template-parts/posts/partials/entry-footer', 'default' ); ?>
</div>
</article>
<?php endwhile; ?>
<?php flatsome_posts_pagination(); ?>
</div>
<?php else : ?>
<?php get_template_part( 'template-parts/posts/content','none'); ?>
<?php endif; ?>

View File

@@ -0,0 +1,34 @@
<?php
/**
* Template part for displaying a message that posts cannot be found.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package flatsome
*/
?>
<section class="no-results not-found">
<header class="page-title">
<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'flatsome' ); ?></h1>
</header>
<div class="page-content">
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
<p><?php printf( wp_kses( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'flatsome' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
<?php elseif ( is_search() ) : ?>
<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'flatsome' ); ?></p>
<?php get_search_form(); ?>
<?php else : ?>
<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'flatsome' ); ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
</div>
</section>

View File

@@ -0,0 +1,31 @@
<?php
/**
* Template part for displaying results in search pages.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package flatsome
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<?php if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta">
<?php flatsome_posted_on(); ?>
</div>
<?php endif; ?>
</header>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
<footer class="entry-footer">
<?php flatsome_entry_footer(); ?>
</footer>
</article>

View File

@@ -0,0 +1,60 @@
<div class="entry-content single-page">
<?php the_content(); ?>
<?php
wp_link_pages();
?>
<?php if ( get_theme_mod( 'blog_share', 1 ) ) {
// SHARE ICONS
echo '<div class="blog-share text-center">';
echo '<div class="is-divider medium"></div>';
echo do_shortcode( '[share]' );
echo '</div>';
} ?>
</div>
<?php if ( get_theme_mod( 'blog_single_footer_meta', 1 ) ) : ?>
<footer class="entry-meta text-<?php echo get_theme_mod( 'blog_posts_title_align', 'center' ); ?>">
<?php
/* translators: used between list items, there is a space after the comma */
$category_list = get_the_category_list( __( ', ', 'flatsome' ) );
/* translators: used between list items, there is a space after the comma */
$tag_list = get_the_tag_list( '', __( ', ', 'flatsome' ) );
// But this blog has loads of categories so we should probably display them here.
if ( '' != $tag_list ) {
$meta_text = __( 'This entry was posted in %1$s and tagged %2$s.', 'flatsome' );
} else {
$meta_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'flatsome' );
}
printf( $meta_text, $category_list, $tag_list, get_permalink(), the_title_attribute( 'echo=0' ) );
?>
</footer>
<?php endif; ?>
<?php if ( get_theme_mod( 'blog_author_box', 1 ) ) : ?>
<div class="entry-author author-box">
<div class="flex-row align-top">
<div class="flex-col mr circle">
<div class="blog-author-image">
<?php echo get_avatar( get_the_author_meta( 'ID' ), apply_filters( 'flatsome_author_bio_avatar_size', 90 ) ); ?>
</div>
</div>
<div class="flex-col flex-grow">
<h5 class="author-name uppercase pt-half">
<?php the_author_meta( 'display_name' ); ?>
</h5>
<p class="author-desc small"><?php the_author_meta( 'description' ); ?></p>
</div>
</div>
</div>
<?php endif; ?>
<?php if ( get_theme_mod( 'blog_single_next_prev_nav', 1 ) ) :
flatsome_content_nav( 'nav-below' );
endif; ?>

View File

@@ -0,0 +1,16 @@
<div class="entry-content">
<?php if ( flatsome_option('blog_show_excerpt') || is_search()) { ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
<div class="text-<?php echo get_theme_mod( 'blog_posts_title_align', 'center' );?>">
<a class="more-link button primary is-outline is-smaller" href="<?php echo get_the_permalink(); ?>"><?php _e('Continue reading <span class="meta-nav">&rarr;</span>', 'flatsome'); ?></a>
</div>
</div>
<?php } else { ?>
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'flatsome' ) ); ?>
<?php
wp_link_pages();
?>
<?php }; ?>
</div>

View File

@@ -0,0 +1,46 @@
<?php
$args = array(
'posts_per_page' => 5,
'post__in' => get_option('sticky_posts'),
'ignore_sticky_posts' => 0
);
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) : ?>
<?php
// Create IDS
$ids = array();
while ( $the_query->have_posts() ) : $the_query->the_post();
array_push($ids, get_the_ID());
endwhile; // end of the loop.
// Set ids
$ids = implode(',', $ids);
$readmore = __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'flatsome' );
?>
<?php
echo flatsome_apply_shortcode( 'blog_posts', array(
'class' => 'featured-posts mb',
'slider_nav_style' => 'circle',
'style' => 'shade',
'show_category' => 'text',
'text_align' => 'center',
'text_padding' => '5% 15% 5% 15%',
'title_size' => 'xlarge',
'readmore' => $readmore,
'image_height' => intval( get_theme_mod( 'blog_featured_height', 500 ) ) . 'px',
'type' => 'slider-full',
'depth' => get_theme_mod( 'blog_posts_depth', 0 ),
'depth_hover' => get_theme_mod( 'blog_posts_depth_hover', 0 ),
'columns' => '2',
'image_size' => get_theme_mod( 'blog_featured_image_size', 'medium' ),
'show_date' => get_theme_mod( 'blog_badge', 1 ) ? 'true' : 'false',
'ids' => $ids,
) );
?>
<?php endif; ?>

View File

@@ -0,0 +1,31 @@
<?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 row-large <?php if(get_theme_mod('blog_layout_divider', 1)) echo 'row-divided ';?>">
<div class="post-sidebar large-3 col">
<?php flatsome_sticky_column_open( 'blog_sticky_sidebar' ); ?>
<?php get_sidebar(); ?>
<?php flatsome_sticky_column_close( 'blog_sticky_sidebar' ); ?>
</div>
<div class="large-9 col medium-col-first">
<?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');
?>

View File

@@ -0,0 +1,31 @@
<?php
do_action('flatsome_before_blog');
?>
<?php if(!is_single() && flatsome_option('blog_featured') == 'top'){ get_template_part('template-parts/posts/featured-posts'); } ?>
<div class="row row-large <?php if(flatsome_option('blog_layout_divider')) echo 'row-divided ';?>">
<div class="large-9 col">
<?php if(!is_single() && flatsome_option('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(flatsome_option('blog_style_archive') && (is_archive() || is_search())){
get_template_part( 'template-parts/posts/archive', flatsome_option('blog_style_archive') );
} else {
get_template_part( 'template-parts/posts/archive', flatsome_option('blog_style') );
}
?>
</div>
<div class="post-sidebar large-3 col">
<?php flatsome_sticky_column_open( 'blog_sticky_sidebar' ); ?>
<?php get_sidebar(); ?>
<?php flatsome_sticky_column_close( 'blog_sticky_sidebar' ); ?>
</div>
</div>
<?php
do_action('flatsome_after_blog');
?>

View 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');

View File

@@ -0,0 +1,33 @@
<div class="box">
<a href="<?php the_permalink() ?>" class="plain">
<div class="box-image rectangle">
<div class="entry-image-attachment" style="max-height:<?php echo $image_height; ?>;overflow:hidden;">
<?php the_post_thumbnail( 'medium' ); ?>
</div>
</div>
<div class="box-text spacing-medium text-center">
<h5 class="post-title uppercase"><?php the_title(); ?></h5>
<div class="is-divider small"></div>
<?php if ( $excerpt != 'false' ) { ?>
<p class="from_the_blog_excerpt small-font show-next">
<?php
$excerpt = get_the_excerpt();
$excerpt_more = apply_filters( 'excerpt_more', ' [...]' );
echo flatsome_string_limit_words( $excerpt, 15 ) . $excerpt_more;
?>
</p>
<?php } ?>
<p class="from_the_blog_comments uppercase xxsmall">
<?php
$comments_number = get_comments_number( get_the_ID() );
printf( _n( '%1$s Comment', '%1$s Comments', $comments_number, 'flatsome' ),
number_format_i18n( $comments_number )
);
?>
</p>
</div>
</a>
<?php if ( $show_date != 'false' ) { ?>
<?php get_template_part( 'template-parts/posts/partials/entry', 'date-box' ); ?>
<?php } ?>
</div>

View File

@@ -0,0 +1,77 @@
<header class="archive-page-header">
<div class="row">
<div class="large-12 text-center col">
<h1 class="page-title is-large uppercase">
<?php
if ( is_category() ) :
printf( __( 'Category Archives: %s', 'flatsome' ), '<span>' . single_cat_title( '', false ) . '</span>' );
elseif ( is_tag() ) :
printf( __( 'Tag Archives: %s', 'flatsome' ), '<span>' . single_tag_title( '', false ) . '</span>' );
elseif ( is_search() ) :
printf( __( 'Search Results for: %s', 'flatsome' ), '<span>' . get_search_query() . '</span>' );
elseif ( is_author() ) :
/* Queue the first post, that way we know
* what author we're dealing with (if that is the case).
*/
the_post();
printf( __( 'Author Archives: %s', 'flatsome' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
/* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
*/
rewind_posts();
elseif ( is_day() ) :
printf( __( 'Daily Archives: %s', 'flatsome' ), '<span>' . get_the_date() . '</span>' );
elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'flatsome' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
elseif ( is_year() ) :
printf( __( 'Yearly Archives: %s', 'flatsome' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
elseif ( is_tax( 'post_format', 'post-format-aside' ) ) :
_e( 'Asides', 'flatsome' );
elseif ( is_tax( 'post_format', 'post-format-image' ) ) :
_e( 'Images', 'flatsome');
elseif ( is_tax( 'post_format', 'post-format-video' ) ) :
_e( 'Videos', 'flatsome' );
elseif ( is_tax( 'post_format', 'post-format-quote' ) ) :
_e( 'Quotes', 'flatsome' );
elseif ( is_tax( 'post_format', 'post-format-link' ) ) :
_e( 'Links', 'flatsome' );
else :
_e( '', 'flatsome' );
endif;
?>
</h1>
<?php
if ( is_category() ) :
// show an optional category description
$category_description = category_description();
if ( ! empty( $category_description ) ) :
echo apply_filters( 'category_archive_meta', '<div class="taxonomy-description">' . $category_description . '</div>' );
endif;
elseif ( is_tag() ) :
// show an optional tag description
$tag_description = tag_description();
if ( ! empty( $tag_description ) ) :
echo apply_filters( 'tag_archive_meta', '<div class="taxonomy-description">' . $tag_description . '</div>' );
endif;
endif;
?>
</div>
</div>
</header>

View File

@@ -0,0 +1,26 @@
<footer class="entry-meta clearfix">
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'flatsome' ) );
?>
<span class="cat-links">
<?php printf( __( 'Posted in %1$s', 'flatsome' ), $categories_list ); ?>
</span>
<?php
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', __( ', ', 'flatsome' ) );
if ( $tags_list ) :
?>
<span class="sep"> | </span>
<span class="tags-links">
<?php printf( __( 'Tagged %1$s', 'flatsome' ), $tags_list ); ?>
</span>
<?php endif; // End if $tags_list ?>
<?php endif; // End if 'post' == get_post_type() ?>
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="comments-link pull-right"><?php comments_popup_link( __( 'Leave a comment', 'flatsome' ), __( '<strong>1</strong> Comment', 'flatsome' ), __( '<strong>%</strong> Comments', 'flatsome' ) ); ?></span>
<?php endif; ?>
</footer>

View File

@@ -0,0 +1,26 @@
<footer class="entry-meta clearfix">
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'flatsome' ) );
?>
<span class="cat-links">
<?php printf( __( 'Posted in %1$s', 'flatsome' ), $categories_list ); ?>
</span>
<?php
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', __( ', ', 'flatsome' ) );
if ( $tags_list ) :
?>
<span class="sep">&nbsp;|&nbsp;</span>
<span class="tags-links">
<?php printf( __( 'Tagged %1$s', 'flatsome' ), $tags_list ); ?>
</span>
<?php endif; // End if $tags_list ?>
<?php endif; // End if 'post' == get_post_type() ?>
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="comments-link pull-right"><?php comments_popup_link( __( 'Leave a comment', 'flatsome' ), __( '<strong>1</strong> Comment', 'flatsome' ), __( '<strong>%</strong> Comments', 'flatsome' ) ); ?></span>
<?php endif; ?>
</footer>

View File

@@ -0,0 +1,14 @@
<header class="entry-header">
<?php if ( has_post_thumbnail() ) : ?>
<?php if ( ! is_single() || ( is_single() && get_theme_mod( 'blog_single_featured_image', 1 ) ) ) : ?>
<div class="entry-image relative">
<?php get_template_part( 'template-parts/posts/partials/entry-image', 'default' ); ?>
<?php if ( get_theme_mod( 'blog_badge', 1 ) ) get_template_part( 'template-parts/posts/partials/entry', 'post-date' ); ?>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="entry-header-text entry-header-text-bottom text-<?php echo get_theme_mod( 'blog_posts_title_align', 'center' ); ?>">
<?php get_template_part( 'template-parts/posts/partials/entry', 'title' ); ?>
</div>
</header>

View File

@@ -0,0 +1,13 @@
<header class="entry-header">
<div class="entry-header-text entry-header-text-top text-<?php echo get_theme_mod( 'blog_posts_title_align', 'center' ); ?>">
<?php get_template_part( 'template-parts/posts/partials/entry', 'title' ); ?>
</div>
<?php if ( has_post_thumbnail() ) : ?>
<?php if ( ! is_single() || ( is_single() && get_theme_mod( 'blog_single_featured_image', 1 ) ) ) : ?>
<div class="entry-image relative">
<?php get_template_part( 'template-parts/posts/partials/entry-image', 'default' ); ?>
<?php if ( get_theme_mod( 'blog_badge', 1 ) ) get_template_part( 'template-parts/posts/partials/entry', 'post-date' ); ?>
</div>
<?php endif; ?>
<?php endif; ?>
</header>

View File

@@ -0,0 +1,3 @@
<a href="<?php the_permalink();?>">
<?php the_post_thumbnail('large'); ?>
</a>

View File

@@ -0,0 +1,6 @@
<div class="badge absolute top post-date badge-<?php echo flatsome_option('blog_badge_style'); ?>">
<div class="badge-inner">
<span class="post-date-day"><?php echo get_the_time('d', get_the_ID()); ?></span><br>
<span class="post-date-month is-small"><?php echo get_the_time('M', get_the_ID()); ?></span>
</div>
</div>

View File

@@ -0,0 +1,25 @@
<h6 class="entry-category is-xsmall">
<?php echo get_the_category_list( __( ', ', 'flatsome' ) ) ?>
</h6>
<?php
if ( is_single() ) {
echo '<h1 class="entry-title">' . get_the_title() . '</h1>';
} else {
echo '<h2 class="entry-title"><a href="' . get_the_permalink() . '" rel="bookmark" class="plain">' . get_the_title() . '</a></h2>';
}
?>
<div class="entry-divider is-divider small"></div>
<?php
$single_post = is_singular( 'post' );
if ( $single_post && get_theme_mod( 'blog_single_header_meta', 1 ) ) : ?>
<div class="entry-meta uppercase is-xsmall">
<?php flatsome_posted_on(); ?>
</div>
<?php elseif ( ! $single_post && 'post' == get_post_type() ) : ?>
<div class="entry-meta uppercase is-xsmall">
<?php flatsome_posted_on(); ?>
</div>
<?php endif; ?>

View File

@@ -0,0 +1,3 @@
<a href="<?php the_permalink();?>">
<?php the_post_thumbnail('large'); ?>
</a>

View File

@@ -0,0 +1,17 @@
<?php while ( have_posts() ) : the_post(); ?>
<div class="page-title blog-featured-title featured-title no-overflow">
<div class="page-title-bg fill">
<?php if ( has_post_thumbnail() && get_theme_mod( 'blog_single_featured_image', 1 ) ) { // check if the post has a Post Thumbnail assigned to it. ?>
<div class="title-bg fill bg-fill bg-top" style="background-image: url('<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'large'); ?>');" data-parallax-fade="true" data-parallax="-2" data-parallax-background data-parallax-container=".page-title"></div>
<?php } ?>
<div class="title-overlay fill" style="background-color: rgba(0,0,0,.5)"></div>
</div>
<div class="page-title-inner container flex-row dark is-large" style="min-height: 300px">
<div class="flex-col flex-center text-center">
<?php get_template_part( 'template-parts/posts/partials/entry', 'title'); ?>
</div>
</div>
</div>
<?php endwhile; ?>

View 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; ?>