pagination curseur, layout 3 colonnes article, sidebar fixe

This commit is contained in:
Cedric Abonnel
2026-05-12 00:42:51 +02:00
parent d774042be9
commit be09fad48f
91 changed files with 8152 additions and 816 deletions
+41
View File
@@ -0,0 +1,41 @@
<?php ob_start(); ?>
<div class="d-flex align-items-center gap-3 mb-4">
<h1 class="h4 mb-0">Mon profil</h1>
</div>
<div class="row">
<div class="col-md-6 col-lg-4">
<div class="card">
<div class="card-body">
<?php if ($profileSuccess): ?>
<div class="alert alert-success py-2 small mb-3">Profil mis à jour.</div>
<?php endif; ?>
<?php if ($profileError !== ''): ?>
<div class="alert alert-danger py-2 small mb-3"><?= htmlspecialchars($profileError) ?></div>
<?php endif; ?>
<form method="post" action="/?action=profile">
<div class="mb-3">
<label class="form-label fw-semibold" for="display_name">Nom affiché</label>
<input type="text" id="display_name" name="display_name"
class="form-control"
value="<?= htmlspecialchars($profileCurrentName) ?>"
placeholder="Prénom Nom" required>
<div class="form-text">Affiché comme auteur sur vos articles.</div>
</div>
<div class="mb-3">
<label class="form-label fw-semibold text-muted">Email</label>
<input type="text" class="form-control" value="<?= htmlspecialchars(currentUserEmail() ?? '') ?>" disabled>
</div>
<button type="submit" class="btn btn-primary w-100">Enregistrer</button>
</form>
</div>
</div>
</div>
</div>
<?php
$content = ob_get_clean();
$title = 'Mon profil';
include __DIR__ . '/layout.php';