PluginProbe ʕ •ᴥ•ʔ
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents / 4.4.4
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents v4.4.4
4.6.5 4.6.4 4.6.3 4.6.2 4.6.1 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 / Includes / Classes / Extend_CustomPlayer_Controls.php
embedpress / EmbedPress / Includes / Classes Last commit date
Analytics 10 months ago Database 11 months ago Elementor_Enhancer.php 1 year ago EmbedPress_Core_Installer.php 6 years ago EmbedPress_Notice.php 2 years ago EmbedPress_Plugin_Usage_Tracker.php 1 year ago Extend_CustomPlayer_Controls.php 1 year ago Extend_Elementor_Controls.php 1 year ago FeatureNoticeManager.php 9 months ago FeatureNotices.php 9 months ago Feature_Enhancer.php 11 months ago Helper.php 11 months ago PermalinkHelper.php 1 year ago README_FEATURE_NOTICES.md 9 months ago
Extend_CustomPlayer_Controls.php
101 lines
1 <?php
2
3 namespace EmbedPress\Includes\Classes;
4
5 use \Elementor\Controls_Manager;
6
7 class Extend_CustomPlayer_Controls
8 {
9
10 public function __construct()
11 {
12 add_action('extend_customplayer_controls', [$this, 'extend_elementor_customplayer_controls'], 10, 4);
13 }
14
15 public function extend_elementor_customplayer_controls($that, $infix = '', $pro_text = '', $pro_class = '')
16 {
17
18 $condition = [
19 'emberpress_custom_player' => 'yes',
20 'embedpress_pro_embeded_source' => ['youtube', 'vimeo', 'selfhosted_video', 'selfhosted_audio']
21 ];
22
23 $that->add_control(
24 'embepress_player_restart',
25 [
26 'label' => __('Restart', 'embedpress'),
27 'type' => Controls_Manager::SWITCHER,
28 'label_block' => false,
29 'return_value' => 'yes',
30 'default' => 'yes',
31 'condition' => $condition,
32 ]
33 );
34 $that->add_control(
35 'embepress_player_rewind',
36 [
37 'label' => __('Rewind', 'embedpress'),
38 'type' => Controls_Manager::SWITCHER,
39 'label_block' => false,
40 'return_value' => 'yes',
41 'default' => 'yes',
42 'condition' => $condition,
43 ]
44 );
45 $that->add_control(
46 'embepress_player_fast_forward',
47 [
48 'label' => __('Fast Forward', 'embedpress'),
49 'type' => Controls_Manager::SWITCHER,
50 'label_block' => false,
51 'return_value' => 'yes',
52 'default' => 'yes',
53 'condition' => $condition,
54 ]
55 );
56 $that->add_control(
57 'embepress_player_tooltip',
58 [
59 'label' => sprintf(__('Tooltip %s', 'embedpress'), $pro_text),
60 'type' => Controls_Manager::SWITCHER,
61 'label_block' => false,
62 'return_value' => 'yes',
63 'default' => 'yes',
64 'condition' => $condition,
65 'classes' => $pro_class,
66
67 ]
68 );
69 $that->add_control(
70 'embepress_player_hide_controls',
71 [
72 'label' => sprintf(__('Auto Hide Controls %s', 'embedpress'), $pro_text),
73 'type' => Controls_Manager::SWITCHER,
74 'label_block' => false,
75 'return_value' => 'yes',
76 'default' => '',
77 'classes' => $pro_class,
78 'condition' => [
79 'emberpress_custom_player' => 'yes',
80 'embedpress_pro_embeded_source' => ['youtube', 'vimeo', 'selfhosted_video']
81 ],
82 ]
83 );
84 $that->add_control(
85 'embepress_player_download',
86 [
87 'label' => sprintf(__('Source Link %s', 'embedpress'), $pro_text),
88 'type' => Controls_Manager::SWITCHER,
89 'label_block' => false,
90 'return_value' => 'yes',
91 'default' => 'yes',
92 'condition' => $condition,
93 'classes' => $pro_class,
94 ]
95 );
96
97 }
98
99
100 }
101