PluginProbe
Elementor Website Builder – more than just a page builder / 3.27.4
Elementor Website Builder – more than just a page builder v3.27.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 +4 -29 4.1.0-dev33.27.4 View file →
@@ -366,10 +366,10 @@
366 366 [
367 367 'label' => esc_html__( 'Alignment', 'elementor' ),
368 368 'type' => Controls_Manager::CHOOSE,
369 369 'options' => [
370 - 'start' => [
371 - 'title' => esc_html__( 'Start', 'elementor' ),
370 + 'left' => [
371 + 'title' => esc_html__( 'Left', 'elementor' ),
372 372 'icon' => 'eicon-text-align-left',
373 373 ],
374 374 'center' => [
375 375 'title' => esc_html__( 'Center', 'elementor' ),
@@ -374,10 +374,10 @@
374 374 'center' => [
375 375 'title' => esc_html__( 'Center', 'elementor' ),
376 376 'icon' => 'eicon-text-align-center',
377 377 ],
378 - 'end' => [
379 - 'title' => esc_html__( 'End', 'elementor' ),
378 + 'right' => [
379 + 'title' => esc_html__( 'Right', 'elementor' ),
380 380 'icon' => 'eicon-text-align-right',
381 381 ],
382 382 'justify' => [
383 383 'title' => esc_html__( 'Justified', 'elementor' ),
@@ -383,13 +383,8 @@
383 383 'title' => esc_html__( 'Justified', 'elementor' ),
384 384 'icon' => 'eicon-text-align-justify',
385 385 ],
386 386 ],
387 - 'classes' => 'elementor-control-start-end',
388 - 'selectors_dictionary' => [
389 - 'left' => is_rtl() ? 'end' : 'start',
390 - 'right' => is_rtl() ? 'start' : 'end',
391 - ],
392 387 'default' => 'center',
393 388 'selectors' => [
394 389 '{{WRAPPER}} .gallery-item .gallery-caption' => 'text-align: {{VALUE}};',
395 390 ],
@@ -498,26 +493,6 @@
498 493 remove_filter( 'wp_get_attachment_link', [ $this, 'add_lightbox_data_to_image_link' ] );
499 494 ?>
500 495 </div>
501 496 <?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 497 }
523 498 }