| @@ -1,35 +1,114 @@ | ||
| 1 | -<?php if (!defined('WPO_PLUGIN_MAIN_PATH')) die('No direct access allowed'); ?> | |
| 1 | +<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?> | |
| 2 | 2 | |
| 3 | 3 | <div id="wp-optimize-dashnotice" class="updated"> |
| 4 | 4 | |
| 5 | - <div style="float: right;"><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')); ?>'});"><?php printf(esc_html__('Dismiss (for %s months)', 'wp-optimize'), 12); ?></a></div> | |
| 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; ?> | |
| 6 | 19 | |
| 7 | - <h3><?php esc_html_e('Thank you for installing WP-Optimize!', 'wp-optimize'); ?></h3> | |
| 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> | |
| 8 | 21 | |
| 9 | - <a href="https://getwpo.com" 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'); ?>"></a> | |
| 10 | - | |
| 11 | 22 | <div id="wp-optimize-dashnotice-wrapper" style="max-width: 800px;"> |
| 12 | - | |
| 23 | + | |
| 24 | + <?php if ($is_premium) : ?> | |
| 13 | 25 | <p> |
| 14 | - <?php esc_html_e('Super-charge and secure your WordPress site even more with our other top plugins:', 'wp-optimize'); ?> | |
| 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 | + ?> | |
| 15 | 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> | |
| 16 | 71 | |
| 17 | 72 | <p> |
| 18 | - <?php printf(esc_html__('%s offers powerful extra features and flexibility, and WordPress multisite support.', 'wp-optimize'), '<strong>'.$wp_optimize->wp_optimize_url('https://getwpo.com', 'WP-Optimize Premium', '', '', true).'</strong>'); ?> | |
| 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 | + ?> | |
| 19 | 81 | </p> |
| 20 | - | |
| 82 | + | |
| 21 | 83 | <p> |
| 22 | - <?php printf(esc_html__('%s simplifies backups and restoration.', 'wp-optimize') . ' ' . esc_html__('It is the world\'s highest ranking and most popular scheduled backup plugin, with over three million currently-active installs.', 'wp-optimize'), '<strong>'.$wp_optimize->wp_optimize_url('https://wordpress.org/plugins/updraftplus/', 'UpdraftPlus', '', '', true).'</strong>'); ?> | |
| 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 | + ?> | |
| 23 | 94 | </p> |
| 24 | - | |
| 95 | + | |
| 25 | 96 | <p> |
| 26 | - <?php printf(esc_html__('%s is a highly efficient way to manage, optimize, update and backup multiple websites from one place.', 'wp-optimize'), '<strong>'.$wp_optimize->wp_optimize_url('https://updraftcentral.com', 'UpdraftCentral', '', '', true).'</strong>'); ?> | |
| 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 | + ?> | |
| 27 | 105 | </p> |
| 28 | - | |
| 29 | 106 | <p> |
| 30 | - <?php echo '<strong>'.esc_html__('More quality plugins', 'wp-optimize').': </strong>'.$wp_optimize->wp_optimize_url('https://www.simbahosting.co.uk/s3/shop/', __('Premium WooCommerce plugins', 'wp-optimize'), '', '', true); ?> | |
| 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 | + ?> | |
| 31 | 111 | </p> |
| 32 | - | |
| 112 | + <p> </p> | |
| 33 | 113 | </div> |
| 34 | - <p> </p> | |
| 35 | 114 | </div> |