?> /"><img src="<?php echo wip_get_uploaded_image_url('bd_logo', get_template_directory_uri() . '/images/default-logo.png'); ?> " alt="<?php bloginfo('name'); ?> " /></a> <?php if (top_bar_is_need_to_show()) { ?> <div id="top-utilitize"<?php echo _wip_logo_on_right(); get_bottomvalue_form_value(); ?> > <?php wip_show_top_commerce_link(); #show additional links before search bar, only show when woocommerce active ?> <?php _wip_show_top_search_form(); ?> </div> <?php } ?>
/** * top shopping cart */ function _wip_top_cart() { global $woocommerce; $subTotal = $woocommerce->cart->get_cart_subtotal(); $cartpage = get_permalink(woocommerce_get_page_id('cart')); ob_start(); the_widget('WooCommerce_Widget_Cart', array('title' => __('Shopping Cart', 'wip')), array('widget_id' => 'wip-top-cart', 'before_title' => '<h3 id="wip_topcart_title">', 'after_title' => '</h3>', 'before_widget' => '', 'after_widget' => '')); $woo_cart = ob_get_clean(); $top_cart = '<div id="wip_woo_cart"' . _wip_logo_on_right() . '>' . "\n"; $top_cart .= '<a class="wip_woo_inner_cart" href="' . $cartpage . '"><span class="top_cart_text">' . __('Shopping Cart', 'wip') . ' — ' . $subTotal . '</span></a>' . "\n"; $top_cart .= '<div class="wip_woo_cart_drop">' . "\n"; $top_cart .= str_replace(' →', '', $woo_cart); $top_cart .= '</div>' . "\n"; $top_cart .= '</div>' . "\n"; return $top_cart; }