<?php

/* Template Name: shops
Template Post Type: post,page,download,product */
?>
<?php get_header(); ?>
<?php layerslider(1) ?>








<article class="container padding-bottom-standard padding-top-standard shops-page">
  

<!--   Catgrays -->
  <ul class="plain-ul filtered-tabs no-gutter">
            <li data-categoryid="13" class="m3g-tab divided active">
                <a href="/%D9%81%D8%B1%D9%88%D8%B4%DA%AF%D8%A7%D9%87-%D9%87%D8%A7/">
                    <i class="1"></i>
                    <span>فروشگاه ها</span>
                </a>
            </li>
            <li data-categoryid="17" class="m3g-tab divided">
                <a >
                    <i class="icon icon-m3g-cogs"></i>
                    <span>رستوران </span>
                </a>
            </li>
            <li data-categoryid="18" class="m3g-tab divided">
                <a href="/category/hayperme/">
                    <i class="icon icon-m3g-cogs"></i>
                    <span>هایپر می</span>
                </a>
            </li>
            <li data-categoryid="19" class="m3g-tab divided">
                <a href="/category/game-atlas/">
                    <i class="icon icon-m3g-cogs"></i>
                    <span>بازی و سرگرمی</span>
                </a>
            </li>
            <li data-categoryid="20" class="m3g-tab divided">
                <a href="#123">
                    <i class="icon icon-m3g-cogs"></i>
                    <span>بانوان</span>
                </a>
            </li>
            <li data-categoryid="123" class="m3g-tab divided">
                <a>
                    <i class="icon icon-m3g-cogs"></i>
                    <span>خدمات</span>
                </a>
            </li>
        <li class="search service-search-container pull-left">
            <input type="search" placeholder="نامی که به دنبال آن می گردید را اینجا بنویسید">
            <div class="search button"><i class="icon icon-m3g-search"></i></div>
        </li>
    </ul>
<!--  end Catgrays -->




<?php wp_reset_query(); ?>
<div id="sidebar">
	<div class="content widget-area">
	<?php 
		$widget = '';
		/**
		 * Check if widget pages are there
		 * then display opted widgets for that page's sidebar
		 * else display default sidebar
		 */
		if ( is_archive() || is_search() ) {
			//
		} else {
			$widgets = get_post_meta( $post->ID, 'custom_widget', true);
			$widget = strtolower( preg_replace('/\s+/', '-',$widgets ) );
			//loop through the widget pages
		}
		/**
		 * If current page falls under widget pages
		 * then display sidebar widgets accordingly
		 * Otherwise display default widgets
		 */
		
		if ( $widget ) {
			if ( function_exists( 'dynamic_sidebar' ) && dynamic_sidebar( 'sidebar-'.$widget ) ) : endif;
		} else {
			if ( !dynamic_sidebar( 'defaultsidebar' )) : 
		endif;
		}
		?>
	</div>
</div><!--  -->
<?php wp_list_categories($args); ?>





    <div id="123" class="row margin-top-standard thumbnailed-sections-wrapper">
<?php
    
     

$cat=girl;
query_posts("category_name=$cat&showposts="); 
while (have_posts()) : the_post();?>


    <div class="col-sm-6 col-md-3">
        <a class="row" href="<?php the_permalink(); ?>">
            <div class="col-md-12 image-container bordered">

<?php the_post_thumbnail( array(300,200), array('class' => 'hover-effected bright full-width'));  ?>

            </div>
            <div href="<?php the_permalink(); ?>" class="col-xs-12 text-center"><?php the_title();  ?></div>

        </a>
    </div>
    



    
<?php endwhile; ?>
	<?php wp_reset_query(); ?>

 
</div>
<div class="pagination">

<?php wp_pagination(); ?>
</div>



    <div class="no-result text-center" style="display: none;"><img src="/wp-content/themes/mizbanetabatat/Assets1/img/icon/search.png"></div>

    <div class="row more-button-container text-center margin-top-standard margin-bottom-standard clr">
        <a href="#load-more" class="bordered-item dark load-more-services" style="">بیشتر (کلیک کنید)</a>
    </div>
</article>


<?php get_footer(); ?>