factorisation: site_lang, posts_per_page, site_license, contact dynamique

This commit is contained in:
Cedric Abonnel
2026-05-13 00:23:09 +02:00
parent ff47161721
commit 26c0a03e71
11 changed files with 133 additions and 27 deletions
+22 -2
View File
@@ -1278,14 +1278,34 @@ footer.mt-5 { margin-top: 0 !important; }
.author-profile-link:hover { color: var(--vl-accent); }
.author-profile-bio {
.author-bio-wrap {
flex: 1;
margin: 0;
}
.author-profile-bio {
margin: 0 0 .25rem;
color: var(--vl-muted);
line-height: 1.7;
font-size: .9375rem;
}
.author-profile-bio.bio-clamped {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.bio-toggle {
background: none;
border: none;
padding: 0;
color: var(--vl-accent);
font-size: .875rem;
cursor: pointer;
text-decoration: underline;
}
/* ─── Page "Mes liens" ───────────────────── */
.liens-page {
+1 -1
View File
@@ -74,7 +74,7 @@ echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
<title><?= htmlspecialchars(siteTitle()) ?></title>
<link><?= htmlspecialchars($base) ?></link>
<description><?= htmlspecialchars(siteClaim()) ?></description>
<language>fr</language>
<language><?= htmlspecialchars(siteLang()) ?></language>
<lastBuildDate><?= htmlspecialchars($lastBuild) ?></lastBuildDate>
<atom:link href="<?= htmlspecialchars($feedUrl) ?>" rel="self" type="application/rss+xml"/>
+8 -3
View File
@@ -1770,8 +1770,13 @@ switch ($action) {
exit;
}
saveSiteSettings([
'site_title' => $_POST['site_title'] ?? '',
'site_claim' => $_POST['site_claim'] ?? '',
'site_title' => $_POST['site_title'] ?? '',
'site_claim' => $_POST['site_claim'] ?? '',
'site_author' => $_POST['site_author'] ?? '',
'site_lang' => $_POST['site_lang'] ?? '',
'posts_per_page' => $_POST['posts_per_page'] ?? '',
'site_license_label' => $_POST['site_license_label'] ?? '',
'site_license_url' => $_POST['site_license_url'] ?? '',
]);
header('Location: /admin/site?saved=1');
exit;
@@ -2152,7 +2157,7 @@ switch ($action) {
}
return true;
}));
$perPage = 12;
$perPage = postsPerPage();
$cursor = trim($_GET['cursor'] ?? '');
// Trouve la position du curseur dans la liste triée