public static function get_instance()
 {
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
function essb_customizer_for_fanscounter()
{
    global $essb_fans;
    if (!isset($essb_fans)) {
        $essb_fans = EasySocialFansCounter::get_instance();
        $essb_fans->version = ESSB_VERSION;
    }
    $cnt = 0;
    foreach ($essb_fans->essb_supported_items as $single) {
        $css = $cnt % 2 == 0 ? "even" : "odd";
        echo '<tr class="' . $css . ' table-border-bottom">';
        echo '<td class="bold">' . $single . ' ' . __('color:', ESSB_TEXT_DOMAIN) . '<br />
		<span class="label" style="font-weight: 400;">' . __('Replace', ESSB_TEXT_DOMAIN) . ' ' . __('button color or background color (depeneds on template)', ESSB_TEXT_DOMAIN) . '
		</span></td>';
        echo '<td class="essb_options_general">';
        essb_customizer_create_color_field('fanscustomizer_' . $single . '_color');
        echo '</td>';
        echo '</tr>';
    }
}
function essb_load_translations()
{
    load_plugin_textdomain(ESSB_TEXT_DOMAIN, false, ESSB_PLUGIN_ROOT . '/languages');
}
$essb_options = EasySocialShareButtons_Options::get_instance();
$option = $essb_options->options;
$module_off_sfc = isset($option['module_off_sfc']) ? $option['module_off_sfc'] : 'false';
$module_off_lv = isset($option['module_off_lv']) ? $option['module_off_lv'] : 'false';
$essb_cache = isset($option['essb_cache']) ? $option['essb_cache'] : 'false';
$essb_cache_mode = isset($option['essb_cache_mode']) ? $option['essb_cache_mode'] : '';
if ($essb_cache == 'true') {
    ESSBCache::activate($essb_cache_mode);
}
global $essb_fans;
if ($module_off_sfc != 'true') {
    $essb_fans = EasySocialFansCounter::get_instance();
    $essb_fans->version = ESSB_VERSION;
    $remove_ver_resource = isset($option['remove_ver_resource']) ? $option['remove_ver_resource'] : 'false';
    if ($remove_ver_resource == 'true') {
        $essb_fans->version = '';
    }
}
// static resources cache
$essb_cache_static = isset($option['essb_cache_static']) ? $option['essb_cache_static'] : 'false';
$essb_cache_static_js = isset($option['essb_cache_static_js']) ? $option['essb_cache_static_js'] : 'false';
if ($essb_cache_static == 'true' || $essb_cache_static_js == 'true') {
    include_once ESSB_PLUGIN_ROOT . 'lib/helpers/essb-cache-static-css.php';
}
global $essb_stats;
$essb_stats = new EasySocialShareButtons_Stats();
global $essb;