/**
  * load
  * 
  * Load global plugin settings for single call use
  * 
  * @param array $options
  * @since 3.4.1
  */
 public static function load($options = array())
 {
     self::$legacy_class = ESSBOptionValuesHelper::options_bool_value($options, 'legacy_class');
     self::$counter_total_text = ESSBOptionValuesHelper::options_value($options, 'counter_total_text');
     self::$button_counter_hidden_till = ESSBOptionValuesHelper::options_value($options, 'button_counter_hidden_till');
     self::$mycred_group = ESSBOptionValuesHelper::options_value($options, 'mycred_group', 'mycred_default');
     self::$mycred_points = ESSBOptionValuesHelper::options_value($options, 'mycred_points', '1');
     self::$more_button_icon = ESSBOptionValuesHelper::options_value($options, 'more_button_icon');
     self::$comments_address = ESSBOptionValuesHelper::options_value($options, 'comments_address');
     self::$use_rel_me = ESSBOptionValuesHelper::options_bool_value($options, 'use_rel_me');
     self::$essb_encode_text = ESSBOptionValuesHelper::options_bool_value($options, 'essb_encode_text');
     self::$essb_encode_url = ESSBOptionValuesHelper::options_bool_value($options, 'essb_encode_url');
     self::$essb_encode_text_plus = ESSBOptionValuesHelper::options_bool_value($options, 'essb_encode_text_plus');
     self::$print_use_printfriendly = ESSBOptionValuesHelper::options_bool_value($options, 'print_use_printfriendly');
     self::$pinterest_sniff_disable = ESSBOptionValuesHelper::options_bool_value($options, 'pinterest_sniff_disable');
     self::$facebookadvanced = ESSBOptionValuesHelper::options_bool_value($options, 'facebookadvanced');
     self::$facebookadvancedappid = ESSBOptionValuesHelper::options_value($options, 'facebookadvancedappid');
     self::$activate_ga_campaign_tracking = ESSBOptionValuesHelper::options_value($options, 'activate_ga_campaign_tracking');
     self::$twitter_message_optimize = ESSBOptionValuesHelper::options_bool_value($options, 'twitter_message_optimize');
     self::$sidebar_pos = ESSBOptionValuesHelper::options_value($options, 'sidebar_pos');
     self::$telegram_alternative = ESSBOptionValuesHelper::options_bool_value($options, 'telegram_alternative');
     // @since 3.5 - runtime cache via WordPress functions
     self::$cache_runtime = ESSBOptionValuesHelper::options_bool_value($options, 'essb_cache_runtime');
     $personalized_networks = ESSBOptionValuesHelper::get_active_social_networks_by_position('mobile');
     $personalized_network_order = ESSBOptionValuesHelper::get_order_of_social_networks_by_position('mobile');
     // added in @since 3.4.2
     if (is_array($personalized_networks) && count($personalized_networks) > 0) {
         self::$mobile_networks = $personalized_networks;
         self::$mobile_networks_active = true;
     }
     if (is_array($personalized_network_order) && count($personalized_network_order) > 0) {
         self::$mobile_networks_order = $personalized_network_order;
         self::$mobile_networks_order_active = true;
     }
 }
        define('ESSB3_LIGHTMODE', true);
    }
}
//print_r($essb_options);
// end: initialize plugin working options
// include options helper functions
include_once ESSB3_PLUGIN_ROOT . 'lib/core/essb-lightmode-helper.php';
include_once ESSB3_PLUGIN_ROOT . 'lib/core/options/essb-options-helper.php';
include_once ESSB3_PLUGIN_ROOT . 'lib/core/essb-global-settings.php';
include_once ESSB3_PLUGIN_ROOT . 'lib/core/essb-url-helper.php';
include_once ESSB3_PLUGIN_ROOT . 'lib/core/widgets/essb-share-widget.php';
if (defined('ESSB3_LIGHTMODE')) {
    $essb_options = ESSBLightModeHelper::apply_global_options($essb_options);
}
// initialize global plugin settings from version 3.4.1
ESSBGlobalSettings::load($essb_options);
// init admin bar menu
// admin bar menu
$disable_admin_menu = ESSBOptionValuesHelper::options_bool_value($essb_options, 'disable_adminbar_menu');
// update relted to WordPress 4.4 changes
if (!$disable_admin_menu) {
    include_once ESSB3_PLUGIN_ROOT . 'lib/core/essb-adminbar-menu.php';
    add_action("init", "ESSBAdminMenuInit3");
    function ESSBAdminMenuInit3()
    {
        global $essb_adminmenu;
        if (is_admin_bar_showing()) {
            $essb_adminmenu = new ESSBAdminBarMenu3();
        }
    }
}