';
}
?>
';
}
?>
%4$s'; }else{ $time_string = ''; } }else{ $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); $posted_on = sprintf( '%1$s', '' . $time_string . '' ); echo '' . $posted_on . ''; // WPCS: XSS OK. } endif; if ( ! function_exists( 'blossom_spa_posted_by' ) ) : /** * Prints HTML with meta information for the current author. */ function blossom_spa_posted_by() { global $post; $author_name = ( is_single() ) ? get_the_author_meta( 'display_name', $post->post_author ) : get_the_author(); $author_url = ( is_single() ) ? get_author_posts_url( get_the_author_meta( 'ID', $post->post_author ) ) : get_author_posts_url( get_the_author_meta( 'ID' ) ); $byline = sprintf( '%s', '' ); if( is_home() || is_archive() || is_search() ) echo '
'; } endif; if( ! function_exists( 'blossom_spa_comment_count' ) ) : /** * Comment Count */ function blossom_spa_comment_count(){ if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'No Comment on %s', 'blossom-spa' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ''; } } endif; if ( ! function_exists( 'blossom_spa_category' ) ) : /** * Prints categories */ function blossom_spa_category(){ // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ' ', 'blossom-spa' ) ); if ( $categories_list ) { echo '' . $categories_list . ''; } }elseif( 'blossom-portfolio' === get_post_type() ) { $term_list = get_the_term_list( get_the_ID(), 'blossom_portfolio_categories' ); if( $term_list ) echo '' . $term_list . ''; } } endif; if ( ! function_exists( 'blossom_spa_tag' ) ) : /** * Prints tags */ function blossom_spa_tag(){ // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html_x( ' ', 'list item separator', 'blossom-spa' ) ); if ( $tags_list ) { /* translators: 1: list of tags. */ printf( '', '
';
}
?>
' . esc_html( $opening_hours ) . '
'; ?>
';
}
echo '';
}elseif( is_home() ){
echo '';
$image_size = blossom_spa_blog_layout_image_size();
if( has_post_thumbnail() ){
the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) );
}else{
echo '
';
}
echo '';
}elseif( is_archive() || is_search() ){
echo '';
$image_size = blossom_spa_blog_layout_image_size();
if( has_post_thumbnail() ){
the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) );
}else{
echo '
';
}
echo '';
}
}
endif;
if ( ! function_exists( 'blossom_spa_singular_post_thumbnail' ) ) :
/**
* Blog Layout Image Size
*/
function blossom_spa_singular_post_thumbnail() {
$return = '';
$ed_featured = get_theme_mod( 'ed_featured_image', true );
if( is_singular() ){
$image_size = 'blossom-spa-single';
if( is_single() ){
if( $ed_featured ) $return .= get_the_post_thumbnail_url( '', $image_size );
}elseif( is_page_template( 'templates/blossom-portfolio.php' ) ){
$background_image = get_template_directory_uri() .'/images/header-bg.jpg';
if( has_post_thumbnail() ) :
$return .= get_the_post_thumbnail_url( '', $image_size );
else:
$return .= $background_image;
endif;
}else{
$return .= get_the_post_thumbnail_url( '', $image_size );
}
}
return $return;
}
endif;
if ( ! function_exists( 'blossom_spa_blog_layout_image_size' ) ) :
/**
* Blog Layout Image Size
*/
function blossom_spa_blog_layout_image_size() {
$sidebar = blossom_spa_sidebar();
$blog_layout = get_theme_mod( 'blog_page_layout', 'list-layout' );
if( $blog_layout == 'list-layout') {
$image_size = 'blossom-spa-blog-list';
}elseif( $blog_layout == 'classic-layout' ) {
$image_size = ( $sidebar ) ? 'blossom-spa-blog-classic' : 'blossom-spa-blog-classic-full';
}elseif( $blog_layout == 'grid-layout' ){
$image_size = 'blossom-spa-blog-classic';
}else{
$image_size = 'blossom-spa-blog-list';
}
return $image_size;
}
endif;