| 1 |
<?php |
| 2 |
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' ); |
| 3 |
|
| 4 |
$dismiss_url = get_imagify_admin_url( 'dismiss-notice', 'wp-rocket' ); |
| 5 |
$coupon_code = 'IMAGIFY20'; |
| 6 |
$wprocket_url = imagify_get_wp_rocket_url(); |
| 7 |
?> |
| 8 |
<div class="updated imagify-rkt-notice"> |
| 9 |
<a href="<?php echo esc_url( $dismiss_url ); ?>" class="imagify-notice-dismiss imagify-cross"><span class="dashicons dashicons-no"></span></a> |
| 10 |
|
| 11 |
<p class="imagify-rkt-logo"> |
| 12 |
<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="118" height="32"> |
| 13 |
</p> |
| 14 |
<p class="imagify-rkt-msg"> |
| 15 |
<?php |
| 16 |
esc_html_e( 'Discover the best caching plugin to speed up your website.', 'imagify' ); |
| 17 |
echo '<br>'; |
| 18 |
printf( |
| 19 |
/* translators: 1 is a "bold" tag start, 2 is a pourcentage, 3 is the "bold" tag end, 4 is a coupon code. */ |
| 20 |
esc_html__( '%1$sGet %2$s off%3$s with this coupon code: %4$s', 'imagify' ), |
| 21 |
'<strong>', '20%', '</strong>', $coupon_code |
| 22 |
); |
| 23 |
?> |
| 24 |
</p> |
| 25 |
<p class="imagify-rkt-coupon"> |
| 26 |
<span class="imagify-rkt-coupon-code"><?php echo $coupon_code; ?></span> |
| 27 |
</p> |
| 28 |
<p class="imagify-rkt-cta"> |
| 29 |
<a target="_blank" href="<?php echo esc_url( $wprocket_url ); ?>" class="button button-primary tgm-plugin-update-modal"><?php esc_html_e( 'Get WP Rocket now', 'imagify' ); ?></a> |
| 30 |
</p> |
| 31 |
</div> |
| 32 |
|