type ) && $zoom_webinars->type === 9 ) { if ( ! empty( $zoom_webinars->occurrences ) ) { ?> type ) && $zoom_webinars->type === 6 ) { ?> duration ) ) { ?>
id; ?>
topic; ?>
occurrences ); ?>
timezone ) ); $closest_occurence = false; if ( ! empty( $zoom_webinars->type ) && $zoom_webinars->type === 9 && ! empty( $zoom_webinars->occurrences ) ) { foreach ( $zoom_webinars->occurrences as $occurrence ) { if ( $occurrence->status === "available" ) { $start_date = new DateTime( $occurrence->start_time, new DateTimeZone( $zoom_webinars->timezone ) ); if ( $start_date >= $now ) { $closest_occurence = $occurrence->start_time; break; } _e( 'Meeting has ended !', 'video-conferencing-with-zoom-api' ); break; } } } if ( $closest_occurence ) { echo vczapi_dateConverter( $closest_occurence, $zoom_webinars->timezone, 'F j, Y @ g:i a' ); } else { _e( 'Meeting has ended !', 'video-conferencing-with-zoom-api' ); } ?>
start_time, $zoom_webinars->timezone, 'F j, Y @ g:i a' ); ?>
timezone; ?>
duration; ?>