Reply To: tag list

Home Forums WordPress Themes – Premium Pure & Simple tag list Reply To: tag list

#22509
Bidur
Moderator

hy Sandrine,
Here is the code with modification

/**
 * Prints HTML with meta information for the current post-date/time and author.
 */
function puresimple_posted_on() {
	$time_string = '%2$s';
	if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
		$time_string .= '%4$s';
	}

	$time_string = sprintf( $time_string,
		esc_attr( get_the_date( 'c' ) ),
		esc_html( get_the_date('j F Y') ),
		esc_attr( get_the_modified_date( 'c' ) ),
		esc_html( get_the_modified_date() )
	);

	$posted_on = sprintf(
		_x( 'Publié le  %s', 'post date', 'puresimple' ),
		'' . $time_string . ''
	);

	$byline = sprintf(
		_x( 'par %s', 'post author', 'puresimple' ),
		'' . esc_html( get_the_author() ) . ''
	);

	echo '' . $posted_on . '';
//show category on blog page
	if(get_theme_mod('hide_category_on_blog_page') !== '' && is_home()){echo '&nbsp'.'';}
//show category on single post
	if(get_theme_mod('hide_category_on_single_post') !== '' && is_single()){echo '&nbsp'.'';}
	if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) { 
        echo '';
            echo '';
                _e( ' ', 'puresimple' );
                comments_popup_link( __( 'commentaire', 'puresimple' ), __( '1 commentaire', 'puresimple' ), __( '% commentaires', 'puresimple' ) ); 
            }
        echo '';
        echo '';

     echo '';
  
}
endif;

hope this is heplfull for u
thanks