Facebook
From debil, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 83
  1. <div class="exSubcatSlider--holder{if (!isset($subcategorySliderBigBanner) || $subcategorySliderBigBanner == '')} hide-from-tablet{/if}">
  2.             <div class="exSubcatSlider--title">
  3.                 {s name="exSubcategoriesSliderTitle"}Entdecken sie unser vielfältiges produktsortiment{/s}
  4.             </div>
  5.             <div class="product-slider emotion-ex-subcategories-slider"
  6.                  data-subcategories-slider="true"
  7.                  data-itemminwidth="280"
  8.                  data-autoslidespeed="5"
  9.                  data-animationspeed="500"
  10.                  data-infiniteSlide="false"
  11.             >
  12.  
  13.                 <span class="exSubcatSlider--label__more">{s name="exSubcategoriesLabelMore"}weitere Kategorien{/s}</span>
  14.  
  15.                 <div id="exSubcategorySlider" class="product-slider--container{if $sCategoryContent.exLevel > 1} category-level--sub{else} category-level--main{/if}">
  16.                     {if $subcategoriesAmount == 1}
  17.                         <div class="product-slider--item">
  18.                             {* Product box will be placed here. *}
  19.                             <div class="product--box box--slider">
  20.                                 <div class="box--content is--rounded">
  21.  
  22.                                     {foreach $sliderSubcategoriesCount as $category}
  23.                                         <div class="ex-product-box ex-product-box-top">
  24.                                             <a href="{url controller=cat sCategory=$category.id}"
  25.                                                class="subcats--item">
  26.                                                 <div class="subcats--item-header">
  27.                                                     <strong class="subcats--item-title">{$category.name}</strong>
  28.                                                     <span class="subcats--item-amount">{$category.products} {s name='exProducts'}Produkte{/s}</span>
  29.                                                 </div>
  30.  
  31.                                                 <div class="exSubcatSlider--image__svg">
  32.                                                     <img src="{$category.categoryImageSvgContent}">
  33.                                                 </div>
  34.  
  35.                                                 <span class="arrow">
  36.                                                     {include file="frontend/_helpers/icon.tpl" icon="uncolorized--arrow-right-fa" class="uncolorized--arrow-right-fa"}
  37.                                                 </span>
  38.  
  39.                                                 {if $abTestsVariables.mobileListing.activeVariant == 'ex_mobile_listing_new'}
  40.                                                     <div class="subcats--item-img">
  41.                                                         <img src="{$category.topSellerImg}" alt="{$category.name}">
  42.                                                     </div>
  43.                                                 {/if}
  44.  
  45.                                                 {if $category.categoryMediaJpg}
  46.                                                     <img src="{$category.categoryMediaJpg}"
  47.                                                          class='subcats--item-hover'/>
  48.                                                     <div class="subcats--image__mobile" style="
  49.                                                             background-image: url({$category.categoryMediaJpg});
  50.                                                             "></div>
  51.                                                 {/if}
  52.                                             </a>
  53.                                         </div>
  54.                                     {/foreach}
  55.                                     <div class="ex-product-box ex-product-box-bottom">
  56.                                         <a href="{url controller=cat sCategory=$category.id}" class="subcats--item">
  57.                                             <div class="subcats--item-header">
  58.                                                 <strong class="subcats--item-title">{$category.name}</strong>
  59.                                                 <span class="subcats--item-amount">{$category.products} {s name='exProducts'}Produkte{/s}</span>
  60.                                             </div>
  61.  
  62.                                             <div class="exSubcatSlider--image__svg">
  63.                                                 <img src="{$category.categoryImageSvgContent}">
  64.                                             </div>
  65.  
  66.                                             <span class="arrow">
  67.                                                 {include file="frontend/_helpers/icon.tpl" icon="uncolorized--arrow-right-fa" class="uncolorized--arrow-right-fa"}
  68.                                             </span>
  69.  
  70.                                             {if $category.categoryMediaJpg}
  71.                                                 <img src="{$category.categoryMediaJpg}"
  72.                                                      class='subcats--item-hover'/>
  73.                                                 <div class="subcats--image__mobile" style="
  74.                                                         background-image: url({$category.categoryMediaJpg});
  75.                                                         "></div>
  76.                                             {/if}
  77.                                         </a>
  78.                                     </div>
  79.  
  80.                                 </div>
  81.                             </div>
  82.                         </div>
  83.                     {elseif $subcategoriesAmount == 2}
  84.                         <div class="product-slider--item">
  85.                             {* Product box will be placed here. *}
  86.                             <div class="product--box box--slider">
  87.                                 <div class="box--content is--rounded">
  88.                                     {foreach name=subcategoriesSlider from=$sliderSubcategoriesCount item=category}
  89.                                         {if $smarty.foreach.subcategoriesSlider.first}
  90.                                             <div class="ex-product-box ex-product-box-top">
  91.                                                 <a href="{url controller=cat sCategory=$category.id}"
  92.                                                    class="subcats--item">
  93.                                                     <div class="subcats--item-header">
  94.                                                         <strong class="subcats--item-title">{$category.name}</strong>
  95.                                                         <span class="subcats--item-amount">{$category.products} {s name='exProducts'}Produkte{/s}</span>
  96.                                                     </div>
  97.  
  98.                                                     <div class="exSubcatSlider--image__svg">
  99.                                                         <img src="{$category.categoryImageSvgContent}">
  100.                                                     </div>
  101.  
  102.                                                     <span class="arrow">
  103.                                                         {include file="frontend/_helpers/icon.tpl" icon="uncolorized--arrow-right-fa" class="uncolorized--arrow-right-fa"}
  104.                                                     </span>
  105.  
  106.                                                     {if $abTestsVariables.mobileListing.activeVariant == 'ex_mobile_listing_new'}
  107.                                                         <div class="subcats--item-img">
  108.                                                             <img src="{$category.topSellerImg}" alt="{$category.name}">
  109.                                                         </div>
  110.                                                     {/if}
  111.  
  112.                                                     {if $category.categoryMediaJpg}
  113.                                                         <img src="{$category.categoryMediaJpg}"
  114.                                                              class='subcats--item-hover'/>
  115.                                                         <div class="subcats--image__mobile" style="
  116.                                                                 background-image: url({$category.categoryMediaJpg});
  117.                                                                 "></div>
  118.                                                     {/if}
  119.                                                 </a>
  120.                                             </div>
  121.                                         {/if}
  122.  
  123.                                         {if $smarty.foreach.subcategoriesSlider.last}
  124.                                             <div class="ex-product-box ex-product-box-bottom">
  125.                                                 <a href="{url controller=cat sCategory=$category.id}"
  126.                                                    class="subcats--item">
  127.                                                     <div class="subcats--item-header">
  128.                                                         <strong class="subcats--item-title">{$category.name}</strong>
  129.                                                         <span class="subcats--item-amount">{$category.products} {s name='exProducts'}Produkte{/s}</span>
  130.                                                     </div>
  131.  
  132.                                                     <div class="exSubcatSlider--image__svg">
  133.                                                         <img src="{$category.categoryImageSvgContent}">
  134.                                                     </div>
  135.  
  136.                                                     <span class="arrow">
  137.                                                         {include file="frontend/_helpers/icon.tpl" icon="uncolorized--arrow-right-fa" class="uncolorized--arrow-right-fa"}
  138.                                                     </span>
  139.  
  140.                                                     {if $abTestsVariables.mobileListing.activeVariant == 'ex_mobile_listing_new'}
  141.                                                         <div class="subcats--item-img">
  142.                                                             <img src="{$category.topSellerImg}" alt="{$category.name}">
  143.                                                         </div>
  144.                                                     {/if}
  145.  
  146.                                                     {if $category.categoryMediaJpg}
  147.                                                         <img src="{$category.categoryMediaJpg}"
  148.                                                              class='subcats--item-hover'/>
  149.                                                         <div class="subcats--image__mobile" style="
  150.                                                                 background-image: url({$category.categoryMediaJpg});
  151.                                                                 "></div>
  152.                                                     {/if}
  153.                                                 </a>
  154.                                             </div>
  155.                                         {/if}
  156.                                     {/foreach}
  157.  
  158.                                 </div>
  159.                             </div>
  160.                         </div>
  161.                     {elseif $subcategoriesAmount > 2}
  162.  
  163.                         {$index = 1}
  164.                         {foreach name=subcategoriesSlider from=$sliderSubcategoriesCount item=category}
  165.                             {if $index == 1}
  166.                                 <div class="product-slider--item">
  167.                                     {* Product box will be placed here. *}
  168.                                     <div class="product--box box--slider">
  169.                                         <div class="box--content is--rounded">
  170.  
  171.                                             <div class="ex-product-box ex-product-box-top">
  172.                                                 <a href="{url controller=cat sCategory=$category.id}"
  173.                                                    class="subcats--item">
  174.                                                     <div class="subcats--item-header">
  175.                                                         <strong class="subcats--item-title">{$category.name}</strong>
  176.                                                         <span class="subcats--item-amount">{$category.products} {s name='exProducts'}Produkte{/s}</span>
  177.                                                     </div>
  178.  
  179.                                                     <div class="exSubcatSlider--image__svg">
  180.                                                         <img src="{$category.categoryImageSvgContent}">
  181.                                                     </div>
  182.  
  183.                                                     <span class="arrow">
  184.                                                         {include file="frontend/_helpers/icon.tpl" icon="uncolorized--arrow-right-fa" class="uncolorized--arrow-right-fa"}
  185.                                                     </span>
  186.  
  187.                                                     {if $abTestsVariables.mobileListing.activeVariant == 'ex_mobile_listing_new'}
  188.                                                         <div class="subcats--item-img">
  189.                                                             <img src="{$category.topSellerImg}" alt="{$category.name}">
  190.                                                         </div>
  191.                                                     {/if}
  192.  
  193.                                                     {if $category.categoryMediaJpg}
  194.                                                         <img src="{$category.categoryMediaJpg}"
  195.                                                              class='subcats--item-hover'/>
  196.                                                         <div class="subcats--image__mobile" style="
  197.                                                                 background-image: url({$category.categoryMediaJpg});
  198.                                                                 "></div>
  199.                                                     {/if}
  200.                                                 </a>
  201.                                             </div>
  202.  
  203.                                             {$index = 2}
  204.                                             {elseif $index == 2}
  205.  
  206.                                             <div class="ex-product-box ex-product-box-bottom">
  207.                                                 <a href="{url controller=cat sCategory=$category.id}"
  208.                                                    class="subcats--item">
  209.                                                     <div class="subcats--item-header">
  210.                                                         <strong class="subcats--item-title">{$category.name}</strong>
  211.                                                         <span class="subcats--item-amount">{$category.products} {s name='exProducts'}Produkte{/s}</span>
  212.                                                     </div>
  213.  
  214.                                                     <div class="exSubcatSlider--image__svg">
  215.                                                         <img src="{$category.categoryImageSvgContent}">
  216.                                                     </div>
  217.  
  218.                                                     <span class="arrow">
  219.                                                         {include file="frontend/_helpers/icon.tpl" icon="uncolorized--arrow-right-fa" class="uncolorized--arrow-right-fa"}
  220.                                                     </span>
  221.  
  222.                                                     {if $abTestsVariables.mobileListing.activeVariant == 'ex_mobile_listing_new'}
  223.                                                         <div class="subcats--item-img">
  224.                                                             <img src="{$category.topSellerImg}" alt="{$category.name}">
  225.                                                         </div>
  226.                                                     {/if}
  227.  
  228.                                                     {if $category.categoryMediaJpg}
  229.                                                         <img src="{$category.categoryMediaJpg}"
  230.                                                              class='subcats--item-hover'/>
  231.                                                         <div class="subcats--image__mobile" style="
  232.                                                                 background-image: url({$category.categoryMediaJpg});
  233.                                                                 "></div>
  234.                                                     {/if}
  235.                                                 </a>
  236.                                             </div>
  237.  
  238.                                         </div>
  239.                                     </div>
  240.                                 </div>
  241.                                 {$index = 1}
  242.                             {/if}
  243.                         {/foreach}
  244.  
  245.                         {if $parity == 1}
  246.                             <div class="product-slider--item">
  247.                                 <div class="product--box box--slider">
  248.                                     <div class="box--content is--rounded">
  249.  
  250.                                         {foreach $lastElement as $category}
  251.                                             <div class="ex-product-box ex-product-box-top">
  252.                                                 <a href="{url controller=cat sCategory=$category.id}"
  253.                                                    class="subcats--item">
  254.                                                     <div class="subcats--item-header">
  255.                                                         <strong class="subcats--item-title">{$category.name}</strong>
  256.                                                         <span class="subcats--item-amount">{$category.products} {s name='exProducts'}Produkte{/s}</span>
  257.                                                     </div>
  258.  
  259.                                                     <div class="exSubcatSlider--image__svg">
  260.                                                         <img src="{$category.categoryImageSvgContent}">
  261.                                                     </div>
  262.  
  263.                                                     <span class="arrow">
  264.                                                         {include file="frontend/_helpers/icon.tpl" icon="uncolorized--arrow-right-fa" class="uncolorized--arrow-right-fa"}
  265.                                                     </span>
  266.  
  267.                                                     {if $abTestsVariables.mobileListing.activeVariant == 'ex_mobile_listing_new'}
  268.                                                         <div class="subcats--item-img">
  269.                                                             <img src="{$category.topSellerImg}" alt="{$category.name}">
  270.                                                         </div>
  271.                                                     {/if}
  272.  
  273.                                                     {if $category.categoryMediaJpg}
  274.                                                         <img src="{$category.categoryMediaJpg}"
  275.                                                              class='subcats--item-hover'/>
  276.                                                         <div class="subcats--image__mobile" style="
  277.                                                                 background-image: url({$category.categoryMediaJpg});
  278.                                                                 "></div>
  279.                                                     {/if}
  280.                                                 </a>
  281.                                             </div>
  282.                                         {/foreach}
  283.  
  284.                                     </div>
  285.                                 </div>
  286.                             </div>
  287.                         {/if}
  288.                     {/if}
  289.                 </div>
  290.             </div>
  291.         </div>