PluginProbe
Elementor Website Builder – more than just a page builder / 3.26.4
Elementor Website Builder – more than just a page builder v3.26.4
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 4.0.7 All 451 releases
← All changes | includes/widgets/image-gallery.php +6 -50 4.1.13.26.4 View file →
@@ -233,27 +233,8 @@
233 233 ],
234 234 ],
235 235 ],
236 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 237 ],
257 238 ]
258 239 );
259 240
@@ -282,9 +263,9 @@
282 263
283 264 $this->add_control(
284 265 'image_spacing',
285 266 [
286 - 'label' => esc_html__( 'Gap', 'elementor' ),
267 + 'label' => esc_html__( 'Spacing', 'elementor' ),
287 268 'type' => Controls_Manager::SELECT,
288 269 'options' => [
289 270 '' => esc_html__( 'Default', 'elementor' ),
290 271 'custom' => esc_html__( 'Custom', 'elementor' ),
@@ -299,9 +280,9 @@
299 280
300 281 $this->add_control(
301 282 'image_spacing_custom',
302 283 [
303 - 'label' => esc_html__( 'Custom Gap', 'elementor' ),
284 + 'label' => esc_html__( 'Custom Spacing', 'elementor' ),
304 285 'type' => Controls_Manager::SLIDER,
305 286 'size_units' => [ 'px', 'em', 'rem', 'custom' ],
306 287 'range' => [
307 288 'px' => [
@@ -366,10 +347,10 @@
366 347 [
367 348 'label' => esc_html__( 'Alignment', 'elementor' ),
368 349 'type' => Controls_Manager::CHOOSE,
369 350 'options' => [
370 - 'start' => [
371 - 'title' => esc_html__( 'Start', 'elementor' ),
351 + 'left' => [
352 + 'title' => esc_html__( 'Left', 'elementor' ),
372 353 'icon' => 'eicon-text-align-left',
373 354 ],
374 355 'center' => [
375 356 'title' => esc_html__( 'Center', 'elementor' ),
@@ -374,10 +355,10 @@
374 355 'center' => [
375 356 'title' => esc_html__( 'Center', 'elementor' ),
376 357 'icon' => 'eicon-text-align-center',
377 358 ],
378 - 'end' => [
379 - 'title' => esc_html__( 'End', 'elementor' ),
359 + 'right' => [
360 + 'title' => esc_html__( 'Right', 'elementor' ),
380 361 'icon' => 'eicon-text-align-right',
381 362 ],
382 363 'justify' => [
383 364 'title' => esc_html__( 'Justified', 'elementor' ),
@@ -383,13 +364,8 @@
383 364 'title' => esc_html__( 'Justified', 'elementor' ),
384 365 'icon' => 'eicon-text-align-justify',
385 366 ],
386 367 ],
387 - 'classes' => 'elementor-control-start-end',
388 - 'selectors_dictionary' => [
389 - 'left' => is_rtl() ? 'end' : 'start',
390 - 'right' => is_rtl() ? 'start' : 'end',
391 - ],
392 368 'default' => 'center',
393 369 'selectors' => [
394 370 '{{WRAPPER}} .gallery-item .gallery-caption' => 'text-align: {{VALUE}};',
395 371 ],
@@ -498,26 +474,6 @@
498 474 remove_filter( 'wp_get_attachment_link', [ $this, 'add_lightbox_data_to_image_link' ] );
499 475 ?>
500 476 </div>
501 477 <?php
502 - }
503 -
504 - public function render_markdown(): string {
505 - $settings = $this->get_settings_for_display();
506 - if ( empty( $settings['wp_gallery'] ) ) {
507 - return '';
508 - }
509 - $images = [];
510 - foreach ( $settings['wp_gallery'] as $image ) {
511 - $url = $image['url'] ?? '';
512 - if ( empty( $url ) ) {
513 - continue;
514 - }
515 - $alt = '';
516 - if ( ! empty( $image['id'] ) ) {
517 - $alt = get_post_meta( $image['id'], '_wp_attachment_image_alt', true );
518 - }
519 - $images[] = '![' . $alt . '](' . esc_url( $url ) . ')';
520 - }
521 - return implode( "\n\n", $images );
522 478 }
523 479 }