hooks(); return self::$_instance; } public function hooks() { // Top header status. $show_top_header = (boolean)agency_ecommerce_get_option('show_top_header'); if (!$show_top_header) { return; } add_action('agency_ecommerce_top_header', array($this, 'agency_ecommerce_top_header_action'), 10); add_action('agency_ecommerce_top_header_store_information', array($this, 'agency_ecommerce_top_header_store_information_action'), 10); add_action('agency_ecommerce_top_header_menu', array($this, 'agency_ecommerce_top_header_menu_action'), 10); add_action('agency_ecommerce_top_header_current_date', array($this, 'agency_ecommerce_top_header_current_date_action'), 10); } public function agency_ecommerce_top_header_action() { ?>
'; for ($num_icon = 1; $num_icon <= $number_of_social_icon; $num_icon++) { $icon_link = agency_ecommerce_get_option('social_icon_link_' . $num_icon); $icon = agency_ecommerce_get_option('social_icon_' . $num_icon); $icon = trim(str_replace('fa ', '', $icon)); echo '
  • '; echo ''; echo '
  • '; } echo ''; ?>
    $wishlist_icon ); agency_ecommerce_wishlist($wishlist_config); } // Cart details $show_cart = agency_ecommerce_get_option('show_cart'); $cart_icon = agency_ecommerce_get_option('cart_icon'); if (true == $show_cart && !empty($cart_icon) && class_exists('WooCommerce')) { $cart_config = array( 'icon' => $cart_icon ); agency_ecommerce_cart($cart_config); } $show_top_search = agency_ecommerce_get_option('show_top_search'); if (true === $show_top_search && class_exists('WooCommerce')) { ?>
    'visibility:hidden;' ); agency_ecommerce_product_searchbox($options); ?>
    'top-header-menu', 'menu_id' => 'top-menu', 'depth' => 1, ) ); } ?>