meeting-by-post-id.php
3.84 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
78
79
80
<?php
defined( 'ABSPATH' ) || exit;
global $zoom;
if ( vczapi_pro_version_active() && vczapi_pro_check_type( $zoom['api']->type ) || empty( $zoom ) ) {
?>
<div class="vczapi-show-by-postid">
<div class="vczapi-show-by-postid-contents">
<?php do_action( 'vczoom_single_content_right' );
?>
</div>
</div>
<?php
} else {
?>
<div class="vczapi-show-by-postid">
<?php do_action( 'vczoom_single_content_right' ); ?>
<div class="vczapi-show-by-postid-contents vczapi-show-by-postid-flex">
<?php if ( ! empty( get_the_post_thumbnail_url() ) ) { ?>
<div class="vczapi-show-by-postid-contents-image">
<img src="<?php echo esc_url( get_the_post_thumbnail_url() ); ?>" alt="<?php echo get_the_title(); ?>">
</div>
<?php } ?>
<div class="<?php echo empty( get_the_post_thumbnail_url() ) ? 'vczapi-show-by-postid-contents-sections vczapi-show-by-postid-contents-sections-full' : 'vczapi-show-by-postid-contents-sections'; ?>">
<div class="vczapi-show-by-postid-contents-sections-description">
<h2 class="vczapi-show-by-postid-contents-sections-description-topic"><?php echo get_the_title(); ?></h2>
<?php if ( ! empty( $zoom['api']->start_time ) ) { ?>
<div class="vczapi-hosted-by-start-time-wrap">
<span><strong><?php _e( 'Session date', '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="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="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="vczapi-timezone-wrap">
<span><strong><?php _e( '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' ); ?>
</div>
<div class="dpn-zvc-sidebar-content"></div>
</div>
</div>
<?php if ( ! empty( get_the_content() ) ) { ?>
<div class="vczapi-show-by-postid-contents-sections-thecontent">
<?php the_content(); ?>
</div>
<?php } ?>
</div>
<?php
}
?>