Created
January 3, 2018 09:45
-
-
Save morozVA/9f4d60636a5f6d49b12f34bcef24de3a to your computer and use it in GitHub Desktop.
evo phx / if
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************** Условия *********************************/ | |
[+phx:if=`[[Level]]`:is=`4`:then=` | |
<section class="">[[Wayfinder? &startId=`[*id:parent=`id`*]` &level=`1` &outerTpl=`cat_outerTpl` &rowTpl=`cat_rowTpl`]]</section> | |
`+] | |
[+phx:if=`[[UltimateParent? &topLevel=`1`]]`:is=`269`:then=`<a class="item__button" href="[~343~]" title=""><span>Find a store?</span></a>`+] | |
[+phx:if=`[[UltimateParent? &topLevel=`1`]]`:isnot=`419`:and:isnot=`269`:then=`<a class="item__button" href="[~5~]" title=""><span>Где заказать?</span></a>`+] | |
[+phx:if=`[*seria*]`:isnot=``:then=`<li>Серия: [*seria*]</li>`:else=``+] | |
[+phx:if=`[*longtitle*]`:is=``:then=`[*pagetitle*]`:else=`[*longtitle*]`+] | |
[+phx:if=`[*id*]`:is=`13`:or:is=`39`:or:is=`76`:or:is=`453`:or:is=`304`:or:is=`566`:or:is=`417`:or:is=`447`:or:is=`298`:then=`{{feedback_form_CHUNK}}`+] | |
[+phx:if=`[[GetField? &docid=`[*id*]` &field=`foto_manager`]]`:isnot=``:then=` | |
<img src="[[phpthumb? &input=`[[GetField? &docid=`[*id*]` &field=`foto_manager`]]` &options=`w=300,h=300,far=C`]]" alt=""> | |
`+] | |
[[if? &is=`[[Ditto? &tpl=`@CODE:[+count+]` &depth=`1` &hideFolders=`1` &parents=`[*id*]` &extenders=`countDocs` &display=`1`]]:=:0:and:[[Level]]:=:3` &then=` | |
[[Wayfinder? &startId=`[*id*]` &level=`1` &outerTpl=`cat_outerTpl` &rowTpl=`cat_rowTpl`]] | |
`]] | |
[[if? &is=`[+new+]:not_empty` &then=`<div class="sale-new">Новинка</div>` &else=``]] | |
Проверка multiTV не пустое | |
&emptyOutput - вернуть пустую строку, если multiTV пуста, иначе возвращает внешний шаблон | |
[!multiTV? &tvName=`downloads` &docid=`[*id*]` &tplConfig=``&outerTpl=`@CODE:<input type="radio" name="odin" id="vkl3"><label for="vkl3">Загрузки</label>`!] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment