PluginProbe ʕ •ᴥ•ʔ
EmbedPress – PDF Embedder, Embed PDF viewer, YouTube Videos, 3D FlipBook, Social feeds & more / 3.6.7
EmbedPress – PDF Embedder, Embed PDF viewer, YouTube Videos, 3D FlipBook, Social feeds & more v3.6.7
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 / twitch.php
embedpress / EmbedPress / Ends / Back / Settings / templates Last commit date
partials 3 years ago custom-logo.php 3 years ago dailymotion.php 4 years ago elements.php 3 years ago general.php 3 years ago go-premium.php 4 years ago google-calendar.php 3 years ago license.php 5 years ago main-template.php 5 years ago opensea.php 3 years ago shortcode.php 5 years ago soundcloud.php 4 years ago spotify.php 4 years ago twitch.php 4 years ago vimeo.php 3 years ago wistia.php 4 years ago youtube.php 3 years ago
twitch.php
115 lines
1 <?php
2 /*
3 * Twitch Settings page
4 * All undefined vars comes from 'render_settings_page' method
5 * */
6 $twitch_settings = get_option( EMBEDPRESS_PLG_NAME.':twitch');
7 $start_time = isset( $twitch_settings['start_time']) ? $twitch_settings['start_time'] : 0;
8
9 $autoplay = isset( $twitch_settings['embedpress_pro_twitch_autoplay']) ? $twitch_settings['embedpress_pro_twitch_autoplay'] : 'no';
10 $show_chat = isset( $twitch_settings['embedpress_pro_twitch_chat']) ? $twitch_settings['embedpress_pro_twitch_chat'] : 'no';
11 $theme = isset( $twitch_settings['embedpress_pro_twitch_theme']) ? $twitch_settings['embedpress_pro_twitch_theme'] : 'dark';
12 $fs = isset( $twitch_settings['embedpress_pro_fs']) ? $twitch_settings['embedpress_pro_fs'] : 'yes';
13 $mute = isset( $twitch_settings['embedpress_pro_twitch_mute']) ? $twitch_settings['embedpress_pro_twitch_mute'] : 'yes';
14
15 ?>
16
17 <div class="embedpress__settings background__white radius-25 p40">
18 <h3><?php esc_html_e( "Twitch Settings", "embedpress" ); ?></h3>
19 <div class="embedpress__settings__form">
20 <form action="" method="post" class="embedpress-settings-form">
21 <?php
22 do_action( 'embedpress_before_twitch_settings_fields');
23 echo $nonce_field ; ?>
24 <div class="form__group">
25 <p class="form__label" ><?php esc_html_e( "Start Time (In Seconds)", "embedpress" ); ?> </p>
26 <div class="form__control__wrap">
27 <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); ?>" >
28 <p><?php esc_html_e( "You can put a custom time in seconds to start video. Example: 500", "embedpress" ); ?></p>
29 </div>
30
31 </div>
32 <div class="form__group">
33 <p class="form__label"><?php esc_html_e( "Auto Play", "embedpress" ); ?></p>
34 <div class="form__control__wrap">
35 <div data-default="<?php echo esc_attr( $autoplay ); ?>" data-value="<?php echo esc_attr( $autoplay ); ?>" class="input__flex input__radio_wrap">
36 <label class="input__radio">
37 <input type="radio" name="autoplay" value="no" <?php checked( 'no', $autoplay); ?>>
38 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
39 </label>
40 <label class="input__radio">
41 <input type="radio" name="autoplay" value="yes" <?php checked( 'yes', $autoplay); ?>>
42 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
43 </label>
44 </div>
45 <p><?php esc_html_e( "Automatically start to play the videos when the player loads.", "embedpress" ); ?></p>
46 </div>
47 </div>
48 <div class="form__group">
49 <p class="form__label"><?php esc_html_e( "Show Chat", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
50 <div class="form__control__wrap">
51 <div data-default="<?php echo esc_attr( $show_chat ); ?>" data-value="<?php echo esc_attr( $show_chat ); ?>" class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>">
52 <label class="input__radio">
53 <input type="radio" name="show_chat" value="no" <?php echo $pro_active ? '' : 'disabled'; checked( 'no', $show_chat); ?>>
54 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
55 </label>
56 <label class="input__radio">
57 <input type="radio" name="show_chat" value="yes" <?php echo $pro_active ? '' : 'disabled'; checked( 'yes', $show_chat); ?>>
58 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
59 </label>
60 </div>
61 <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
62 <p><?php esc_html_e( "You can show or hide chat using this setting", "embedpress" ); ?></p>
63 </div>
64 </div>
65 <div class="form__group">
66 <p class="form__label"><?php esc_html_e( "Theme", "embedpress" );?> </p>
67 <div class="form__control__wrap">
68 <div class="embedpress__select">
69 <span><i class="ep-icon ep-caret-down"></i></span>
70 <select name="theme" data-default="<?php echo esc_attr( $theme); ?>">
71 <option value="dark" <?php selected( 'dark', $theme); ?>><?php esc_html_e( "Dark", "embedpress" ); ?></option>
72 <option value="light" <?php selected( 'light', $theme); ?>><?php esc_html_e( "Light", "embedpress" ); ?></option>
73 </select>
74 </div>
75 <p><?php esc_html_e( "Set dark or light theme for the twitch comment.", "embedpress" ); ?></p>
76 </div>
77 </div>
78 <div class="form__group">
79 <p class="form__label"><?php esc_html_e( "Enable Fullscreen Button", "embedpress" ); ?></p>
80 <div class="form__control__wrap">
81 <div data-default="<?php echo esc_attr( $fs ); ?>" data-value="<?php echo esc_attr( $fs ); ?>" class="input__flex input__radio_wrap">
82 <label class="input__radio">
83 <input type="radio" name="fs" value="no" <?php checked( 'no', $fs); ?>>
84 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
85 </label>
86 <label class="input__radio">
87 <input type="radio" name="fs" value="yes" <?php checked( 'yes', $fs); ?>>
88 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
89 </label>
90 </div>
91 <p><?php esc_html_e( "Indicates whether the fullscreen button is enabled.", "embedpress" ); ?></p>
92 </div>
93 </div>
94 <div class="form__group">
95 <p class="form__label"><?php esc_html_e( "Mute On Start", "embedpress" ); ?> </p>
96 <div class="form__control__wrap">
97 <div data-default="<?php echo esc_attr( $mute ); ?>" data-value="<?php echo esc_attr( $mute ); ?>" class="input__flex input__radio_wrap ">
98 <label class="input__radio">
99 <input type="radio" name="mute" value="no" <?php checked( 'no', $mute); ?>>
100 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
101 </label>
102 <label class="input__radio">
103 <input type="radio" name="mute" value="yes" <?php checked( 'yes', $mute); ?>>
104 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
105 </label>
106 </div>
107 <p><?php esc_html_e( "Set it to Yes to mute the video on start.", "embedpress" ); ?></p>
108 </div>
109 </div>
110 <?php do_action( 'embedpress_after_twitch_settings_fields'); ?>
111 <button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit" value="twitch"><?php esc_html_e( 'Save Changes', 'embedpress'); ?></button>
112 </form>
113 </div>
114 </div>
115