Advertisement
Guest User

Untitled

a guest
Jan 9th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 5.19 KB | None | 0 0
  1.  
  2.             <{  elseif $attr[j]->getDataType() == "string"}>
  3.  
  4.                 <{assign var="attributeName" value=$attr[j]->getName()}>
  5.                 <{assign var="attributeValues" value=$attr[j]->getValues()}>
  6.  
  7.                 <{assign var="attributeImpact" value=$attr[j]->getName()|regex_replace:"/impacts|anslag/i":" "}>
  8.                 <{assign var="attributeSymbols" value=$attr[j]->getName()|regex_replace:"/Symbols|Symbol/i":" "}>
  9.  
  10.                 <{if $attr[j]->getName() != $attributeImpact}>
  11.                     <div class="row">
  12.                     <div class="col-xs-8">
  13.                 <{/if}>
  14.             <{if $attr[j]->getName() != $attributeSymbols}>
  15.                 </div>
  16.                 <div class="col-xs-4">
  17.             <{/if}>
  18.                 <label><{$attributeName}></label>
  19.                 <{if $attr[j]->getName() != $attributeSymbols}>
  20.                     <div class="symbols">
  21.                         <div class="symbol-selector" data-toggle="modal" data-target="#m<{$attr[j]->getAttributeId()}>">
  22.                             <div class="symbol-selected"></div>
  23.                             <input type="text" name="attributes[<{$attr[j]->getAttributeId()}>]" id="a<{$attr[j]->getAttributeId()}>" class="symbol-input" placeholder="Vælg symbol" readonly>
  24.                         </div>
  25.                         <div class="modal fade" id="m<{$attr[j]->getAttributeId()}>" tabindex="-1" role="dialog">
  26.                             <div class="modal-dialog" role="document">
  27.                                 <div class="modal-content">
  28.                                     <div class="modal-body">
  29.                                         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  30.                                         <div class="text-center">
  31.                                             <p><strong>Vælg symbol ved at klikke på ønskede symbol</strong></p>
  32.                                             <h3>Populære symboler</h3>
  33.                                             <{assign var="profiles" value=$webshop->getProfiles()}>
  34.                                             <{foreach from=$profiles item=sProfile}>
  35.                                                 <{assign var="sAttr" value=$sProfile->getAttributeList()}>
  36.                                                 <{section name="s" loop=$sAttr}>
  37.                                                     <{assign var="attributeSymbols2" value=$sAttr[s]->getName()|regex_replace:"/\_FavSymbols|\_PopSymbol/i":" "}>
  38.  
  39.                                                     <{if $sAttr[s]->getName() != $attributeSymbols2}>
  40.                                                         <{assign var="sAttributeValues" value=$sAttr[s]->getValues()}>
  41.                                                         <{section name="k" loop=$sAttributeValues}>
  42.                                                             <div class="symbol" data-id="<{$sAttributeValues[k]->getAttributeValueId()}>" data-symbol="<{$sAttributeValues[k]->getTag()|escape}>"><img src="/img/symbols/<{$sAttributeValues[k]->getTag()|escape}>.svg" alt="<{$sAttributeValues[k]->getVal()|escape}>"/></div>
  43.                                                         <{/section}>
  44.                                                     <{/if}>
  45.                                                 <{/section}>
  46.                                             <{/foreach}>
  47.  
  48.                                             <h3>Blandet symboler</h3>
  49.                                         </div>
  50.  
  51.                                         <{assign var="profiles" value=$webshop->getProfiles()}>
  52.                                         <{foreach from=$profiles item=sProfile}>
  53.                                             <{assign var="sAttr" value=$sProfile->getAttributeList()}>
  54.                                             <{section name="s" loop=$sAttr}>
  55.                                                 <{assign var="attributeSymbols2" value=$sAttr[s]->getName()|regex_replace:"/\_Symbols|\_Symbol/i":" "}>
  56.  
  57.                                                 <{if $sAttr[s]->getName() != $attributeSymbols2}>
  58.                                                     <{assign var="sAttributeValues" value=$sAttr[s]->getValues()}>
  59.                                                     <{section name="k" loop=$sAttributeValues}>
  60.                                                         <div class="symbol" data-id="<{$sAttributeValues[k]->getAttributeValueId()}>" data-symbol="<{$sAttributeValues[k]->getTag()|escape}>">
  61.                                                             <img src="/img/symbols/<{$sAttributeValues[k]->getTag()|escape}>.svg" alt="<{$sAttributeValues[k]->getVal()|escape}>"/>
  62.                                                         </div>
  63.                                                     <{/section}>
  64.                                                 <{/if}>
  65.                                             <{/section}>
  66.                                         <{/foreach}>
  67.                                     </div>
  68.                                 </div>
  69.                             </div>
  70.                         </div>
  71.                     </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement