← All changes
|
modules/link-in-bio/classes/render/render-base.php
+6
-6
4.1.0-dev2
→
3.23.0-dev3
View file →
| @@ -34,9 +34,9 @@ | ||
| 34 | 34 | $image_links_value_initial = $this->settings['image_links'] ?? []; |
| 35 | 35 | $image_links_columns_value = $this->settings['image_links_per_row'] ?? 2; |
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | - * If empty returns a sub-array with all empty values | |
| 38 | + * if empty returns a sub-array with all empty values | |
| 39 | 39 | * Check for this here to avoid rendering container when empty |
| 40 | 40 | */ |
| 41 | 41 | $image_links_value = $this->clean_array( $image_links_value_initial ); |
| 42 | 42 | $has_image_links = ! empty( $image_links_value ); |
| @@ -96,9 +96,9 @@ | ||
| 96 | 96 | 'src' => esc_url( $image_link_image['url'] ), |
| 97 | 97 | ] ); |
| 98 | 98 | ?> |
| 99 | 99 | <img <?php echo $this->widget->get_render_attribute_string( 'image-links-img-' . $key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> /> |
| 100 | - <?php } ?> | |
| 100 | + <?php }; ?> | |
| 101 | 101 | </a> |
| 102 | 102 | <?php } ?> |
| 103 | 103 | </div> |
| 104 | 104 | <?php |
| @@ -196,9 +196,9 @@ | ||
| 196 | 196 | 'src' => esc_url( $cta_image['url'] ), |
| 197 | 197 | ] ); |
| 198 | 198 | ?> |
| 199 | 199 | <img <?php echo $this->widget->get_render_attribute_string( 'cta-link-image' . $key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> /> |
| 200 | - <?php } ?> | |
| 200 | + <?php }; ?> | |
| 201 | 201 | </span> |
| 202 | 202 | <?php endif; ?> |
| 203 | 203 | <span class="e-link-in-bio__cta-text"> |
| 204 | 204 | <?php echo esc_html( $cta['cta_link_text'] ); ?> |
| @@ -426,9 +426,9 @@ | ||
| 426 | 426 | ] ); |
| 427 | 427 | ?> |
| 428 | 428 | <img <?php echo $this->widget->get_render_attribute_string( 'identity_image_src' . $image_key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> /> |
| 429 | 429 | |
| 430 | - <?php } ?> | |
| 430 | + <?php }; ?> | |
| 431 | 431 | <?php |
| 432 | 432 | if ( ! empty( $image['props']['has_shape_divider'] ) ) { |
| 433 | 433 | $this->print_shape_divider(); |
| 434 | 434 | } |
| @@ -468,9 +468,9 @@ | ||
| 468 | 468 | $formatted_link = ! empty( $cta['cta_link_number'] ) ? 'tel:' . $cta['cta_link_number'] : ''; |
| 469 | 469 | break; |
| 470 | 470 | case Social_Network_Provider::MESSENGER: |
| 471 | 471 | $formatted_link = ! empty( $cta['cta_link_username'] ) ? |
| 472 | - Social_Network_Provider::build_messenger_link( $cta['cta_link_username'] ) : | |
| 472 | + 'https://www.facebook.com/messages/t/' . $cta['cta_link_username'] : | |
| 473 | 473 | ''; |
| 474 | 474 | break; |
| 475 | 475 | case Social_Network_Provider::WAZE: |
| 476 | 476 | $formatted_link = ! empty( $cta['cta_link_location']['url'] ) ? $cta['cta_link_location']['url'] : ''; |
| @@ -503,9 +503,9 @@ | ||
| 503 | 503 | $formatted_link = ! empty( $icon['icon_number'] ) ? 'tel:' . $icon['icon_number'] : ''; |
| 504 | 504 | break; |
| 505 | 505 | case Social_Network_Provider::MESSENGER: |
| 506 | 506 | $formatted_link = ! empty( $icon['icon_username'] ) ? |
| 507 | - Social_Network_Provider::build_messenger_link( $icon['icon_username'] ) : | |
| 507 | + 'https://www.facebook.com/messages/t/' . $icon['icon_username'] : | |
| 508 | 508 | ''; |
| 509 | 509 | break; |
| 510 | 510 | case Social_Network_Provider::WAZE: |
| 511 | 511 | $formatted_link = ! empty( $icon['icon_location']['url'] ) ? $icon['icon_location']['url'] : ''; |