| 1 |
<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?> |
| 2 |
|
| 3 |
<div id="wp-optimize-dashnotice" class="updated"> |
| 4 |
|
| 5 |
<div style="float: right;"> |
| 6 |
<a href="#" onclick="jQuery('#wp-optimize-dashnotice').slideUp(); jQuery.post(ajaxurl, {action: 'wp_optimize_ajax', subaction: 'dismiss_dash_notice_until', nonce: '<?php echo esc_js(wp_create_nonce('wp-optimize-ajax-nonce')); ?>'});"> |
| 7 |
<?php |
| 8 |
// translators: %s is number of months |
| 9 |
printf(esc_html__('Dismiss (for %s months)', 'wp-optimize'), 12); |
| 10 |
?> |
| 11 |
</a> |
| 12 |
</div> |
| 13 |
|
| 14 |
<?php if ($is_premium) : ?> |
| 15 |
<h3><?php esc_html_e('Thank you for installing WP-Optimize Premium.', 'wp-optimize'); ?></h3> |
| 16 |
<?php else : ?> |
| 17 |
<h3><?php esc_html_e('Thank you for installing WP-Optimize.', 'wp-optimize'); ?></h3> |
| 18 |
<?php endif; ?> |
| 19 |
|
| 20 |
<a href="https://teamupdraft.com/wp-optimize/" target="_blank"><img style="border: 0px; float: right; width: 150px; margin-right: 40px;" alt="WP-Optimize" title="WP-Optimize" src="<?php echo esc_url(WPO_PLUGIN_URL.'images/logo/wpo_logo_small.png'); // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage -- N/A ?>"></a> |
| 21 |
|
| 22 |
<div id="wp-optimize-dashnotice-wrapper" style="max-width: 800px;"> |
| 23 |
|
| 24 |
<?php if ($is_premium) : ?> |
| 25 |
<p> |
| 26 |
<?php |
| 27 |
$message = '<strong>' . esc_html__('If you like WP-Optimize, you\'ll love our other plugins.', 'wp-optimize') . '</strong>'; |
| 28 |
$message .= ' '; |
| 29 |
$message .= esc_html__('All 5* rated and actively installed on millions of WordPress websites:', 'wp-optimize'); |
| 30 |
echo $message; // phpcs:ignore WordPress.Security.EscapeOutput -- Output is already escaped |
| 31 |
?> |
| 32 |
</p> |
| 33 |
|
| 34 |
<?php else : ?> |
| 35 |
<p> |
| 36 |
<?php |
| 37 |
esc_html_e('To really turbo boost the performance of your WordPress website, check out WP-Optimize Premium or get more 5* rated plugins below:', 'wp-optimize'); |
| 38 |
?> |
| 39 |
</p> |
| 40 |
|
| 41 |
<p> |
| 42 |
<?php |
| 43 |
$message = $wp_optimize->wp_optimize_url('https://teamupdraft.com/wp-optimize/pricing/', '', '<strong>WP-Optimize Premium:</strong>', '', true); |
| 44 |
$message .= ' '; |
| 45 |
$message .= esc_html__('Unlock new ways to speed up your WordPress website.', 'wp-optimize'); |
| 46 |
$message .= ' '; |
| 47 |
$message .= sprintf( |
| 48 |
// translators: %s is a link |
| 49 |
esc_html__('Optimize from the WP-CLI, cache multilingual and multicurrency websites, get premium support and %s.', 'wp-optimize'), |
| 50 |
sprintf( |
| 51 |
'<a href="%s" target="_blank">%s</a>', |
| 52 |
esc_url('https://teamupdraft.com/wp-optimize/pricing/'), |
| 53 |
esc_html__('more', 'wp-optimize') |
| 54 |
) |
| 55 |
); |
| 56 |
echo $message; // phpcs:ignore WordPress.Security.EscapeOutput -- Output is already escaped |
| 57 |
?> |
| 58 |
</p> |
| 59 |
<?php endif; ?> |
| 60 |
|
| 61 |
<p> |
| 62 |
<?php |
| 63 |
$message = $wp_optimize->wp_optimize_url('https://updraftplus.com/comparison-updraftplus-free-updraftplus-premium/', '', '<strong>UpdraftPlus:</strong>', '', true); |
| 64 |
$message .= ' '; |
| 65 |
$message .= esc_html__('Backup your website with the world\'s leading backup and migration plugin.', 'wp-optimize'); |
| 66 |
$message .= ' '; |
| 67 |
$message .= esc_html__('Actively installed on more than 3 million WordPress websites', 'wp-optimize'); |
| 68 |
echo $message; // phpcs:ignore WordPress.Security.EscapeOutput -- Output is already escaped |
| 69 |
?> |
| 70 |
</p> |
| 71 |
|
| 72 |
<p> |
| 73 |
<?php |
| 74 |
$message = $wp_optimize->wp_optimize_url('https://aiosplugin.com/', '', '<strong>All-In-One Security (AIOS):</strong>', '', true); |
| 75 |
$message .= ' '; |
| 76 |
$message .= esc_html__('Still on the fence? Secure your WordPress website with AIOS.', 'wp-optimize'); |
| 77 |
$message .= ' '; |
| 78 |
$message .= esc_html__('Comprehensive, cost-effective, 5* rated and easy to use.', 'wp-optimize'); |
| 79 |
echo $message; // phpcs:ignore WordPress.Security.EscapeOutput -- Output is already escaped |
| 80 |
?> |
| 81 |
</p> |
| 82 |
|
| 83 |
<p> |
| 84 |
<?php |
| 85 |
$message = $wp_optimize->wp_optimize_url('https://www.internallinkjuicer.com/', '', '<strong>Internal Link Juicer:</strong>', '', true); |
| 86 |
$message .= ' '; |
| 87 |
$message .= esc_html__('Automate the building of internal links on your WordPress website.', 'wp-optimize'); |
| 88 |
$message .= ' '; |
| 89 |
$message .= esc_html__('Save time and boost SEO.', 'wp-optimize'); |
| 90 |
$message .= ' '; |
| 91 |
$message .= esc_html__('You don\'t need to be an SEO expert to use this plugin.', 'wp-optimize'); |
| 92 |
echo $message; // phpcs:ignore WordPress.Security.EscapeOutput -- Output is already escaped |
| 93 |
?> |
| 94 |
</p> |
| 95 |
|
| 96 |
<p> |
| 97 |
<?php |
| 98 |
$message = $wp_optimize->wp_optimize_url('https://wpovernight.com/', '', '<strong>WP Overnight:</strong>', '', true); |
| 99 |
$message .= ' '; |
| 100 |
$message .= esc_html__('Quality add-ons for WooCommerce.', 'wp-optimize'); |
| 101 |
$message .= ' '; |
| 102 |
$message .= esc_html__('Designed to optimize your store, enhance user experience and increase revenue.', 'wp-optimize'); |
| 103 |
echo $message; // phpcs:ignore WordPress.Security.EscapeOutput -- Output is already escaped |
| 104 |
?> |
| 105 |
</p> |
| 106 |
<p> |
| 107 |
<strong><?php esc_html_e('More quality plugins', 'wp-optimize'); ?>: </strong> |
| 108 |
<?php |
| 109 |
$wp_optimize->wp_optimize_url('https://www.simbahosting.co.uk/s3/shop/', esc_html__('Premium WooCommerce plugins', 'wp-optimize'), '', '', false); |
| 110 |
?> |
| 111 |
</p> |
| 112 |
<p> </p> |
| 113 |
</div> |
| 114 |
</div> |
| 115 |
|