SHARE
TWEET

amd - menu-tecdoc-bar

lukesvec Jan 9th, 2019 (edited) 108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div class="select2tecdoc">
  2.         {if $tecdocItem.tecdocBrands}
  3.             <select class="js-change-url menu-left-select menutec1" name="tecdocBrands" data-container="body">
  4.                 <option></option>
  5.                 {foreach from=$tecdocItem.tecdocBrands item=brand}
  6.                     <option value="{if $brand.href}{$brand.href|default:'#'}{/if}" {if $brand.href == $tecdocItem.selectedBrandHref}selected="selected"{/if}>{$brand.text}</option>
  7.                 {/foreach}
  8.             </select>
  9.         {/if}
  10.  
  11.         {* TecDoc modely *}
  12.  
  13.         {if $tecdocItem.tecdocModels}
  14.             <select {if not $tecdocItem.tecdocModels.0}disabled="disabled"{/if} class="js-change-url menu-left-select menutec2" name="tecdocModels" data-container="body" >
  15.                 <option></option>
  16.                 {foreach from=$tecdocItem.tecdocModels item=model}
  17.                
  18.                     {if $model}
  19.                         <option value="{if $model.href}{$model.href|default:'#'}{/if}" {if $model.href == $tecdocItem.selectedModelHref}selected="selected"{/if}>{$model.text}</option>
  20.                     {/if}
  21.                 {/foreach}
  22.             </select>
  23.         {/if}
  24.  
  25.         {* TecDoc motorizacie *}
  26.  
  27.         {if $tecdocItem.tecdocMotorizations}
  28.             <select  {if not $tecdocItem.tecdocMotorizations.0}disabled="disabled"{/if}  class="js-change-url menu-left-select menutec3" name="tecdocMotorizations" data-container="body">
  29.                 <option></option>
  30.                 {foreach from=$tecdocItem.tecdocMotorizations item=motorization}
  31.                     {if $motorization}
  32.                         <option value="{if $motorization.href}{$motorization.href|default:'#'}{/if}" {if $motorization.href == $tecdocItem.selectedMotorizationHref}selected="selected"{/if}>{$motorization.text}{if $motorization.description} - {$motorization.description}{/if} ({$motorization.engine_output_kw} kW)</option>
  33.                     {/if}
  34.                 {/foreach}
  35.             </select>
  36.         {/if}
  37.         {* TecDoc kategorie nahradnych dielov *}
  38.  
  39.         {if $tecdocItem.children.categories}
  40.             <div class="tecdoc-parts-cats-nav">
  41.                 {include
  42.                 file = "inc/guide_list_tecdoc_parts_cat_left.tpl"
  43.                 data = $tecdocItem.children.categories
  44.                 selectedPath = $tecdocItem.children.selectedPath
  45.                 counter = 1
  46.                 }
  47.             </div>
  48.         {/if}
  49. </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top