<?php foreach (Fields::getOutFieldsByTree() as $key => $item) { ?> <li class="popup_sections-settings_option"> <label class="form_label selectColumn"> <input type="checkbox" class="selectColumnCheckbox <?php if ($key === 'tree_name') { ?> selectColumnCheckboxName<?php } ?> " value="<?php echo $item['path']; ?> " <?php if (in_array($item['path'], Funcs::getUserOptions())) { ?> checked<?php } ?> <?php if ($key === 'tree_name') { ?> checked disabled<?php } ?> ><span class="form_label_text"><?php echo $item['name']; ?> </span> </label>