From 8009c8d07d7a7de65e9a2095546966a21be8b09e Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 19 Jan 2025 13:01:57 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(user):=20add=20a=20way=20to=20get?= =?UTF-8?q?=20the=20author=20URI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bl-kernel/user.class.php | 4 ++++ bl-themes/popeye/php/page.php | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bl-kernel/user.class.php b/bl-kernel/user.class.php index c3c3e139..07b0962a 100644 --- a/bl-kernel/user.class.php +++ b/bl-kernel/user.class.php @@ -75,6 +75,10 @@ class User } } + public function authorUri() { + return DOMAIN_AUTHORS . $this->username(); + } + public function displayNameMode() { return $this->getValue('displayNameMode'); diff --git a/bl-themes/popeye/php/page.php b/bl-themes/popeye/php/page.php index bea31fc8..baeace17 100644 --- a/bl-themes/popeye/php/page.php +++ b/bl-themes/popeye/php/page.php @@ -8,13 +8,13 @@ isStatic() && !$url->notFound()) : ?>
- date() ?> + date() ?> - readingTime() . ' ' . $L->get('minutes') . ' ' . $L->g('read') ?> + readingTime() . ' ' . $L->get('minutes') . ' ' . $L->g('read') ?> - user('displayName') ?> + user('displayName') ?>