public function minicart_shortcode_content($content)
 {
     if (ecwid_page_has_productbrowser()) {
         $content = '<script data-cfasync="false" type="text/javascript"> xMinicart("style=","layout=Mini"); </script>';
     }
     return $content;
 }
 public function __construct()
 {
     parent::__construct();
     if (array_key_exists('_escaped_fragment_', $_GET) && ecwid_page_has_productbrowser()) {
         remove_action('wp_head', 'genesis_canonical', 5);
     }
 }
 public function __construct()
 {
     parent::__construct();
     if (ecwid_page_has_productbrowser()) {
         wp_enqueue_style('ecwid-theme', plugins_url('ecwid-shopping-cart/css/themes/2014.css'), array('twentyfourteen-style'));
     }
 }
 public function __construct()
 {
     parent::__construct();
     if (ecwid_page_has_productbrowser()) {
         wp_enqueue_script('ecwid-theme', plugins_url('ecwid-shopping-cart/js/themes/2012.js'), array('jquery'), get_option('ecwid_plugin_version'), true);
     }
 }
 public function __construct()
 {
     parent::__construct();
     if (ecwid_page_has_productbrowser()) {
         wp_enqueue_style('ecwid-theme', plugins_url('ecwid-shopping-cart/css/themes/2015.css'), array('twentyfifteen-style'), get_option('ecwid_plugin_version'));
     }
     add_action('ecwid_plugin_installed', array($this, 'on_ecwid_plugin_installed'));
 }
 public function body_class($classes)
 {
     // Yeah, we have to to turn off these ajax click handling routines that break our links
     if (ecwid_page_has_productbrowser()) {
         $classes[] = 'woocommerce';
     }
     return $classes;
 }
 public function disable_seo_on_escaped_fragment()
 {
     if (!array_key_exists('_escaped_fragment_', $_GET) || !ecwid_page_has_productbrowser()) {
         return;
     }
     global $aioseop_options;
     $aioseop_options['aiosp_can'] = false;
     add_filter('aioseop_title', '__return_null');
     add_filter('aioseop_description', '__return_null');
 }
 public function disable_seo_on_escaped_fragment()
 {
     if (!array_key_exists('_escaped_fragment_', $_GET) || !ecwid_page_has_productbrowser()) {
         return;
     }
     global $wpseo_front;
     // Canonical
     if (empty($wpseo_front)) {
         $wpseo_front = WPSEO_Frontend::get_instance();
     }
     remove_action('wpseo_head', array($wpseo_front, 'canonical'), 20);
     // Description
     remove_action('wpseo_head', array($wpseo_front, 'metadesc'), 10);
 }