meeting-details.php
3.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/**
* The template for displaying meeting details of zoom
*
* This template can be overridden by copying it to yourtheme/video-conferencing-zoom/fragments/meeting-details.php.
*
* @author Deepen Bajracharya
* @since 3.0.0
* @version 3.6.0
*/
global $zoom;
if ( ! vczapi_pro_version_active() && vczapi_pro_check_type( $zoom['api']->type ) || empty( $zoom ) ) {
return;
}
if ( ! empty( $zoom['shortcode_post_by_id'] ) ) {
return;
}
?>
<div class="dpn-zvc-sidebar-box">
<div class="dpn-zvc-sidebar-tile">
<h3><?php _e( 'Details', 'video-conferencing-with-zoom-api' ); ?></h3>
</div>
<div class="dpn-zvc-sidebar-content">
<?php do_action( 'vczapi_html_before_meeting_details' ); ?>
<div class="dpn-zvc-sidebar-content-list vczapi-hosted-by-topic-wrap">
<span><strong><?php _e( 'Topic', 'video-conferencing-with-zoom-api' ); ?>:</strong></span> <span><?php the_title(); ?></span>
</div>
<div class="dpn-zvc-sidebar-content-list vczapi-hosted-by-list-wrap">
<span><strong><?php _e( 'Hosted By', 'video-conferencing-with-zoom-api' ); ?>:</strong></span>
<span><?php echo esc_html( $zoom['host_name'] ); ?></span>
</div>
<?php if ( ! empty( $zoom['api']->start_time ) ) { ?>
<div class="dpn-zvc-sidebar-content-list vczapi-hosted-by-start-time-wrap">
<span><strong><?php _e( 'Start', 'video-conferencing-with-zoom-api' ); ?>:</strong></span>
<span class="sidebar-start-time"><?php echo vczapi_dateConverter( $zoom['api']->start_time, $zoom['api']->timezone, 'F j, Y @ g:i a' ); ?></span>
</div>
<?php } ?>
<?php if ( ! empty( $zoom['terms'] ) ) { ?>
<div class="dpn-zvc-sidebar-content-list vczapi-category-wrap">
<span><strong><?php _e( 'Category', 'video-conferencing-with-zoom-api' ); ?>:</strong></span>
<span class="sidebar-category"><?php echo implode( ', ', $zoom['terms'] ); ?></span>
</div>
<?php } ?>
<?php if ( ! empty( $zoom['api']->duration ) ) {
$duration = vczapi_convertMinutesToHM( $zoom['api']->duration, false );
?>
<div class="dpn-zvc-sidebar-content-list vczapi-duration-wrap">
<span><strong><?php _e( 'Duration', 'video-conferencing-with-zoom-api' ); ?>:</strong></span>
<span>
<?php
if ( ! empty( $duration['hr'] ) ) {
printf( _n( '%s hour', '%s hours', $duration['hr'], 'video-conferencing-with-zoom-api' ), number_format_i18n( $duration['hr'] ) . ' ' . _n( '%s minute', '%s minutes', $duration['min'], 'video-conferencing-with-zoom-api' ), number_format_i18n( $duration['min'] ) );
} else {
printf( _n( '%s minute', '%s minutes', $duration['min'], 'video-conferencing-with-zoom-api' ), number_format_i18n( $duration['min'] ) );
}
?>
</span>
</div>
<?php } ?>
<?php if ( ! empty( $zoom['api']->timezone ) ) { ?>
<div class="dpn-zvc-sidebar-content-list vczapi-timezone-wrap">
<span><strong><?php _e( 'Current Timezone', 'video-conferencing-with-zoom-api' ); ?>:</strong></span>
<span class="vczapi-single-meeting-timezone"><?php echo $zoom['api']->timezone; ?></span>
</div>
<?php } ?>
<?php do_action( 'vczapi_html_after_meeting_details' ); ?>
<p class="dpn-zvc-display-or-hide-localtimezone-notice"><?php printf( __( '%sNote%s: Countdown time is shown based on your local timezone.', 'video-conferencing-with-zoom-api' ), '<strong>', '</strong>' ); ?></p>
</div>
</div>