2024-06-14 17:20:01 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Utils\CsrfToken;
|
|
|
|
use Utils\Select;
|
|
|
|
use Utils\Debug;
|
|
|
|
|
|
|
|
$error = null;
|
|
|
|
$breadcrumbs = ' / Settings';
|
|
|
|
|
|
|
|
require 'header.php';
|
|
|
|
require 'titleBar.php';
|
|
|
|
?>
|
|
|
|
<form action="index.php" class="login" method="post">
|
|
|
|
<div class="alert" style="color: red;">
|
|
|
|
<?= $error; ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<label for="title">Title</label>
|
|
|
|
<input type="text" name="title" id="title" value="<?= $config['title']; ?>">
|
|
|
|
|
2024-07-02 11:50:00 +02:00
|
|
|
<label for="desc">Description (meta tag)</label>
|
|
|
|
<input type="text" name="desc" id="desc" value="<?= $config['desc']; ?>">
|
|
|
|
|
|
|
|
<label for="visibility">Visibility</label>
|
|
|
|
<select name="visibility" id="visibility">
|
|
|
|
<option value="private" <?= Select::isSelected('private', $config['visibility']); ?>>Private</option>
|
|
|
|
<option value="public" <?= Select::isSelected('public', $config['visibility']); ?>>Public</option>
|
|
|
|
</select>
|
|
|
|
|
2024-06-14 17:20:01 +02:00
|
|
|
<label for="colorScheme">Color scheme</label>
|
|
|
|
<select name="colorScheme" id="colorScheme">
|
2024-09-12 16:21:52 +02:00
|
|
|
<option value="auto" <?= Select::isSelected('auto', $config['colorScheme']); ?>>Auto</option>
|
2024-06-14 17:20:01 +02:00
|
|
|
<option value="light" <?= Select::isSelected('light', $config['colorScheme']); ?>>Light</option>
|
|
|
|
<option value="dark" <?= Select::isSelected('dark', $config['colorScheme']); ?>>Dark</option>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<label for="view">View</label>
|
|
|
|
<select name="view" id="view">
|
|
|
|
<option value="full" <?= Select::isSelected('full', $config['view']); ?>>Full</option>
|
|
|
|
<option value="compact" <?= Select::isSelected('compact', $config['view']); ?>>Compact</option>
|
|
|
|
<option value="icons" <?= Select::isSelected('icons', $config['view']); ?>>Icons</option>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<p class="checkbox">
|
|
|
|
<label for="reimport">Reimport images and user files</label>
|
2024-09-12 16:21:52 +02:00
|
|
|
<input type="checkbox" name="reimport" id="reimport" value="1" />
|
2024-06-14 17:20:01 +02:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<input type="hidden" name="token" value="<?= CsrfToken::generateToken(); ?>">
|
|
|
|
<input type="hidden" name="settings" value="1" />
|
2024-09-12 16:21:52 +02:00
|
|
|
|
|
|
|
<div class="flex">
|
|
|
|
<a class="button" href="?">Cancel</a>
|
|
|
|
<button type="submit">Save</button>
|
|
|
|
</div>
|
2024-06-14 17:20:01 +02:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
require('footer.php');
|