PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
← All changes | views/part-rocket-ad.php +15 -15 1.10 → trunk View file →
@@ -1,8 +1,10 @@
1 1 <?php
2 -defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
2 +defined( 'ABSPATH' ) || exit;
3 3
4 -if ( defined( 'WP_ROCKET_VERSION' ) ) {
4 +$plugins_list = get_plugins();
5 +
6 +if ( isset( $plugins_list['wp-rocket/wp-rocket.php'] ) ) {
5 7 return '';
6 8 }
7 9
8 10 $notice = 'wp-rocket';
@@ -7,9 +9,9 @@
7 9
8 10 $notice = 'wp-rocket';
9 11 $user_id = get_current_user_id();
10 12 $notices = get_user_meta( $user_id, '_imagify_ignore_ads', true );
11 -$notices = $notices && is_array( $notices ) ? array_flip( $notices ) : array();
13 +$notices = $notices && is_array( $notices ) ? array_flip( $notices ) : [];
12 14
13 15 if ( isset( $notices[ $notice ] ) ) {
14 16 return;
15 17 }
@@ -20,17 +22,17 @@
20 22
21 23 <div class="imagify-col imagify-sidebar">
22 24 <div class="imagify-sidebar-section">
23 25 <p class="imagify-sidebar-title">
24 - <?php _e( 'We recommend for you', 'corporate' ); ?>
26 + <?php esc_html_e( 'We recommend for you', 'imagify' ); ?>
25 27 </p>
26 28
27 - <img src="<?php echo IMAGIFY_ASSETS_IMG_URL; ?>logo-wprocket.png" srcset="<?php echo IMAGIFY_ASSETS_IMG_URL; ?>logo-wprocket.svg 1x, <?php echo IMAGIFY_ASSETS_IMG_URL; ?>logo-wprocket.svg 2x" alt="WP Rocket" width="232" height="63">
29 + <img src="<?php echo esc_url( IMAGIFY_ASSETS_IMG_URL ); ?>logo-wprocket.png" srcset="<?php echo esc_url( IMAGIFY_ASSETS_IMG_URL ); ?>logo-wprocket.svg 1x, <?php echo esc_url( IMAGIFY_ASSETS_IMG_URL ); ?>logo-wprocket.svg 2x" alt="WP Rocket" width="232" height="63">
28 30
29 31 <p class="imagify-sidebar-description">
30 32 <?php
31 - /* translators: 1 is a "bold" tag opening, 2 is the "bold" tag closing. Please use a non-breaking space for WP Rocket. */
32 - printf( __( 'WP Rocket is a %1$sspeed optimization plugin for WordPress%2$s helping you to implement a variety of speed-boosting features to your WordPress site.', 'imagify' ), '<strong>', '</strong>' );
33 + /* translators: 1 is a "bold" tag opening, 2 is the "bold" tag closing. Please use a non-breaking space for WP Rocket. */
34 + printf( esc_html__( 'WP Rocket is a %1$sspeed optimization plugin for WordPress%2$s helping you to implement a variety of speed-boosting features to your WordPress site.', 'imagify' ), '<strong>', '</strong>' );
33 35 ?>
34 36 </p>
35 37
36 38 <p>
@@ -36,21 +38,19 @@
36 38 <p>
37 39 <a class="btn btn-rocket" href="<?php echo esc_url( imagify_get_wp_rocket_url() ); ?>" target="_blank">
38 40 <?php
39 41 /* translators: %s is a percentage. */
40 - printf( __( 'Get %s OFF Now!', 'imagify' ), $discount_percent );
42 + printf( esc_html__( 'Get %s OFF Now!', 'imagify' ), esc_html( $discount_percent ) );
41 43 ?>
42 44 </a>
43 45 </p>
44 46
45 47 <ul>
46 - <li><?php _e( 'Improve your Google PageSpeed Score.', 'imagify' ); ?></li>
47 - <li><?php _e( 'Boost your SEO.', 'imagify' ); ?></li>
48 - <li><?php _e( 'WooCommerce compatibility.', 'imagify' ); ?></li>
49 - <li><?php _e( 'Immediate results.', 'imagify' ); ?></li>
48 + <li><?php esc_html_e( 'Improve your Google PageSpeed Score.', 'imagify' ); ?></li>
49 + <li><?php esc_html_e( 'Boost your SEO.', 'imagify' ); ?></li>
50 + <li><?php esc_html_e( 'WooCommerce compatibility.', 'imagify' ); ?></li>
51 + <li><?php esc_html_e( 'Immediate results.', 'imagify' ); ?></li>
50 52 </ul>
51 53
52 - <a class="imagify-sidebar-close" href="<?php echo esc_url( $dismiss_url ); ?>"><span class="screen-reader-text"><?php _e( 'Remove the ad', 'imagify' ); ?></span><i class="dashicons dashicons-no-alt" aria-hidden="true"></i></a>
54 + <a class="imagify-sidebar-close" href="<?php echo esc_url( $dismiss_url ); ?>"><span class="screen-reader-text"><?php esc_html_e( 'Remove the ad', 'imagify' ); ?></span><i class="dashicons dashicons-no-alt" aria-hidden="true"></i></a>
53 55 </div>
54 56 </div>
55 -
56 -<?php