| @@ -208,8 +208,10 @@ | ||
| 208 | 208 | ], |
| 209 | 209 | ] |
| 210 | 210 | ); |
| 211 | 211 | |
| 212 | + $aside = is_rtl() ? 'right' : 'left'; | |
| 213 | + | |
| 212 | 214 | $this->add_control( |
| 213 | 215 | 'testimonial_image_position', |
| 214 | 216 | [ |
| 215 | 217 | 'label' => esc_html__( 'Image Position', 'elementor' ), |
| @@ -217,9 +219,9 @@ | ||
| 217 | 219 | 'default' => 'aside', |
| 218 | 220 | 'options' => [ |
| 219 | 221 | 'aside' => [ |
| 220 | 222 | 'title' => esc_html__( 'Aside', 'elementor' ), |
| 221 | - 'icon' => 'eicon-h-align-left', | |
| 223 | + 'icon' => 'eicon-h-align-' . $aside, | |
| 222 | 224 | ], |
| 223 | 225 | 'top' => [ |
| 224 | 226 | 'title' => esc_html__( 'Top', 'elementor' ), |
| 225 | 227 | 'icon' => 'eicon-v-align-top', |
| @@ -229,9 +231,8 @@ | ||
| 229 | 231 | 'condition' => [ |
| 230 | 232 | 'testimonial_image[url]!' => '', |
| 231 | 233 | ], |
| 232 | 234 | 'separator' => 'before', |
| 233 | - 'classes' => 'elementor-control-start-end', | |
| 234 | 235 | 'style_transfer' => true, |
| 235 | 236 | ] |
| 236 | 237 | ); |
| 237 | 238 | |
| @@ -241,10 +242,10 @@ | ||
| 241 | 242 | 'label' => esc_html__( 'Alignment', 'elementor' ), |
| 242 | 243 | 'type' => Controls_Manager::CHOOSE, |
| 243 | 244 | 'default' => 'center', |
| 244 | 245 | 'options' => [ |
| 245 | - 'start' => [ | |
| 246 | - 'title' => esc_html__( 'Start', 'elementor' ), | |
| 246 | + 'left' => [ | |
| 247 | + 'title' => esc_html__( 'Left', 'elementor' ), | |
| 247 | 248 | 'icon' => 'eicon-text-align-left', |
| 248 | 249 | ], |
| 249 | 250 | 'center' => [ |
| 250 | 251 | 'title' => esc_html__( 'Center', 'elementor' ), |
| @@ -249,18 +250,13 @@ | ||
| 249 | 250 | 'center' => [ |
| 250 | 251 | 'title' => esc_html__( 'Center', 'elementor' ), |
| 251 | 252 | 'icon' => 'eicon-text-align-center', |
| 252 | 253 | ], |
| 253 | - 'end' => [ | |
| 254 | - 'title' => esc_html__( 'End', 'elementor' ), | |
| 254 | + 'right' => [ | |
| 255 | + 'title' => esc_html__( 'Right', 'elementor' ), | |
| 255 | 256 | 'icon' => 'eicon-text-align-right', |
| 256 | 257 | ], |
| 257 | 258 | ], |
| 258 | - 'classes' => 'elementor-control-start-end', | |
| 259 | - 'selectors_dictionary' => [ | |
| 260 | - 'left' => is_rtl() ? 'end' : 'start', | |
| 261 | - 'right' => is_rtl() ? 'start' : 'end', | |
| 262 | - ], | |
| 263 | 259 | 'selectors' => [ |
| 264 | 260 | '{{WRAPPER}} .elementor-testimonial-wrapper' => 'text-align: {{VALUE}}', |
| 265 | 261 | ], |
| 266 | 262 | 'style_transfer' => true, |
| @@ -588,10 +584,10 @@ | ||
| 588 | 584 | imageUrl = elementor.imagesManager.getImageUrl( image ); |
| 589 | 585 | hasImage = ' elementor-has-image'; |
| 590 | 586 | |
| 591 | 587 | var imageHtml = '<img src="' + _.escape( imageUrl ) + '" alt="testimonial" />'; |
| 592 | - if ( settings.link?.url ) { | |
| 593 | - imageHtml = '<a href="' + elementor.helpers.sanitizeUrl( settings.link?.url ) + '">' + imageHtml + '</a>'; | |
| 588 | + if ( settings.link.url ) { | |
| 589 | + imageHtml = '<a href="' + elementor.helpers.sanitizeUrl( settings.link.url ) + '">' + imageHtml + '</a>'; | |
| 594 | 590 | } |
| 595 | 591 | } |
| 596 | 592 | |
| 597 | 593 | var testimonial_image_position = settings.testimonial_image_position ? ' elementor-testimonial-image-position-' + settings.testimonial_image_position : ''; |
| @@ -634,11 +630,11 @@ | ||
| 634 | 630 | view.addRenderAttribute( 'testimonial_name', 'class', 'elementor-testimonial-name' ); |
| 635 | 631 | |
| 636 | 632 | view.addInlineEditingAttributes( 'testimonial_name', 'none' ); |
| 637 | 633 | |
| 638 | - if ( settings.link?.url ) { | |
| 634 | + if ( settings.link.url ) { | |
| 639 | 635 | #> |
| 640 | - <a href="{{ elementor.helpers.sanitizeUrl( settings.link?.url ) }}" {{{ view.getRenderAttributeString( 'testimonial_name' ) }}}>{{ settings.testimonial_name }}</a> | |
| 636 | + <a href="{{ elementor.helpers.sanitizeUrl( settings.link.url ) }}" {{{ view.getRenderAttributeString( 'testimonial_name' ) }}}>{{ settings.testimonial_name }}</a> | |
| 641 | 637 | <# |
| 642 | 638 | } else { |
| 643 | 639 | #> |
| 644 | 640 | <div {{{ view.getRenderAttributeString( 'testimonial_name' ) }}}>{{ settings.testimonial_name }}</div> |
| @@ -650,11 +646,11 @@ | ||
| 650 | 646 | view.addRenderAttribute( 'testimonial_job', 'class', 'elementor-testimonial-job' ); |
| 651 | 647 | |
| 652 | 648 | view.addInlineEditingAttributes( 'testimonial_job', 'none' ); |
| 653 | 649 | |
| 654 | - if ( settings.link?.url ) { | |
| 650 | + if ( settings.link.url ) { | |
| 655 | 651 | #> |
| 656 | - <a href="{{ elementor.helpers.sanitizeUrl( settings.link?.url ) }}" {{{ view.getRenderAttributeString( 'testimonial_job' ) }}}>{{ settings.testimonial_job }}</a> | |
| 652 | + <a href="{{ elementor.helpers.sanitizeUrl( settings.link.url ) }}" {{{ view.getRenderAttributeString( 'testimonial_job' ) }}}>{{ settings.testimonial_job }}</a> | |
| 657 | 653 | <# |
| 658 | 654 | } else { |
| 659 | 655 | #> |
| 660 | 656 | <div {{{ view.getRenderAttributeString( 'testimonial_job' ) }}}>{{ settings.testimonial_job }}</div> |