<?php
    $webinarData = array();
    $webinarData = getWebinarDatas($webinar);
?>

<div class="webinarBlocList">
    <a href="#" class="webinarBlocList_link webinaire_action" data-webinar="<?php echo $webinarData['ID']; ?>" aria-label="<?php echo pradel_format_attr($webinarData['title']); ?>"></a>
    <div class="webinarBlocList_header">
        W - <?php echo $webinarData['date_display']; ?>
    </div>
    <div class="webinarBlocList_content">
        <div class="webinarBlocList_title">
            <span><?php echo $webinarData['title']; ?></span>
        </div>
        <button class="button webinaire_action" type="button" data-webinar="<?php echo $webinarData['ID']; ?>">
            <?php if ($webinarData['is_past']): ?>
                <span><?php t('WEBINAR_REPLAY'); ?></span>
            <?php else: ?>
                <span><?php t('WEBINAR_REGISTER'); ?></span>
            <?php endif; ?>
        </button>
    </div>
</div>