PluginProbe ʕ •ᴥ•ʔ
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents / 4.6.0
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents v4.6.0
4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 2.0.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.2.0 2.2.1 2.2.2 2.3.0 2.3.1 2.3.2 2.3.3 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.6.0 2.6.1 2.6.2 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.1.3 3.2.0 3.2.1 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.4.0 3.4.1 3.4.2 3.4.3 3.5.0 3.5.1 3.5.2 3.5.3 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.7.0 3.7.1 3.7.2 3.7.3 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.9.0 3.9.1 3.9.10 3.9.11 3.9.12 3.9.13 3.9.14 3.9.15 3.9.16 3.9.17 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 3.9.7 3.9.8 3.9.9 4.0.0 4.0.1 4.0.10 4.0.11 4.0.12 4.0.13 4.0.14 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.0.8 4.0.9 4.1.0 4.1.1 4.1.10 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 4.3.1 4.4.0 4.4.1 4.4.10 4.4.11 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9 4.5.0 4.5.1
embedpress / EmbedPress / Ends / Back / Settings / templates / wistia.php
embedpress / EmbedPress / Ends / Back / Settings / templates Last commit date
partials 1 month ago ads.php 1 month ago bnr-img.png 11 months ago calendly.php 1 month ago custom-logo.php 1 month ago dailymotion.php 2 years ago elements.php 4 days ago general.php 6 months ago go-premium.php 7 months ago google-calendar.php 1 month ago hub.php 4 days ago instagram.php 1 month ago license.php 5 years ago main-template.php 1 month ago opensea.php 2 years ago player-engagement.php 2 months ago premium.php 2 years ago settings.php 1 month ago shortcode.php 1 month ago soundcloud.php 2 years ago sources.php 9 months ago spotify.php 2 years ago twitch.php 2 years ago vimeo.php 2 years ago wistia.php 1 month ago youtube.php 1 year ago
wistia.php
253 lines
1 <?php
2 /*
3 * Wistia Settings page
4 * all undefined vars comes from EmbedPressSettings.php or sometime from main-template.php
5 * */
6 $wis_settings = get_option( EMBEDPRESS_PLG_NAME.':wistia' );
7 $start_time = isset($wis_settings['start_time']) ? sanitize_text_field($wis_settings['start_time']) : 0;
8 $autoplay = isset($wis_settings['autoplay']) ? sanitize_text_field($wis_settings['autoplay']) : '';
9 $display_fullscreen_button = isset($wis_settings['display_fullscreen_button']) ? intval($wis_settings['display_fullscreen_button']) : 1;
10 $display_playbar = isset($wis_settings['display_playbar']) ? intval($wis_settings['display_playbar']) : 1;
11 $small_play_button = isset($wis_settings['small_play_button']) ? intval($wis_settings['small_play_button']) : 1;
12 $display_volume_control = isset($wis_settings['display_volume_control']) ? intval($wis_settings['display_volume_control']) : 1;
13 $volume = isset($wis_settings['volume']) ? intval($wis_settings['volume']) : 100;
14 $player_color = isset($wis_settings['player_color']) ? esc_attr($wis_settings['player_color']) : '#5b4e96'; //@todo; confirm #00adef
15 $plugin_resumable = isset($wis_settings['plugin_resumable']) ? sanitize_text_field($wis_settings['plugin_resumable']) : '';
16 $plugin_captions = isset($wis_settings['plugin_captions']) ? sanitize_text_field($wis_settings['plugin_captions']) : '';
17 $plugin_captions_default = isset($wis_settings['plugin_captions_default']) ? sanitize_text_field($wis_settings['plugin_captions_default']) : '';
18 $plugin_focus = isset($wis_settings['plugin_focus']) ? sanitize_text_field($wis_settings['plugin_focus']) : '';
19 $plugin_rewind = isset($wis_settings['plugin_rewind']) ? sanitize_text_field($wis_settings['plugin_rewind']) : '';
20 $plugin_rewind_time = isset($wis_settings['plugin_rewind_time']) ? intval($wis_settings['plugin_rewind_time']) : 10;
21 $always_show_controls = isset($wis_settings['always_show_controls']) ? sanitize_text_field($wis_settings['always_show_controls']) : '';
22
23 ?>
24
25 <div class="embedpress__settings background__white radius-25 p40">
26 <h3><?php esc_html_e( "Wistia Settings", "embedpress" ); ?></h3>
27 <div class="embedpress__settings__form">
28 <form action="" method="post" class="embedpress-settings-form" >
29 <?php
30 do_action( 'embedpress_before_wistia_settings_fields');
31 echo $nonce_field ;
32 ?>
33 <div class="form__group">
34 <p class="form__label" ><?php esc_html_e( "Start Time (In Seconds)", "embedpress" ); ?> </p>
35 <div class="form__control__wrap">
36 <input type="number" name="start_time" id="start_time" class="form__control" data-default="<?php echo esc_attr( $start_time); ?>" value="<?php echo esc_attr( $start_time); ?>" >
37 <p><?php esc_html_e( "You can put a custom time in seconds to start video. Example: 500", "embedpress" ); ?></p>
38 </div>
39
40 </div>
41 <div class="form__group">
42 <p class="form__label"><?php esc_html_e( "Fullscreen Button", "embedpress" ); ?></p>
43 <div class="form__control__wrap">
44 <div data-default="<?php echo esc_attr( $display_fullscreen_button ); ?>" data-value="<?php echo esc_attr( $display_fullscreen_button ); ?>" class="input__flex input__radio_wrap">
45 <label class="input__radio">
46 <input type="radio" value="" name="display_fullscreen_button" <?php checked( '', $display_fullscreen_button); ?>>
47 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
48 </label>
49 <label class="input__radio">
50 <input type="radio" value="1" name="display_fullscreen_button" <?php checked( '1', $display_fullscreen_button); ?>>
51 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
52 </label>
53 </div>
54 <p><?php esc_html_e( "Indicates whether the fullscreen button is visible.", "embedpress" ); ?></p>
55 </div>
56 </div>
57 <div class="form__group">
58 <p class="form__label"><?php esc_html_e( "Playbar", "embedpress" );?> </p>
59 <div class="form__control__wrap">
60 <div data-default="<?php echo esc_attr( $display_playbar ); ?>" data-value="<?php echo esc_attr( $display_playbar ); ?>" class="input__flex input__radio_wrap ">
61 <label class="input__radio">
62 <input type="radio" value="" name="display_playbar" <?php checked( '', $display_playbar); ?>>
63 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
64 </label>
65 <label class="input__radio">
66 <input type="radio" value="1" name="display_playbar" <?php checked( '1', $display_playbar); ?>>
67 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
68 </label>
69 </div>
70 <p><?php esc_html_e( "Indicates whether the playbar is visible.", "embedpress" ); ?></p>
71 </div>
72 </div>
73 <div class="form__group">
74 <p class="form__label"><?php esc_html_e( "Small Play Button", "embedpress" ); ?></p>
75 <div class="form__control__wrap">
76 <div data-default="<?php echo esc_attr( $small_play_button ); ?>" data-value="<?php echo esc_attr( $small_play_button ); ?>" class="input__flex input__radio_wrap">
77 <label class="input__radio">
78 <input type="radio" value="" name="small_play_button" <?php checked( '', $small_play_button); ?>>
79 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
80 </label>
81 <label class="input__radio">
82 <input type="radio" value="1" name="small_play_button" <?php checked( '1', $small_play_button); ?>>
83 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
84 </label>
85 </div>
86 <p><?php esc_html_e( "Indicates whether the small play button is visible on the bottom left.", "embedpress" ); ?></p>
87 </div>
88 </div>
89 <div class="form__group">
90 <p class="form__label"><?php esc_html_e( "Always Show Controls", "embedpress" ); ?></p>
91 <div class="form__control__wrap">
92 <div data-default="<?php echo esc_attr( $always_show_controls ); ?>" data-value="<?php echo esc_attr( $always_show_controls ); ?>" class="input__flex input__radio_wrap">
93 <label class="input__radio">
94 <input type="radio" value="" name="always_show_controls" <?php checked( '', $always_show_controls); ?>>
95 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
96 </label>
97 <label class="input__radio">
98 <input type="radio" value="1" name="always_show_controls" <?php checked( '1', $always_show_controls); ?>>
99 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
100 </label>
101 </div>
102 <p><?php esc_html_e( "Keep player controls (playbar, volume, fullscreen) always visible during playback instead of hiding on idle.", "embedpress" ); ?></p>
103 </div>
104 </div>
105 <div class="form__group">
106 <p class="form__label"><?php esc_html_e( "Volume Control", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
107 <div class="form__control__wrap">
108 <div data-default="<?php echo esc_attr( $display_volume_control ); ?>" data-value="<?php echo esc_attr( $display_volume_control ); ?>" class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>">
109 <label class="input__radio">
110 <input type="radio" value="" name="display_volume_control" <?php echo $pro_active ? '' : 'disabled'; checked( '', $display_volume_control); ?>>
111 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
112 </label>
113 <label class="input__radio">
114 <input type="radio" value="1" name="display_volume_control" <?php echo $pro_active ? '' : 'disabled'; checked( '1', $display_volume_control); ?>>
115 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
116 </label>
117 </div>
118 <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
119 <p><?php esc_html_e( "Indicates whether the volume control is visible.", "embedpress" ); ?></p>
120 </div>
121 </div>
122
123 <div class="form__group">
124 <p class="form__label"><?php esc_html_e( "Volume", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
125 <div class="form__control__wrap <?php echo $pro_active ? '': 'isPro'; ?>">
126 <input type="number" max="100" min="0" class="form__control" data-default="<?php echo esc_attr( $volume ); ?>" value="<?php echo esc_attr( $volume ); ?>" name="volume" <?php echo $pro_active ? '' : 'disabled'; ?>>
127
128 <p><?php esc_html_e( "Start the video with a custom volume level. Set values between 0 and 100.", "embedpress" ); ?></p>
129 </div>
130 <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
131
132 </div>
133
134 <div class="form__group">
135 <p class="form__label"><?php esc_html_e( "Auto Play", "embedpress" ); ?></p>
136 <div class="form__control__wrap">
137 <div data-default="<?php echo esc_attr( $autoplay ); ?>" data-value="<?php echo esc_attr( $autoplay ); ?>" class="input__flex input__radio_wrap">
138 <label class="input__radio">
139 <input type="radio" value="" name="autoplay" <?php checked( '', $autoplay);?>>
140 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
141 </label>
142 <label class="input__radio">
143 <input type="radio" value="1" name="autoplay" <?php checked( '1', $autoplay);?>>
144 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
145 </label>
146 </div>
147 <p><?php esc_html_e( "Automatically start to play the videos when the player loads.", "embedpress" ); ?></p>
148 </div>
149 </div>
150
151 <div class="form__group">
152 <p class="form__label"><?php esc_html_e( "Color", "embedpress" ); ?></p>
153 <div class="form__control__wrap">
154 <input type="text" class="ep-color-picker" name="player_color" data-default="<?php echo esc_attr( $player_color ); ?>" value="<?php echo esc_attr( $player_color ); ?>">
155 <p><?php esc_html_e( "Specify the color of the video controls.", "embedpress" ); ?></p>
156 </div>
157 </div>
158
159 <div class="form__group">
160 <p class="form__label"><?php esc_html_e( "Plugin: Resumable", "embedpress" ); ?></p>
161 <div class="form__control__wrap">
162 <div data-default="<?php echo esc_attr( $plugin_resumable ); ?>" data-value="<?php echo esc_attr( $plugin_resumable ); ?>" class="input__flex input__radio_wrap">
163 <label class="input__radio">
164 <input type="radio" value="" name="plugin_resumable" <?php checked( '', $plugin_resumable);?>>
165 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
166 </label>
167 <label class="input__radio">
168 <input type="radio" value="1" name="plugin_resumable" <?php checked( '1', $plugin_resumable);?>>
169 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
170 </label>
171 </div>
172 <p><?php esc_html_e( "Indicates whether the Resumable plugin is active. Allow to resume the video or start from the beginning.", "embedpress" ); ?></p>
173 </div>
174 </div>
175 <div class="form__group">
176 <p class="form__label"><?php esc_html_e( "Plugin: Captions", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
177 <div class="form__control__wrap">
178 <div data-default="<?php echo esc_attr( $plugin_captions ); ?>" data-value="<?php echo esc_attr( $plugin_captions ); ?>" class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>">
179 <label class="input__radio">
180 <input type="radio" value="" name="plugin_captions" <?php echo $pro_active ? '' : 'disabled'; checked( '', $plugin_captions); ?>>
181 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
182 </label>
183 <label class="input__radio">
184 <input type="radio" value="1" name="plugin_captions" <?php echo $pro_active ? '' : 'disabled'; checked( '1', $plugin_captions); ?>>
185 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
186 </label>
187 </div>
188 <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
189 <p><?php esc_html_e( "Indicates whether the Captions plugin is active.", "embedpress" ); ?></p>
190 </div>
191 </div>
192 <div class="form__group">
193 <p class="form__label"><?php esc_html_e( "Captions Enabled By Default", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
194 <div class="form__control__wrap">
195 <div data-default="<?php echo esc_attr( $plugin_captions_default ); ?>" data-value="<?php echo esc_attr( $plugin_captions_default ); ?>" class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>">
196 <label class="input__radio">
197 <input type="radio" value="" name="plugin_captions_default" <?php echo $pro_active ? '' : 'disabled'; checked( '', $plugin_captions_default); ?>>
198 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
199 </label>
200 <label class="input__radio">
201 <input type="radio" value="1" name="plugin_captions_default" <?php echo $pro_active ? '' : 'disabled'; checked( '1', $plugin_captions_default); ?>>
202 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
203 </label>
204 </div>
205 <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
206 <p><?php esc_html_e( "Indicates whether the Captions are enabled by default.", "embedpress" ); ?></p>
207 </div>
208 </div>
209 <div class="form__group">
210 <p class="form__label"><?php esc_html_e('Plugin: Focus', 'embedpress'); ?></p>
211 <div class="form__control__wrap">
212 <div data-default="<?php echo esc_attr( $plugin_focus ); ?>" data-value="<?php echo esc_attr( $plugin_focus ); ?>" class="input__flex input__radio_wrap">
213 <label class="input__radio">
214 <input type="radio" value="" name="plugin_focus" <?php checked( '', $plugin_focus); ?>>
215 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
216 </label>
217 <label class="input__radio">
218 <input type="radio" value="1" name="plugin_focus" <?php checked( '1', $plugin_focus); ?>>
219 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
220 </label>
221 </div>
222 <p><?php esc_html_e( "Indicates whether the Focus plugin is active.", "embedpress" ); ?></p>
223 </div>
224 </div>
225 <div class="form__group">
226 <p class="form__label"><?php esc_html_e( "Plugin: Rewind", "embedpress" );?> </p>
227 <div class="form__control__wrap">
228 <div data-default="<?php echo esc_attr( $plugin_rewind ); ?>" data-value="<?php echo esc_attr( $plugin_rewind ); ?>" class="input__flex input__radio_wrap">
229 <label class="input__radio">
230 <input type="radio" value="" name="plugin_rewind" <?php checked( '', $plugin_rewind); ?>>
231 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
232 </label>
233 <label class="input__radio">
234 <input type="radio" value="1" name="plugin_rewind" <?php checked( '1', $plugin_rewind); ?>>
235 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
236 </label>
237 </div>
238 <p><?php esc_html_e( "Indicates whether the Rewind plugin is active.", "embedpress" ); ?></p>
239 </div>
240 </div>
241 <div class="form__group">
242 <p class="form__label"><?php esc_html_e( "Rewind Time (In Seconds)", "embedpress" ); ?> </p>
243 <div class="form__control__wrap">
244 <input type="number" class="form__control" data-default="<?php echo esc_attr( $plugin_rewind_time );?>" value="<?php echo esc_attr( $plugin_rewind_time );?>" name="plugin_rewind_time" >
245 <p><?php esc_html_e( "The amount of time to rewind, in seconds.", "embedpress" ); ?></p>
246 </div>
247 </div>
248 <?php do_action( 'embedpress_after_wistia_settings_fields'); ?>
249 <button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit" value="wistia"><?php esc_html_e( 'Save Changes', 'embedpress'); ?></button>
250 </form>
251 </div>
252 </div>
253