<?php 
if ( ! empty( $settings['play_link']['url'] ) ) {
    $this->add_link_attributes( 'play_link', $settings['play_link'] );
}

if ( ! empty( $settings['apple_link']['url'] ) ) {
    $this->add_link_attributes( 'apple_link', $settings['apple_link'] );
}
?>
<div class="gt-app-btn-grp d-flex flex-wrap align-items-center">
    <?php if(!empty($settings['play_button']['url'])):?>
        <a <?php echo $this->get_render_attribute_string( 'play_link' ); ?>><img src="<?php echo esc_url($settings['play_button']['url']);?>" alt="<?php if(!empty($item['play_button']['alt'])){ echo esc_attr($item['play_button']['alt']);}?>"></a>
    <?php endif;?>

    <?php if(!empty($settings['apple_button']['url'])):?>
        <a <?php echo $this->get_render_attribute_string( 'apple_link' ); ?>><img src="<?php echo esc_url($settings['apple_button']['url']);?>" alt="<?php if(!empty($item['apple_button']['alt'])){ echo esc_attr($item['apple_button']['alt']);}?>"></a>
    <?php endif;?>

</div>