hooks(); return self::$_instance; } public function hooks() { add_action('agency_ecommerce_main_content', array($this, 'agency_ecommerce_breadcrumb')); add_action('agency_ecommerce_main_content', array($this, 'agency_ecommerce_home_widgets')); add_action('agency_ecommerce_before_content', array($this, 'agency_ecommerce_before_content')); add_action('agency_ecommerce_after_content', array($this, 'agency_ecommerce_after_content')); add_action('agency_ecommerce_credit', array($this, 'agency_ecommerce_credit')); add_filter('body_class', array($this, 'body_class')); } public function body_class($class) { if (class_exists('WooCommerce')) { if (!in_array('woocommerce', $class)) { $class[] = 'woocommerce'; } } return $class; } public function agency_ecommerce_breadcrumb() { get_template_part('template-parts/breadcrumbs'); } public function agency_ecommerce_home_widgets() { get_template_part('template-parts/home-widgets'); } public function agency_ecommerce_before_content() { ?>