function widget($args, $instance) { extract($args); $count = (int) $instance['count']; $products = (bool) $instance['products']; $images = (bool) $instance['images']; $posts = (bool) $instance['posts']; $portfolio = (bool) $instance['portfolio']; $pages = (bool) $instance['pages']; echo $before_widget; echo etheme_search(array('products' => $products, 'posts' => $posts, 'portfolio' => $portfolio, 'pages' => $pages, 'images' => $images, 'count' => $count)); echo $after_widget; }
<div class="logo"><?php etheme_logo(); ?> </div> <?php if (etheme_get_option('search_form')) { ?> <div class="search search-center hidden-phone hidden-tablet"> <div class="site-description hidden-phone hidden-tablet"><?php bloginfo('description'); ?> </div> <?php echo etheme_search(array()); ?> </div> <?php } ?> <?php if (class_exists('Woocommerce') && !etheme_get_option('just_catalog') && etheme_get_option('cart_widget')) { ?> <?php etheme_top_cart(); ?> <?php } ?>