{* Главная страница магазина *}

{* Для того чтобы обернуть центральный блок в шаблон, отличный от index.tpl *}
{* Укажите нужный шаблон строкой ниже. Это работает и для других модулей *}
{$wrapper = 'index.tpl' scope=parent}

        <div class="container top">
                        <div class="std"><p style="display:none">&nbsp;</p></div>        </div>
        <div class="carousels"><div class="container">
    <!--NEW SALE PRODUCTS-->
    <div class="row">
        <!--NEW PRODUCT-->
<div class="span6">

    <h2>Новинки</h2>
    <div class="carousel es-carousel-wrapper style1">
        <div class="es-carousel">
            <div class="row small_with_description">
                <div class="product_outer">
{get_new_products var=new_products limit=9}
{if $new_products}
{foreach $new_products as $product}                                    
                    <!--PRODUCT-->
                    <div class="span2 product  prod">
                        <div class="product-image-wrapper">
						<div class="label_new_top_left"></div>
        <a href="products/{$product->url}"><img src="{$product->image->filename|resize:200:200}" class="product-retina" alt="{$product->name|escape}"/></a>

                        </div> <div class="wrapper-hover">
                                <div class="product-name"><a href="products/{$product->url}">{$product->name|escape}</a></div>
                                <div class="wrapper">
                                {if $product->variants|count > 0}
 {if $product->variant->compare_price}
 <div class="label_sale_top_right"></div>                               
<div class="product-price-regular">
                                        <div class="product-price-regular">
                                            <span class="spec"><span class="price">{$product->variant->price|convert}</span>  {$currency->sign|escape}</span>
                                            <span class="old"><span class="price">{$product->variant->compare_price|convert}</span> {$currency->sign|escape}</span>
                                        </div>
                                </div><div class="sale_discount img-rounded">-{floor(abs(100-{$product->variant->price}/($product->variant->compare_price)*100))}%</div>                                
{else}                                
                                <div class="product-price"><span class="price">{$product->variant->price|convert}</span> {$currency->sign|escape}</div>
{/if}                                
                                <div class="product-tocart"><a href="{if $product->variants|count == 1}cart?variant={$product->variant->id}{else}products/{$product->url}{/if}"><i class="icon-basket"></i></a></div>
      		{else}
			Нет в наличии
		{/if} 
                                </div>
                            </div></div>
                            
                    <!--PRODUCT EOF-->
 {/foreach}
{/if}                                    

                                </div>
            </div>
        </div>
    </div>
    </div>
<!--NEW PRODUCT EOF-->
        <!--SALE PRODUCTS-->
<div class="span6">
        <h2>Акционные товары</h2>
    <div class="carousel es-carousel-wrapper style1">
        <div class="es-carousel">
            <div class="row small_with_description">
                <div class="product_outer">
{* Акционные товары *}
{get_discounted_products var=discounted_products limit=9}
{if $discounted_products}                
{foreach $discounted_products as $product}                                    
                    <!--PRODUCT-->
                    <div class="span2 product  prod">
                        <div class="product-image-wrapper">
        <a href="products/{$product->url}"><img src="{$product->image->filename|resize:200:200}" class="product-retina" alt="{$product->name|escape}"/></a>

                        </div> <div class="wrapper-hover">
                                <div class="product-name"><a href="products/{$product->url}">{$product->name|escape}</a></div>
                                <div class="wrapper">
                                {if $product->variants|count > 0}
 {if $product->variant->compare_price}
 <div class="label_sale_top_right"></div>                               
<div class="product-price-regular">
                                        <div class="product-price-regular">
                                            <span class="spec"><span class="price">{$product->variant->price|convert}</span>  {$currency->sign|escape}</span>
                                            <span class="old"><span class="price">{$product->variant->compare_price|convert}</span> {$currency->sign|escape}</span>
                                        </div>
                                </div><div class="sale_discount img-rounded">-{floor(abs(100-{$product->variant->price}/($product->variant->compare_price)*100))}%</div>                                
{else}                                
                                <div class="product-price"><span class="price">{$product->variant->price|convert}</span> {$currency->sign|escape}</div>
{/if}                                
                                <div class="product-tocart"><a href="{if $product->variants|count == 1}cart?variant={$product->variant->id}{else}products/{$product->url}{/if}"><i class="icon-basket"></i></a></div>
      		{else}
			Нет в наличии
		{/if} 
                                </div>
                            </div></div>
                            
                    <!--PRODUCT EOF-->
 {/foreach}
              
{/if}              
 
                </div>
            </div>
        </div>
    </div>
    </div>
<!--SALE PRODUCTS EOF-->


    </div>
    <!--NEW SALE PRODUCTS EOF-->
</div>
{literal}
<script type="text/javascript">
    jQuery(function(){
        jQuery('.carousel.style1').elastislide({
            easing: 'easeInOutQuad',
            speed: 800,

        });
    })
</script>
{/literal}
</div>
        <div class="line"></div>
<div class="container">
<h2>Рекомендуемые товары</h2>
<div class="row">
    <div class="span9">
        <div class="row big_with_description">
{* Рекомендуемые товары *}
{get_featured_products var=featured_products limit=6}
{if $featured_products}
{foreach $featured_products as $product}                
<!--PRODUCT-->        
<div class="span3 product  prod">                        
  <div class="product-image-wrapper onhover">                            
        <a href="products/{$product->url}"><img src="{$product->image->filename|resize:200:200}" class="product-retina" alt="{$product->name|escape}"/></a>                       
  </div> 
 <div class="wrapper-hover">
                                <div class="product-name"><a href="products/{$product->url}">{$product->name|escape}</a></div>
                                <div class="wrapper">
                                {if $product->variants|count > 0}
 {if $product->variant->compare_price}
 <div class="label_sale_top_right"></div>                               
<div class="product-price-regular">
                                        <div class="product-price-regular">
                                            <span class="spec"><span class="price">{$product->variant->price|convert}</span>  {$currency->sign|escape}</span>
                                            <span class="old"><span class="price">{$product->variant->compare_price|convert}</span> {$currency->sign|escape}</span>
                                        </div>
                                </div><div class="sale_discount img-rounded">-{floor(abs(100-{$product->variant->price}/($product->variant->compare_price)*100))}%</div>                                
{else}                                
                                <div class="product-price"><span class="price">{$product->variant->price|convert}</span> {$currency->sign|escape}</div>
{/if}                                
                                <div class="product-tocart"><a href="{if $product->variants|count == 1}cart?variant={$product->variant->id}{else}products/{$product->url}{/if}"><i class="icon-basket"></i></a></div>
      		{else}
			Нет в наличии
		{/if} 
                                </div>
                            </div>
</div>        
<!--PRODUCT HOVER-->
<div class="preview  hidden-tablet hidden-phone  prod">            
  <div class="wrapper">
    <div class="col-1">
 		{foreach $product->images as $i=>$image}
			<a class="image" href="products/{$product->url}" data-rel="{$image->filename|resize:200:200}">
			<img class="thumb" src="{$image->filename|resize:95:95}" alt="{$product->name|escape}" /></a>
		{/foreach}                                          
    </div> 
    <div class="col-2 with_media">                          
      <div class="big_image product-image-wrapper">
       <a href="products/{$product->url}"><img data-rel="{$product->image->filename|resize:200:200}" src="{$product->image->filename|resize:200:200}" alt="{$product->name|escape}"/></a> 

      </div>                          
                                     
                                      
 <div class="wrapper-hover">
                                <div class="product-name"><a href="products/{$product->url}">{$product->name|escape}</a></div>
                                <div class="wrapper">
                                {if $product->variants|count > 0}
 {if $product->variant->compare_price}
 <div class="label_sale_top_right"></div>                               
<div class="product-price-regular">
                                        <div class="product-price-regular">
                                            <span class="spec"><span class="price">{$product->variant->price|convert}</span>  {$currency->sign|escape}</span>
                                            <span class="old"><span class="price">{$product->variant->compare_price|convert}</span> {$currency->sign|escape}</span>
                                        </div>
                                </div><div class="sale_discount img-rounded">-{floor(abs(100-{$product->variant->price}/($product->variant->compare_price)*100))}%</div>                                
{else}                                
                                <div class="product-price"><span class="price">{$product->variant->price|convert}</span> {$currency->sign|escape}</div>
{/if}                                
                                <div class="product-tocart"><a href="{if $product->variants|count == 1}cart?variant={$product->variant->id}{else}products/{$product->url}{/if}"><i class="icon-basket"></i></a></div>
      		{else}
			Нет в наличии
		{/if} 
                                </div>
                            </div>                          
    </div>                       
  </div>              
</div>
<!--PRODUCT HOVER EOF-->        
<!--PRODUCT EOF-->
 {/foreach}
 {/if}               

        
        </div>
    </div>

    <div class="span3">
      
 {include file='slider_small.tpl'}       
        
    </div>

</div>
</div>

        <div class="container">
    <div class="custom_blocks margin-1">
        
                 
                    <div class="pull-left">
                        <div class="wrapper_w">
                            <div class="box">
                                <div class="inside">
                                    <a href="#"><span class="icon_circle dark"><i class="icon-truck"></i></span><span class="text">ДОСТАВКА</span></a>
                                </div>
                            </div>
                            <div class="box">
                                <div class="inside">
                                    <a href="#"><span class="icon_circle light"><i class="icon-dollar"></i></span><span class="text">ОПЛАТА</span></a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="pull-left">
                        <div class="wrapper_w">
                            <div class="box">
                                <div class="inside">
                                    <a href="#"><span class="icon_circle dark"><i class="icon-clock"></i></span><span class="text">30-ДНЕЙ ВОЗРАТА</span></a>
                                </div>
                            </div>
                            <div class="box">
                                <div class="inside">
                                    <a href="#"><span class="icon_circle light"><i class="icon-flight"></i></span><span class="text">ТОВАРЫ НА ЗАКАЗ</span></a>
                                </div>
                            </div>
                        </div>
                    </div>
                 
                 </div>
</div>
        <div class="container">
    <div class="row">
        
                 
                    <div class="span3 block_img"><a href="#"><img  data-retina="true" src="design/{$settings->theme}/images/img1.png" alt=""></a> </div>
                    <div class="span3 block_img"><a href="#"><img  data-retina="true" src="design/{$settings->theme}/images/img2.png" alt=""></a> </div>
                    <div class="span3 block_img"><a href="#"><img  data-retina="true" src="design/{$settings->theme}/images/img3.png" alt=""></a> </div>
                    <div class="span3 block_img"><a href="#"><img  data-retina="true" src="design/{$settings->theme}/images/img4.png" alt=""></a> </div>
                 
                 </div>
</div>
        <div class="line_above_footer"></div>
<div id="bottom_block">
    <div class="container">
        <div class="row">
            <div class="span6">
               
                        <h4><i class="icon-vcard"></i>{$page->header}</h4>
                        <div class="cleancode">
                          {$page->body}
                    
                   
                </div>
            </div>
            <div class="span6">
                <div class="row">
                    <div class="span3">
                     <h4><b><span style="color: #9D3BC6;">В</span></b> Контакте</h4>


 <!-- Группа в Контакте -->

    <!-- VK Widget -->
    <div id="vk_groups"></div>
    {literal}
<script type="text/javascript">
 VK.Widgets.Group("vk_groups", {mode: 0, width: "auto", height: "auto", color3: "#9D3BC6", color2: "#000000"}, 45820355);
</script>
    {/literal}
    <!-- Группа в Контакте (The End)-->
    
      
                                    </div>
                    <div class="span3">
                        <h4><i class="icon-mail"></i>КОНТАКТЫ</h4>
                        <div class="cleancode">
                            
                 
                  <ul class="icons">
                        <li><i class="icon-call"></i><strong>ТЕЛЕФОН:</strong><br>
                            321321321, 321321321 </li>
                        <li><i class="icon-mobile-alt"></i><strong>МОБИЛЬНЫЙ:</strong><br>
                            123123123,  123123123 </li>
                        <li><i class="icon-mail-2"></i><strong>E-MAIL АДРЕСС:</strong><br>
                            <a href="mailto:sales@mydomain.com">SALES@MYDOMAIL.COM</a> <br>
                            <a href="mailto:info@mydomain.com">INFO@MYDOMAIN.COM</a> </li>
                        <li><i class="icon-skype"></i><strong>SKYPE:</strong><br>
                            TEST.SHOP,   SHOP.TEST </li>
                    </ul>
                 
                                     </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="push"></div>
</div>





