コード例 #1
0
ファイル: widgets.php プロジェクト: baridavid/themes
 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;
 }
コード例 #2
0
ファイル: header.php プロジェクト: MrMuzik/ar4tupgrade
                    
					<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 
}
?>