PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.4
Elementor Website Builder – more than just a page builder v3.0.4
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | core/kits/documents/tabs/settings-lightbox.php +26 -40 4.3.0-beta2 → 3.0.4 View file →
@@ -4,9 +4,9 @@
4 4
5 5 use Elementor\Controls_Manager;
6 6
7 7 if ( ! defined( 'ABSPATH' ) ) {
8 - exit; // Exit if accessed directly.
8 + exit; // Exit if accessed directly
9 9 }
10 10
11 11 class Settings_Lightbox extends Tab_Base {
12 12
@@ -14,23 +14,11 @@
14 14 return 'settings-lightbox';
15 15 }
16 16
17 17 public function get_title() {
18 - return esc_html__( 'Lightbox', 'elementor' );
18 + return __( 'Lightbox', 'elementor' );
19 19 }
20 20
21 - public function get_group() {
22 - return 'settings';
23 - }
24 -
25 - public function get_icon() {
26 - return 'eicon-lightbox-expand';
27 - }
28 -
29 - public function get_help_url() {
30 - return 'https://go.elementor.com/global-lightbox/';
31 - }
32 -
33 21 protected function register_tab_controls() {
34 22 $this->start_controls_section(
35 23 'section_' . $this->get_id(),
36 24 [
@@ -41,12 +29,12 @@
41 29
42 30 $this->add_control(
43 31 'global_image_lightbox',
44 32 [
45 - 'label' => esc_html__( 'Image Lightbox', 'elementor' ),
33 + 'label' => __( 'Image Lightbox', 'elementor' ),
46 34 'type' => Controls_Manager::SWITCHER,
47 35 'default' => 'yes',
48 - 'description' => esc_html__( 'Open all image links in a lightbox popup window. The lightbox will automatically work on any link that leads to an image file.', 'elementor' ),
36 + 'description' => __( 'Open all image links in a lightbox popup window. The lightbox will automatically work on any link that leads to an image file.', 'elementor' ),
49 37 'frontend_available' => true,
50 38 ]
51 39 );
52 40
@@ -52,9 +40,9 @@
52 40
53 41 $this->add_control(
54 42 'lightbox_enable_counter',
55 43 [
56 - 'label' => esc_html__( 'Counter', 'elementor' ),
44 + 'label' => __( 'Counter', 'elementor' ),
57 45 'type' => Controls_Manager::SWITCHER,
58 46 'default' => 'yes',
59 47 'frontend_available' => true,
60 48 ]
@@ -62,9 +50,9 @@
62 50
63 51 $this->add_control(
64 52 'lightbox_enable_fullscreen',
65 53 [
66 - 'label' => esc_html__( 'Fullscreen', 'elementor' ),
54 + 'label' => __( 'Fullscreen', 'elementor' ),
67 55 'type' => Controls_Manager::SWITCHER,
68 56 'default' => 'yes',
69 57 'frontend_available' => true,
70 58 ]
@@ -72,9 +60,9 @@
72 60
73 61 $this->add_control(
74 62 'lightbox_enable_zoom',
75 63 [
76 - 'label' => esc_html__( 'Zoom', 'elementor' ),
64 + 'label' => __( 'Zoom', 'elementor' ),
77 65 'type' => Controls_Manager::SWITCHER,
78 66 'default' => 'yes',
79 67 'frontend_available' => true,
80 68 ]
@@ -82,9 +70,9 @@
82 70
83 71 $this->add_control(
84 72 'lightbox_enable_share',
85 73 [
86 - 'label' => esc_html__( 'Share', 'elementor' ),
74 + 'label' => __( 'Share', 'elementor' ),
87 75 'type' => Controls_Manager::SWITCHER,
88 76 'default' => 'yes',
89 77 'frontend_available' => true,
90 78 ]
@@ -92,16 +80,16 @@
92 80
93 81 $this->add_control(
94 82 'lightbox_title_src',
95 83 [
96 - 'label' => esc_html__( 'Title', 'elementor' ),
84 + 'label' => __( 'Title', 'elementor' ),
97 85 'type' => Controls_Manager::SELECT,
98 86 'options' => [
99 - '' => esc_html__( 'None', 'elementor' ),
100 - 'title' => esc_html__( 'Title', 'elementor' ),
101 - 'caption' => esc_html__( 'Caption', 'elementor' ),
102 - 'alt' => esc_html__( 'Alt', 'elementor' ),
103 - 'description' => esc_html__( 'Description', 'elementor' ),
87 + '' => __( 'None', 'elementor' ),
88 + 'title' => __( 'Title', 'elementor' ),
89 + 'caption' => __( 'Caption', 'elementor' ),
90 + 'alt' => __( 'Alt', 'elementor' ),
91 + 'description' => __( 'Description', 'elementor' ),
104 92 ],
105 93 'default' => 'title',
106 94 'frontend_available' => true,
107 95 ]
@@ -109,16 +97,16 @@
109 97
110 98 $this->add_control(
111 99 'lightbox_description_src',
112 100 [
113 - 'label' => esc_html__( 'Description', 'elementor' ),
101 + 'label' => __( 'Description', 'elementor' ),
114 102 'type' => Controls_Manager::SELECT,
115 103 'options' => [
116 - '' => esc_html__( 'None', 'elementor' ),
117 - 'title' => esc_html__( 'Title', 'elementor' ),
118 - 'caption' => esc_html__( 'Caption', 'elementor' ),
119 - 'alt' => esc_html__( 'Alt', 'elementor' ),
120 - 'description' => esc_html__( 'Description', 'elementor' ),
104 + '' => __( 'None', 'elementor' ),
105 + 'title' => __( 'Title', 'elementor' ),
106 + 'caption' => __( 'Caption', 'elementor' ),
107 + 'alt' => __( 'Alt', 'elementor' ),
108 + 'description' => __( 'Description', 'elementor' ),
121 109 ],
122 110 'default' => 'description',
123 111 'frontend_available' => true,
124 112 ]
@@ -126,9 +114,9 @@
126 114
127 115 $this->add_control(
128 116 'lightbox_color',
129 117 [
130 - 'label' => esc_html__( 'Background Color', 'elementor' ),
118 + 'label' => __( 'Background Color', 'elementor' ),
131 119 'type' => Controls_Manager::COLOR,
132 120 'selectors' => [
133 121 '.elementor-lightbox' => 'background-color: {{VALUE}}',
134 122 ],
@@ -137,9 +125,9 @@
137 125
138 126 $this->add_control(
139 127 'lightbox_ui_color',
140 128 [
141 - 'label' => esc_html__( 'UI Color', 'elementor' ),
129 + 'label' => __( 'UI Color', 'elementor' ),
142 130 'type' => Controls_Manager::COLOR,
143 131 'selectors' => [
144 132 '.elementor-lightbox' => '--lightbox-ui-color: {{VALUE}}',
145 133 ],
@@ -148,9 +136,9 @@
148 136
149 137 $this->add_control(
150 138 'lightbox_ui_color_hover',
151 139 [
152 - 'label' => esc_html__( 'UI Hover Color', 'elementor' ),
140 + 'label' => __( 'UI Hover Color', 'elementor' ),
153 141 'type' => Controls_Manager::COLOR,
154 142 'selectors' => [
155 143 '.elementor-lightbox' => '--lightbox-ui-color-hover: {{VALUE}}',
156 144 ],
@@ -159,9 +147,9 @@
159 147
160 148 $this->add_control(
161 149 'lightbox_text_color',
162 150 [
163 - 'label' => esc_html__( 'Text Color', 'elementor' ),
151 + 'label' => __( 'Text Color', 'elementor' ),
164 152 'type' => Controls_Manager::COLOR,
165 153 'selectors' => [
166 154 '.elementor-lightbox' => '--lightbox-text-color: {{VALUE}}',
167 155 ],
@@ -170,11 +158,10 @@
170 158
171 159 $this->add_control(
172 160 'lightbox_icons_size',
173 161 [
174 - 'label' => esc_html__( 'Toolbar Icons Size', 'elementor' ),
162 + 'label' => __( 'Toolbar Icons Size', 'elementor' ),
175 163 'type' => Controls_Manager::SLIDER,
176 - 'size_units' => [ 'px', 'em', 'rem', 'vw', 'custom' ],
177 164 'selectors' => [
178 165 '.elementor-lightbox' => '--lightbox-header-icons-size: {{SIZE}}{{UNIT}}',
179 166 ],
180 167 'separator' => 'before',
@@ -183,11 +170,10 @@
183 170
184 171 $this->add_control(
185 172 'lightbox_slider_icons_size',
186 173 [
187 - 'label' => esc_html__( 'Navigation Icons Size', 'elementor' ),
174 + 'label' => __( 'Navigation Icons Size', 'elementor' ),
188 175 'type' => Controls_Manager::SLIDER,
189 - 'size_units' => [ 'px', 'em', 'rem', 'vw', 'custom' ],
190 176 'selectors' => [
191 177 '.elementor-lightbox' => '--lightbox-navigation-icons-size: {{SIZE}}{{UNIT}}',
192 178 ],
193 179 'separator' => 'before',