Профиль: своя тема оформления, аватар переехал в attachments

This commit is contained in:
rsgrinko committed 2026-09-17 16:00:53 +03:00
1 parent bea1fe101a
commit ac39ea289b
6 files changed
+175 -20

No files matched your search

+8
View File
@@ -92,6 +92,14 @@ use Rsgrinko\Proton\View\View;
<textarea name="bio" style="min-height: 70px;"><?= View::e((string) $user->bio) ?></textarea>
</label>
<label>
<span>Тема оформления</span>
<select name="theme">
<option value="light" <?= $user->theme() === 'light' ? 'selected' : '' ?>>Светлая</option>
<option value="dark" <?= $user->theme() === 'dark' ? 'selected' : '' ?>>Тёмная</option>
</select>
</label>
<?php foreach ($fields as $field) { ?>
<?php $name = 'meta_' . $field->id(); ?>
<?php $value = $metaValues[$field->id()] ?? ''; ?>