Personnaliser le blog WonderCMS 3.4.2
In plugins/simple-blog/class.SimpleBlog.php :
In plugins/simple-blog/class.SimpleBlog.php :
Important d'avoir installé un thème enfant, so in wp-content/thems/child-theme/functions.php :
function et_last_modified_date_blog( $the_date ) {
if ( 'post' === get_post_type() && !is_admin() ) {
$the_time = get_post_time( 'His' );
$the_modified = get_post_modified_time( 'His' );
$published = sprintf( __( 'Publié le %s', 'Divi' ), esc_html( get_post_time( 'j F Y', true, null, true ) ) );
$last_modified = sprintf( __( 'Mis à jour le %s', 'Divi' ), esc_html( get_post_modified_time( 'j F Y', true, null, true ) ) );
$date = $the_modified !== $the_time ? $last_modified . ' | ' . $published : $published;
return $date;
}
return $the_date;
}
add_filter( 'get_the_date', 'et_last_modified_date_blog' );
add_filter( 'get_the_time', 'et_last_modified_date_blog' );
ps: attention, le code indiqué dans l'article source est pas ok, double check !
Et ça marche