public function __construct()
 {
     add_action('wp', array($this, 'disable_seo_on_escaped_fragment'));
     add_action('template_redirect', array($this, 'disable_rewrite_titles'));
     if (ecwid_is_paid_account() && ecwid_is_store_page_available()) {
         add_filter('wpseo_sitemap_index', array($this, 'wpseo_hook_sitemap_index'));
         add_filter('wpseo_do_sitemap_ecwid', array($this, 'wpseo_hook_do_sitemap'));
     }
     add_filter('ecwid_title_separator', array($this, 'get_title_separator'));
 }
				value="<?php 
        echo esc_attr(get_option('ecwid_default_category_id'));
        ?>
"
				/>
			<?php 
    }
    ?>
			<div class="note">
				<?php 
    _e('By default, the storefront shows a list of root categories. You can override this behavior and show a different category when customers open your store for the first time. This is useful if you only have one category or want to display a specific set of items (e.g. "Featured Products") to new visitors.', 'ecwid-shopping-cart');
    ?>
			</div>
			<div class="note">
			<?php 
    if (!ecwid_is_paid_account()) {
        ?>
				<?php 
        echo sprintf(__('In order to set this option, <a %s>find an ID of the necessary category</a> and save it here.', 'ecwid-shopping-cart'), 'target="_blank" href="http://kb.ecwid.com/w/page/23947812/How%20to%20get%20ID%20of%20your%20product%20or%20category"');
        ?>
			<?php 
    }
    ?>
			</div>
		</div>

		<hr />

		<?php 
}
?>
 protected function need_to_show_message($name)
 {
     $admin_page = '';
     if (function_exists('get_current_screen')) {
         $screen = get_current_screen();
         $admin_page = $screen->base;
     }
     if ($admin_page == 'toplevel_page_ecwid' && isset($_GET['reconnect'])) {
         return false;
     }
     switch ($name) {
         case 'on_activate':
             return $admin_page == 'plugins' && get_ecwid_store_id() == ECWID_DEMO_STORE_ID;
         case 'on_storeid_set':
             return get_ecwid_store_id() != ECWID_DEMO_STORE_ID && @$_GET['settings-updated'] == 'true' && $admin_page == 'toplevel_page_ecwid';
         case 'on_no_storeid_on_setup_pages':
             $is_newbie = get_ecwid_store_id() == ECWID_DEMO_STORE_ID;
             $is_ecwid_settings = in_array($admin_page, array('ecwid-store_page_ecwid-advanced', 'ecwid-store_page_ecwid-appearance'));
             $is_store_page = $admin_page == 'post' && isset($_GET['post']) && $_GET['post'] == ecwid_get_current_store_page_id();
             return $is_newbie && ($is_ecwid_settings || $is_store_page);
         case 'on_appearance_widgets':
             return isset($_GET['from-ecwid']) && $admin_page == 'widgets';
         case 'please_vote':
             $install_date = get_option('ecwid_installation_date');
             $result = false;
             if (!$install_date) {
                 add_option('ecwid_installation_date', time());
             } else {
                 $result = ecwid_is_paid_account() && $install_date + 60 * 60 * 24 * 30 < time();
             }
             foreach ($this->messages as $_name => $message) {
                 if ($_name != $name && $this->need_to_show_message($_name)) {
                     return false;
                 }
             }
             return $result;
     }
 }