Esempio n. 1
0
                   <div class="row">
    
                        <div class="col-sm-12 col-md-12">
                        
                            <div class="dates_wrapper">
                            	
                                <div class="row">
									<?php 
$counter = 0;
$last_month = "";
if (count($event_dates) > 0) {
    foreach ($event_dates as $key) {
        $date = $key->date;
        $date_short = substr($key->date, 0, 10);
        $end_time = $key->end_time_hh . ':' . $key->end_time_mm;
        $booking_count = $dpProEventCalendar_obj->getBookingsCount($post_ID, $date_short);
        $booking_remain = true;
        $booked_date = false;
        if ($dpProEventCalendar_obj->userHasBooking($date_short, $post_ID)) {
            $booked_date = true;
        }
        if ($booking_limit > 0 && $booking_limit - $booking_count <= 0) {
            $booking_remain = false;
        }
        if ($counter == 4) {
            echo '</div><div class="row">';
            $counter = 0;
            //break;
        }
        $actual_month = date_i18n('F Y', strtotime($date));
        if ($last_month != $actual_month) {