factorisation: site_lang, posts_per_page, site_license, contact dynamique
This commit is contained in:
@@ -360,6 +360,36 @@ function adminStatusBadge(array $a, int $now): string
|
||||
maxlength="100" placeholder="ex : Cédrix">
|
||||
<div class="form-text">Utilisé dans les métadonnées des articles (meta author, JSON-LD).</div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="site-lang" class="form-label small fw-semibold">Langue du site</label>
|
||||
<input type="text" id="site-lang" name="site_lang"
|
||||
class="form-control form-control-sm"
|
||||
value="<?= htmlspecialchars(siteLang()) ?>"
|
||||
maxlength="20" placeholder="ex : fr-FR">
|
||||
<div class="form-text">Format BCP 47 (ex : <code>fr</code>, <code>fr-FR</code>). Utilisé dans <code><html lang></code>, og:locale, RSS et JSON-LD.</div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="posts-per-page" class="form-label small fw-semibold">Articles par page</label>
|
||||
<input type="number" id="posts-per-page" name="posts_per_page"
|
||||
class="form-control form-control-sm"
|
||||
value="<?= postsPerPage() ?>"
|
||||
min="1" max="100">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="site-license-label" class="form-label small fw-semibold">Licence (libellé)</label>
|
||||
<input type="text" id="site-license-label" name="site_license_label"
|
||||
class="form-control form-control-sm"
|
||||
value="<?= htmlspecialchars(siteLicenseLabel()) ?>"
|
||||
maxlength="80" placeholder="ex : CC BY 4.0">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="site-license-url" class="form-label small fw-semibold">Licence (URL)</label>
|
||||
<input type="url" id="site-license-url" name="site_license_url"
|
||||
class="form-control form-control-sm"
|
||||
value="<?= htmlspecialchars(siteLicenseUrl()) ?>"
|
||||
maxlength="200">
|
||||
<div class="form-text">Affiché dans le footer.</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary btn-sm">Enregistrer</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user