/home/desid573/verdenaturopathy.com.au/wp-content/themes/blossom-coach/inc
Edit: /home/desid573/verdenaturopathy.com.au/wp-content/themes/blossom-coach/inc/extras.php (52438B)
get_the_time( 'U' ) ) ){
$time_string = '
%4$s %2$s ';
$on = __( 'Updated on ', 'blossom-coach' );
}else{
$time_string = '
%2$s %4$s ';
}
}else{
$time_string = '
%2$s %4$s ';
}
$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 %2$s', esc_html( $on ), '
' . $time_string . ' ' );
echo '
' . $posted_on . ' '; // WPCS: XSS OK.
}
endif;
if ( ! function_exists( 'blossom_coach_posted_by' ) ) :
/**
* Prints HTML with meta information for the current author.
*/
function blossom_coach_posted_by() {
$ed_post_author = get_theme_mod( 'ed_post_author', false );
if( $ed_post_author ) return false;
$byline = sprintf(
/* translators: %s: post author. */
esc_html_x( '%s', 'post author', 'blossom-coach' ),
'
' . esc_html( get_the_author() ) . ' '
);
echo '
' . $byline . ' ';
}
endif;
if( ! function_exists( 'blossom_coach_comment_count' ) ) :
/**
* Comment Count
*/
function blossom_coach_comment_count(){
if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
echo '';
}
}
endif;
if ( ! function_exists( 'blossom_coach_category' ) ) :
/**
* Prints categories
*/
function blossom_coach_category(){
$ed_cat_single = get_theme_mod( 'ed_category', false );
// Hide category and tag text for pages.
if( 'post' === get_post_type() && !$ed_cat_single ){
$categories_list = get_the_category_list( ' ' );
if( $categories_list ){
echo '
' . $categories_list . '
';
}
}
}
endif;
if ( ! function_exists( 'blossom_coach_tag' ) ) :
/**
* Prints tags
*/
function blossom_coach_tag(){
// Hide category and tag text for pages.
if( 'post' === get_post_type() ){
$tags_list = get_the_tag_list( ' ' );
if( $tags_list ){
echo '
' . $tags_list . '
';
}
}
}
endif;
if( ! function_exists( 'blossom_coach_get_posts_list' ) ) :
/**
* Returns Latest, Related & Popular Posts
*/
function blossom_coach_get_posts_list( $status ){
if( ! is_singular( 'post' ) ) return false;
global $post;
$args = array(
'post_type' => 'post',
'posts_status' => 'publish',
'ignore_sticky_posts' => true,
'posts_per_page' => 6
);
switch( $status ){
case 'latest':
$title = __( 'Latest Posts', 'blossom-coach' );
$class = 'latest-articles';
$title_class = 'latest-title';
$image_size = 'blossom-coach-latest';
break;
case 'related':
$args['post__not_in'] = array( $post->ID );
$args['orderby'] = 'rand';
$title = get_theme_mod( 'related_post_title', __( 'Related Post', 'blossom-coach' ) );
$class = 'related-articles';
$title_class = 'related-title';
$image_size = 'blossom-coach-latest';
$related_tax = get_theme_mod( 'related_taxonomy', 'cat' );
if( $related_tax == 'cat' ){
$cats = get_the_category( $post->ID );
if( $cats ){
$c = array();
foreach( $cats as $cat ){
$c[] = $cat->term_id;
}
$args['category__in'] = $c;
}
}elseif( $related_tax == 'tag' ){
$tags = get_the_tags( $post->ID );
if( $tags ){
$t = array();
foreach( $tags as $tag ){
$t[] = $tag->term_id;
}
$args['tag__in'] = $t;
}
}
break;
}
$qry = new WP_Query( $args );
if( $qry->have_posts() ){ ?>
' . esc_html( $title ) . ' '; ?>
have_posts() ){ $qry->the_post(); ?>
';
the_custom_logo();
echo '
';
}
?>
';
if ( is_front_page() ) : ?>
';
endif; ?>