initial commit
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
<?php if (!defined('ABSPATH')) die('No direct access.'); ?>
|
||||
<div class="wpo_info below-h2">
|
||||
|
||||
<?php if ($message) : ?>
|
||||
<h3><?php _e('Page caching issue.', 'wp-optimize'); ?></h3>
|
||||
<p><?php echo $message; ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
@ -0,0 +1,88 @@
|
||||
<?php if (!defined('WPO_PLUGIN_MAIN_PATH')) die('No direct access allowed'); ?>
|
||||
|
||||
<?php if (!empty($button_meta) && 'review' == $button_meta) : ?>
|
||||
|
||||
<div class="updraft-ad-container updated below-h2">
|
||||
<div class="updraft_notice_container updraft_review_notice_container">
|
||||
<div class="updraft_advert_content_left_extra">
|
||||
<img src="<?php echo WPO_PLUGIN_URL.'/images/'.$image;?>" width="85" alt="<?php _e('notice image', 'wp-optimize');?>" />
|
||||
</div>
|
||||
<div class="updraft_advert_content_right">
|
||||
<p>
|
||||
<?php echo $text; ?>
|
||||
</p>
|
||||
|
||||
<?php if (!empty($button_link)) { ?>
|
||||
<div class="updraft_advert_button_container">
|
||||
<a class="button button-primary" href="<?php esc_attr_e($button_link);?>" target="_blank" onclick="jQuery('.updraft-ad-container').slideUp(); jQuery.post(ajaxurl, {action: 'wp_optimize_ajax', subaction: '<?php echo $dismiss_time;?>', nonce: '<?php echo wp_create_nonce('wp-optimize-ajax-nonce');?>', dismiss_forever: '1' });">
|
||||
<?php _e('Ok, you deserve it', 'wp-optimize'); ?>
|
||||
</a>
|
||||
<div class="dashicons dashicons-calendar"></div>
|
||||
<a class="updraft_notice_link" href="#" onclick="jQuery('.updraft-ad-container').slideUp(); jQuery.post(ajaxurl, {action: 'wp_optimize_ajax', subaction: '<?php echo $dismiss_time;?>', nonce: '<?php echo wp_create_nonce('wp-optimize-ajax-nonce');?>', dismiss_forever: '0' });">
|
||||
<?php _e('Maybe later', 'wp-optimize'); ?>
|
||||
</a>
|
||||
<div class="dashicons dashicons-no-alt"></div>
|
||||
<a class="updraft_notice_link" href="#" onclick="jQuery('.updraft-ad-container').slideUp(); jQuery.post(ajaxurl, {action: 'wp_optimize_ajax', subaction: '<?php echo $dismiss_time;?>', nonce: '<?php echo wp_create_nonce('wp-optimize-ajax-nonce');?>', dismiss_forever: '1' });"><?php _e('Never', 'wp-optimize'); ?></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<div class="updraft-ad-container updated below-h2">
|
||||
<div class="updraft_notice_container">
|
||||
<div class="updraft_advert_content_left">
|
||||
<img src="<?php echo WPO_PLUGIN_URL.'/images/'.$image; ?>" width="60" height="60" alt="<?php _e('notice image', 'wp-optimize'); ?>" />
|
||||
</div>
|
||||
<div class="updraft_advert_content_right">
|
||||
<h3 class="updraft_advert_heading">
|
||||
<?php
|
||||
if (!empty($prefix)) echo $prefix.' ';
|
||||
echo $title;
|
||||
?>
|
||||
<div class="updraft-advert-dismiss">
|
||||
<?php if (!empty($dismiss_time)) { ?>
|
||||
<a href="#" onclick="jQuery('.updraft-ad-container').slideUp(); jQuery.post(ajaxurl, {action: 'wp_optimize_ajax', subaction: '<?php echo $dismiss_time; ?>', nonce: '<?php echo wp_create_nonce('wp-optimize-ajax-nonce'); ?>' });"><?php _e('Dismiss', 'wp-optimize'); ?></a>
|
||||
<?php } else { ?>
|
||||
<a href="#" onclick="jQuery('.updraft-ad-container').slideUp();"><?php _e('Dismiss', 'wp-optimize'); ?></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</h3>
|
||||
<p>
|
||||
<?php
|
||||
echo $text;
|
||||
$button_text = '';
|
||||
if (isset($discount_code)) echo ' <b>' . $discount_code . '</b>';
|
||||
|
||||
if (!empty($button_link) && !empty($button_meta)) {
|
||||
// Check which Message is going to be used.
|
||||
if ('updraftcentral' == $button_meta) {
|
||||
$button_text = __('Get UpdraftCentral', 'wp-optimize');
|
||||
} elseif ('updraftplus' == $button_meta) {
|
||||
$button_text = __('Get UpdraftPlus', 'wp-optimize');
|
||||
} elseif ('signup' == $button_meta) {
|
||||
$button_text = __('Sign up', 'wp-optimize');
|
||||
} elseif ('go_there' == $button_meta) {
|
||||
$button_text = __('Go there', 'wp-optimize');
|
||||
} elseif ('wpo-premium' == $button_meta) {
|
||||
$button_text = __('Find out more.', 'wp-optimize');
|
||||
} elseif ('wp-optimize' == $button_meta) {
|
||||
$button_text = __('Find out more.', 'wp-optimize');
|
||||
} elseif ('collection' == $button_meta) {
|
||||
$button_text = __('Read more.', 'wp-optimize');
|
||||
}
|
||||
$wp_optimize->wp_optimize_url($button_link, $button_text, null, 'class="updraft_notice_link"');
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
endif;
|
@ -0,0 +1,59 @@
|
||||
<?php if (!defined('ABSPATH')) die('No direct access.'); ?>
|
||||
<div class="notice wpo-introduction-notice is-dismissible below-h2">
|
||||
|
||||
<?php if ($is_new_install) : ?>
|
||||
|
||||
<h3><?php _e('Thank you for installing WP-Optimize!', 'wp-optimize'); ?></h3>
|
||||
<p><?php _e('The team at WP-Optimize is working hard to make your site fast and efficient.', 'wp-optimize'); ?></p>
|
||||
<p>
|
||||
<?php printf(_x('The plugin settings are split into three parts: %sclean%s the database, %scompress%s images and %scaching%s.', '%s will be replaced by a "strong" tag', 'wp-optimize'), '<strong>', '</strong>', '<strong>', '</strong>', '<strong>', '</strong>'); ?>
|
||||
</p>
|
||||
<p><?php printf(__('If you are unsure what settings to use, please take a look at the %sdocumentation%s.', 'wp-optimize'), '<a href="'.WP_Optimize()->maybe_add_affiliate_params('https://getwpo.com/support/').'">', '</a>'); ?></p>
|
||||
<p>
|
||||
<?php printf(_x('We also recently added the ability to %scombine and minify%s CSS, JavaScript and HTML, for an increased performance boost.', '%s will be replaced by a "strong" tag', 'wp-optimize'), '<strong>', '</strong>'); ?>
|
||||
<?php printf(_x('Read more about this feature %son our website%s.', '%s will be replaced by a link tag', 'wp-optimize'), '<a href="'.WP_Optimize()->maybe_add_affiliate_params('https://getwpo.com/faqs/category/minification/').'" target="_blank">', '</a>'); ?>
|
||||
</p>
|
||||
<?php if (!$is_updraftplus_installed) : ?>
|
||||
<p>
|
||||
<?php printf(__('But first, we strongly recommend you backup your site with %sUpdraftPlus%s.', 'wp-optimize'), '<a href="'.WP_Optimize()->maybe_add_affiliate_params('https://updraftplus.com/').'">', '</a>'); ?>
|
||||
<?php _e('WP-Optimize can trigger UpdraftPlus to automatically back up right before any optimization takes place, so you can undo any changes you make.', 'wp-optimize'); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php if (!$is_premium) : ?>
|
||||
<p><?php printf(__('Finally, please take a look at our %spremium version%s, which is packed full of additional speed enhancements to make your site go even faster!', 'wp-optimize'), '<a href="'.WP_Optimize()->maybe_add_affiliate_params('https://getwpo.com/buy/').'">', '</a>'); ?></p>
|
||||
<?php endif; ?>
|
||||
<div class="wpo-introduction-notice__footer">
|
||||
<p class="wpo-introduction-notice__footer-links font-size__normal">
|
||||
<button type="button" class="button button-primary close"><?php _e('Dismiss', 'wp-optimize'); ?></button>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<h3><?php _e('Thank you for updating WP-Optimize!', 'wp-optimize'); ?></h3>
|
||||
<p><?php _e('The team at WP-Optimize is working hard to make your site fast and efficient.', 'wp-optimize'); ?></p>
|
||||
<p>
|
||||
<?php printf(_x('This new version includes a new major feature: the ability to %s minify your scripts and stylesheets.%s', '%s will be replaced by a "strong" tag', 'wp-optimize'), '<strong>', '</strong>'); ?>
|
||||
<?php _e("This highly requested feature adds an extra layer of optimization to your website, lowering the number of requests sent to your server by combining and minifying the JavaScript and CSS files.", 'wp-optimize'); ?>
|
||||
<a href="#" class="js--wpo-goto" data-page="wpo_minify" data-tab="status"><?php _e('Go to minify settings.', 'wp-optimize'); ?></a>
|
||||
</p>
|
||||
<p><?php _e("If you already have plugins for minifying, don't worry - WP-Optimize won't interfere unless you turn these options on.", 'wp-optimize'); ?></p>
|
||||
<p><?php printf(_x('Read more about this feature %son our website%s.', '%s will be replaced by a link tag', 'wp-optimize'), '<a href="'.WP_Optimize()->maybe_add_affiliate_params('https://getwpo.com/faqs/category/minification/').'" target="_blank">', '</a>'); ?></p>
|
||||
<?php if (!$is_premium) : ?>
|
||||
<p class="wpo-introduction-notice__footer-links--premium"><?php printf(_x('PS - check out our new improved Premium version %shere%s.', '%s is replaced by a link tag', 'wp-optimize'), '<a href="'.'https://getwpo.com/buy/'.'" target="_blank">', '</a>'); ?></p>
|
||||
<?php endif; ?>
|
||||
<div class="wpo-introduction-notice__footer">
|
||||
<p class="wpo-introduction-notice__footer-links font-size__normal">
|
||||
<button type="button" class="button button-primary close"><?php _e('Dismiss', 'wp-optimize'); ?></button>
|
||||
<?php if ($is_premium) : ?>
|
||||
<?php printf(__('%sRead the full WP-Optimize documentation%s, or if you have any questions, please ask %sPremium support%s', 'wp-optimize'), '<a target="_blank" href="'.WP_Optimize()->maybe_add_affiliate_params('https://getwpo.com/faqs/').'">', '</a>', '<a target="_blank" href="'.WP_Optimize()->maybe_add_affiliate_params('https://getwpo.com/premium-support/').'">', '</a>'); ?>
|
||||
<?php else : ?>
|
||||
<?php WP_Optimize()->wp_optimize_url('https://getwpo.com/faqs/', __('Read the documentation', 'wp-optimize')); ?>
|
||||
| <?php WP_Optimize()->wp_optimize_url('https://wordpress.org/support/plugin/wp-optimize/', __('Support', 'wp-optimize')); ?>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
@ -0,0 +1,34 @@
|
||||
<?php if (!defined('WPO_PLUGIN_MAIN_PATH')) die('No direct access allowed'); ?>
|
||||
|
||||
<div id="wp-optimize-dashnotice" class="updated below-h2">
|
||||
|
||||
<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 wp_create_nonce('wp-optimize-ajax-nonce'); ?>' });"><?php printf(__('Dismiss (for %s months)', 'wp-optimize'), 12); ?></a></div>
|
||||
|
||||
<h3><?php _e("Thank you for installing WP-Optimize!", 'wp-optimize'); ?></h3>
|
||||
|
||||
<a href="https://getwpo.com"><img style="border: 0px; float: right; height: 125px; width: 150px; margin-right: 40px;" alt="WP-Optimize" src="<?php echo WPO_PLUGIN_URL.'/images/logo/wpo_logo_small.png'; ?>"></a>
|
||||
|
||||
<div id="wp-optimize-dashnotice-wrapper" style="max-width: 800px;">
|
||||
|
||||
<p>
|
||||
<?php echo htmlspecialchars(__('Super-charge and secure your WordPress site with our other top plugins:', 'wp-optimize')); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php printf(__('%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:', 'wp-optimize'), '', '', true).'</strong>'); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php printf(__('%s simplifies backups and restoration. It is the world’s highest ranking and most popular scheduled backup plugin, with over a million currently-active installs.', 'wp-optimize'), '<strong>'.$wp_optimize->wp_optimize_url('https://wordpress.org/plugins/updraftplus/', 'UpdraftPlus', '', '', true).'</strong>'); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php printf(__('%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>'); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong><?php $wp_optimize->wp_optimize_url('https://www.simbahosting.co.uk/s3/shop/', __('Premium WooCommerce extensions', 'wp-optimize')); ?></strong>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user