PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / 2.2.8
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF v2.2.8
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
imagify / views / part-rocket-ad.php

part-rocket-ad.php in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF 2.2.8, at views/part-rocket-ad.php

57 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || exit;
3
4 $plugins_list = get_plugins();
5
6 if ( isset( $plugins_list['wp-rocket/wp-rocket.php'] ) ) {
7 return '';
8 }
9
10 $notice = 'wp-rocket';
11 $user_id = get_current_user_id();
12 $notices = get_user_meta( $user_id, '_imagify_ignore_ads', true );
13 $notices = $notices && is_array( $notices ) ? array_flip( $notices ) : [];
14
15 if ( isset( $notices[ $notice ] ) ) {
16 return;
17 }
18
19 $discount_percent = '20%';
20 $dismiss_url = wp_nonce_url( admin_url( 'admin-post.php?action=imagify_dismiss_ad&ad=' . $notice ), 'imagify-dismiss-ad' );
21 ?>
22
23 <div class="imagify-col imagify-sidebar">
24 <div class="imagify-sidebar-section">
25 <p class="imagify-sidebar-title">
26 <?php esc_html_e( 'We recommend for you', 'corporate' ); ?>
27 </p>
28
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">
30
31 <p class="imagify-sidebar-description">
32 <?php
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>' );
35 ?>
36 </p>
37
38 <p>
39 <a class="btn btn-rocket" href="<?php echo esc_url( imagify_get_wp_rocket_url() ); ?>" target="_blank">
40 <?php
41 /* translators: %s is a percentage. */
42 printf( esc_html__( 'Get %s OFF Now!', 'imagify' ), esc_html( $discount_percent ) );
43 ?>
44 </a>
45 </p>
46
47 <ul>
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>
52 </ul>
53
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>
55 </div>
56 </div>
57