| @@ -2,8 +2,9 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace ImageOptimization\Modules\Oauth\Components; |
| 4 | 4 | |
| 5 | 5 | use ImageOptimization\Modules\Core\Components\Pointers; |
| 6 | +use ImageOptimization\Modules\Core\Module as Core_Module; | |
| 6 | 7 | |
| 7 | 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 8 | 9 | exit; // Exit if accessed directly. |
| 9 | 10 | } |
| @@ -11,8 +12,12 @@ | ||
| 11 | 12 | class Connect_Pointer { |
| 12 | 13 | const CURRENT_POINTER_SLUG = 'image-optimization-auth-connect'; |
| 13 | 14 | |
| 14 | 15 | public function admin_print_script() { |
| 16 | + if ( Core_Module::is_elementor_one() ) { | |
| 17 | + return; | |
| 18 | + } | |
| 19 | + | |
| 15 | 20 | if ( Connect::is_connected() ) { |
| 16 | 21 | return; |
| 17 | 22 | } |
| 18 | 23 | |
| @@ -37,9 +42,9 @@ | ||
| 37 | 42 | content: '<?php echo $pointer_content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>', |
| 38 | 43 | pointerClass: 'image-optimization-auth-connect-pointer', |
| 39 | 44 | position: { |
| 40 | 45 | edge: 'top', |
| 41 | - align: 'right' | |
| 46 | + align: <?php echo is_rtl() ? "'left'" : "'right'"; ?>, | |
| 42 | 47 | }, |
| 43 | 48 | } ).pointer( 'open' ); |
| 44 | 49 | }, 100 ); |
| 45 | 50 | } ); |
| @@ -46,14 +51,14 @@ | ||
| 46 | 51 | </script> |
| 47 | 52 | |
| 48 | 53 | <style> |
| 49 | 54 | .image-optimization-auth-connect-pointer .wp-pointer-arrow { |
| 50 | - top: 4px; | |
| 51 | - left: 78%; | |
| 55 | + inset-block-start: 4px; | |
| 56 | + inset-inline-start: 78%; | |
| 52 | 57 | } |
| 53 | 58 | |
| 54 | 59 | .image-optimization-auth-connect-pointer .wp-pointer-arrow-inner { |
| 55 | - top: 10px; | |
| 60 | + inset-block-start: 10px; | |
| 56 | 61 | } |
| 57 | 62 | </style> |
| 58 | 63 | <?php |
| 59 | 64 | } |