public static function get_instance()
 {
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 public function add_notice_new_addon()
 {
     if (ESSB3_ADDONS_ACTIVE && class_exists('ESSBAddonsHelper')) {
         $addons = ESSBAddonsHelper::get_instance();
         $new_addons = $addons->get_new_addons();
         foreach ($new_addons as $key => $data) {
             $all_addons_button = '<a href="' . admin_url("admin.php?page=essb_addons") . '"  text="' . __('Add-ons', ESSB3_TEXT_DOMAIN) . '" class="button" style="margin-right: 5px; float: right; margin-top: -5px;"><span class="dashicons dashicons-admin-plugins" style="margin-top: 3px;"></span>&nbsp;' . __('View list of all add-ons', ESSB3_TEXT_DOMAIN) . '</a>';
             $dismiss_url = esc_url_raw(add_query_arg(array('dismiss' => 'true', 'addon' => $key), admin_url("admin.php?page=essb_options")));
             $dismiss_addons_button = '<a href="' . $dismiss_url . '"  text="' . __('Add-ons', ESSB3_TEXT_DOMAIN) . '" class="button" style="float: right; margin-top:-5px;"><span class="dashicons dashicons-no" style="margin-top: 3px;"></span>' . __('Close & hide this message', ESSB3_TEXT_DOMAIN) . '</a>';
             printf('<div class="updated fade"><p style="padding-top: 5px; padding-bottom: 5px;">New add-on for <b>Easy Social Share Buttons for WordPress</b> is available: <a href="%2$s" target="_blank"><b>%1$s</b></a> %4$s%3$s</p></div>', $data['title'], $data['url'], $all_addons_button, $dismiss_addons_button);
         }
     }
 }
    $dismissactivate = isset($_REQUEST['dismissactivate']) ? $_REQUEST['dismissactivate'] : '';
    if ($dismissactivate == "true") {
        ESSBAdminActivate::dismiss_notice();
    } else {
        if (!ESSBAdminActivate::is_activated() && ESSBAdminActivate::should_display_notice()) {
            print ESSBAdminActivate::notice_activate();
        }
    }
}
// @since 3.2.4
// Twitter Counter Recovery
if (ESSBTwitterCounterRecovery::recovery_called()) {
    ESSBTwitterCounterRecovery::recovery_start();
}
if (ESSB3_ADDONS_ACTIVE && class_exists('ESSBAddonsHelper')) {
    $addons = ESSBAddonsHelper::get_instance();
    $new_addons = $addons->get_new_addons();
    foreach ($new_addons as $key => $data) {
        $all_addons_button = '<a href="' . admin_url("admin.php?page=essb_addons") . '"  text="' . __('Add-ons', ESSB3_TEXT_DOMAIN) . '" class="button button-orange float_right" style="margin-right: 5px;"><i class="fa fa-gear"></i>&nbsp;' . __('View list of all add-ons', ESSB3_TEXT_DOMAIN) . '</a>';
        $dismiss_url = esc_url_raw(add_query_arg(array('dismiss' => 'true', 'addon' => $key), admin_url("admin.php?page=essb_options")));
        $dismiss_addons_button = '<a href="' . $dismiss_url . '"  text="' . __('Add-ons', ESSB3_TEXT_DOMAIN) . '" class="button button-orange float_right" style="margin-right: 5px;"><i class="fa fa-close"></i>&nbsp;' . __('Dismiss', ESSB3_TEXT_DOMAIN) . '</a>';
        printf('<div class="essb-information-box fade"><div class="icon orange"><i class="fa fa-cube"></i></div><div class="inner">New add-on for Easy Social Share Buttons for WordPress is available: <a href="%2$s" target="_blank"><b>%1$s</b></a> %4$s%3$s</div></div>', $data['title'], $data['url'], $all_addons_button, $dismiss_addons_button);
    }
}
$cache_plugin_message = "";
if (ESSBCacheDetector::is_cache_plugin_detected()) {
    $cache_plugin_message = " It is highly recommeded after change in settings to clear cache of plugin you use: " . ESSBCacheDetector::cache_plugin_name();
}
$backup = isset($_REQUEST['backup']) ? $_REQUEST['backup'] : '';
$settings_update = isset($_REQUEST['settings-updated']) ? $_REQUEST['settings-updated'] : '';
if ($settings_update == "true") {