initial commit

This commit is contained in:
2024-04-29 13:12:44 +05:45
commit 34887303c5
19300 changed files with 5268802 additions and 0 deletions

View File

@ -0,0 +1,335 @@
<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?>
<div class="wpo_col wpo_half_width wpo_feature_cont">
<header>
<h2><?php _e("WP-Optimize free / premium comparison", 'wp-optimize');?></h2>
<p>
<?php $wp_optimize->wp_optimize_url('https://getwpo.com/faqs/', __('FAQs', 'wp-optimize')); ?> |
<?php $wp_optimize->wp_optimize_url('https://getwpo.com/ask-pre-sales-question/', __('Ask a pre-sales question', 'wp-optimize')); ?>
</p>
</header>
<table class="wpo_feat_table">
<tbody>
<tr>
<td></td>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/notices/wp_optimize_logo.png';?>" alt="WP-Optimize" width="80" height="80">
<br>
<?php _e('Free', 'wp-optimize');?>
</td>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/notices/wp_optimize_logo.png';?>" alt="<?php esc_attr_e('WP-Optimize Premium', 'wp-optimize');?>" width="80" height="80">
<br>
<?php _e('Premium', 'wp-optimize');?>
</td>
</tr>
<tr>
<td></td>
<td>
<p><?php _e('Installed', 'wp-optimize');?></p>
</td>
<td>
<p><a href="<?php esc_attr_e(apply_filters('wpo_premium_buy_url', 'https://getwpo.com/buy/'));?>"><?php _e('Upgrade now', 'wp-optimize');?></a></p>
</td>
</tr>
<tr class="wpo-main-feature-row">
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/database-optimization-vehicle-64x64.png';?>" alt="<?php esc_attr_e('Database cleaning', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Database cleaning', 'wp-optimize');?></h4>
<p><?php _e('Clears out unnecessary data, cleans up your tables and retrieves space lost to data fragmentation.', 'wp-optimize'); ?></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr class="wpo-main-feature-row">
<td>
<img src="<?php echo WPO_PLUGIN_URL.'images/features/image-compression-vehicle-64x64.png';?>" alt="<?php esc_attr_e('Image compression', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Image compression', 'wp-optimize');?></h4>
<p><?php _e('Compress your images for a much faster page load.', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr class="wpo-main-feature-row">
<td>
<img src="<?php echo WPO_PLUGIN_URL.'images/features/cache-vehicle-64x64.png';?>" alt="<?php esc_attr_e('Caching', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Caching', 'wp-optimize');?></h4>
<p><?php _e('Cache your page and post for even more speed.', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/multisite-support.png';?>" alt="<?php esc_attr_e('Multisite support', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Multisite support', 'wp-optimize');?></h4>
<p><?php _e('Optimize any site (or combination of sites) on your WordPress Multisite or network', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/optimize-individual.png';?>" alt="<?php esc_attr_e('Optimize individual tables', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Optimize individual tables', 'wp-optimize');?></h4>
<p><?php _e('Perform optimizations on single tables', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/remove-unwanted-img.png';?>" alt="<?php esc_attr_e('Remove unwanted images', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Remove unwanted images', 'wp-optimize');?></h4>
<p><?php _e('Remove images that have been orphaned or are no longer in use', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/scheduling.png';?>" alt="<?php esc_attr_e('Multisite support', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Sophisticated scheduling', 'wp-optimize');?></h4>
<p><?php _e('A more advanced scheduling system to make regular routine optimizations whenever you prefer', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/wp-cli.png';?>" alt="<?php esc_attr_e('Control with WP-CLI', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Control with WP-CLI', 'wp-optimize');?></h4>
<p><?php _e('Save time managing multiple sites from the WP command line', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/lazy-load.png';?>" alt="<?php esc_attr_e('Lazy Loading', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Lazy Loading', 'wp-optimize');?></h4>
<p><?php _e('Make your site run faster by only loading parts of a web-page when it is visible to the user', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/optimization-preview.png';?>" alt="<?php esc_attr_e('Optimization Preview', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Optimization Preview', 'wp-optimize');?></h4>
<p><?php _e('Preview, select and remove data and records available for optimization from the database', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/logging-n-reporting.png';?>" alt="<?php esc_attr_e('Enhanced logging and reporting', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Enhanced logging and reporting', 'wp-optimize');?></h4>
<p><?php _e('Send log messages to three additional locations: Slack, Syslog and Simple History', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/choice-n-flexibility.png';?>" alt="<?php esc_attr_e('More choice and flexibility', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('More choice and flexibility', 'wp-optimize');?></h4>
<p><?php _e('Choose from a number of advanced options, like the ability to optimize individual DB tables', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/geolocation.png';?>" alt="<?php esc_attr_e('Geolocation for WooCommerce', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Geolocation and tax country for WooCommerce', 'wp-optimize');?></h4>
<p><?php _e('Anyone running an international WooCommerce store needs this: serve country specific content to your customers, appropriate VAT, pricing, all cached for great performance', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/more-settings.png';?>" alt="<?php esc_attr_e('Multilingual and multi-currency compatible', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Multilingual and multi-currency compatible', 'wp-optimize');?></h4>
<p><?php _e('Cache supports WPML multilingual plugin and multiple currencies for WooCommerce', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/choice-n-flexibility.png';?>" alt="<?php esc_attr_e('More caching options', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('More caching options', 'wp-optimize');?></h4>
<p><?php _e('Exclude posts and pages from the cache, straight from the post edit screen.', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/lazy-load.png';?>" alt="<?php esc_attr_e('Preload key requests', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Preload key requests', 'wp-optimize');?></h4>
<p><?php _e('Preload assets such as web fonts and icon fonts, as recommended by Google PageSpeed Insights', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/advanced.png';?>" alt="<?php esc_attr_e('Power tweaks', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Power tweaks', 'wp-optimize');?></h4>
<p><?php _e('Catered towards more advanced users, the power tweaks will enable you to improve performance by targeting specific weak points, either in WordPress Core, or in popular plugins', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td>
<img src="<?php echo WPO_PLUGIN_URL.'/images/features/premium-support.png';?>" alt="<?php esc_attr_e('Premium support', 'wp-optimize');?>" class="wpo-premium-image">
<h4><?php _e('Premium support', 'wp-optimize');?></h4>
<p><?php _e('Get your specific queries addressed directly by our experts', 'wp-optimize');?></p>
</td>
<td>
<p><span class="dashicons dashicons-no-alt" aria-label="<?php esc_attr_e('No', 'wp-optimize');?>"></span></p>
</td>
<td>
<p><span class="dashicons dashicons-yes" aria-label="<?php esc_attr_e('Yes', 'wp-optimize');?>"></span></p>
</td>
</tr>
<tr>
<td></td>
<td>
<p><?php _e('Installed', 'wp-optimize');?></p>
</td>
<td>
<p><a href="<?php esc_attr_e(apply_filters('wpo_premium_buy_url', 'https://getwpo.com/buy/'));?>"><?php _e('Upgrade now', 'wp-optimize');?></a></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="wpo_col wpo_half_width wpo_plugin_family_cont wpo-plugin-family__free">
<header>
<h2><?php _e("Our other plugins", 'wp-optimize');?></h2>
<p>
<?php $wp_optimize->wp_optimize_url('https://updraftplus.com/', 'UpdraftPlus'); ?> |
<?php $wp_optimize->wp_optimize_url('https://updraftplus.com/updraftcentral/', 'UpdraftCentral'); ?> |
</p>
</header>
<div class="wpo-plugin-family__plugins">
<div class="wpo-plugin-family__plugin">
<?php
$wp_optimize->wp_optimize_url('https://updraftplus.com/', null, '<img class="addons" alt="'.__("UpdraftPlus", 'wp-optimize').'" src="'. WPO_PLUGIN_URL.'images/features/updraftplus_logo.png' .'">');
$wp_optimize->wp_optimize_url('https://updraftplus.com/', null, '<h3>'.__('UpdraftPlus the ultimate protection for your site, hard work and business', 'wp-optimize').'</h3>', 'class="other-plugin-title"');
?>
<p>
<?php _e("If youve got a WordPress website, you need a backup.", 'wp-optimize');?>
</p>
<p>
<?php _e("Hacking, server crashes, dodgy updates or simple user error can ruin everything.", 'wp-optimize');?>
</p>
<p>
<?php _e("With UpdraftPlus, you can rest assured that if the worst does happen, it's no big deal. rather than losing everything, you can simply restore the backup and be up and running again in no time at all.", 'wp-optimize');?>
</p>
<p>
<?php _e("You can also migrate your website with few clicks without hassle.", 'wp-optimize');?>
</p>
<p>
<?php _e("With a long-standing reputation for excellence and outstanding reviews, its no wonder that UpdraftPlus is the worlds most popular WordPress backup plugin.", 'wp-optimize');?>
</p>
<?php $wp_optimize->wp_optimize_url('https://updraftplus.com/', null, __('Try for free', 'wp-optimize')); ?>
</div>
<div class="wpo-plugin-family__plugin">
<?php
$wp_optimize->wp_optimize_url('https://updraftplus.com/updraftcentral/', null, '<img class="addons" alt="'.__("UpdraftCentral Dashboard
", 'wp-optimize').'" src="'. WPO_PLUGIN_URL.'images/features/updraftcentral_logo.png' .'">');
$wp_optimize->wp_optimize_url('https://updraftplus.com/', null, '<h3>'.__('UpdraftCentral save hours managing multiple WP sites from one place', 'wp-optimize').'</h3>', 'class="other-plugin-title"');
?>
<p>
<?php _e("If you manage a few WordPress sites, you need UpdraftCentral.", 'wp-optimize');?>
</p>
<p>
<?php _e("UpdraftCentral is a powerful tool that allows you to efficiently manage, update, backup and even restore multiple websites from just one location. You can also manage users and comments on all the sites at once, and through its central login feature, you can access each WP-dashboard with a single click.", 'wp-optimize');?>
</p>
<p>
<?php _e("With a wide range of useful features, including automated backup schedules and sophisticated one click updates, UpdraftCentral is sure to boost to your productivity and save you time.", 'wp-optimize');?>
</p>
<?php $wp_optimize->wp_optimize_url('https://updraftplus.com/updraftcentral/', null, __('Try for free', 'wp-optimize')); ?>
</div>
</div><!-- END wpo-plugin-family__plugins -->
</div>
<div class="clear"></div>

View File

@ -0,0 +1,21 @@
<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?>
<h3 class="wpo-first-child"><?php _e('General settings', 'wp-optimize'); ?></h3>
<div class="wpo-fieldgroup">
<p>
<label>
<input name="enable-admin-bar" id="enable-admin-bar" type="checkbox" value ="true" <?php echo ($options->get_option('enable-admin-menu', 'false') == 'true') ? 'checked="checked"' : ''; ?> />
<?php _e('Enable admin bar menu', 'wp-optimize'); ?>
</label>
<br>
<small><?php _e('This option will add a link labeled "WP-Optimize" in the top admin bar, for easy access to the different features.', 'wp-optimize'); ?> <?php _e('Requires a page refresh after saving the settings.', 'wp-optimize'); ?></small>
</p>
<p>
<label>
<input name="enable_cache_in_admin_bar" id="enable-cache-admin-bar" type="checkbox" value ="1" <?php checked($options->get_option('enable_cache_in_admin_bar', true)); ?> />
<?php _e('Enable the caching menu in the admin bar', 'wp-optimize'); ?>
</label>
<br>
<small><?php _e('This option will add a caching menu on the top admin bar.', 'wp-optimize'); ?> <?php _e('Requires a page refresh after saving the settings.', 'wp-optimize'); ?></small>
</p>
</div>

View File

@ -0,0 +1,91 @@
<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?>
<h3><?php _e('Logging settings', 'wp-optimize'); ?></h3>
<div id="wp-optimize-logger-settings" class="wpo-fieldgroup">
<p>
<a href="#" id="wpo_add_logger_link" class="wpo-repeater__add"><span class="dashicons dashicons-plus"></span> <?php _e('Add logging destination', 'wp-optimize'); ?></a>
</p>
<div class="save_settings_reminder"><?php _e('Remember to save your settings so that your changes take effect.', 'wp-optimize');?></div>
<div id="wp-optimize-logging-options">
<?php
$loggers = $wp_optimize->get_logger()->get_loggers();
if (count($loggers) > 0) {
?>
<div class="wpo_logging_header">
<div class="wpo_logging_logger_title"><?php _e('Destination', 'wp-optimize'); ?></div>
<div class="wpo_logging_options_title"><?php _e('Options', 'wp-optimize'); ?></div>
<div class="wpo_logging_status_title"><?php _e('Status', 'wp-optimize'); ?></div>
<div class="wpo_logging_actions_title"><?php _e('Actions', 'wp-optimize'); ?></div>
</div>
<?php
foreach ($loggers as $logger) {
$logger_id = strtolower(get_class($logger));
?>
<div class="wpo_logging_row" data-id="<?php echo $logger_id; ?>">
<div class="wpo_logging_logger_row"><span
class="dashicons dashicons-arrow-right"></span><?php echo $logger->get_description(); ?>
</div>
<div class="wpo_logging_options_row"><?php echo $logger->get_options_text(); ?></div>
<div class="wpo_logging_status_row"><?php echo ($logger->is_enabled() && $logger->is_available()) ? __('Active', 'wp-optimize') : __('Inactive', 'wp-optimize'); ?></div>
<div class="wpo_logging_actions_row"><a href="#" class="dashicons dashicons-edit"></a><a
href="#" class="wpo_delete_logger dashicons dashicons-no-alt"></a></div>
<div class="wpo_additional_logger_options wpo_hidden">
<input class="wpo_hidden" type="hidden" name="wpo-logger-type[]"
value="<?php echo $logger_id; ?>"/>
<?php
$options_list = $logger->get_options_list();
$options_values = $logger->get_options_values();
if (!empty($options_list)) {
foreach ($options_list as $option_name => $placeholder) {
// check if settings item defined as array.
if (is_array($placeholder)) {
$validate = $placeholder[1];
$placeholder = $placeholder[0];
} else {
$validate = '';
}
$data_validate_attr = ('' !== $validate ? 'data-validate="'.esc_attr($validate).'"' : '');
?>
<input class="wpo_logger_addition_option" type="text"
name="wpo-logger-options[<?php echo esc_attr($option_name); ?>][]"
value="<?php echo esc_attr($options_values[$option_name]); ?>"
placeholder="<?php echo esc_attr($placeholder); ?>"
<?php echo $data_validate_attr; ?> "/>
<?php
}
}
?>
<label>
<input class="wpo_logger_active_checkbox"
type="checkbox" <?php checked($logger->is_enabled() && $logger->is_available()); ?> <?php disabled($logger->is_available(), false); ?>>
<input type="hidden" name="wpo-logger-options[active][]"
value="<?php echo $logger->is_enabled() ? '1' : '0'; ?>"/>
<?php _e('Active', 'wp-optimize'); ?>
</label>
</div>
</div>
<?php
}
?>
<?php
}
?>
</div><!-- End #wp-optimize-logging-options -->
</div><!-- End #wp-optimize-logger-settings -->

View File

@ -0,0 +1,71 @@
<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?>
<?php
$trackback_action_arr = $options->get_option('trackbacks_action', array());
$comments_action_arr = $options->get_option('comments_action', array());
?>
<h3><?php _e('Trackback/comments actions', 'wp-optimize'); ?></h3>
<div class="wpo-fieldgroup">
<div class="wpo-fieldgroup__subgroup">
<h3 class="wpo-first-child"><?php _e('Trackbacks', 'wp-optimize'); ?></h3>
<div id="trackbacks_notice"></div>
<p>
<small><?php _e('Use these buttons to enable or disable any future trackbacks on all your previously published posts.', 'wp-optimize'); ?></small>
</p>
<p>
<button class="button btn-updraftplus" type="button" id="wp-optimize-disable-enable-trackbacks-enable" name="wp-optimize-disable-enable-trackbacks-enable"><?php _e('Enable', 'wp-optimize'); ?></button>
<button class="button btn-updraftplus" type="button" id="wp-optimize-disable-enable-trackbacks-disable" name="wp-optimize-disable-enable-trackbacks-disable"><?php _e('Disable', 'wp-optimize'); ?></button>
<img id="trackbacks_spinner" class="wpo_spinner" src="<?php esc_attr_e(admin_url('images/spinner-2x.gif')); ?>" alt="...">
<span id="trackbacks_actionmsg">
<?php
if (!empty($trackback_action_arr)) {
$trackback_action_timestamp = WP_Optimize()->format_date_time($trackback_action_arr['timestamp']);
if ($trackback_action_arr['action']) {
echo sprintf(__('All trackbacks on existing posts were enabled on the %s.', 'wp-optimize'), $trackback_action_timestamp);
} else {
echo sprintf(__('All trackbacks on existing posts were disabled on the %s.', 'wp-optimize'), $trackback_action_timestamp);
}
}
?>
</span>
</p>
</div>
<div class="wpo-fieldgroup__subgroup">
<h3><?php _e('Comments', 'wp-optimize'); ?></h3>
<div id="comments_notice"></div>
<p><small><?php _e('Use these buttons to enable or disable any future comments on all your previously published posts.', 'wp-optimize'); ?></small></p>
<p>
<button class="button btn-updraftplus" type="button" id="wp-optimize-disable-enable-comments-enable" name="wp-optimize-disable-enable-comments-enable"><?php _e('Enable', 'wp-optimize'); ?></button>
<button class="button btn-updraftplus" type="button" id="wp-optimize-disable-enable-comments-disable" name="wp-optimize-disable-enable-comments-disable"><?php _e('Disable', 'wp-optimize'); ?></button>
<img id="comments_spinner" class="wpo_spinner" src="<?php esc_attr_e(admin_url('images/spinner-2x.gif')); ?>" alt="...">
<span id="comments_actionmsg">
<?php
if (!empty($comments_action_arr)) {
$comments_action_timestamp = WP_Optimize()->format_date_time($comments_action_arr['timestamp']);
if ($comments_action_arr['action']) {
echo sprintf(__('All comments on existing posts were enabled on the %s.', 'wp-optimize'), $comments_action_timestamp);
} else {
echo sprintf(__('All comments on existing posts were disabled on the %s.', 'wp-optimize'), $comments_action_timestamp);
}
}
?>
</span>
</p>
</div>
</div>

View File

@ -0,0 +1,45 @@
<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?>
<div id="wp-optimize-general-settings" class="wpo_section wpo_group">
<form action="#" method="post" enctype="multipart/form-data" name="settings_form" id="settings_form">
<div id="wpo_settings_warnings"></div>
<?php WP_Optimize()->include_template('settings/settings-general.php'); ?>
<?php WP_Optimize()->include_template('settings/settings-trackback-and-comments.php'); ?>
<?php WP_Optimize()->include_template('settings/settings-logging.php'); ?>
<?php do_action('wpo_after_general_settings'); ?>
<div id="wp-optimize-settings-save-results"></div>
<input type="hidden" name="action" value="save_redirect">
<?php wp_nonce_field('wpo_optimization'); ?>
<h3 class="wpo-first-child"><?php _e('Wipe settings', 'wp-optimize'); ?></h3>
<div class="wpo-fieldgroup">
<p>
<small><?php _e('This button will delete all of WP-Optimize\'s settings. You will then need to enter all your settings again. You can also do this before deactivating/deinstalling WP-Optimize if you wish.', 'wp-optimize'); ?></small>
<br>
<br>
<input class="button wpo-wipe-settings" type="button" name="wp-optimize-wipe-settings" value="<?php esc_attr_e('Wipe settings', 'wp-optimize'); ?>" />
<img class="wpo_spinner" src="<?php echo esc_attr(admin_url('images/spinner-2x.gif')); ?>" alt="...">
<span class="dashicons dashicons-yes display-none save-done"></span>
</p>
</div>
<div>
<input class="button button-primary wpo-save-settings" type="submit" name="wp-optimize-settings" value="<?php esc_attr_e('Save settings', 'wp-optimize'); ?>" />
<img class="wpo_spinner wpo-saving-settings" src="<?php echo esc_attr(admin_url('images/spinner-2x.gif')); ?>" alt="...">
<span class="dashicons dashicons-yes display-none save-done"></span>
</div>
</form>
</div><!-- end #wp-optimize-general-settings -->

View File

@ -0,0 +1,11 @@
<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?>
<h3><?php _e('Support and feedback', 'wp-optimize'); ?></h3>
<div class="wpo-fieldgroup">
<?php WP_Optimize()->include_template('settings/system-status.php'); ?>
<ul>
<li><?php WP_Optimize()->wp_optimize_url('https://getwpo.com/faqs/', __("Read our FAQ here", 'wp-optimize')); ?></li>
<li><a href="https://wordpress.org/support/plugin/wp-optimize/"><?php _e('Support is available here.', 'wp-optimize'); ?></a></li>
<li><?php echo __('If you like WP-Optimize,', 'wp-optimize').' <a href="https://wordpress.org/support/plugin/wp-optimize/reviews/?rate=5#new-post" target="_blank">'.__('please give us a positive review, here.', 'wp-optimize'); ?></a> <?php echo __('Or, if you did not like it,', 'wp-optimize').' <a target="_blank" href="https://wordpress.org/support/plugin/wp-optimize/">'.__('please tell us why at this link.', 'wp-optimize'); ?></a></li>
</ul>
</div>

View File

@ -0,0 +1,6 @@
<?php if (!defined('WPO_VERSION')) die('No direct access allowed');
$sqlversion = (string) $wp_optimize->get_db_info()->get_version();
?>
<p class="wpo-system-status"><em>WP-Optimize <?php echo WPO_VERSION; ?> - <?php _e('running on:', 'wp-optimize'); ?> PHP <?php echo htmlspecialchars(PHP_VERSION); ?>, MySQL <?php echo htmlspecialchars($sqlversion); ?> - <?php echo htmlspecialchars(PHP_OS); ?></em></p>