Created
March 1, 2021 05:46
-
-
Save techies23/a7801fb99b9a88afef42e997842dfd12 to your computer and use it in GitHub Desktop.
Bypass pop-up when clicking “View Recording” [zoom_list_host_meetings host=”YOUR_HOST_ID”]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The Template for displaying list of recordings via Host ID | |
* | |
* This template can be overridden by copying it to yourtheme/video-conferencing-zoom/shortcode/zoom-recordings.php. | |
* | |
* @package Video Conferencing with Zoom API/Templates | |
* @version 3.5.0 | |
*/ | |
global $zoom_recordings; | |
?> | |
<div class="vczapi-recordings-range-selector-wrap"> | |
<form action="" class="vczapi-recording-range-selector" method="GET"> | |
<label><?php _e( 'Select a month to filter:', 'video-conferencing-with-zoom-api' ); ?></label> | |
<input type="text" name="date" id="vczapi-check-recording-date" class="vczapi-check-recording-date" value="<?php echo isset( $_GET['date'] ) ? esc_html( $_GET['date'] ) : date( 'F Y' ); ?>"/> <input type="submit" name="fetch_recordings" value="<?php _e( 'Check', 'video-conferencing-with-zoom-api' ); ?>"> | |
</form> | |
</div> | |
<table id="vczapi-recordings-list-table" class="vczapi-recordings-list-table"> | |
<thead> | |
<tr> | |
<th><?php _e( 'Meeting ID', 'video-conferencing-with-zoom-api' ); ?></th> | |
<th><?php _e( 'Topic', 'video-conferencing-with-zoom-api' ); ?></th> | |
<th><?php _e( 'Duration', 'video-conferencing-with-zoom-api' ); ?></th> | |
<th><?php _e( 'Recorded', 'video-conferencing-with-zoom-api' ); ?></th> | |
<th><?php _e( 'Size', 'video-conferencing-with-zoom-api' ); ?></th> | |
<th><?php _e( 'Action', 'video-conferencing-with-zoom-api' ); ?></th> | |
</tr> | |
</thead> | |
<tbody> | |
<?php | |
$use_meeting_id = apply_filters( 'vczapi_zoom_recordings_shortcodeby_meeting_id', false ); | |
foreach ( $zoom_recordings->meetings as $recording ) { | |
if ( $use_meeting_id ) { | |
$recording_uuid = $recording->id; | |
} else { | |
$recording_uuid = urlencode( $recording->uuid ); | |
} | |
?> | |
<tr> | |
<td><?php echo $recording->id; ?></td> | |
<td><?php echo $recording->topic; ?></td> | |
<td><?php echo $recording->duration; ?></td> | |
<td data-sort="<?php echo strtotime( $recording->start_time ); ?>"><?php echo vczapi_dateConverter( $recording->start_time, $recording->timezone ); ?></td> | |
<td><?php echo vczapi_filesize_converter( $recording->total_size ); ?></td> | |
<td> | |
<?php | |
foreach ( $recording->recording_files as $files ) { | |
if ( $files->file_type === "MP4" ) { | |
?> | |
<a href="<?php echo $files->play_url; ?>"><?php _e( 'View Recordings', 'video-conferencing-with-zoom-api' ); ?></a> | |
<?php } | |
} | |
?> | |
</td> | |
</tr> | |
<?php | |
} | |
?> | |
</tbody> | |
</table> | |
<?php | |
if ( ! empty( $zoom_recordings ) ) { | |
vczapi_zoom_api_paginator( $zoom_recordings, 'recordings' ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment