This commit is contained in:
spleenftw committed 2026-05-29 12:15:08 +02:00
1 parent 3859c0c268
commit 04464d1fc1
19 files changed
+1379

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
<aside class="sidebar-container">
<?php
// Compact profile card — shown only while reading an article
// (a single, non-static page), not on the homepage or static pages.
$isArticle = ($WHERE_AM_I === 'page' && isset($page) && !$page->isStatic() && !$url->notFound());
?>
<?php if ($isArticle) : ?>
<div class="sidebar-profile text-center">
<a href="<?php echo Theme::siteUrl() ?>">
<img class="sidebar-profile-avatar" src="<?php echo DOMAIN_THEME . 'img/spleenftw.jpeg' ?>" alt="<?php echo $site->title() ?>" />
</a>
<div class="sidebar-profile-name"><?php echo $site->title() ?></div>
<?php if ($site->slogan()) : ?>
<p class="sidebar-profile-bio"><?php echo $site->slogan() ?></p>
<?php endif ?>
</div>
<?php endif ?>
<?php Theme::plugins('siteSidebar') ?>
</aside>