Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <{ elseif $attr[j]->getDataType() == "string"}>
- <{assign var="attributeName" value=$attr[j]->getName()}>
- <{assign var="attributeValues" value=$attr[j]->getValues()}>
- <{assign var="attributeImpact" value=$attr[j]->getName()|regex_replace:"/impacts|anslag/i":" "}>
- <{assign var="attributeSymbols" value=$attr[j]->getName()|regex_replace:"/Symbols|Symbol/i":" "}>
- <{if $attr[j]->getName() != $attributeImpact}>
- <div class="row">
- <div class="col-xs-8">
- <{/if}>
- <{if $attr[j]->getName() != $attributeSymbols}>
- </div>
- <div class="col-xs-4">
- <{/if}>
- <label><{$attributeName}></label>
- <{if $attr[j]->getName() != $attributeSymbols}>
- <div class="symbols">
- <div class="symbol-selector" data-toggle="modal" data-target="#m<{$attr[j]->getAttributeId()}>">
- <div class="symbol-selected"></div>
- <input type="text" name="attributes[<{$attr[j]->getAttributeId()}>]" id="a<{$attr[j]->getAttributeId()}>" class="symbol-input" placeholder="Vælg symbol" readonly>
- </div>
- <div class="modal fade" id="m<{$attr[j]->getAttributeId()}>" tabindex="-1" role="dialog">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-body">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <div class="text-center">
- <p><strong>Vælg symbol ved at klikke på ønskede symbol</strong></p>
- <h3>Populære symboler</h3>
- <{assign var="profiles" value=$webshop->getProfiles()}>
- <{foreach from=$profiles item=sProfile}>
- <{assign var="sAttr" value=$sProfile->getAttributeList()}>
- <{section name="s" loop=$sAttr}>
- <{assign var="attributeSymbols2" value=$sAttr[s]->getName()|regex_replace:"/\_FavSymbols|\_PopSymbol/i":" "}>
- <{if $sAttr[s]->getName() != $attributeSymbols2}>
- <{assign var="sAttributeValues" value=$sAttr[s]->getValues()}>
- <{section name="k" loop=$sAttributeValues}>
- <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>
- <{/section}>
- <{/if}>
- <{/section}>
- <{/foreach}>
- <h3>Blandet symboler</h3>
- </div>
- <{assign var="profiles" value=$webshop->getProfiles()}>
- <{foreach from=$profiles item=sProfile}>
- <{assign var="sAttr" value=$sProfile->getAttributeList()}>
- <{section name="s" loop=$sAttr}>
- <{assign var="attributeSymbols2" value=$sAttr[s]->getName()|regex_replace:"/\_Symbols|\_Symbol/i":" "}>
- <{if $sAttr[s]->getName() != $attributeSymbols2}>
- <{assign var="sAttributeValues" value=$sAttr[s]->getValues()}>
- <{section name="k" loop=$sAttributeValues}>
- <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>
- <{/section}>
- <{/if}>
- <{/section}>
- <{/foreach}>
- </div>
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement