Scope article feeds and expand canvas editing

This commit is contained in:
2026-11-21 22:55:59 +08:00
parent a2fc628f08
commit 9bc0ee0e45
32 changed files with 476 additions and 67 deletions
+2 -1
View File
@@ -2,12 +2,13 @@
use App\Content\View;
$e = View::escape(...);
$checked = array_fill_keys($selected, true);
?>
<fieldset class="category-checks">
<legend><?= $e($legend) ?></legend>
<div>
<?php foreach ($categories as $key => $label): ?>
<label><input type="checkbox" name="<?= $e($name) ?>[]" value="<?= $e($key) ?>" <?= in_array($key, $selected, true) ? 'checked' : '' ?>> <?= $e($label) ?></label>
<label><input type="checkbox" name="<?= $e($name) ?>[]" value="<?= $e($key) ?>" <?= isset($checked[$key]) ? 'checked' : '' ?>> <?= $e($label) ?></label>
<?php endforeach ?>
</div>
</fieldset>