', __('Easy
// Social Share Buttons options are saved!', 'essb'));
//printf ( '
%1$s
', __ ( 'Easy Social Share Buttons options are saved!' . $cache_plugin_message, 'essb' ) );
ESSBOptionsFramework::draw_hint(__('Options are saved!', 'essb'), 'Your new setup is ready to use. If you use cache plugin (example: W3 Total Cache, WP Super Cache, WP Rocket) or optimization plugin (example: Autoptimize, BWP Minify) it is highly recommended to clear cache or you may not see the changes. '.$cache_plugin_message, 'fa fa-info-circle', 'status essb-status-update');
}
$settings_imported = isset ( $_REQUEST ['settings-imported'] ) ? $_REQUEST ['settings-imported'] : '';
if ($settings_imported == "true") {
// printf('
%1$s
', __('Easy
// Social Share Buttons options are saved!', 'essb'));
//printf ( '
%1$s
', __ ( 'Easy Social Share Buttons options are imported!' . $cache_plugin_message, 'essb' ) );
ESSBOptionsFramework::draw_hint(__('Options are imported!', 'essb'), 'If you use cache plugin (example: W3 Total Cache, WP Super Cache, WP Rocket) or optimization plugin (example: Autoptimize, BWP Minify) it is highly recommended to clear cache or you may not see the changes. '.$cache_plugin_message, 'fa fa-info-circle', 'status');
}
if ($reset_settings == 'true') {
//printf ( '
%1$s
', __ ( 'Plugin settings are restored to default.' . $cache_plugin_message, 'essb' ) );
ESSBOptionsFramework::draw_hint(__('Options are reset to default!', 'essb'), 'If you use cache plugin (example: W3 Total Cache, WP Super Cache, WP Rocket) or optimization plugin (example: Autoptimize, BWP Minify) it is highly recommended to clear cache or you may not see the changes. '.$cache_plugin_message, 'fa fa-info-circle', 'status');
}
if ($is_cache_active) {
$cache_clear_address = esc_url_raw ( add_query_arg ( array ('purge-cache' => 'true' ), essb_get_current_page_url () ) );
//printf ( '
', __ ( 'Easy Social Share Buttons is using precompiled static resources', 'essb' ), $cache_clear_address, __ ( 'Rebuild resources', 'essb' ) );
$dismiss_addons_button = ' ' . __ ( 'Rebuild Resources', 'essb' ) . '';
ESSBOptionsFramework::draw_hint(__('Precompiled Resource Mode is Active!', 'essb'), sprintf('In precompiled mode plugin will load default setup into single static files that will run on entire site. %1$s', $dismiss_addons_button), 'fa fa-history', 'status');
}
if ($backup == 'true') {
//printf ( '
%1$s
', __ ( 'Backup of your current settings is generated. Copy generated configuration string and save it on your computer. You can use it to restore settings or transfer them to other site.', 'essb' ) );
ESSBOptionsFramework::draw_hint(__('Backup is ready!', 'essb'), 'Backup of your current settings is generated. Copy generated configuration string and save it on your computer. You can use it to restore settings or transfer them to other site.', 'fa fa-gear', 'status');
}
if ($purge_cache == 'true') {
if (class_exists ( 'ESSBDynamicCache' )) {
ESSBDynamicCache::flush ();
}
if (function_exists ( 'purge_essb_cache_static_cache' )) {
purge_essb_cache_static_cache ();
}
//printf ( '
%1$s
', __ ( 'Easy Social Share Buttons for WordPress Cache is purged!', 'essb' ) );
ESSBOptionsFramework::draw_hint(__('Cache is Cleared!', 'essb'), 'Build in cache of plugin is fully cleared!', 'fa fa-info-circle', 'status');
}
if ($rebuild_resource == "true") {
if (class_exists ( 'ESSBPrecompiledResources' )) {
ESSBPrecompiledResources::flush ();
}
}
if ($current_tab == "analytics") {
$settings_url = esc_url_raw ( get_admin_url () . 'admin.php?page=essb_options&tab=social§ion=sharing&subsection=sharing-6' );
if (! essb_options_bool_value('stats_active')) {
printf ( '
', __ ( 'Statistics function in not activated!', 'essb' ), $settings_url, __ ( 'Click here to go to settings and activte it', 'essb' ) );
}
}
if (function_exists('essb3_apply_readymade_style')) {
essb3_apply_readymade_style();
}
?>