Merge pull request #1511 from belomaxorka/minor-fixes-themes

Minor improvements in default themes
This commit is contained in:
Diego Najar 2023-07-10 19:39:29 +02:00 committed by GitHub
commit 573dc27447
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View file

@ -741,7 +741,6 @@ function buildErrorPage() {
$pageNotFound = New Page(false);
$pageNotFound->setField('title', $L->get('page-not-found'));
$pageNotFound->setField('content', $L->get('page-not-found-content'));
$pageNotFound->setField('username', 'admin');
}
return $pageNotFound;

View file

@ -18,7 +18,7 @@
</a>
<!-- Creation date -->
<h6 class="card-subtitle mb-4 text-muted">
<h6 class="card-subtitle mt-3 mb-4 text-muted">
<i class="bi bi-calendar"></i><?php echo $page->date(); ?>
<i class="ms-3 bi bi-clock-history"></i><?php echo $L->get('Reading time') . ': ' . $page->readingTime(); ?>
</h6>

View file

@ -12,7 +12,7 @@
<?php if (!$page->isStatic() && !$url->notFound()): ?>
<!-- Creation date -->
<h6 class="card-subtitle mb-4 text-muted">
<h6 class="card-subtitle mt-3 mb-4 text-muted">
<i class="bi bi-calendar"></i><?php echo $page->date(); ?>
<i class="ms-3 bi bi-clock-history"></i><?php echo $L->get('Reading time') . ': ' . $page->readingTime(); ?>
</h6>

View file

@ -5,6 +5,7 @@
<!-- Load Bludit Plugins: Page Begin -->
<?php execPluginsByHook('pageBegin'); ?>
<?php if (!$page->isStatic() && !$url->notFound()): ?>
<div class="form-text mb-2">
<!-- Page creation time -->
<span class="pe-3"><i class="bi bi-calendar"></i><?php echo $page->date() ?></span>
@ -15,6 +16,7 @@
<!-- Page author -->
<span><i class="bi bi-person"></i><?php echo $page->user('nickname') ?></span>
</div>
<?php endif ?>
<!-- Page title -->
<h1 class="page-title bold"><?php echo $page->title(); ?></h1>