wp_version_required, '<')) {
$errors[] = sprintf(__('WP-Optimize Minify requires WordPress version %s or higher. You’re using version %s.', 'wp-optimize'), $this->wp_version_required, $wp_version);
}
foreach ($errors as $error) {
?>
".htmlspecialchars($cache_dir).""); ?>
775');
echo " ";
_e('Please contact your hosting provider.', 'wp-optimize');
?>
found_incompatible_plugins = WP_Optimize_Detect_Minify_Plugins::get_instance()->get_active_minify_plugins();
$wpo_minify_options = wp_optimize_minify_config()->get();
$cache_path = WP_Optimize_Minify_Cache_Functions::cache_path();
WP_Optimize()->include_template(
'minify/status-tab.php',
false,
array(
'wpo_minify_options' => $wpo_minify_options,
'show_information_notice' => !get_user_meta(get_current_user_id(), 'wpo-hide-minify-information-notice', true),
'cache_dir' => $cache_path['cachedir'],
'can_purge_the_cache' => WP_Optimize()->can_purge_the_cache(),
'active_minify_plugins' => apply_filters('wpo_minify_found_incompatible_plugins', $this->found_incompatible_plugins),
)
);
}
/**
* Minify - Outputs the font settings tab
*
* @return void
*/
public function output_font_settings() {
$wpo_minify_options = wp_optimize_minify_config()->get();
WP_Optimize()->include_template(
'minify/font-settings-tab.php',
false,
array(
'wpo_minify_options' => $wpo_minify_options
)
);
}
/**
* Minify - Outputs the CSS settings tab
*
* @return void
*/
public function output_css_settings() {
$wpo_minify_options = wp_optimize_minify_config()->get();
WP_Optimize()->include_template(
'minify/css-settings-tab.php',
false,
array(
'wpo_minify_options' => $wpo_minify_options
)
);
}
/**
* Minify - Outputs the JS settings tab
*
* @return void
*/
public function output_js_settings() {
$wpo_minify_options = wp_optimize_minify_config()->get();
WP_Optimize()->include_template(
'minify/js-settings-tab.php',
false,
array(
'wpo_minify_options' => $wpo_minify_options
)
);
}
/**
* Minify - Outputs the settings tab
*
* @return void
*/
public function output_settings() {
$wpo_minify_options = wp_optimize_minify_config()->get();
$url = parse_url(get_home_url());
WP_Optimize()->include_template(
'minify/settings-tab.php',
false,
array(
'wpo_minify_options' => $wpo_minify_options,
'default_protocol' => $url['scheme']
)
);
}
/**
* Minify - Outputs the settings tab
*
* @return void
*/
public function output_assets_preload_placeholder($wpo_minify_options) {
WP_Optimize()->include_template(
'minify/asset-preload.php',
false,
array(
'wpo_minify_options' => $wpo_minify_options
)
);
}
/**
* Minify - Outputs the preload tab
*
* @return void
*/
public function output_preload_settings() {
$wpo_minify_preloader = WP_Optimize_Minify_Preloader::instance();
$is_running = $wpo_minify_preloader->is_running();
$status = $wpo_minify_preloader->get_status_info();
if (!class_exists('WPO_Cache_Config')) require_once(WPO_PLUGIN_MAIN_PATH . '/cache/class-wpo-cache-config.php');
$cache_config = WPO_Cache_Config::instance();
WP_Optimize()->include_template(
'minify/preload-tab.php',
false,
array(
'is_cache_enabled' => $cache_config->get_option('enable_page_caching'),
'is_running' => $is_running,
'status_message' => isset($status['message']) ? $status['message'] : '',
)
);
}
/**
* Minify - Outputs the advanced tab
*
* @return void
*/
public function output_advanced() {
$wpo_minify_options = wp_optimize_minify_config()->get();
$files = false;
if (apply_filters('wpo_minify_status_show_files_on_load', true) && WPO_MINIFY_PHP_VERSION_MET) {
$files = WP_Optimize_Minify_Cache_Functions::get_cached_files();
}
// WP_Optimize_Minify_Functions is only loaded when Minify is active
if (class_exists('WP_Optimize_Minify_Functions')) {
$default_ignore = WP_Optimize_Minify_Functions::get_default_ignore();
$default_ie_blacklist = WP_Optimize_Minify_Functions::get_default_ie_blacklist();
} else {
$default_ignore = array();
$default_ie_blacklist = array();
}
WP_Optimize()->include_template(
'minify/advanced-tab.php',
false,
array(
'wpo_minify_options' => $wpo_minify_options,
'files' => $files,
'default_ignore' => $default_ignore,
'default_ie_blacklist' => $default_ie_blacklist
)
);
}
}