?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/schtroumpf.fr/themes/stomp/templates/catalog/_partials/miniatures/



?? Go up: /home/webdevt/www/schtroumpf.fr/themes/stomp/templates/catalog/_partials

?? Viewing: product.tpl

{*
* 2021 Anvanto
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 wesite only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
*  @author Anvanto <anvantoco@gmail.com>
*  @copyright  2021 Anvanto
*  @license    Valid for 1 website (or project) for each purchase of license
*  International Registered Trademark & Property of Anvanto
*}
{block name='product_miniature_item'}
  <article class="product-miniature js-product-miniature
  {if isset($page) and $page.page_name == 'category'}
      {if isset($smarty.cookies.an_collection_view)}
        col-lg-{$smarty.cookies.an_collection_view}
      {else}
        {Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount')}
      {/if}
    {/if}
  {if Module::isEnabled('an_theme') and  Module::getInstanceByName('an_theme')->getParam('product_productMobileRow')}
  product-mobile-row
  {/if}
   {if Module::isEnabled('an_theme') and  Module::getInstanceByName('an_theme')->getParam('product_productHeight')}
        product-height
        {/if}
  " data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product">
  {if $product.id_manufacturer}
  <div itemprop="brand" itemtype="https://schema.org/Brand" itemscope>
  <meta itemprop="name" content="{Manufacturer::getnamebyid($product.id_manufacturer)}">
  </div>
  {/if}
    <div class="thumbnail-container">
	
	
		<div class="thumbnail-container-image" style="min-height: {if isset($page) and $page.page_name == 'category'}{if isset($smarty.cookies.an_collection_view)|strip}{if $smarty.cookies.an_collection_view == 3}{$product.cover.bySize.catalog_small.height|strip}{elseif $smarty.cookies.an_collection_view == 4}{$product.cover.bySize.home_default.height|strip}{elseif $smarty.cookies.an_collection_view == 6}{$product.cover.bySize.catalog_large.height|strip}{else}{$product.cover.bySize.home_default.height|strip}{/if}{else}{if Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 3}{$product.cover.bySize.catalog_small.height|strip}{elseif Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 4}{$product.cover.bySize.home_default.height|strip}{elseif Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 6}{$product.cover.bySize.catalog_large.height|strip}{else}{$product.cover.bySize.home_default.height|strip}{/if}{/if}{else}{$product.cover.bySize.home_default.height|strip}{/if}px;">
            {block name='product_thumbnail'}
            {if !$product.cover}
            		<a href="{$product.url}" class="thumbnail product-thumbnail"
            		style="height: {if isset($page) and $page.page_name == 'category'}{if isset($smarty.cookies.an_collection_view)|strip}{if $smarty.cookies.an_collection_view == 3}{$urls.no_picture_image.bySize.catalog_small.height|strip}{elseif $smarty.cookies.an_collection_view == 4}{$urls.no_picture_image.bySize.home_default.height|strip}{elseif $smarty.cookies.an_collection_view == 6}{$urls.no_picture_image.bySize.catalog_large.height|strip}{else}{$urls.no_picture_image.bySize.home_default.height|strip}{/if}{else}{if Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 3}{$urls.no_picture_image.bySize.catalog_small.height|strip}{elseif Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 4}{$urls.no_picture_image.bySize.home_default.height|strip}{elseif Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 6}{$urls.no_picture_image.bySize.catalog_large.height|strip}{else}{$urls.no_picture_image.bySize.home_default.height|strip}{/if}{/if}{else}{$urls.no_picture_image.bySize.home_default.height|strip}{/if}px;">
                        <img
                          src="
                          {if isset($page) and $page.page_name == 'category'}
                             {if isset($smarty.cookies.an_collection_view)}
                                     {if $smarty.cookies.an_collection_view == 3}
                                             {$urls.no_picture_image.bySize.catalog_small.url}
                                     {elseif $smarty.cookies.an_collection_view == 4}
                                             {$urls.no_picture_image.bySize.home_default.url}
                                     {elseif $smarty.cookies.an_collection_view == 6}
                                             {$urls.no_picture_image.bySize.catalog_large.url}
                                     {else}
                                             {$urls.no_picture_image.bySize.home_default.url}
                                     {/if}
                             {else}
                                         {if Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 3}
                                             {$urls.no_picture_image.bySize.catalog_small.url}
                                     {elseif Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 4}
                                             {$urls.no_picture_image.bySize.home_default.url}
                                     {elseif Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 6}
                                             {$urls.no_picture_image.bySize.catalog_large.url}
                                     {else}
                                             {$urls.no_picture_image.bySize.home_default.url}
                                     {/if}
                             {/if}
                          {else}
                            {$urls.no_picture_image.bySize.home_default.url}
                          {/if}
                          "
                          data-catalog-small="{$urls.no_picture_image.bySize.catalog_small.url}"
                          data-catalog-medium="{$urls.no_picture_image.bySize.home_default.url}"
                          data-catalog-large="{$urls.no_picture_image.bySize.catalog_large.url}"
                          data-width="{$urls.no_picture_image.bySize.home_default.width}"
                          data-height="{$urls.no_picture_image.bySize.home_default.height}"
                        >
                      </a>


                    {else}
			<a href="{$product.url}" class="thumbnail product-thumbnail"
                     	        style="height: {if isset($page) and $page.page_name == 'category'}{if isset($smarty.cookies.an_collection_view)|strip}{if $smarty.cookies.an_collection_view == 3}{$product.cover.bySize.catalog_small.height|strip}{elseif $smarty.cookies.an_collection_view == 4}{$product.cover.bySize.home_default.height|strip}{elseif $smarty.cookies.an_collection_view == 6}{$product.cover.bySize.catalog_large.height|strip}{else}{$product.cover.bySize.home_default.height|strip}{/if}{else}{if Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 3}{$product.cover.bySize.catalog_small.height|strip}{elseif Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 4}{$product.cover.bySize.home_default.height|strip}{elseif Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 6}{$product.cover.bySize.catalog_large.height|strip}{else}{$product.cover.bySize.home_default.height|strip}{/if}{/if}{else}{$product.cover.bySize.home_default.height|strip}{/if}px;">
                     						<img
                     							src="{if Module::getInstanceByName('an_theme')->getParam('product_lazyLoad')}
                     							 {$urls.base_url}/modules/an_theme/views/img/loading.svg
                     							 {else}
                     							    {if isset($page) and $page.page_name == 'category'}
                                         {if isset($smarty.cookies.an_collection_view)}
                                             {if $smarty.cookies.an_collection_view == 3}
                                                 {$product.cover.bySize.catalog_small.url}
                                             {elseif $smarty.cookies.an_collection_view == 4}
                                                 {$product.cover.bySize.home_default.url}
                                             {elseif $smarty.cookies.an_collection_view == 6}
                                                 {$product.cover.bySize.catalog_large.url}
                                             {else}
                                                 {$product.cover.bySize.home_default.url}
                                             {/if}
                                         {else}
                                               {if Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 3}
                                                 {$product.cover.bySize.catalog_small.url}
                                             {elseif Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 4}
                                                 {$product.cover.bySize.home_default.url}
                                             {elseif Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 6}
                                                 {$product.cover.bySize.catalog_large.url}
                                             {else}
                                                 {$product.cover.bySize.home_default.url}
                                             {/if}
                                         {/if}
                                     {else}
                                         {$product.cover.bySize.home_default.url}
                                     {/if}
                     							 {/if}"
                                    {if Module::getInstanceByName('an_theme')->getParam('product_lazyLoad')}
                                    data-lazy-gif="{$urls.base_url}/modules/an_theme/views/img/loading.svg"
                                    {/if}
                     							data-catalog-small="{$product.cover.bySize.catalog_small.url}"
                     							data-catalog-medium="{$product.cover.bySize.home_default.url}"
                     							data-catalog-large="{$product.cover.bySize.catalog_large.url}"
                     							alt="{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:30:'...'}{/if}"
                     							data-full-size-image-url="{$product.cover.large.url}"
                     							class="{if Module::getInstanceByName('an_theme')->getParam('product_lazyLoad')} b-lazy {/if}"
                     							data-width="{$product.cover.bySize.home_default.width}"
                     							data-height="{$product.cover.bySize.home_default.height}"
                     							width="{$product.cover.bySize.home_default.width}"
                                                height="{$product.cover.bySize.home_default.height}"
                     							content="{$product.cover.bySize.home_default.url}"
                                   data-src="{if isset($page) and $page.page_name == 'category'}
                                         {if isset($smarty.cookies.an_collection_view)}
                                             {if $smarty.cookies.an_collection_view == 3}
                                                 {$product.cover.bySize.catalog_small.url}
                                             {elseif $smarty.cookies.an_collection_view == 4}
                                                 {$product.cover.bySize.home_default.url}
                                             {elseif $smarty.cookies.an_collection_view == 6}
                                                 {$product.cover.bySize.catalog_large.url}
                                             {else}
                                                 {$product.cover.bySize.home_default.url}
                                             {/if}
                                         {else}
                                             {if Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 3}
                                                 {$product.cover.bySize.catalog_small.url}
                                             {elseif Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 4}
                                                 {$product.cover.bySize.home_default.url}
                                             {elseif Module::getInstanceByName('an_theme')->getParam('categoryPage_productsAmount') == 6}
                                                 {$product.cover.bySize.catalog_large.url}
                                             {else}
                                                 {$product.cover.bySize.home_default.url}
                                             {/if}
                                         {/if}
                                     {else}
                                         {$product.cover.bySize.home_default.url}
                                     {/if}"
                     						>
                     		    </a>
               {/if}
		  {/block}
      <div class="highlighted-informations{if !$product.main_variants} no-variants{/if} hidden-sm-down">

          {block name='product_wishlist'}
           {hook h='displayProductListWishlist' product=$product}
           {/block}
            {if Module::isEnabled('an_theme') and Module::getInstanceByName('an_theme')->getParam('product_showquickview') == 1}
          {block name='quick_view'}
              <a class="quick-view" href="#" data-link-action="quickview">
                  <svg
                   xmlns="http://www.w3.org/2000/svg"
                   xmlns:xlink="http://www.w3.org/1999/xlink"
                   width="20px" height="20px">
                  <path fill-rule="evenodd"  fill="rgb(0, 0, 0)"
                   d="M19.797,18.980 L14.943,14.120 C16.245,12.621 17.034,10.665 17.034,8.528 C17.034,3.823 13.211,-0.000 8.517,-0.000 C3.818,-0.000 0.000,3.827 0.000,8.528 C0.000,13.228 3.822,17.056 8.517,17.056 C10.651,17.056 12.605,16.266 14.102,14.962 L18.956,19.823 C19.071,19.938 19.226,20.000 19.376,20.000 C19.527,20.000 19.682,19.942 19.797,19.823 C20.027,19.592 20.027,19.211 19.797,18.980 ZM1.191,8.528 C1.191,4.483 4.478,1.197 8.512,1.197 C12.551,1.197 15.833,4.488 15.833,8.528 C15.833,12.568 12.551,15.862 8.512,15.862 C4.478,15.862 1.191,12.572 1.191,8.528 Z"/>
                  </svg>
              </a>
          {/block}
          {/if}
      </div>
    </div>
		
      <div class="product-description">
       {block name='product_reviews'}
        {hook h='displayProductListReviews' product=$product}
        {/block}
        {block name='product_name'}
          <h3 class="h3 product-title" itemprop="name"><a href="{$product.url}">
           {if Module::isEnabled('an_theme') and Module::getInstanceByName('an_theme')->getParam('product_miniatureTitleLength')}
              {$max_titlelength = Module::getInstanceByName('an_theme')->getParam('product_miniatureTitleLength')}
               {$product.name|truncate:$max_titlelength:'...'}
            {else}
              {$product.name|truncate:30:'...'}
            {/if}
          </a></h3>
        {/block}
      {if (Module::isEnabled('an_theme') and Module::getInstanceByName('an_theme')->getParam('product_shortDescription') == 1) or (
           Module::isEnabled('an_theme') and Module::getInstanceByName('an_theme')->getParam('product_shortDescription') == 0 and isset($page) and ($page.page_name == 'category' or $page.page_name == 'search' or $page.page_name == 'best-sales' or $page.page_name == 'new-products' or $page.page_name == 'prices-drop'))}
       {$max_length = Module::getInstanceByName('an_theme')->getParam('product_shortDescriptionLength')}
           {block name='product_description_short'}
               <p class="an_short_description {if Module::isEnabled('an_theme') and Module::getInstanceByName('an_theme')->getParam('product_shortDescription') == 0 and isset($page) and ($page.page_name == 'category' or $page.page_name == 'search' or $page.page_name == 'best-sales' or $page.page_name == 'new-products' or $page.page_name == 'prices-drop')}grid-view-desc{/if}" id="an_short_description_{$product.id}">
                   {if Module::isEnabled('an_theme') and Module::getInstanceByName('an_theme')->getParam('product_shortDescription') == 0 and isset($page) and ($page.page_name == 'category' or $page.page_name == 'search')}
                                   {$product.description_short|strip_tags:'UTF-8'|truncate:300:'...'}
                   {else}
                                   {$product.description_short|strip_tags:'UTF-8'|truncate:$max_length:'...'}
                   {/if}
               </p>
           {/block}
       {/if}
        {block name='product_price_and_shipping'}
          {if $product.show_price}
            <div class="product-price-and-shipping">
    
              {hook h='displayProductPriceBlock' product=$product type="before_price"}
                  <div class="product-prices-block">
              <span class="sr-only">{l s='Price' d='Shop.Theme.Catalog'}</span>
               <span class="price" itemprop="price" content="{$product.price_tax_exc}">
                    <span class="money" {if isset($currency_code)}data-currency-{$currency_code|lower}="{$product.price}"{/if}>{$product.price}</span>
                </span>
              {if $product.has_discount}
                {hook h='displayProductPriceBlock' product=$product type="old_price"}

                <span class="sr-only">{l s='Regular price' d='Shop.Theme.Catalog'}</span>
                <span class="regular-price">{$product.regular_price}</span>
              {/if}
              </div>
              {hook h='displayProductPriceBlock' product=$product type='unit_price'}

              {hook h='displayProductPriceBlock' product=$product type='weight'}

             
              
            </div>
          {/if}
        {/block}



      </div>

      {block name='product_flags'}
        <ul class="product-flags">
          {foreach from=$product.flags item=flag}
            <li class="product-flag {$flag.type}">{$flag.label}</li>
          {/foreach}
          {if $product.has_discount}
            {if $product.discount_type === 'percentage'}
              <li class="product-flag discount-percentage">{$product.discount_percentage}</span>
            {/if}
          {/if}
        </ul>
      {/block}
    </div>
  </article>
{/block}


??

??