admin/site: retirer site_author, publisher=Blog, auteur depuis profil utilisateur

This commit is contained in:
Cedric Abonnel
2026-05-13 00:27:12 +02:00
parent 26c0a03e71
commit f3584159c1
9 changed files with 78 additions and 52 deletions
+12 -2
View File
@@ -10,9 +10,18 @@
<?php endif; ?>
</div>
<?php if (!empty($profileLinks)): ?>
<hr class="liens-sep">
<?php endif; ?>
<div class="liens-list">
<?php foreach ($profileLinks as $_link): ?>
<a href="<?= htmlspecialchars($_link['url']) ?>" target="_blank" rel="noopener" class="liens-item">
<?php
$_palette = ['#0d9488','#16a34a','#d97706','#db2777','#7c3aed','#1d4ed8','#0ea5e9'];
foreach ($profileLinks as $_i => $_link):
$_btnBg = $_palette[$_i % count($_palette)];
?>
<a href="<?= htmlspecialchars($_link['url']) ?>" target="_blank" rel="noopener"
class="liens-item" style="--btn-bg:<?= htmlspecialchars($_btnBg) ?>">
<span class="liens-item-title"><?= htmlspecialchars($_link['title'] ?: $_link['url']) ?></span>
<?php if ($_link['description'] !== ''): ?>
<span class="liens-item-desc"><?= htmlspecialchars($_link['description']) ?></span>
@@ -30,6 +39,7 @@
</div>
<?php
$bodyClass = 'liens-bg';
$content = ob_get_clean();
$title = 'Liens de ' . htmlspecialchars($_lName) . ' — ' . siteTitle();
$seoTitle = $title;