Вот foreach из template.php умного фильтра правки только здесь вносил
Вот foreach из template.php умного фильтра
<? foreach ($arItem["VALUES"] as $val => $ar) : ?>
<div class="square-checkbox catalog-filter__checkbox">
<? if ($ar["CONTROL_NAME_ALT"] == "arrFilter_11" and $ar["CHECKED"] == 1) : ?>
<input <? echo $ar["DISABLED"], 'disabled'; ?> class="square-checkbox__input" type="checkbox" value="<? echo $ar["HTML_VALUE"] ?>" name="<? echo $ar["CONTROL_NAME"] ?>" id="<? echo $ar["CONTROL_ID"] ?>" <? echo $ar["CHECKED"] ? 'checked="checked"' : '' ?> onclick="smartFilter.click(this)">
<? else : ?>
<input class="square-checkbox__input" type="checkbox" value="<? echo $ar["HTML_VALUE"] ?>" name="<? echo $ar["CONTROL_NAME"] ?>" id="<? echo $ar["CONTROL_ID"] ?>" <? echo $ar["CHECKED"] ? 'checked="checked"' : '' ?> onclick="smartFilter.click(this)">
<? endif ?>
<? if ($ar["CONTROL_NAME_ALT"] == "arrFilter_11" and $ar["CHECKED"] == 1) : ?>
<label data-role="label_<?= $ar["CONTROL_ID"] ?>" class="elem--active square-checkbox__group <? echo $ar["DISABLED"] ? 'disabled' : '' ?>" for="<? echo $ar["CONTROL_ID"] ?>">
<? else : ?>
<label data-role="label_<?= $ar["CONTROL_ID"] ?>" class="square-checkbox__group <? echo $ar["DISABLED"] ? 'disabled' : '' ?>" for="<? echo $ar["CONTROL_ID"] ?>">
<? endif ?>
<? if ($ar["CONTROL_NAME_ALT"] !== "arrFilter_11") : ?>
<span class="square-checkbox__icon"></span>
<? else : ?>
<span class="hidden square-checkbox__icon"></span>
<? endif ?>
<span class="square-checkbox__title"><?= $ar["VALUE"]; ?></span>
</label>
</div>
<? endforeach; ?>