feat: page Mes liens /liens/{slug} avec gestion et réordonnancement
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?php ob_start(); ?>
|
||||
|
||||
<div class="liens-page">
|
||||
|
||||
<div class="liens-header">
|
||||
<div class="liens-avatar"><?= htmlspecialchars($_lInitials) ?></div>
|
||||
<h1 class="liens-name"><?= htmlspecialchars($_lName) ?></h1>
|
||||
<?php if ($_lBio !== ''): ?>
|
||||
<p class="liens-bio"><?= nl2br(htmlspecialchars($_lBio)) ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="liens-list">
|
||||
<?php foreach ($profileLinks as $_link): ?>
|
||||
<a href="<?= htmlspecialchars($_link['url']) ?>" target="_blank" rel="noopener" class="liens-item">
|
||||
<span class="liens-item-title"><?= htmlspecialchars($_link['title'] ?: $_link['url']) ?></span>
|
||||
<?php if ($_link['description'] !== ''): ?>
|
||||
<span class="liens-item-desc"><?= htmlspecialchars($_link['description']) ?></span>
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<?php if ($_lSlug !== ''): ?>
|
||||
<div class="liens-footer">
|
||||
<a href="/profil/<?= rawurlencode($_lSlug) ?>"><?= htmlspecialchars($_lName) ?> sur <?= htmlspecialchars(siteTitle()) ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$content = ob_get_clean();
|
||||
$title = 'Liens de ' . htmlspecialchars($_lName) . ' — ' . siteTitle();
|
||||
$seoTitle = $title;
|
||||
$canonical = rtrim(APP_URL, '/') . '/liens/' . rawurlencode($_lSlug);
|
||||
$ogUrl = $canonical;
|
||||
$mainClass = 'container-fluid';
|
||||
include __DIR__ . '/layout.php';
|
||||
Reference in New Issue
Block a user