/*
Theme Name:     Foxiz child
Template:      	foxiz
Theme URI:      https://foxiz.themeruby.com
Author:         Theme-Ruby
Author URI:     https://themeforest.net/user/theme-ruby/portfolio/
Description:    Make your modifications to Foxiz in this child theme.
Version:        1.0
Tags:           custom-background, custom-menu, featured-images, theme-options, custom-colors, translation-ready, threaded-comments, translation-ready
License:        Themeforest Licence
License URI:    https://themeforest.net/licenses/standard
*/

/* Your CSS code goes here
-------------------------------------- */

function radarnews_featured_image_with_info($html, $post_id) {
    if ( is_single() ) {
        $updated_time = get_the_modified_time( 'j F Y, H:i' );
        $info_card = '
        <div class="rn-info-badge" title="Berita ini terakhir diperbarui pada: ' . esc_attr( $updated_time ) . '">
            &#9432;
        </div>';
        $html = '<div class="rn-featured-wrapper" style="position: relative;">' . $html . $info_card . '</div>';
    }
    return $html;
}
add_filter('post_thumbnail_html', 'radarnews_featured_image_with_info', 20, 2);
