PluginProbe
Elementor Website Builder – more than just a page builder / 3.1.3
Elementor Website Builder – more than just a page builder v3.1.3
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 +27 -29 4.3.1 → 3.1.3 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,9 +14,9 @@
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 21 public function get_group() {
22 22 return 'settings';
@@ -26,9 +26,9 @@
26 26 return 'eicon-lightbox-expand';
27 27 }
28 28
29 29 public function get_help_url() {
30 - return 'https://go.elementor.com/global-lightbox/';
30 + return 'https://go.elementor.com/global-lightbox';
31 31 }
32 32
33 33 protected function register_tab_controls() {
34 34 $this->start_controls_section(
@@ -41,12 +41,12 @@
41 41
42 42 $this->add_control(
43 43 'global_image_lightbox',
44 44 [
45 - 'label' => esc_html__( 'Image Lightbox', 'elementor' ),
45 + 'label' => __( 'Image Lightbox', 'elementor' ),
46 46 'type' => Controls_Manager::SWITCHER,
47 47 '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' ),
48 + '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 49 'frontend_available' => true,
50 50 ]
51 51 );
52 52
@@ -52,9 +52,9 @@
52 52
53 53 $this->add_control(
54 54 'lightbox_enable_counter',
55 55 [
56 - 'label' => esc_html__( 'Counter', 'elementor' ),
56 + 'label' => __( 'Counter', 'elementor' ),
57 57 'type' => Controls_Manager::SWITCHER,
58 58 'default' => 'yes',
59 59 'frontend_available' => true,
60 60 ]
@@ -62,9 +62,9 @@
62 62
63 63 $this->add_control(
64 64 'lightbox_enable_fullscreen',
65 65 [
66 - 'label' => esc_html__( 'Fullscreen', 'elementor' ),
66 + 'label' => __( 'Fullscreen', 'elementor' ),
67 67 'type' => Controls_Manager::SWITCHER,
68 68 'default' => 'yes',
69 69 'frontend_available' => true,
70 70 ]
@@ -72,9 +72,9 @@
72 72
73 73 $this->add_control(
74 74 'lightbox_enable_zoom',
75 75 [
76 - 'label' => esc_html__( 'Zoom', 'elementor' ),
76 + 'label' => __( 'Zoom', 'elementor' ),
77 77 'type' => Controls_Manager::SWITCHER,
78 78 'default' => 'yes',
79 79 'frontend_available' => true,
80 80 ]
@@ -82,9 +82,9 @@
82 82
83 83 $this->add_control(
84 84 'lightbox_enable_share',
85 85 [
86 - 'label' => esc_html__( 'Share', 'elementor' ),
86 + 'label' => __( 'Share', 'elementor' ),
87 87 'type' => Controls_Manager::SWITCHER,
88 88 'default' => 'yes',
89 89 'frontend_available' => true,
90 90 ]
@@ -92,16 +92,16 @@
92 92
93 93 $this->add_control(
94 94 'lightbox_title_src',
95 95 [
96 - 'label' => esc_html__( 'Title', 'elementor' ),
96 + 'label' => __( 'Title', 'elementor' ),
97 97 'type' => Controls_Manager::SELECT,
98 98 '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' ),
99 + '' => __( 'None', 'elementor' ),
100 + 'title' => __( 'Title', 'elementor' ),
101 + 'caption' => __( 'Caption', 'elementor' ),
102 + 'alt' => __( 'Alt', 'elementor' ),
103 + 'description' => __( 'Description', 'elementor' ),
104 104 ],
105 105 'default' => 'title',
106 106 'frontend_available' => true,
107 107 ]
@@ -109,16 +109,16 @@
109 109
110 110 $this->add_control(
111 111 'lightbox_description_src',
112 112 [
113 - 'label' => esc_html__( 'Description', 'elementor' ),
113 + 'label' => __( 'Description', 'elementor' ),
114 114 'type' => Controls_Manager::SELECT,
115 115 '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' ),
116 + '' => __( 'None', 'elementor' ),
117 + 'title' => __( 'Title', 'elementor' ),
118 + 'caption' => __( 'Caption', 'elementor' ),
119 + 'alt' => __( 'Alt', 'elementor' ),
120 + 'description' => __( 'Description', 'elementor' ),
121 121 ],
122 122 'default' => 'description',
123 123 'frontend_available' => true,
124 124 ]
@@ -126,9 +126,9 @@
126 126
127 127 $this->add_control(
128 128 'lightbox_color',
129 129 [
130 - 'label' => esc_html__( 'Background Color', 'elementor' ),
130 + 'label' => __( 'Background Color', 'elementor' ),
131 131 'type' => Controls_Manager::COLOR,
132 132 'selectors' => [
133 133 '.elementor-lightbox' => 'background-color: {{VALUE}}',
134 134 ],
@@ -137,9 +137,9 @@
137 137
138 138 $this->add_control(
139 139 'lightbox_ui_color',
140 140 [
141 - 'label' => esc_html__( 'UI Color', 'elementor' ),
141 + 'label' => __( 'UI Color', 'elementor' ),
142 142 'type' => Controls_Manager::COLOR,
143 143 'selectors' => [
144 144 '.elementor-lightbox' => '--lightbox-ui-color: {{VALUE}}',
145 145 ],
@@ -148,9 +148,9 @@
148 148
149 149 $this->add_control(
150 150 'lightbox_ui_color_hover',
151 151 [
152 - 'label' => esc_html__( 'UI Hover Color', 'elementor' ),
152 + 'label' => __( 'UI Hover Color', 'elementor' ),
153 153 'type' => Controls_Manager::COLOR,
154 154 'selectors' => [
155 155 '.elementor-lightbox' => '--lightbox-ui-color-hover: {{VALUE}}',
156 156 ],
@@ -159,9 +159,9 @@
159 159
160 160 $this->add_control(
161 161 'lightbox_text_color',
162 162 [
163 - 'label' => esc_html__( 'Text Color', 'elementor' ),
163 + 'label' => __( 'Text Color', 'elementor' ),
164 164 'type' => Controls_Manager::COLOR,
165 165 'selectors' => [
166 166 '.elementor-lightbox' => '--lightbox-text-color: {{VALUE}}',
167 167 ],
@@ -170,11 +170,10 @@
170 170
171 171 $this->add_control(
172 172 'lightbox_icons_size',
173 173 [
174 - 'label' => esc_html__( 'Toolbar Icons Size', 'elementor' ),
174 + 'label' => __( 'Toolbar Icons Size', 'elementor' ),
175 175 'type' => Controls_Manager::SLIDER,
176 - 'size_units' => [ 'px', 'em', 'rem', 'vw', 'custom' ],
177 176 'selectors' => [
178 177 '.elementor-lightbox' => '--lightbox-header-icons-size: {{SIZE}}{{UNIT}}',
179 178 ],
180 179 'separator' => 'before',
@@ -183,11 +182,10 @@
183 182
184 183 $this->add_control(
185 184 'lightbox_slider_icons_size',
186 185 [
187 - 'label' => esc_html__( 'Navigation Icons Size', 'elementor' ),
186 + 'label' => __( 'Navigation Icons Size', 'elementor' ),
188 187 'type' => Controls_Manager::SLIDER,
189 - 'size_units' => [ 'px', 'em', 'rem', 'vw', 'custom' ],
190 188 'selectors' => [
191 189 '.elementor-lightbox' => '--lightbox-navigation-icons-size: {{SIZE}}{{UNIT}}',
192 190 ],
193 191 'separator' => 'before',