Download all files FTP
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
if (!defined('ABSPATH')) die('No direct access.');
|
||||
echo '<div class="eum-advanced-settings-container admin-bar">';
|
||||
printf('<h3>%s</h3>', esc_html__('Disable/enable the Easy Updates Manager admin bar menu', 'stops-core-theme-and-plugin-updates'));
|
||||
printf('<p>%s</p>', esc_html__('The Easy Updates Manager admin bar displays at the top of your installation and allows quick actions to Easy Updates Manager options such as logs and advanced options.', 'stops-core-theme-and-plugin-updates'));
|
||||
$options = MPSUM_Updates_Manager::get_options('core');
|
||||
if (!isset($options['enable_admin_bar'])) {
|
||||
$options['enable_admin_bar'] = 'on';
|
||||
}
|
||||
echo '<div id="adminbar">';
|
||||
if ('on' === $options['enable_admin_bar']) {
|
||||
printf('<p class="submit"><input type="submit" name="submit" id="disable-admin-bar" class="button button-primary" value="%s"></p>', esc_attr__('Disable', 'stops-core-theme-and-plugin-updates'));
|
||||
} else {
|
||||
printf('<p class="submit"><input type="submit" name="submit" id="enable-admin-bar" class="button button-primary" value="%s"></p>', esc_attr__('Enable', 'stops-core-theme-and-plugin-updates'));
|
||||
}
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php if (!defined('ABSPATH')) die('No direct access.'); ?>
|
||||
<div id="result"><?php
|
||||
$reset_options = get_site_option('easy_updates_manager_reset');
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- A nonce has already been checked by this point (in the AJAX handler) as part of the 'reset settings' action. It is not a form data.
|
||||
if (isset($_GET['action']) && 'reset' == $_GET['action'] && false !== $reset_options && 'true' === $reset_options) {
|
||||
?>
|
||||
<div class="updated eum-updated"><p>
|
||||
<?php
|
||||
esc_html_e('The plugin settings have now been reset.', 'stops-core-theme-and-plugin-updates');
|
||||
?>
|
||||
</p></div>
|
||||
<?php
|
||||
delete_site_option('easy_updates_manager_reset');
|
||||
}
|
||||
?></div>
|
||||
<div id="eum-adv-settings-container">
|
||||
<div id="eum-adv-settings-menu" class="wp-clearfix">
|
||||
<div>
|
||||
<?php do_action('eum_advanced_headings'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="eum-adv-settings">
|
||||
<?php do_action('eum_advanced_settings'); ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php if (!defined('ABSPATH')) die('No direct access.'); ?>
|
||||
<div id="result"></div>
|
||||
<h3><?php esc_html_e('Clear logs', 'stops-core-theme-and-plugin-updates'); ?></h3>
|
||||
<?php
|
||||
printf('<p class="submit"><input type="submit" name="clear-log" id="clear-logs" class="button button-primary" value="%1$s" /></p>', esc_attr__('Clear now', 'stops-core-theme-and-plugin-updates'));
|
||||
do_action('eum_logs');
|
||||
?>
|
||||
<h3><?php esc_html_e('Update logs', 'stops-core-theme-and-plugin-updates'); ?></h3>
|
||||
<p><?php esc_html_e('Please note that this feature does not necessarily work for premium themes and plugins.', 'stops-core-theme-and-plugin-updates');?></p>
|
||||
<?php
|
||||
$core_options = MPSUM_Updates_Manager::get_options('core');
|
||||
$logs_table = new MPSUM_Logs_List_Table($args = array('paged' => $paged, 'view' => $view, 'status' => $status, 'action_type' => $action_type, 'type' => $type, 'm' => $m, 'is_search' => $is_search, 'search_term' => $search_term, 'order' => $order));
|
||||
$logs_table->prepare_items();
|
||||
$logs_table->views();
|
||||
$logs_table->display();
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
/**
|
||||
* There is no php code for this file
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
?>
|
||||
<div class="eum-dashboard-app"></div>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php if (!defined('ABSPATH')) die('No direct access.'); ?>
|
||||
<h3><?php esc_html_e('Plugin update options', 'stops-core-theme-and-plugin-updates'); ?></h3>
|
||||
<?php
|
||||
$core_options = MPSUM_Updates_Manager::get_options('core');
|
||||
if (false === MPSUM_Admin_Plugins::can_update_plugins()) {
|
||||
printf('<div class="error"><p><strong>%s</strong></p></div>', esc_html__('All plugin updates have been disabled.', 'stops-core-theme-and-plugin-updates'));
|
||||
}
|
||||
do_action('eum_plugins_tab_header');
|
||||
$plugin_table = new MPSUM_Plugins_List_Table($args = array('screen' => $slug, 'paged' => $paged, 'view' => $view));
|
||||
$plugin_table->prepare_items();
|
||||
$plugin_table->views();
|
||||
$plugin_table->display();
|
||||
?>
|
||||
<p class="submit" style="display:none"><input type="submit" name="submit" id="eum-save-settings" class="button button-primary" value="<?php esc_attr_e('Save', 'stops-core-theme-and-plugin-updates'); ?>"></p>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php if (!defined('ABSPATH')) die('No direct access.'); ?>
|
||||
<h3><?php esc_html_e('Theme update options', 'stops-core-theme-and-plugin-updates'); ?></h3>
|
||||
<?php
|
||||
if (false === MPSUM_Admin_Themes::can_update_themes()) {
|
||||
printf('<div class="error"><p><strong>%s</strong></p></div>', esc_html__('All theme updates have been disabled.', 'stops-core-theme-and-plugin-updates'));
|
||||
}
|
||||
do_action('eum_themes_tab_header');
|
||||
$theme_table = new MPSUM_Themes_List_Table($args = array('screen' => $slug, 'paged' => $paged, 'view' => $view));
|
||||
$theme_table->prepare_items();
|
||||
$theme_table->views();
|
||||
$theme_table->display();
|
||||
?>
|
||||
<p class="submit" style="display:none"><input type="submit" name="submit" id="eum-save-settings" class="button button-primary" value="<?php esc_attr_e('Save', 'stops-core-theme-and-plugin-updates'); ?>"></p>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php if (!defined('ABSPATH')) die('No direct access.'); ?>
|
||||
<div class="eum-advanced-settings-container advanced-premium-preview_<?php echo esc_attr($key); ?>">
|
||||
<h3><?php echo esc_html($item['label']); ?></h3>
|
||||
|
||||
<p><?php echo esc_html($item['desc']); ?></p>
|
||||
|
||||
<div class="premium-only-desc">
|
||||
<h4 class="mpsum-medium">
|
||||
<span class="eum-advanced-menu-premium-only"><?php esc_html_e('Premium', 'stops-core-theme-and-plugin-updates'); ?></span>
|
||||
<?php esc_html_e('Interested in this feature?', 'stops-core-theme-and-plugin-updates'); ?>
|
||||
</h4>
|
||||
|
||||
<p><?php
|
||||
|
||||
$easy_updates_manager_url = 'https://easyupdatesmanager.com/buy/?utm=eum-advanced-tab';
|
||||
|
||||
esc_html_e('Get many more features with Easy Updates Manager Premium.', 'stops-core-theme-and-plugin-updates');
|
||||
|
||||
/* translators: 1: Link to the feature list, 2: Link to the store. */
|
||||
printf(' '.esc_html_x('Check out the video and feature list %1$s, or %2$s', 'Full text is: "Check out the video and feature list here, or go to our store", but with links added.', 'stops-core-theme-and-plugin-updates'), '<a href="'.esc_url(add_query_arg(array( 'tab' => 'premium' ), MPSUM_Admin::get_url())).'">'.esc_html_x('here', ' is included in the sentence: Check out the video and feature list here, or go to our store', 'stops-core-theme-and-plugin-updates').'</a>', '<a href="' . esc_url($easy_updates_manager_url) . '">'.esc_html_x('go to our store.', ' is included in the sentence: Check out the video and feature list here, or go to our store', 'stops-core-theme-and-plugin-updates').'</a>');
|
||||
|
||||
?></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
if (!defined('ABSPATH')) die('No direct access.');
|
||||
$easy_updates_manager_url = 'https://easyupdatesmanager.com/buy/?utm=eum-premium-tab';
|
||||
$updraftcentral_url = 'https://updraftplus.com/updraftcentral/?utm=eum-premium-tab';
|
||||
$updraftplus_url = 'https://updraftplus.com/?utm=eum-premium-tab';
|
||||
$easy_updates_manager_downloads = '200,000';
|
||||
?>
|
||||
<div class="advanced-premium">
|
||||
<h3><?php esc_html_e('Get Easy Updates Manager Premium', 'stops-core-theme-and-plugin-updates'); ?></h3>
|
||||
<p class="mpsum-medium"><?php
|
||||
|
||||
esc_html_e('Get many more features with Easy Updates Manager Premium.', 'stops-core-theme-and-plugin-updates');
|
||||
|
||||
/* translators: 1: Link to the feature list, 2: Link to the store. */
|
||||
printf(' '.esc_html__('Check out the video and %1$s below, or %2$s', 'stops-core-theme-and-plugin-updates'), '<a href="#mpsum-advanced-premium-features">'.esc_html__('feature list', 'stops-core-theme-and-plugin-updates').'</a>', '<a href="' . esc_url($easy_updates_manager_url) . '">'.esc_html__('go to our store.', 'stops-core-theme-and-plugin-updates').'</a>');
|
||||
|
||||
?></p>
|
||||
<?php
|
||||
// @codingStandardsIgnoreStart
|
||||
?>
|
||||
<div style="padding:56.25% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/289883791?color=df6926&title=0&byline=0&portrait=0" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div><script src="https://player.vimeo.com/api/player.js"></script>
|
||||
<p class="mpsum-medium mpsum-caption"><a href="<?php echo esc_attr($easy_updates_manager_url); ?>"><?php _e('Find out about the advantages of upgrading to Easy Updates Manager Premium', 'stops-core-theme-and-plugin-updates'); ?></a></p>
|
||||
<div class="mpsum-advanced-premium-features" id="mpsum-advanced-premium-features">
|
||||
<h3><?php esc_html_e('Premium features include:', 'stops-core-theme-and-plugin-updates');?></h3>
|
||||
<ul class="mpsum-advanced-premium-list">
|
||||
<li><strong><?php _e('Safe mode', 'stops-core-theme-and-plugin-updates'); ?></strong><span class="mpsum-list-description"><?php _e("Prevent updates that are not compatible with your current WordPress version or your server's PHP version.", 'stops-core-theme-and-plugin-updates'); ?></span></li>
|
||||
<li><strong><?php _e('Scheduling updates', 'stops-core-theme-and-plugin-updates');?></strong><span class="mpsum-list-description"><?php _e('Choose the most convenient time to run your automatic updates.', 'stops-core-theme-and-plugin-updates'); ?></span></li>
|
||||
<li><strong><?php _e('External logging', 'stops-core-theme-and-plugin-updates'); ?></strong><span class="mpsum-list-description"><?php _e('Sends alert when updates have taken place.', 'stops-core-theme-and-plugin-updates'); ?></span></li>
|
||||
<li><strong><?php _e('Anonymization', 'stops-core-theme-and-plugin-updates'); ?></strong><span class="mpsum-list-description"><?php _e("Controls what is sent to the WordPress.org API; stop sending unnecessary/analytics data.", 'stops-core-theme-and-plugin-updates'); ?></span></li>
|
||||
<li><strong><?php _e('Delayed updates', 'stops-core-theme-and-plugin-updates'); ?></strong><span class="mpsum-list-description"><?php _e('Delays automatic updates by a set time to prevent installing short-lived (e.g. buggy) updates.', 'stops-core-theme-and-plugin-updates'); ?></span></li>
|
||||
<li><strong><?php _e('Automatic backups', 'stops-core-theme-and-plugin-updates');?></strong><span class="mpsum-list-description"><?php printf(__('Takes a backup before your website is updated via an integration with %s', 'stops-core-theme-and-plugin-updates'), '<a href="'.esc_attr($updraftplus_url).'">UpdraftPlus</a>'); ?></span></li>
|
||||
<li><strong>UpdraftCentral</strong><span class="mpsum-list-description"><?php printf(__('Fully integrates with %s for centralized remote control.', 'stops-core-theme-and-plugin-updates'), '<a href="'.$updraftcentral_url.'">UpdraftCentral</a>'); ?></span></li>
|
||||
<li><strong><?php _e('Log clearing', 'stops-core-theme-and-plugin-updates'); ?></strong><span class="mpsum-list-description"><?php _e('Automatically prune your logs via scheduled deletion of older entries.', 'stops-core-theme-and-plugin-updates'); ?></span></li>
|
||||
<li><strong><?php _e('Import/export', 'stops-core-theme-and-plugin-updates');?></strong><span class="mpsum-list-description"><?php _e('Export your settings from one site to another for quicker setup.', 'stops-core-theme-and-plugin-updates');?></span></li>
|
||||
<li><strong><?php _e('E-mail notifications', 'stops-core-theme-and-plugin-updates'); ?></strong><span class="mpsum-list-description"><?php _e('Send weekly or monthly reports of pending updates.', 'stops-core-theme-and-plugin-updates'); ?></span></li>
|
||||
<li><strong><?php _e('White-label', 'stops-core-theme-and-plugin-updates'); ?></strong> <?php _e('Customize what branding and notices your clients see in the plugin settings.', 'stops-core-theme-and-plugin-updates'); ?></span></li>
|
||||
<li><strong><?php _e('Check plugins', 'stops-core-theme-and-plugin-updates');?></strong><span class="mpsum-list-description"><?php _e('Runs a check for plugins that have been removed from the WordPress directory.', 'stops-core-theme-and-plugin-updates'); ?></span></li>
|
||||
<li><strong><?php _e('Webhook', 'stops-core-theme-and-plugin-updates'); ?></strong><span class="mpsum-list-description"><?php _e('Integrates with third-party services to allow automatic updates to be triggered via cron or tools like Zapier.', 'stops-core-theme-and-plugin-updates'); ?></span></li>
|
||||
<li><strong><?php _e('Export logs', 'stops-core-theme-and-plugin-updates'); ?></strong><span class="mpsum-list-description"><?php _e('Exports logs for your chosen date range for printing or a CSV/JSON for auditing.', 'stops-core-theme-and-plugin-updates'); ?></span></li>
|
||||
</ul>
|
||||
<strong><?php _e('All with premium support, and more planned!', 'stops-core-theme-and-plugin-updates'); ?></strong> <a href="<?php echo $easy_updates_manager_url; ?>"><?php _e('Go to our store to get it.', 'stops-core-theme-and-plugin-updates'); ?></a>
|
||||
</div>
|
||||
<div class="eum-button-cta">
|
||||
<a href="<?php echo $easy_updates_manager_url; ?>"><?php _e('Get Premium Today!', 'stops-core-theme-and-plugin-updates'); ?></a>
|
||||
</div>
|
||||
</div><!-- advanced-premium -->
|
||||
<?php
|
||||
// @codingStandardsIgnoreEnd
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
if (!defined('ABSPATH')) die('No direct access.');
|
||||
|
||||
echo '<div class="eum-advanced-settings-container exclude-users" style="display: block;">';
|
||||
printf('<h3>%s</h3>', esc_html__('Exclude users', 'stops-core-theme-and-plugin-updates'));
|
||||
printf('<p>%s</p>', esc_html__('Select users who will be forbidden to access the settings of this plugin.', 'stops-core-theme-and-plugin-updates'));
|
||||
printf('<p>%s</p>', esc_html__('This option is useful if, for example, you would like to disable updates, but have a user account that can still update WordPress.', 'stops-core-theme-and-plugin-updates'));
|
||||
printf('<p><strong>%s</strong></p>', esc_html__('Users to be forbidden', 'stops-core-theme-and-plugin-updates'));
|
||||
|
||||
// Code from wp-admin/includes/class-wp-ms-users-list-table
|
||||
$users = array();
|
||||
if (is_multisite()) {
|
||||
global $wpdb;
|
||||
$logins = implode("', '", array_map('esc_sql', get_super_admins()));
|
||||
$users = $wpdb->get_col("SELECT ID FROM $wpdb->users WHERE user_login IN ('$logins') GROUP BY user_login"); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- Direct query required to fetch super admin IDs without caching.
|
||||
} else {
|
||||
/**
|
||||
* Determine which role gets queried for admin users.
|
||||
*
|
||||
* Determine which role gets queried for admin users.
|
||||
*
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param string $var administrator.
|
||||
*/
|
||||
$role = apply_filters('mpsum_admin_role', 'administrator');
|
||||
$users = get_users(array('role' => $role, 'orderby' => 'display_name', 'order' => 'ASC', 'fields' => 'ID'));
|
||||
}
|
||||
if (is_array($users) && !empty($users)) {
|
||||
echo '<input type="hidden" value="0" name="mpsum_excluded_users[]" />';
|
||||
$options = MPSUM_Updates_Manager::get_options('advanced');
|
||||
$excluded_users = isset($options['excluded_users']) ? $options['excluded_users'] : array();
|
||||
foreach ($users as $index => $user_id) {
|
||||
$user = get_userdata($user_id);
|
||||
printf('<input type="checkbox" name="mpsum_excluded_users[]" id="mpsum_user_%1$d" value="%1$d" %3$s %4$s /> <label for="mpsum_user_%1$d">%2$s</label><br />', esc_attr($user_id), esc_html($user->display_name), checked(true, in_array($user_id, $excluded_users), false), disabled(get_current_user_id(), absint($user_id), false));
|
||||
}
|
||||
}
|
||||
printf('<p class="submit"><input type="submit" name="submit" id="save-excluded-users" class="button button-primary" value="%s"></p>', esc_attr__('Save users', 'stops-core-theme-and-plugin-updates'));
|
||||
echo '</div>';
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
if (!defined('ABSPATH')) die('No direct access.');
|
||||
echo '<div class="eum-advanced-settings-container force-updates">';
|
||||
|
||||
// Check for options that also disable force updates
|
||||
$options = MPSUM_Updates_Manager::get_options('core');
|
||||
|
||||
// Show a notice if all updates are disabled
|
||||
if (isset($options['all_updates']) && 'off' == $options['all_updates']) {
|
||||
printf('<div class="mpsum-error mpsum-bold">%s</div>', esc_html__('All updates are disabled.', 'stops-core-theme-and-plugin-updates').' '.esc_html__('Please re-enable all updates for force updates to work.', 'stops-core-theme-and-plugin-updates'));
|
||||
}
|
||||
|
||||
// Show a notice if automatic updates are off
|
||||
if (!MPSUM_Utils::get_instance()->is_automatic_updates_enabled()) {
|
||||
printf('<div class="mpsum-error mpsum-bold">%s</div>', esc_html__('Automatic updates are off, so Force updates will not work.', 'stops-core-theme-and-plugin-updates'));
|
||||
}
|
||||
|
||||
// Show a warning if delay updates is above zero
|
||||
if (isset($options['delay_updates']) && $options['delay_updates'] > 0) {
|
||||
printf('<div class="mpsum-notice mpsum-bold">%s</div>', esc_html__('Delayed updates are on, so some assets may not be updated automatically.', 'stops-core-theme-and-plugin-updates'));
|
||||
}
|
||||
|
||||
// Begin output
|
||||
printf('<h3>%s</h3>', esc_html__('Force automatic updates', 'stops-core-theme-and-plugin-updates'));
|
||||
printf('<div class="mpsum-notice mpsum-regular">%s</div>', esc_html__('Force updates will request automatic updates of your plugins, core, themes, and translations immediately.', 'stops-core-theme-and-plugin-updates').' '.esc_html__('This is useful for debugging and checking that automatic updates are working as intended.', 'stops-core-theme-and-plugin-updates').' '.esc_html__('By default, WordPress checks for updates every 12 hours.', 'stops-core-theme-and-plugin-updates').' '.esc_html__('Running force updates will, if successful, cause updates to happen immediately.', 'stops-core-theme-and-plugin-updates'));
|
||||
$updates = array();
|
||||
if (current_user_can('update_core')) $updates[] = __('core', 'stops-core-theme-and-plugin-updates');
|
||||
if (current_user_can('update_plugins')) $updates[] = __('plugin', 'stops-core-theme-and-plugin-updates');
|
||||
if (current_user_can('update_themes')) $updates[] = __('theme', 'stops-core-theme-and-plugin-updates');
|
||||
if (current_user_can('update_themes') || current_user_can('update_plugins')) $updates[] = __('translation', 'stops-core-theme-and-plugin-updates');
|
||||
if (!$updates) {
|
||||
printf('<div class="mpsum-error mpsum-regular">%s</div>', esc_html__("You don't have sufficient user capabilities to force automatic updates.", 'stops-core-theme-and-plugin-updates'));
|
||||
} else {
|
||||
$allowed_entities = '';
|
||||
$delimiter = '';
|
||||
foreach ($updates as $i => $update) {
|
||||
$allowed_entities .= $delimiter.($allowed_entities ? ' ' : '').$update;
|
||||
$delimiter = ',';
|
||||
if ($allowed_entities && count($updates)-1 == $i+1) $delimiter = ' '.__('and', 'stops-core-theme-and-plugin-updates');
|
||||
}
|
||||
/* Translators: %s: Allowed update types. */
|
||||
if (count($updates) < 4) printf('<div class="mpsum-error mpsum-regular">%s</div>', sprintf(esc_html__("You can only force %s automatic updates due to insufficient user capabilities you have for the website.", 'stops-core-theme-and-plugin-updates'), '<strong>'.esc_html($allowed_entities).'</strong>'));
|
||||
}
|
||||
$utils = MPSUM_Utils::get_instance();
|
||||
$updraftplus = $utils->is_installed('updraftplus');
|
||||
if (true === $updraftplus['installed'] && true === $updraftplus['active']) {
|
||||
global $updraftplus_admin;
|
||||
if (is_a($updraftplus_admin, 'UpdraftPlus_Admin') && is_callable(array($updraftplus_admin, 'add_backup_scaffolding'))) {
|
||||
printf('<label><input type="checkbox" name="backup_force_updates" id="backup_force_updates" value="1" />%s</label>', esc_html__('Take a backup first (with UpdraftPlus)', 'stops-core-theme-and-plugin-updates'));
|
||||
$updraftplus_admin->add_backup_scaffolding(__('Take a backup before update', 'stops-core-theme-and-plugin-updates'), array($updraftplus_admin, 'backupnow_modal_contents'));
|
||||
}
|
||||
} else {
|
||||
if (true === $updraftplus['installed'] && false === $updraftplus['active']) {
|
||||
$can_activate = is_multisite() ? current_user_can('manage_network_plugins') : current_user_can('activate_plugins');
|
||||
if ($can_activate) {
|
||||
$activate_link = is_multisite() ? network_admin_url('plugins.php?action=activate&plugin='.$updraftplus['name']) : self_admin_url('plugins.php?action=activate&plugin='.$updraftplus['name']);
|
||||
$url = esc_url(wp_nonce_url(
|
||||
$activate_link,
|
||||
'activate-plugin_'.$updraftplus['name']
|
||||
));
|
||||
$url_text = __('Follow this link to activate it.', 'stops-core-theme-and-plugin-updates');
|
||||
$anchor = "<a href=\"{$url}\">{$url_text}</a>";
|
||||
}
|
||||
$required_plugin = __('Take a backup with UpdraftPlus before updating.', 'stops-core-theme-and-plugin-updates');
|
||||
printf('<p id="eum-auto-backup-description">%s %s</p>', esc_html($required_plugin), wp_kses($anchor, array('a' => array('href' => array()))));
|
||||
} else {
|
||||
if (current_user_can('install_plugins')) {
|
||||
$url = esc_url(wp_nonce_url(
|
||||
is_multisite() ? network_admin_url('update.php?action=install-plugin&plugin=updraftcentral') : self_admin_url('update.php?action=install-plugin&plugin=updraftplus'),
|
||||
'install-plugin_updraftplus'
|
||||
));
|
||||
$url_text = __('Follow this link to install it.', 'stops-core-theme-and-plugin-updates');
|
||||
$anchor = "<a href=\"{$url}\">{$url_text}</a>";
|
||||
$required_plugin = __('You can take backups using UpdraftPlus before updating.', 'stops-core-theme-and-plugin-updates');
|
||||
printf('<p id="eum-auto-backup-description">%s %s</p>', esc_html($required_plugin), wp_kses($anchor, array('a' => array('href' => array()))));
|
||||
}
|
||||
}
|
||||
}
|
||||
printf('<p class="submit"><input type="submit" name="submit" id="force-updates" class="button button-primary" value="%s"></p>', esc_attr__('Force updates', 'stops-core-theme-and-plugin-updates'));
|
||||
echo '</div>';
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
if (!defined('EASY_UPDATES_MANAGER_MAIN_PATH')) die('No direct access allowed');
|
||||
|
||||
$prohibited_active_constants = MPSUM_Constant_Checks::get_instance()->get_prohibited_active_constants();
|
||||
$html = '';
|
||||
if (in_array('DISABLE_WP_CRON', $prohibited_active_constants)) {
|
||||
$html .= sprintf('<li><strong>%s</strong>: %s</li>', 'DISABLE_WP_CRON', esc_html__('This constant prevents automatic updates scheduled tasks from being run within WordPress internal cron.', 'stops-core-theme-and-plugin-updates')." ".esc_html__('Typically, when enabled, automatic updates events are checked on every page load and any events due to run will be called during that page load.', 'stops-core-theme-and-plugin-updates')." ".esc_html__("However, if it's intentionally being set because you use external cron (server cron) then you can ignore this warning.", 'stops-core-theme-and-plugin-updates'));
|
||||
}
|
||||
$html = !empty($html) ? '<ul>'.$html.'</ul>' : $html;
|
||||
if (empty($html)) return;
|
||||
?>
|
||||
|
||||
<div id="easy-updates-manager-constants-enabled" class="error">
|
||||
<div style="float:right;"><a href="#" onclick="jQuery('#easy-updates-manager-constants-enabled').slideUp(); jQuery.post(ajaxurl, {action: 'easy_updates_manager_ajax', subaction: 'dismiss_constant_notices', nonce: '<?php echo esc_js(wp_create_nonce('easy-updates-manager-ajax-nonce')); ?>' });"><?php printf(esc_html__('Dismiss', 'stops-core-theme-and-plugin-updates')); ?></a></div>
|
||||
|
||||
<h3><?php
|
||||
// Allow white label
|
||||
$eum_white_label = apply_filters('eum_whitelabel_name', __('Easy Updates Manager', 'stops-core-theme-and-plugin-updates'));
|
||||
/* Translators: %s: Label name. */
|
||||
echo sprintf(esc_html__("The following constants are set and will prevent automatic updates in %s.", 'stops-core-theme-and-plugin-updates'), esc_html($eum_white_label));
|
||||
?></h3>
|
||||
<div id="easy-updates-manager-constants-enabled-wrapper">
|
||||
<p><?php esc_html_e('Please check your wp-config.php file or other files for these constants and remove them to allow Easy Updates Manager to have control.', 'stops-core-theme-and-plugin-updates'); ?></p>
|
||||
<?php echo wp_kses_post($html); ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php if (!defined('EASY_UPDATES_MANAGER_MAIN_PATH')) die('No direct access allowed'); ?>
|
||||
|
||||
<div class="updraft-ad-container updated">
|
||||
<div class="updraft_notice_container">
|
||||
<div class="updraft_advert_content_left">
|
||||
<img src="<?php echo esc_url(EASY_UPDATES_MANAGER_URL.'images/'.$image); ?>" width="60" height="60" alt="<?php esc_attr_e('notice image', 'stops-core-theme-and-plugin-updates'); ?>" />
|
||||
</div>
|
||||
<div class="updraft_advert_content_right">
|
||||
<h3 class="updraft_advert_heading">
|
||||
<?php
|
||||
if (!empty($prefix)) echo esc_html($prefix).' ';
|
||||
echo esc_html($title);
|
||||
?>
|
||||
<div class="updraft-advert-dismiss">
|
||||
<?php if (!empty($dismiss_time)) { ?>
|
||||
<a href="#" onclick="jQuery('.updraft-ad-container').slideUp(); jQuery.post(ajaxurl, {action: 'easy_updates_manager_ajax', subaction: '<?php echo esc_js($dismiss_time); ?>', nonce: '<?php echo esc_js(wp_create_nonce('easy-updates-manager-ajax-nonce')); ?>' });"><?php esc_html_e('Dismiss', 'stops-core-theme-and-plugin-updates'); ?></a>
|
||||
<?php } else { ?>
|
||||
<a href="#" onclick="jQuery('.updraft-ad-container').slideUp();"><?php esc_html_e('Dismiss', 'stops-core-theme-and-plugin-updates'); ?></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</h3>
|
||||
<p>
|
||||
<?php
|
||||
echo wp_kses_post($text);
|
||||
$button_text = '';
|
||||
if (isset($discount_code)) echo ' <b>' . esc_html($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', 'stops-core-theme-and-plugin-updates');
|
||||
} elseif ('review' == $button_meta) {
|
||||
$button_text = __('Review "Easy Updates Manager"', 'stops-core-theme-and-plugin-updates');
|
||||
} elseif ('updraftplus' == $button_meta) {
|
||||
$button_text = __('Get UpdraftPlus', 'stops-core-theme-and-plugin-updates');
|
||||
} elseif ('signup' == $button_meta) {
|
||||
$button_text = __('Sign up', 'stops-core-theme-and-plugin-updates');
|
||||
} elseif ('go_there' == $button_meta) {
|
||||
$button_text = __('Go there', 'stops-core-theme-and-plugin-updates');
|
||||
} elseif ('wpo-premium' == $button_meta) {
|
||||
$button_text = __('Find out more.', 'stops-core-theme-and-plugin-updates');
|
||||
} elseif ('wp-optimize' == $button_meta) {
|
||||
$button_text = __('Get WP-Optimize', 'stops-core-theme-and-plugin-updates');
|
||||
} elseif ('aios' == $button_meta) {
|
||||
$button_text = __('Get AIOS', 'stops-core-theme-and-plugin-updates');
|
||||
} elseif ('eum_premium' == $button_meta) {
|
||||
$button_text = __('Get premium', 'stops-core-theme-and-plugin-updates');
|
||||
} elseif ('collection' == $button_meta) {
|
||||
$button_text = __('Read more', 'stops-core-theme-and-plugin-updates');
|
||||
}
|
||||
$easy_updates_manager->easy_updates_manager_url($button_link, $button_text, null, 'class="updraft_notice_link"');
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php if (!defined('EASY_UPDATES_MANAGER_MAIN_PATH')) die('No direct access allowed'); ?>
|
||||
|
||||
<div id="easy-updates-manager-dashnotice" class="updated">
|
||||
<?php
|
||||
global $pagenow;
|
||||
if ('index.php' === $pagenow && !isset($_GET['page'])) {
|
||||
$ajax_action = 'dismiss_dash_notice_until';
|
||||
$time = 12;
|
||||
} else {
|
||||
$ajax_action = 'dismiss_eum_notice_until';
|
||||
$time = 6;
|
||||
}
|
||||
?>
|
||||
<div style="float:right;"><a href="#" onclick="jQuery('#easy-updates-manager-dashnotice').slideUp(); jQuery.post(ajaxurl, {action: 'easy_updates_manager_ajax', subaction: '<?php echo esc_js($ajax_action); ?>', nonce: '<?php echo esc_js(wp_create_nonce('easy-updates-manager-ajax-nonce')); ?>' });"><?php printf(esc_html__('Dismiss (for %s months)', 'stops-core-theme-and-plugin-updates'), absint($time)); ?></a></div>
|
||||
|
||||
<h3><?php esc_html_e("Thank you for installing Easy Updates Manager.", 'stops-core-theme-and-plugin-updates'); ?></h3>
|
||||
<div id="easy-updates-manager-dashnotice-wrapper">
|
||||
<a href="<?php echo esc_url(apply_filters('easy_updates_manager_com_link', 'https://easyupdatesmanager.com/')); ?>"><img style="border: 0px; float: right; height: 130px; padding-bottom: 25px;" alt="<?php esc_attr_e('Easy Updates Manager', 'stops-core-theme-and-plugin-updates'); ?>" src="<?php echo esc_url(EASY_UPDATES_MANAGER_URL.'images/notices/eum-notice-logo-150.png'); ?>"></a>
|
||||
<p>
|
||||
<?php echo esc_html__('Super-charge and secure your WordPress site with our other top plugins:', 'stops-core-theme-and-plugin-updates'); ?>
|
||||
</p>
|
||||
<p>
|
||||
<?php printf(esc_html__('%s simplifies backups and restoration.', 'stops-core-theme-and-plugin-updates').' '.esc_html__('It is the world’s highest ranking and most popular scheduled backup plugin, with over a million currently-active installs.', 'stops-core-theme-and-plugin-updates'), '<strong>' . wp_kses($easy_updates_manager->easy_updates_manager_url('https://teamupdraft.com/updraftplus/', 'UpdraftPlus', '', '', true), array('a' => array('href' => array(), 'class' => array()))) . '</strong>'); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php printf(esc_html__('%s is a highly efficient way to manage, optimize, update and backup multiple websites from one place.', 'stops-core-theme-and-plugin-updates'), '<strong>' . wp_kses($easy_updates_manager->easy_updates_manager_url('https://teamupdraft.com/updraftcentral/?utm_source=eum-plugin&utm_medium=referral&utm_campaign=paac&utm_content=updraftcentral&utm_creative_format=advert', 'UpdraftCentral', '', '', true), array('a' => array('href' => array(), 'class' => array()))) . '</strong>'); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php printf(esc_html__('%s makes your site fast and efficient. It cleans the database, compresses images and caches pages for ultimate speed.', 'stops-core-theme-and-plugin-updates'), '<strong>' . wp_kses($easy_updates_manager->easy_updates_manager_url('https://teamupdraft.com/wp-optimize/', __('WP-Optimize', 'stops-core-theme-and-plugin-updates'), '', '', true), array('a' => array('href' => array(), 'class' => array()))) . '</strong>'); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong><?php $easy_updates_manager->easy_updates_manager_url('https://www.simbahosting.co.uk/s3/shop/', __('Premium WooCommerce extensions', 'stops-core-theme-and-plugin-updates')); ?></strong>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
if (!defined('ABSPATH')) die('No direct access.');
|
||||
echo '<div class="eum-advanced-settings-container reset-options">';
|
||||
printf('<h3>%s</h3>', esc_html__('Reset options', 'stops-core-theme-and-plugin-updates'));
|
||||
printf('<p>%s</p>', esc_html__('This will reset all options to as if you have just installed the plugin.', 'stops-core-theme-and-plugin-updates').' '.esc_html__('WARNING!: This also clears the logs.', 'stops-core-theme-and-plugin-updates'));
|
||||
printf('<p class="submit"><input type="submit" name="submit" id="reset-options" class="button button-primary" value="%s"></p>', esc_attr__('Reset all options', 'stops-core-theme-and-plugin-updates'));
|
||||
echo '</div>';
|
||||
Reference in New Issue
Block a user