PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / 1.7.7
Image Optimizer – Compress Images and Convert to WebP or AVIF v1.7.7
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
← All changes | modules/oauth/components/connect-pointer.php +20 -15 1.0.11.7.7 View file →
@@ -1,9 +1,10 @@
1 1 <?php
2 2
3 -namespace ImageOptimizer\Modules\Oauth\Components;
3 +namespace ImageOptimization\Modules\Oauth\Components;
4 4
5 -use ImageOptimizer\Modules\Core\Components\Pointers;
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 }
@@ -8,11 +9,15 @@
8 9 exit; // Exit if accessed directly.
9 10 }
10 11
11 12 class Connect_Pointer {
12 - const CURRENT_POINTER_SLUG = 'image-optimizer-auth-connect';
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
@@ -18,28 +23,28 @@
18 23
19 24 wp_enqueue_script( 'wp-pointer' );
20 25 wp_enqueue_style( 'wp-pointer' );
21 26
22 - $pointer_content = '<h3>' . esc_html__( 'Start by connecting your license', 'image-optimizer' ) . '</h3>';
23 - $pointer_content .= '<p>' . esc_html__( 'You’re one click away from improving your site’s performance dramatically!', 'image-optimizer' ) . '</p>';
27 + $pointer_content = '<h3>' . esc_html__( 'Start by connecting your license', 'image-optimization' ) . '</h3>';
28 + $pointer_content .= '<p>' . esc_html__( 'You’re one click away from improving your site’s performance dramatically!', 'image-optimization' ) . '</p>';
24 29 ?>
25 30 <script>
26 31 jQuery( document ).ready( function( $ ) {
27 - console.log( $( '.image-optimizer-stats-connect-button' ) );
32 + console.log( $( '.image-optimization-stats-connect-button' ) );
28 33
29 34 const intervalId = setInterval( () => {
30 - if ( ! $( '.image-optimizer-stats-connect-button' ).length ) {
35 + if ( ! $( '.image-optimization-stats-connect-button' ).length ) {
31 36 return;
32 37 }
33 38
34 39 clearInterval(intervalId);
35 40
36 - $( '.image-optimizer-stats-connect-button' ).first().pointer( {
41 + $( '.image-optimization-stats-connect-button' ).first().pointer( {
37 42 content: '<?php echo $pointer_content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>',
38 - pointerClass: 'image-optimizer-auth-connect-pointer',
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 } );
@@ -45,15 +50,15 @@
45 50 } );
46 51 </script>
47 52
48 53 <style>
49 - .image-optimizer-auth-connect-pointer .wp-pointer-arrow {
50 - top: 4px;
51 - left: 78%;
54 + .image-optimization-auth-connect-pointer .wp-pointer-arrow {
55 + inset-block-start: 4px;
56 + inset-inline-start: 78%;
52 57 }
53 58
54 - .image-optimizer-auth-connect-pointer .wp-pointer-arrow-inner {
55 - top: 10px;
59 + .image-optimization-auth-connect-pointer .wp-pointer-arrow-inner {
60 + inset-block-start: 10px;
56 61 }
57 62 </style>
58 63 <?php
59 64 }