'. esc_html($posted_on) .'';
echo '';
}
}
add_action( 'vmagazine_icon_meta', 'vmagazine_lite_icon_meta' );
/*===========================================================================================================*/
/* Post date for timeline */
if ( ! function_exists( 'vmagazine_lite_timeline_posted_on' ) ) :
function vmagazine_lite_timeline_posted_on() {
$time_string = '';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string .= '';
}
$time_string = sprintf( $time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date( 'd' ) ),
esc_html( get_the_date( 'M' ) ),
esc_attr( get_the_modified_date( 'c' ) ),
esc_html( get_the_modified_date() )
);
$posted_on = $time_string ;
echo '' . esc_html($posted_on) . '';
}
endif;
add_action('vmagazine_timeline_date','vmagazine_lite_timeline_posted_on');
/*===========================================================================================================*/
/**
* Function for entry footer
*/
if ( ! function_exists( 'vmagazine_lite_entry_footer' ) ) :
/**
* Prints HTML with meta information for the categories, tags and comments.
*/
function vmagazine_lite_entry_footer() {
edit_post_link(
sprintf(
/* translators: %s: Name of current post */
esc_html__( 'Edit %s', 'vmagazine-lite' ),
the_title( '"', '"', false )
),
''
);
}
endif;
/*===========================================================================================================*/
/**
* Get post comment number
*/
if( ! function_exists( 'vmagazine_lite_post_comments' ) ):
function vmagazine_lite_post_comments() {
if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
echo '';
}
}
endif;
/*===========================================================================================================*/
/**
* Single post Categories lists
*/
if( ! function_exists( 'vmagazine_lite_post_cat_lists' ) ) :
function vmagazine_lite_post_cat_lists() {
// Hide category and tag text for pages.
if ( 'post' === get_post_type() ) {
global $post;
$categories = get_the_category();
$separator = ' ';
$output = '';
if( $categories ) {
$output .= '';
foreach( $categories as $category ) {
$output .= ''.esc_html($category->cat_name).'';
}
$output .='';
echo trim( $output, $separator );// WPCS: XSS OK.
}
}
}
endif;
/*===========================================================================================================*/
/**
* Single post Tags lists
*/
if( ! function_exists( 'vmagazine_lite_single_post_tags_list' ) ) :
function vmagazine_lite_single_post_tags_list() {
// Hide 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( '', ' ');
if ( $tags_list ) {
echo '' . wp_kses_post($tags_list) . '';
}
}
}
endif;