fix #29 : envoyer le lien magique par email (envoyer_mail_smtp)
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<?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>
|
||||
|
||||
<?php if (!empty($profileLinks)): ?>
|
||||
<hr class="liens-sep">
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="liens-list">
|
||||
<?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>
|
||||
<?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
|
||||
$bodyClass = 'liens-bg';
|
||||
$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