<div class="page-title-wrap container">
    <h1 class="product-category">New Arrivals</h1>
    <!--<span class="items-count"><?php echo $item_count; ?> Item(s)</span>-->
</div>
<div class="main container">
    <div class="clearfix category-container row">
    	<!--left-->
    	<!--<div class="col-sm-6 side_bg left hidden-xs"></div>
        <div class="col-left col-sm-6 sidebar f-left hidden-xs">
        	<div class="block-content">
            <dl id="narrow-by-list">
            	<dt class="odd"><span class="span1">Release Date</span></dt>
                <?php foreach($release_10_dates as $release_date){?>
                <dd class="options">
                	<ol>
                    	<li>
                        <a href="<?php echo $release_date['href']; ?>"><?php echo $release_date['date']; ?></a>
                        <span class="count">(<?php echo $release_date['product_count']; ?>)</span>
                        </li>
                    </ol>
                 </dd>
                <?php }?>
            </dl>
            </div>
        </div>-->
        <!--left end-->
        
        <!--right-->
        <div class="col-main col-sm-24 f-right">    
            <div id="awac_catalog_container">
            	<div class="category-products row">
                	<div class="toolbar clearfix">
                    <div class="sorter">
                        <!--<a class="sort_link selected"><?php echo $show_date; ?></a>-->
                        <a class="sort_link selected">2017-2018</a>
                        <select onchange="sort_by()" id="sort_by" name="sort_by">
                          <option selected="" value="1">Newest</option>
                          <option value="2">Bestselling</option>
                          <option value="3">Price:lowest first</option>
                          <option value="4">Price:highest first</option>
                        </select>
                        <label>Sort by:</label>
                     
                  		</div>
                    </div>
                    <ul class="product_list clearfix">
                       <?php foreach ($date_product_list as $product) { ?>
                        <li class="list_item">
                        	<div class="list_item_inner">
                              <a class="link-wishlist" href="">
                                  <span class="tip">Add to Wishlist</span>
                                  <i class="icon-heart"></i>
                              </a>
                              <div class="img_wrap img_wrap_2">         
                                <a href="<?php echo $product['href']; ?>"><img width="270" alt="<?php echo $product['name']; ?>" src="<?php echo $product['thumb']; ?>"></a> </div>
                                <div class="product-description">
                                	<div class="item_title item_title_2"><a title="<?php echo $product['title']; ?>" href="<?php echo $product['href']; ?>"><?php echo $product['title']; ?></a> </div>
                                    <div class="clearfix">
                                        <div class="item_price">
                                            <p><span class="special-price"><?php echo $product['price']; ?></span></p>
                                        </div>
                                        <!--<div class="item_review">
                                        <div class="rating rating_2">
                                            <span class="nostar nostar_category">
                                                <span style="width:90%;" class="nstar nstar_category"></span>
                                            </span>
                                        </div>
                                        (<?php echo $product['review_info']['count'];?>)<span class="line">|</span>Orders (<?php echo $product['sold'];?>) 
                                     </div>-->
                                    </div>
                                </div>
                            </div>                  
                        </li>
                        <?php }?>    
                     </ul>   
                 </div>          
                 <div class="toolbar clearfix row">
                  	<div class="sorter_bottom">
                        <div class="col-sm-8 left"><?php echo $text_results;?></div>
                        <div class="col-sm-16 right">                   
                        <a href="<?php echo $action . '&page=' . (($page>1)?($page-1):$page); ?>"><?php echo 'Previous'?></a>                     
                        <?php foreach ($pages as $f_page) { ?>        
                        <?php if ( $f_page['value'] < ($page - 2) ) {continue; } ?>
                        <?php if ( $f_page['value'] > ($page + 4) ) {continue; } ?>                                               
                        <?php if ($f_page['value'] == $page) { ?>
                        <b class="selected"><?php $x = explode(" ",$f_page['text']);echo $x[0]; ?></b>
                        <?php } else { ?>
                          <a class="page_btn" href="<?php echo $action . '&page=' . $f_page['value']; ?>"><?php $x = explode(" ",$f_page['text']);echo $x[0]; ?></a></td>
                        <?php } ?>   
                        <?php } ?>                       
                        <a class="page_btn" href="<?php echo $action . '&page=' . (($page<count($pages))?($page+1):$page); ?>"><?php echo 'Next'?></a>                     
                        <label>Go to Page</label>
                        <select onchange="return SelectPage(this.value)" style="width:50px;">
                            <?php foreach ($pages as $f_page){?>
                            <option value="<?php echo $f_page['value']?>" <?php if ($f_page['value'] == $page){echo 'selected';}?>><?php echo $f_page['value']?></option>
                            <?php };?>
                        </select>
                        <script type="text/javascript">
							function SelectPage(page) {
								window.location.href="<?php echo $action; ?>&page=" + page;
							}
						</script>
                        </div>
                    </div>
               </div>
       </div>
    </div>
    <!--right end -->
    </div>
</div>
<hr class="delimiter">
<script type="text/javascript">
	var liList= $(".options ol>li:not('.none')");
	var currentLink = document.location.href;
	var linkss=$(".options ol>li:not('.one')>a");
	for(var i=0;i<liList.length;i++){
		if(currentLink.indexOf(linkss[i])!=-1) {
			$(liList[i]).addClass("current");
		}
	}
</script>