Plugin Elementor: How to insert custom badge in blog widget?

The following code is added to the corresponding skin file of the widget. This will of course be overwritten in case of updates.

protected function render_post_header() {
  ?>
  <article <?php post_class( [ 'elementor-post elementor-grid-item' ] ); ?>>
    <div class="elementor-post__card">
    <span class="koopimg">
      <?php
        
        $values = get_field('partner');
        if($values)
        {
          foreach($values as $value)
          {
            if(  $value == 'bestimmtes')
            {
              echo "<img src='bild.png'>";
            }
          }
        }
      ?>
    </span>
  <?php
}