PluginProbe
Elementor Website Builder – more than just a page builder / 3.19.2
Elementor Website Builder – more than just a page builder v3.19.2
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 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | includes/widgets/image-gallery.php +9 -89 4.0.83.19.2 View file →
@@ -71,51 +71,15 @@
71 71 public function get_keywords() {
72 72 return [ 'image', 'photo', 'visual', 'gallery' ];
73 73 }
74 74
75 - protected function is_dynamic_content(): bool {
76 - return false;
77 - }
78 -
79 - /**
80 - * Get style dependencies.
81 - *
82 - * Retrieve the list of style dependencies the widget requires.
83 - *
84 - * @since 3.24.0
85 - * @access public
86 - *
87 - * @return array Widget style dependencies.
88 - */
89 - public function get_style_depends(): array {
90 - return [ 'widget-image-gallery' ];
91 - }
92 -
93 - /**
94 - * Get widget upsale data.
95 - *
96 - * Retrieve the widget promotion data.
97 - *
98 - * @since 3.18.0
99 - * @access protected
100 - *
101 - * @return array Widget promotion data.
102 - */
103 75 protected function get_upsale_data() {
104 76 return [
105 - 'condition' => ! Utils::has_pro(),
106 - 'image' => esc_url( ELEMENTOR_ASSETS_URL . 'images/go-pro.svg' ),
107 - 'image_alt' => esc_attr__( 'Upgrade', 'elementor' ),
108 77 'description' => esc_html__( 'Use interesting masonry layouts and other overlay features with Elementor\'s Pro Gallery widget.', 'elementor' ),
109 - 'upgrade_url' => esc_url( 'https://go.elementor.com/go-pro-basic-gallery-widget/' ),
110 - 'upgrade_text' => esc_html__( 'Upgrade Now', 'elementor' ),
78 + 'upgrade_url' => 'https://go.elementor.com/go-pro-basic-gallery-widget/',
111 79 ];
112 80 }
113 81
114 - public function has_widget_inner_wrapper(): bool {
115 - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' );
116 - }
117 -
118 82 /**
119 83 * Register image gallery widget controls.
120 84 *
121 85 * Adds different input fields to allow the user to change and customize the widget settings.
@@ -126,9 +90,9 @@
126 90 protected function register_controls() {
127 91 $this->start_controls_section(
128 92 'section_gallery',
129 93 [
130 - 'label' => esc_html__( 'Basic Gallery', 'elementor' ),
94 + 'label' => esc_html__( 'Image Gallery', 'elementor' ),
131 95 ]
132 96 );
133 97
134 98 $this->add_control(
@@ -147,8 +111,9 @@
147 111 Group_Control_Image_Size::get_type(),
148 112 [
149 113 'name' => 'thumbnail', // Usage: `{name}_size` and `{name}_custom_dimension`, in this case `thumbnail_size` and `thumbnail_custom_dimension`.
150 114 'exclude' => [ 'custom' ],
115 + 'separator' => 'none',
151 116 ]
152 117 );
153 118
154 119 $gallery_columns = range( 1, 10 );
@@ -213,48 +178,8 @@
213 178 ],
214 179 'condition' => [
215 180 'gallery_link' => 'file',
216 181 ],
217 - 'assets' => [
218 - 'styles' => [
219 - [
220 - 'name' => 'e-swiper',
221 - 'conditions' => [
222 - 'terms' => [
223 - [
224 - 'name' => 'gallery_link',
225 - 'operator' => '===',
226 - 'value' => 'file',
227 - ],
228 - [
229 - 'name' => 'open_lightbox',
230 - 'operator' => '!==',
231 - 'value' => 'no',
232 - ],
233 - ],
234 - ],
235 - ],
236 - ],
237 - 'scripts' => [
238 - [
239 - 'name' => 'swiper',
240 - 'conditions' => [
241 - 'terms' => [
242 - [
243 - 'name' => 'gallery_link',
244 - 'operator' => '===',
245 - 'value' => 'file',
246 - ],
247 - [
248 - 'name' => 'open_lightbox',
249 - 'operator' => '!==',
250 - 'value' => 'no',
251 - ],
252 - ],
253 - ],
254 - ],
255 - ],
256 - ],
257 182 ]
258 183 );
259 184
260 185 $this->add_control(
@@ -282,9 +207,9 @@
282 207
283 208 $this->add_control(
284 209 'image_spacing',
285 210 [
286 - 'label' => esc_html__( 'Gap', 'elementor' ),
211 + 'label' => esc_html__( 'Spacing', 'elementor' ),
287 212 'type' => Controls_Manager::SELECT,
288 213 'options' => [
289 214 '' => esc_html__( 'Default', 'elementor' ),
290 215 'custom' => esc_html__( 'Custom', 'elementor' ),
@@ -299,9 +224,9 @@
299 224
300 225 $this->add_control(
301 226 'image_spacing_custom',
302 227 [
303 - 'label' => esc_html__( 'Custom Gap', 'elementor' ),
228 + 'label' => esc_html__( 'Custom Spacing', 'elementor' ),
304 229 'type' => Controls_Manager::SLIDER,
305 230 'size_units' => [ 'px', 'em', 'rem', 'custom' ],
306 231 'range' => [
307 232 'px' => [
@@ -366,10 +291,10 @@
366 291 [
367 292 'label' => esc_html__( 'Alignment', 'elementor' ),
368 293 'type' => Controls_Manager::CHOOSE,
369 294 'options' => [
370 - 'start' => [
371 - 'title' => esc_html__( 'Start', 'elementor' ),
295 + 'left' => [
296 + 'title' => esc_html__( 'Left', 'elementor' ),
372 297 'icon' => 'eicon-text-align-left',
373 298 ],
374 299 'center' => [
375 300 'title' => esc_html__( 'Center', 'elementor' ),
@@ -374,10 +299,10 @@
374 299 'center' => [
375 300 'title' => esc_html__( 'Center', 'elementor' ),
376 301 'icon' => 'eicon-text-align-center',
377 302 ],
378 - 'end' => [
379 - 'title' => esc_html__( 'End', 'elementor' ),
303 + 'right' => [
304 + 'title' => esc_html__( 'Right', 'elementor' ),
380 305 'icon' => 'eicon-text-align-right',
381 306 ],
382 307 'justify' => [
383 308 'title' => esc_html__( 'Justified', 'elementor' ),
@@ -382,13 +307,8 @@
382 307 'justify' => [
383 308 'title' => esc_html__( 'Justified', 'elementor' ),
384 309 'icon' => 'eicon-text-align-justify',
385 310 ],
386 - ],
387 - 'classes' => 'elementor-control-start-end',
388 - 'selectors_dictionary' => [
389 - 'left' => is_rtl() ? 'end' : 'start',
390 - 'right' => is_rtl() ? 'start' : 'end',
391 311 ],
392 312 'default' => 'center',
393 313 'selectors' => [
394 314 '{{WRAPPER}} .gallery-item .gallery-caption' => 'text-align: {{VALUE}};',