PluginProbe ʕ •ᴥ•ʔ
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents / 3.8.2
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents v3.8.2
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 / dailymotion.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
dailymotion.php
160 lines
1 <?php
2 /*
3 * Dailymotion Settings page
4 * All undefined vars comes from 'render_settings_page' method
5 * */
6 $dm_settings = get_option( EMBEDPRESS_PLG_NAME.':dailymotion');
7 $start_time = isset( $dm_settings['start_time']) ? $dm_settings['start_time'] : 0;
8
9 $autoplay = isset( $dm_settings['autoplay']) ? $dm_settings['autoplay'] : '';
10 $play_on_mobile = isset( $dm_settings['play_on_mobile']) ? $dm_settings['play_on_mobile'] : '';
11 $mute = isset( $dm_settings['mute']) ? $dm_settings['mute'] : '';
12 $controls = isset( $dm_settings['controls']) ? $dm_settings['controls'] : 1;
13 $video_info = isset( $dm_settings['video_info']) ? $dm_settings['video_info'] : 1;
14 $color = isset( $dm_settings['color']) ? $dm_settings['color'] : '#dd3333';
15 // pro
16 $start_time = isset( $dm_settings['start_time']) ? $dm_settings['start_time'] : 0;
17 $show_logo = isset( $dm_settings['show_logo']) ? $dm_settings['show_logo'] : 1;
18
19 ?>
20
21 <div class="embedpress__settings background__white radius-25 p40">
22 <h3><?php esc_html_e( "Dailymotion Settings", "embedpress" ); ?></h3>
23 <div class="embedpress__settings__form">
24 <form action="" method="post" class="embedpress-settings-form" >
25 <?php
26 do_action( 'embedpress_before_dailymotion_settings_fields');
27 echo $nonce_field ; ?>
28 <div class="form__group">
29 <p class="form__label" ><?php esc_html_e( "Start Time (In Seconds)", "embedpress" ); ?> </p>
30 <div class="form__control__wrap">
31 <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); ?>" >
32 <p><?php esc_html_e( "You can put a custom time in seconds to start the video. Example: 500", "embedpress" ); ?></p>
33 </div>
34
35 </div>
36
37 <div class="form__group">
38 <p class="form__label"><?php esc_html_e( "Auto Play", "embedpress" ); ?></p>
39 <div class="form__control__wrap">
40 <div class="input__flex input__radio_wrap" data-default="<?php echo esc_attr( $autoplay ); ?>" data-value="<?php echo esc_attr( $autoplay ); ?>">
41 <label class="input__radio">
42 <input type="radio" name="autoplay" value="" <?php checked( '', $autoplay); ?>>
43 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
44 </label>
45 <label class="input__radio">
46 <input type="radio" name="autoplay" value="1" <?php checked( '1', $autoplay); ?>>
47 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
48 </label>
49 </div>
50 <p><?php esc_html_e( "Automatically start to play the videos when the player loads.", "embedpress" ); ?></p>
51 </div>
52 </div>
53
54 <div class="form__group">
55 <p class="form__label"><?php esc_html_e( "Autoplay On Mobile", "embedpress" ); ?></p>
56 <div class="form__control__wrap">
57 <div class="input__flex input__radio_wrap" data-default="<?php echo esc_attr( $play_on_mobile ); ?>" data-value="<?php echo esc_attr( $play_on_mobile ); ?>">
58 <label class="input__radio">
59 <input type="radio" name="play_on_mobile" value="" <?php checked( '', $play_on_mobile); ?>>
60 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
61 </label>
62 <label class="input__radio">
63 <input type="radio" name="play_on_mobile" value="1" <?php checked( '1', $play_on_mobile); ?>>
64 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
65 </label>
66 </div>
67 <p><?php esc_html_e( "You can control autoplay on mobile. Only works if Autoplay option is enabled.", "embedpress" ); ?></p>
68 </div>
69 </div>
70
71 <div class="form__group">
72 <p class="form__label"><?php esc_html_e( "Mute", "embedpress" ); ?></p>
73 <div class="form__control__wrap">
74 <div class="input__flex input__radio_wrap" data-default="<?php echo esc_attr( $mute ); ?>" data-value="<?php echo esc_attr( $mute ); ?>">
75 <label class="input__radio">
76 <input type="radio" name="mute" value="" <?php checked( '', $mute); ?>>
77 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
78 </label>
79 <label class="input__radio">
80 <input type="radio" name="mute" value="1" <?php checked( '1', $mute); ?>>
81 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
82 </label>
83 </div>
84 <p><?php esc_html_e( "Mute the video that is auto played", "embedpress" ); ?></p>
85 </div>
86 </div>
87
88
89
90 <div class="form__group">
91 <p class="form__label"><?php esc_html_e( "Display Player Controls", "embedpress" ); ?></p>
92 <div class="form__control__wrap">
93 <div class="input__flex input__radio_wrap" data-default="<?php echo esc_attr( $controls ); ?>" data-value="<?php echo esc_attr( $controls ); ?>">
94 <label class="input__radio">
95 <input type="radio" name="controls" value="" <?php checked( '', $controls); ?>>
96 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
97 </label>
98 <label class="input__radio">
99 <input type="radio" name="controls" value="1" <?php checked( '1', $controls); ?>>
100 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
101 </label>
102 </div>
103 <p><?php esc_html_e( 'Indicates whether the video player controls are displayed.', 'embedpress'); ?> </p>
104 </div>
105 </div>
106
107
108 <div class="form__group">
109 <p class="form__label"><?php esc_html_e( "Display Video Info", "embedpress" ); ?></p>
110 <div class="form__control__wrap">
111 <div class="input__flex input__radio_wrap" data-default="<?php echo esc_attr( $video_info ); ?>" data-value="<?php echo esc_attr( $video_info ); ?>">
112 <label class="input__radio">
113 <input type="radio" name="video_info" value="" <?php checked( '', $video_info); ?>>
114 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
115 </label>
116 <label class="input__radio">
117 <input type="radio" name="video_info" value="1" <?php checked( '1', $video_info); ?>>
118 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
119 </label>
120 </div>
121 <p><?php esc_html_e( 'Indicates whether the video information is displayed.', 'embedpress'); ?> </p>
122 </div>
123 </div>
124
125
126 <div class="form__group">
127 <p class="form__label"><?php esc_html_e( "Show Logo", "embedpress" ); echo !$pro_active ? ' <span class="isPro">PRO</span>': ''; ?></p>
128 <div class="form__control__wrap">
129 <div class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>" data-default="<?php echo esc_attr( $show_logo ); ?>" data-value="<?php echo esc_attr( $show_logo ); ?>">
130 <label class="input__radio">
131 <input type="radio" name="show_logo" value="" <?php echo !$pro_active ? 'disabled ' : ''; checked( '', $show_logo); ?>>
132 <span><?php esc_html_e( "No", "embedpress" ); ?></span>
133 </label>
134 <label class="input__radio">
135 <input type="radio" name="show_logo" value="1" <?php echo !$pro_active ? 'disabled ' : ''; checked( '1', $show_logo);?>>
136 <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
137 </label>
138 </div>
139 <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
140 </div>
141 </div>
142
143
144
145 <div class="form__group">
146 <p class="form__label"><?php esc_html_e( "Controls Color", "embedpress" ); ?></p>
147 <div class="form__control__wrap">
148 <input type="text" class="form__control ep-color-picker" name="color" value="<?php echo esc_attr( $color); ?>" data-default="<?php echo esc_attr( $color ); ?>">
149
150 <p><?php esc_html_e( "Specify the color of the video controls.", "embedpress" ); ?></p>
151 </div>
152 </div>
153
154
155 <?php do_action( 'embedpress_after_dailymotion_settings_fields'); ?>
156 <button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit" value="dailymotion"><?php esc_html_e( 'Save Changes', 'embedpress'); ?></button>
157 </form>
158 </div>
159 </div>
160