public static function get_instance() { if (null == self::$instance) { self::$instance = new self(); } return self::$instance; }
$current_options['afterclose_message_text'] = ESSBOptionsHelper::optionsValue($options, 'afterclose_message_text'); $current_options['afterclose_code_text'] = ESSBOptionsHelper::optionsValue($options, 'afterclose_code_text'); $current_options['afterclose_popup_width'] = ESSBOptionsHelper::optionsValue($options, 'afterclose_popup_width'); $current_options['essb_cache_static_js'] = ESSBOptionsHelper::optionsBoolValueAsText($options, 'essb_cache_static_js'); $current_options['afterclose_like_cols'] = ESSBOptionsHelper::optionsValue($options, 'afterclose_like_cols'); $current_options['deactivate_fa'] = ESSBOptionsHelper::optionsBoolValueAsText($options, 'deactivate_fa'); $current_options['whatsapp_shareshort'] = ESSBOptionsHelper::optionsBoolValueAsText($options, 'whatsapp_shareshort'); $current_options['whatsapp_shareshort_service'] = ESSBOptionsHelper::optionsBoolValue($options, 'whatsapp_shareshort_service'); $current_options['fixed_width_align'] = ESSBOptionsHelper::optionsValue($options, 'fixed_width_align'); //essb_cache_static_js $current_options['advanced_share'] = $as; update_option(EasySocialShareButtons::$plugin_settings_name, $current_options); $msg = __("Settings are saved", ESSB_TEXT_DOMAIN); ESSBCache::flush(); if ($current_options['stats_active'] == 'true') { EasySocialShareButtons_Stats_Admin::install(); } // update social fans counter if (isset($essb_fans)) { $essb_fans->options['social'] = $_POST['social']; $essb_fans->options['sort'] = $_POST['sort']; $essb_fans->options['cache'] = (int) $_POST['cache']; // $essb_fans->options['data'] = ''; update_option($essb_fans->options_text, $essb_fans->options); delete_transient($essb_fans->transient_text); } if (function_exists('purge_essb_cache_static_cache')) { purge_essb_cache_static_cache(); } } function essb_settings_native_rearrange()
} } include ESSB_PLUGIN_ROOT . 'lib/modules/easy-social-metrics-lite/easy-social-metrics-lite.php'; // since 2.0 Easy Social Image Share Module $essb_image_options = ESSBSocialImageShareOptions::get_instance(); if ($essb_image_options->is_active_module()) { include_once ESSB_PLUGIN_ROOT . 'lib/modules/easy-image-share/easy-image-share.php'; } //if (is_admin () && (! defined ( 'DOING_AJAX' ) || ! DOING_AJAX)) { if (is_admin()) { include ESSB_PLUGIN_ROOT . 'lib/external/autoupdate/plugin-update-checker.php'; include ESSB_PLUGIN_ROOT . 'lib/admin/essb-metabox.php'; include ESSB_PLUGIN_ROOT . 'lib/extensions/essb-settings-helper.php'; include_once ESSB_PLUGIN_ROOT . 'lib/helpers/essb-shortcode-generator.php'; global $stats; $stats = EasySocialShareButtons_Stats_Admin::get_instance(); // @since 1.3.9.5 - Hanlde activation of Easy Social Metrics Lite if (ESSB_ESML_ACTIVE == 'false') { EasySocialMetricsUpdater::removeAllQueuedUpdates(); delete_option("esml_version"); } // /end load of Easy Social Metrics Lite include_once ESSB_PLUGIN_ROOT . 'lib/essb-admin.php'; add_action('plugins_loaded', array('EasySocialShareButtons_Admin', 'get_instance')); $puchase_code = isset($option['purchase_code']) ? $option['purchase_code'] : 'none'; // @since 1.3.3 // autoupdate // activating autoupdate option $essb_autoupdate = PucFactory::buildUpdateChecker('http://update.creoworx.com/essb/', __FILE__, 'easy-social-share-buttons'); // @since 1.3.7.2 - update to avoid issues with other plugins that uses same // method