';
$title = esc_html( $station['name'] );
$html .= '
' . ( $url ? '' . $title . '' : $title ) . '
'; if ( ! empty( $atts['show_details'] ) && $details ) { $html .= ''; } if ( ! empty( $atts['show_slogan'] ) && $station['slogan'] ) { $html .= '' . esc_html( $station['slogan'] ) . '
'; } if ( ! empty( $atts['show_description'] ) && $station['description'] ) { $html .= '' . esc_html( wp_trim_words( $station['description'], 30 ) ) . '
'; } if ( ! empty( $atts['show_now_playing'] ) ) { $html .= self::now_playing( array( 'station' => (int) $station['id'], 'compact' => true, 'show_artwork' => false, 'show_station' => false, 'class' => 'ss-card__np', ) ); } if ( ! empty( $atts['show_social'] ) ) { $html .= self::social_links( $station['social'] ); } $cta = $atts['cta'] ?? 'page'; if ( 'listen' === $cta ) { $html .= '' . self::listen_button( array( 'size' => 'sm', 'label' => __( 'Listen live', 'streamsera' ) ) ) . '
';
} elseif ( 'page' === $cta && $url ) {
$html .= '';
}
$html .= '