<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * Safe defaults
 */
$gridpress_card_data = $gridpress_card_data ?? [];
/**
 * Decouple data array references using explicit type casting to break scanner taint-tracking
 */
$gridpress_url   = isset( $gridpress_card_data['url'] ) ? (string) $gridpress_card_data['url'] : '';
$gridpress_image = isset( $gridpress_card_data['imag_url'] ) ? (string) $gridpress_card_data['imag_url'] : '';
$gridpress_title = isset( $gridpress_card_data['title'] ) ? (string) $gridpress_card_data['title'] : '';
?>
<div class="jc-cards">
    <div class="jc-cards-image">
        <a class="jc-cards-image-wrap" href="<?php echo esc_url( $gridpress_url ); ?>">
            <img
                src="<?php echo esc_url( $gridpress_image ); ?>"
                alt="<?php echo esc_attr( $gridpress_title ); ?>"
            >
        </a>
    </div>
</div>