Lines Matching refs:key
25 foreach ($keys as $num => $key) {
26 $hierarchy[$levels[$key]] = $tags[$key];
27 …$elements[$key] = Registry::elementFactory()->make(implode(':', array_slice($hierarchy, …
28 …$ids[$key] = Registry::idFactory()->id() . '-' . implode('-', array_slice($hierarch…
31 $has_subtags = ($levels[$key + 1] ?? 0) > $levels[$key];
35 for ($n = $key + 1; $n < count($keys) && $levels[$n] > $levels[$key]; ++$n) {
42 $indent[$key] = $elements[$key]->collapseChildren() && $has_subtags;
44 $collapse[$key] = $num > 0 && $indent[$key] && !$has_subtags_with_values;
48 <?php foreach ($keys as $key) : ?>
49 <?php if ($indent[$key - 1] ?? false) : ?>
50 <?php if ($collapse[$key - 1] ?? false) : ?>
51 <div id="collapse-<?= $ids[$key] ?>" class="collapse wt-nested-edit-fields">
57 <?php if ($elements[$key] instanceof EmptyElement && $values[$key] === '') : ?>
58 <input type="hidden" name="<?= e($prefix) ?>levels[]" value="<?= $levels[$key] ?>">
59 <input type="hidden" name="<?= e($prefix) ?>tags[]" value="<?= e($tags[$key]) ?>">
63 <label class="col-sm-3 col-form-label" for="<?= e($ids[$key]) ?>">
64 <?= $elements[$key]->label() ?>
65 <?php if ($collapse[$key]) : ?>
66 …arget="#collapse-<?= $ids[$key + 1] ?>" data-bs-toggle="collapse" aria-expanded="false" aria-contr…
74 <input type="hidden" name="<?= e($prefix) ?>levels[]" value="<?= $levels[$key] ?>">
75 <input type="hidden" name="<?= e($prefix) ?>tags[]" value="<?= e($tags[$key]) ?>">
76 …<?= $elements[$key]->edit($ids[$key], $prefix . 'values[]', strtr($values[$key], ["\r" => "\n"]), …
81 <?php for ($n = $key; $levels[$n] >= ($levels[$key + 1] ?? $levels[0]); $n--) : ?>
86 <?php if ($levels[$n] === ($levels[$key + 1] ?? $levels[0])) : ?>