Beispiel #1
0
 /**
  *
  */
 public function woocommerce_header_add_to_cart_fragment($fragments)
 {
     global $woocommerce;
     ob_start();
     shopping_cartdropdown();
     $fragments['.top-cart.dropdown'] = ob_get_clean();
     return $fragments;
 }
Beispiel #2
0
                                <div class="navbar-header">
                                    <?php 
wpo_renderButtonToggle();
?>
                                </div><!-- //END #navbar-header -->
                                <?php 
$args = array('theme_location' => 'mainmenu', 'container_class' => 'collapse navbar-collapse navbar-ex1-collapse', 'menu_class' => 'nav navbar-nav megamenu', 'fallback_cb' => '', 'menu_id' => 'main-menu', 'walker' => new Wpo_Megamenu());
wp_nav_menu($args);
?>
                            </nav>
                            <!-- //MENU -->
                        </div>
                        <!-- Setting cart -->
                        <div class="col-md-2 shop-cart hidden-sm hidden-xs">
                            <?php 
shopping_cartdropdown();
?>
                        </div>
                        <!-- Setting cart -->

                        <div class="modal fade" id="wpo_modal_cart" tabindex="-1" role="dialog" aria-hidden="true">
                            <div class="modal-dialog modal-lg modal-min-width">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <button type="button" class="close btn btn-close" data-dismiss="modal" aria-hidden="true">
                                            <i class="fa fa-times"></i>
                                        </button>
                                        <h4 class="modal-title"><?php 
echo __('Cart', TEXTDOMAIN);
?>
</h4>