<?php 
    global $rdgb;
    $rdgb = (!empty($rdgb)) ? $rdgb : Rdg_Blocks::instance();

    $block_styles = [];
    $block_classes = ['rdg-odd-betting-date'];
    //$block_odd_betting_date = $rdgb->settings->get_block(BLOCK_RDG_ODD_BETTING_DATE);

    if (!empty($block['backgroundColor'])) {
        $block_classes[] = 'has-background';
        $block_classes[] = 'has-'.$block['backgroundColor'].'-background-color';
    }

    if (!empty($block['style']['color']['background'])) {
        $block_styles[] = 'background-color: '.$block['style']['color']['background'].';';
    }

    $titles = get_field('titles');
    $position_block = $rdgb->helpers->get_blocks_spaces(get_fields());
?>
<div class="rdg-blocks">
    <div class="<?php echo esc_attr(join(' ', $block_classes)); ?>" style="<?php echo $position_block . esc_attr(join(' ', $block_styles)); ?>">
        <?php require RDGBLOCKS_PLUGIN_BLOCKS_DIR.'partials/titles.php'; ?>

        <div class="date">
            <div class="date-left">
                <i class="fal fa-chevron-left"></i>
            </div>
            <div class="date-center">
                <input type="date" value="<?php echo date('Y-m-d'); ?>" id="date-test">
            </div>
            <div class="date-right">
                <i class="fal fa-chevron-right"></i>
            </div>
        </div>
    </div>
</div>
