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lfY2xlYW5fYnV0dG9uc19tZXRob2QiOiJkZWZhdWx0IiwibWFpbF9zdWJqZWN0IjoiVmlzaXQgdGhpcyBzaXRlICUlc2l0ZXVybCUlIiwibWFpbF9ib2R5IjoiSGksIHRoaXMgbWF5IGJlIGludGVyZXN0aW5nIHlvdTogJSV0aXRsZSUlISBUaGlzIGlzIHRoZSBsaW5rOiAlJXBlcm1hbGluayUlIiwiZmFjZWJvb2t0b3RhbCI6InRydWUiLCJhY3RpdmF0ZV90b3RhbF9jb3VudGVyX3RleHQiOiJzaGFyZXMifQ==';
    $options_base = ESSB_Manager::convert_ready_made_option($default_options);
    // print_r($options_base);
    if ($options_base) {
        $essb_options = $options_base;
        $essb_admin_options = $options_base;
    }
    update_option(ESSB3_OPTIONS_NAME, $essb_admin_options);
}
global $essb_admin_options_fanscounter;
$essb_admin_options_fanscounter = get_option(ESSB3_OPTIONS_NAME_FANSCOUNTER);
if (!is_array($essb_admin_options_fanscounter)) {
    if (!class_exists('ESSBSocialFollowersCounterHelper')) {
        include_once ESSB3_PLUGIN_ROOT . 'lib/modules/social-followers-counter/essb-social-followers-counter-helper.php';
    }
    $essb_admin_options_fanscounter = ESSBSocialFollowersCounterHelper::create_default_options_from_structure(ESSBSocialFollowersCounterHelper::options_structure());
    update_option(ESSB3_OPTIONS_NAME_FANSCOUNTER, $essb_admin_options_fanscounter);
}
// print "options are:";
// print_r($essb_admin_options);
if (count($essb_navigation_tabs) > 0) {
    $tab_1 = key($essb_navigation_tabs);
}
if ($tab_1 == '') {
    $tab_1 = "social";
}
global $current_tab;
$current_tab = empty($_GET['tab']) ? $tab_1 : sanitize_text_field(urldecode($_GET['tab']));
$purge_cache = isset($_REQUEST['purge-cache']) ? $_REQUEST['purge-cache'] : '';
$rebuild_resource = isset($_REQUEST['rebuild-resource']) ? $_REQUEST['rebuild-resource'] : '';
$dismiss_addon = isset($_REQUEST['dismiss']) ? $_REQUEST['dismiss'] : '';
    }
    // Social Profiles Widget is always available
    include_once ESSB3_PLUGIN_ROOT . 'lib/modules/social-profiles/essb-social-profiles-widget.php';
}
if (ESSBOptionValuesHelper::is_active_module('socialfans')) {
    define('ESSB3_SOCIALFANS_ACTIVE', 'true');
    global $essb_socialfans_options;
    $essb_socialfans_options = get_option(ESSB3_OPTIONS_NAME_FANSCOUNTER);
    include_once ESSB3_PLUGIN_ROOT . 'lib/modules/social-followers-counter/essb-social-followers-counter-helper.php';
    // if options does not exist we intialize the default settings
    if (!is_array($essb_socialfans_options)) {
        $essb_socialfans_options = array();
        $essb_socialfans_options['expire'] = 1400;
        $essb_socialfans_options['format'] = 'short';
        // apply default values from structure helper
        $essb_socialfans_options = ESSBSocialFollowersCounterHelper::create_default_options_from_structure($essb_socialfans_options);
    }
    // include widget class
    include_once ESSB3_PLUGIN_ROOT . 'lib/modules/social-followers-counter/essb-social-followers-counter-widget.php';
    include_once ESSB3_PLUGIN_ROOT . 'lib/modules/social-followers-counter/essb-social-followers-counter.php';
}
if (!defined('ESSB3_LIGHTMODE')) {
    if (ESSBOptionValuesHelper::is_active_module('metricslite')) {
        define('ESSB3_ESML_ACTIVE', 'true');
        include_once ESSB3_PLUGIN_ROOT . 'lib/modules/social-metrics-lite/easy-social-metrics-lite.php';
    }
    if (ESSBOptionValuesHelper::is_active_module('topsocialposts')) {
        define('ESSB3_ESML_TOPPOSTS_ACTIVE', 'true');
        include_once ESSB3_PLUGIN_ROOT . 'lib/modules/top-posts-widget/essb-top-posts-widget.php';
    }
}