Merge pull request #1511 from belomaxorka/minor-fixes-themes
Minor improvements in default themes
This commit is contained in:
commit
573dc27447
4 changed files with 4 additions and 3 deletions
|
@ -741,7 +741,6 @@ function buildErrorPage() {
|
||||||
$pageNotFound = New Page(false);
|
$pageNotFound = New Page(false);
|
||||||
$pageNotFound->setField('title', $L->get('page-not-found'));
|
$pageNotFound->setField('title', $L->get('page-not-found'));
|
||||||
$pageNotFound->setField('content', $L->get('page-not-found-content'));
|
$pageNotFound->setField('content', $L->get('page-not-found-content'));
|
||||||
$pageNotFound->setField('username', 'admin');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $pageNotFound;
|
return $pageNotFound;
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- Creation date -->
|
<!-- 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="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(); ?>
|
<i class="ms-3 bi bi-clock-history"></i><?php echo $L->get('Reading time') . ': ' . $page->readingTime(); ?>
|
||||||
</h6>
|
</h6>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<?php if (!$page->isStatic() && !$url->notFound()): ?>
|
<?php if (!$page->isStatic() && !$url->notFound()): ?>
|
||||||
<!-- Creation date -->
|
<!-- 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="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(); ?>
|
<i class="ms-3 bi bi-clock-history"></i><?php echo $L->get('Reading time') . ': ' . $page->readingTime(); ?>
|
||||||
</h6>
|
</h6>
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<!-- Load Bludit Plugins: Page Begin -->
|
<!-- Load Bludit Plugins: Page Begin -->
|
||||||
<?php execPluginsByHook('pageBegin'); ?>
|
<?php execPluginsByHook('pageBegin'); ?>
|
||||||
|
|
||||||
|
<?php if (!$page->isStatic() && !$url->notFound()): ?>
|
||||||
<div class="form-text mb-2">
|
<div class="form-text mb-2">
|
||||||
<!-- Page creation time -->
|
<!-- Page creation time -->
|
||||||
<span class="pe-3"><i class="bi bi-calendar"></i><?php echo $page->date() ?></span>
|
<span class="pe-3"><i class="bi bi-calendar"></i><?php echo $page->date() ?></span>
|
||||||
|
@ -15,6 +16,7 @@
|
||||||
<!-- Page author -->
|
<!-- Page author -->
|
||||||
<span><i class="bi bi-person"></i><?php echo $page->user('nickname') ?></span>
|
<span><i class="bi bi-person"></i><?php echo $page->user('nickname') ?></span>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif ?>
|
||||||
|
|
||||||
<!-- Page title -->
|
<!-- Page title -->
|
||||||
<h1 class="page-title bold"><?php echo $page->title(); ?></h1>
|
<h1 class="page-title bold"><?php echo $page->title(); ?></h1>
|
||||||
|
|
Loading…
Add table
Reference in a new issue