api-settings.php
23.4 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<?php
// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="zvc-cover" style="display: none;"></div>
<div class="zvc-row" style="margin-top:10px;">
<div class="zvc-position-floater-left" style="width: 70%;margin-right:10px;border-top:1px solid #ccc;">
<form action="edit.php?post_type=zoom-meetings&page=zoom-video-conferencing-settings&tab=api-settings"
method="POST">
<?php wp_nonce_field( '_zoom_settings_update_nonce_action', '_zoom_settings_nonce' ); ?>
<div id="vczapi-s2sOauth-credentials" class="vczapi-admin-accordion expanded">
<div class="vczapi-admin-accordion--header">
<div class="vczapi-admin-accordion--header-title">
<h3><?php _e( 'General Settings', 'video-conferencing-with-zoom-api' ); ?></h3>
</div>
<div class="vczapi-admin-accordion--header-trigger">
<a href="#"><span class="dashicons dashicons-arrow-up-alt2"></span></a>
</div>
</div>
<div class="vczapi-admin-accordion--content" class="show">
<table class="form-table">
<tbody>
<tr class="enabled-vanity-url">
<th><label><?php _e( 'Vanity URL', 'video-conferencing-with-zoom-api' ); ?></label></th>
<td>
<input type="url" name="vanity_url" class="regular-text"
value="<?php echo ( $zoom_vanity_url ) ? esc_html( $zoom_vanity_url ) : ''; ?>"
placeholder="https://example.zoom.us">
<p class="description"><?php _e( 'If you are using Zoom Vanity URL then please insert it here else leave it empty.', 'video-conferencing-with-zoom-api' ); ?></p>
<a href="https://support.zoom.us/hc/en-us/articles/215062646-Guidelines-for-Vanity-URL-Requests"><?php _e( 'Read more about Vanity
URLs', 'video-conferencing-with-zoom-api' ); ?></a>
</td>
</tr>
<tr>
<th><label><?php _e( 'Meetings Deletion ?', 'video-conferencing-with-zoom-api' ); ?></label></th>
<td>
<input type="checkbox" name="donot_delete_zom_meeting_also" <?php ! empty( $donot_delete_zoom ) ? checked( $donot_delete_zoom, 'on' ) : false; ?>>
<span class="description"><?php _e( 'Do not delete your meetings on Zoom, when you delete your meeting from Zoom Meetings > All Meetings page.', 'video-conferencing-with-zoom-api' ); ?></span>
</td>
</tr>
<tr>
<th><label><?php _e( 'Disable Countdown Timer', 'video-conferencing-with-zoom-api' ); ?></label></th>
<td>
<input type="checkbox" name="disable_countdown_timer" <?php echo ! empty( $settings['disable_countdown_timer'] ) ? checked( $settings['disable_countdown_timer'], 'on' ) : false; ?> class="form-control">
<span class="description"><?php _e( 'This setting will disable countdown timer on single Zoom Events page. Check this option if you want to disable the countdown.', 'video-conferencing-with-zoom-api' ); ?></span>
</td>
</tr>
<tr>
<th>
<label><?php _e( 'Disable Auto Password Generation ?', 'video-conferencing-with-zoom-api' ); ?></label>
</th>
<td>
<input type="checkbox" name="disable_auto_pwd_generation" <?php ! empty( $disable_auto_pwd_generation ) ? checked( $disable_auto_pwd_generation, 'on' ) : false; ?>>
<span class="description"><?php _e( 'Checking this option will disable auto password generation for new meetings which are created from Zoom meeting > Add new section.', 'video-conferencing-with-zoom-api' ); ?></span>
</td>
</tr>
<tr>
<th>
<label><?php _e( 'Hide Join Links for Non-Loggedin ?', 'video-conferencing-with-zoom-api' ); ?></label>
</th>
<td>
<input type="checkbox"
name="hide_join_links_non_loggedin_users" <?php ! empty( $hide_join_link_nloggedusers ) ? checked( $hide_join_link_nloggedusers, 'on' ) : false; ?>>
<span class="description"><?php _e( 'Checking this option will hide join links from your shortcode for non-loggedin users.', 'video-conferencing-with-zoom-api' ); ?></span>
</td>
</tr>
<tr>
<th>
<label><?php _e( 'Disable Embed password in Link ?', 'video-conferencing-with-zoom-api' ); ?></label>
</th>
<td>
<input type="checkbox"
name="embed_password_join_link" <?php ! empty( $embed_password_join_link ) ? checked( $embed_password_join_link, 'on' ) : false; ?>>
<span class="description"><?php _e( 'Meeting password will not be included in the invite link to allow participants to join with just one click without having to enter the password.', 'video-conferencing-with-zoom-api' ); ?></span>
</td>
</tr>
<tr class="enabled-join-links-after-mtg-end">
<th><label><?php _e( 'Show Past Join Link ?', 'video-conferencing-with-zoom-api' ); ?></label></th>
<td>
<input type="checkbox"
name="meeting_end_join_link" <?php ! empty( $past_join_links ) ? checked( $past_join_links, 'on' ) : false; ?>>
<span class="description"><?php _e( 'This will show join meeting links on frontend even after meeting time is already past.', 'video-conferencing-with-zoom-api' ); ?></span>
</td>
</tr>
<tr class="show-zoom-authors">
<th><label><?php _e( 'Show Zoom Author ?', 'video-conferencing-with-zoom-api' ); ?></label></th>
<td>
<input type="checkbox"
name="meeting_show_zoom_author_original" <?php ! empty( $zoom_author_show ) ? checked( $zoom_author_show, 'on' ) : false; ?>>
<span class="description"><?php _e( 'Checking this show Zoom original Author in single meetings page which are created from', 'video-conferencing-with-zoom-api' ); ?>
<a href="<?php echo esc_url( admin_url( '/edit.php?post_type=zoom-meetings' ) ); ?>">Zoom Meetings</a></span>
</td>
</tr>
<tr>
<th><label><?php _e( 'Meeting going to start Text', 'video-conferencing-with-zoom-api' ); ?></label>
</th>
<td>
<input type="text" style="width: 400px;" name="zoom_api_meeting_goingtostart_text"
id="zoom_api_meeting_goingtostart_text"
value="<?php echo ! empty( $zoom_going_to_start ) ? esc_html( $zoom_going_to_start ) : ''; ?>"
placeholder="Click join button below to join the meeting now !">
</td>
</tr>
<tr>
<th><label><?php _e( 'Meeting Ended Text', 'video-conferencing-with-zoom-api' ); ?></label></th>
<td>
<input type="text" style="width: 400px;" name="zoom_api_meeting_ended_text"
id="zoom_api_meeting_ended_text"
value="<?php echo ! empty( $zoom_ended ) ? esc_html( $zoom_ended ) : ''; ?>"
placeholder="This meeting has been ended by the host.">
</td>
</tr>
<tr>
<th><label><?php _e( 'Enable Logs', 'video-conferencing-with-zoom-api' ); ?></label></th>
<td>
<input type="checkbox"
name="zoom_api_debugger_logs" <?php echo ! empty( $debug_logs ) ? checked( $debug_logs, 'on' ) : false; ?>
class="zoom_api_debugger_logs">
<span class="description"><?php _e( 'This can be helpful in finding issues related to Zoom.', 'video-conferencing-with-zoom-api' ); ?> <a
href="<?php echo admin_url( 'edit.php?post_type=zoom-meetings&page=zoom-video-conferencing-settings&tab=debug' ); ?>"><?php esc_html_e( 'Logs are here.', 'video-conferencing-with-zoom-api' ); ?></a></span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!--Join via Browser Settings-->
<div id="vczapi-s2sOauth-credentials" class="vczapi-admin-accordion expanded">
<div class="vczapi-admin-accordion--header">
<div class="vczapi-admin-accordion--header-title">
<h3><?php _e( 'Join via Web Browser Settings', 'video-conferencing-with-zoom-api' ); ?></h3>
</div>
<div class="vczapi-admin-accordion--header-trigger">
<a href="#"><span class="dashicons dashicons-arrow-up-alt2"></span></a>
</div>
</div>
<div class="vczapi-admin-accordion--content" class="show">
<table class="form-table">
<tbody>
<tr>
<th><label><?php _e( 'Disable Join via browser ?', 'video-conferencing-with-zoom-api' ); ?></label>
</th>
<td>
<input type="checkbox"
name="meeting_disable_join_via_browser" <?php ! empty( $disable_jvb ) ? checked( $disable_jvb, 'on' ) : false; ?>>
<span class="description"><?php _e( 'Checking this will hide all Join via Browser Buttons.', 'video-conferencing-with-zoom-api' ); ?></span>
</td>
</tr>
<tr>
<th>
<label><?php _e( 'Disable Email field when join via browser ?', 'video-conferencing-with-zoom-api' ); ?></label>
</th>
<td>
<input type="checkbox"
name="meeting_show_email_field" <?php ! empty( $hide_email_jvb ) ? checked( $hide_email_jvb, 'on' ) : false; ?>>
<span class="description"><?php _e( 'Checking this show will hide email field in Join via Browser window. Email field is shown if the event is a webinar because email field is required in order to join a webinar.', 'video-conferencing-with-zoom-api' ); ?></span>
</td>
</tr>
<tr>
<th>
<label for="vczapi_disable_invite"><?php _e( 'Disable Invite field when join via browser ?', 'video-conferencing-with-zoom-api' ); ?></label>
</th>
<td>
<input type="checkbox" id="vczapi_disable_invite" name="vczapi_disable_invite"
value="yes" <?php ! empty( $vczapi_disable_invite ) ? checked( $vczapi_disable_invite, 'yes' ) : false; ?>>
<span class="description"><?php _e( 'Checking this will disable invite button when user joins meeting via Join via Browser window.', 'video-conferencing-with-zoom-api' ); ?></span>
</td>
</tr>
<tr>
<th>
<label><?php _e( 'Default Language for Join via browser page ?', 'video-conferencing-with-zoom-api' ); ?></label>
</th>
<td>
<select name="meeting-lang">
<option value="all" <?php ! empty( $default_jvb_lang ) ? selected( $default_jvb_lang, 'all' ) : false; ?>><?php _e( 'Show All', 'video-conferencing-with-zoom-api' ); ?></option>
<option value="en-US" <?php ! empty( $default_jvb_lang ) ? selected( $default_jvb_lang, 'en-US' ) : false; ?>>
English
</option>
<option value="de-DE" <?php ! empty( $default_jvb_lang ) ? selected( $default_jvb_lang, 'de-DE' ) : false; ?>>
German Deutsch
</option>
<option value="es-ES" <?php ! empty( $default_jvb_lang ) ? selected( $default_jvb_lang, 'es-ES' ) : false; ?>>
Spanish Español
</option>
<option value="fr-FR" <?php ! empty( $default_jvb_lang ) ? selected( $default_jvb_lang, 'fr-FR' ) : false; ?>>
French Français
</option>
<option value="jp-JP" <?php ! empty( $default_jvb_lang ) ? selected( $default_jvb_lang, 'jp-JP' ) : false; ?>>
Japanese 日本語
</option>
<option value="pt-PT" <?php ! empty( $default_jvb_lang ) ? selected( $default_jvb_lang, 'pt-PT' ) : false; ?>>
Portuguese Portuguese
</option>
<option value="ru-RU" <?php ! empty( $default_jvb_lang ) ? selected( $default_jvb_lang, 'ru-RU' ) : false; ?>>
Russian Русский
</option>
<option value="zh-CN" <?php ! empty( $default_jvb_lang ) ? selected( $default_jvb_lang, 'zh-CN' ) : false; ?>>
Chinese 简体中文
</option>
<option value="zh-TW" <?php ! empty( $default_jvb_lang ) ? selected( $default_jvb_lang, 'zh-TW' ) : false; ?>>
Chinese 繁体中文
</option>
<option value="ko-KO" <?php ! empty( $default_jvb_lang ) ? selected( $default_jvb_lang, 'ko-KO' ) : false; ?>>
Korean 한국어
</option>
<option value="vi-VN" <?php ! empty( $default_jvb_lang ) ? selected( $default_jvb_lang, 'vi-VN' ) : false; ?>>
Vietnamese Tiếng Việt
</option>
<option value="it-IT" <?php ! empty( $default_jvb_lang ) ? selected( $default_jvb_lang, 'it-IT' ) : false; ?>>
Italian italiano
</option>
</select>
<p class="description"><?php _e( 'Select a default language for your join meeting via browser page.', 'video-conferencing-with-zoom-api' ); ?></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!--Date Settings-->
<div id="vczapi-s2sOauth-credentials" class="vczapi-admin-accordion expanded">
<div class="vczapi-admin-accordion--header">
<div class="vczapi-admin-accordion--header-title">
<h3><?php _e( 'Date Settings', 'video-conferencing-with-zoom-api' ); ?></h3>
</div>
<div class="vczapi-admin-accordion--header-trigger">
<a href="#"><span class="dashicons dashicons-arrow-up-alt2"></span></a>
</div>
</div>
<div class="vczapi-admin-accordion--content" class="show">
<table class="form-table">
<tbody>
<tr>
<th><label><?php _e( 'DateTime Format', 'video-conferencing-with-zoom-api' ); ?></label></th>
<td>
<div>
<input type="radio" value="LLLL"
name="zoom_api_date_time_format" <?php echo ! empty( $locale_format ) ? checked( $locale_format, 'LLLL', false ) : 'checked'; ?>
class="zoom_api_date_time_format"> Wednesday, May 6, 2020 05:00 PM
</div>
<div style="padding-top:10px;">
<input type="radio"
value="lll" <?php echo ! empty( $locale_format ) ? checked( $locale_format, 'lll', false ) : ''; ?>
name="zoom_api_date_time_format" class="zoom_api_date_time_format"> May 6, 2020 05:00
AM
</div>
<div style="padding-top:10px;">
<input type="radio"
value="llll" <?php echo ! empty( $locale_format ) ? checked( $locale_format, 'llll', false ) : ''; ?>
name="zoom_api_date_time_format" class="zoom_api_date_time_format"> Wed, May 6, 2020
05:00 AM
</div>
<div style="padding-top:10px;">
<input type="radio"
value="L LT" <?php echo ! empty( $locale_format ) ? checked( $locale_format, 'L LT', false ) : ''; ?>
name="zoom_api_date_time_format" class="zoom_api_date_time_format"> 05/06/2020 03:00
PM
</div>
<div style="padding-top:10px;">
<input type="radio"
value="l LT" <?php echo ! empty( $locale_format ) ? checked( $locale_format, 'l LT', false ) : ''; ?>
name="zoom_api_date_time_format" class="zoom_api_date_time_format"> 5/6/2020 03:00 PM
</div>
<div style="padding-top:10px;">
<input type="radio" value="custom"
<?php echo ! empty( $locale_format ) ? checked( $locale_format, 'custom', false ) : ''; ?>name="zoom_api_date_time_format"
class="zoom_api_date_time_format"> Custom
<input type="text" class="regular-text" name="zoom_api_custom_date_time_format"
placeholder="Y-m-d"
value="<?php echo ! empty( $custom_date_time_format ) ? $custom_date_time_format : ''; ?>">
</div>
<p class="description"><?php _e( 'Change date time formats according to your choice. Please edit this properly. Failure to correctly put value will result in failure to show date in frontend.', 'video-conferencing-with-zoom-api' ); ?></p>
<p class="description">
<?php
printf( __( 'Please see %s on how to format date', 'video-conferencing-with-zoom-api' ), '<a href="https://www.php.net/manual/en/datetime.format.php" target="_blank" rel="nofollow noopener">https://www.php.net/manual/en/datetime.format.php</a>' );
?>
</p>
</td>
</tr>
<tr>
<th><label><?php _e( 'Use 24-hour format', 'video-conferencing-with-zoom-api' ); ?></label></th>
<td>
<input type="checkbox"
name="zoom_api_twenty_fourhour_format" <?php echo ! empty( $twentyfour_format ) ? checked( $twentyfour_format, 'on' ) : false; ?>
class="zoom_api_date_time_format">
<span class="description"><?php _e( 'Checking this option will show 24 hour time format in all event dates.', 'video-conferencing-with-zoom-api' ); ?></span>
</td>
</tr>
<tr>
<th>
<label><?php _e( 'Use full month label format ?', 'video-conferencing-with-zoom-api' ); ?></label>
</th>
<td>
<input type="checkbox"
name="zoom_api_full_month_format" <?php echo ! empty( $full_month_format ) ? checked( $full_month_format, 'on' ) : false; ?>
class="zoom_api_date_time_format">
<span class="description"><?php _e( 'Checking this option will show full month label for example: June, July, August etc.', 'video-conferencing-with-zoom-api' ); ?></span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p class="submit">
<input type="submit" name="save_zoom_settings" id="submit" class="button button-primary" value="<?php esc_html_e( 'Save Changes', 'video-conferencing-with-zoom-api' ); ?>">
<a href="javascript:void(0);" class="button button-primary check-api-connection"><?php esc_html_e( 'Check API Connection', 'video-conferencing-with-zoom-api' ); ?></a>
</p>
</form>
</div>
<div class="zvc-position-floater-right">
<?php require_once ZVC_PLUGIN_VIEWS_PATH . '/additional-info.php'; ?>
</div>
</div>