<div class="ts-menu"> <?php if (has_nav_menu('primary')) { wp_nav_menu(array('container' => 'nav', 'container_class' => 'main-menu pc-menu ts-mega-menu-wrapper', 'theme_location' => 'primary', 'walker' => new TS_Walker_Nav_Menu())); } else { wp_nav_menu(array('container' => 'nav', 'container_class' => 'main-menu pc-menu ts-mega-menu-wrapper')); } ?> </div> </div> <?php if ($smof_data['ts_enable_tiny_shopping_cart']) { ?> <div class="shopping-cart-wrapper"><?php echo ts_tiny_cart(); ?> </div> <?php } ?> </div> </div> </div> </div> <div class="mobile-menu hidden-phone"> <div class="ic-menu-phone"></div> <div class="mobile-menu-content"></div>
function ts_tiny_cart_filter($fragments) { $fragments['.ts-tiny-cart-wrapper'] = ts_tiny_cart(); return $fragments; }