-
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<footer class="footer p-3 p-md-5 mt-5 text-center">
|
||||
<div class="container">
|
||||
<ul class="footer-links pl-0 mb-1">
|
||||
<?php foreach (Theme::socialNetworks() as $key => $name) {
|
||||
echo '<li class="d-inline-block pr-4"><a class="color-blue" href="' . $site->{$key}() . '">' . $name . '</a></li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<?php if (!defined('BLUDIT_PRO')): ?>
|
||||
<p class="m-0 mt-2">Powered by <a class="color-blue" href="https://www.bludit.com">Bludit</a> - Open source CMS</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,155 @@
|
||||
<header class="p-3">
|
||||
<div class="container text-center">
|
||||
|
||||
<!-- Site logo -->
|
||||
<div class="site-logo">
|
||||
<img class="img-thumbnail rounded-circle mx-auto d-block" height="140px" width="140px" src="<?php echo ($site->logo() ? $site->logo() : HTML_PATH_THEME_IMG . 'popeye.png') ?>" alt="<?php echo $site->title(); ?>">
|
||||
</div>
|
||||
<!-- End Site logo -->
|
||||
|
||||
<!-- Site title -->
|
||||
<h1 class="site-title mt-3 mb-1 bold"><?php echo $site->title(); ?></h1>
|
||||
<!-- End Site title -->
|
||||
|
||||
<!-- Site description -->
|
||||
<?php if ($site->description()) : ?>
|
||||
<div class="site-description mt-2">
|
||||
<p><?php echo $site->description(); ?></p>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<!-- End Site description -->
|
||||
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Print all the content -->
|
||||
<section class="mt-4 mb-4">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 mx-auto">
|
||||
|
||||
<!-- Search input -->
|
||||
<?php if (pluginActivated('pluginSearch')) : ?>
|
||||
<form class="d-flex mb-4">
|
||||
<label class="sr-only visually-hidden" for="search-input"><?php echo $L->g('Search'); ?></label>
|
||||
<input id="search-input" class="form-control mr-2" type="search" placeholder="Search" aria-label="Search">
|
||||
<button class="btn btn-outline-primary" type="button" onClick="searchNow()">Search</button>
|
||||
</form>
|
||||
<script>
|
||||
function searchNow() {
|
||||
var searchURL = "<?php echo Theme::siteUrl(); ?>search/";
|
||||
window.open(searchURL + document.getElementById("search-input").value, "_self");
|
||||
}
|
||||
document.getElementById("search-input").onkeypress = function(e) {
|
||||
if (!e) e = window.event;
|
||||
var keyCode = e.keyCode || e.which;
|
||||
if (keyCode == '13') {
|
||||
searchNow();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php endif ?>
|
||||
<!-- End Search input -->
|
||||
|
||||
<!-- Content not available -->
|
||||
<?php if (empty($content)) : ?>
|
||||
<div class="text-center p-4">
|
||||
<h3><?php $language->p('No pages found') ?></h3>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<!-- End Content not available -->
|
||||
|
||||
<!-- Pages -->
|
||||
<div class="list-group list-group-flush">
|
||||
<?php foreach ($content as $pageTmp) : ?>
|
||||
<div class="list-group-item pt-4 pb-4" aria-current="true">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
|
||||
<!-- Page title -->
|
||||
<a href="<?php echo $pageTmp->permalink() ?>">
|
||||
<h5 class="mb-1"><?php echo $pageTmp->title() ?></h5>
|
||||
</a>
|
||||
<!-- End Page title -->
|
||||
|
||||
<!-- Page date -->
|
||||
<!-- This block is not visible on small devices -->
|
||||
<div class="d-none d-sm-block">
|
||||
<?php if ($themePlugin->dateFormat() == 'relative') : ?>
|
||||
<small class="color-blue"><?php echo $pageTmp->relativeTime() ?></small>
|
||||
<?php else : ?>
|
||||
<small class="color-blue"><?php echo $pageTmp->date() ?></small>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<!-- End Page date -->
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Page date -->
|
||||
<!-- This block is only visible on small devices -->
|
||||
<div class="d-block d-sm-none">
|
||||
<?php if ($themePlugin->dateFormat() == 'relative') : ?>
|
||||
<small class="color-blue"><?php echo $pageTmp->relativeTime() ?></small>
|
||||
<?php else : ?>
|
||||
<small class="color-blue"><?php echo $pageTmp->date() ?></small>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<!-- End Page date -->
|
||||
|
||||
<!-- Page description -->
|
||||
<?php if ($pageTmp->description()) : ?>
|
||||
<p class="mb-1 form-text"><?php echo $pageTmp->description(); ?></p>
|
||||
<?php endif ?>
|
||||
<!-- End Page description -->
|
||||
|
||||
<!-- Page tags -->
|
||||
<?php
|
||||
if ($themePlugin->showTags()) {
|
||||
$tagsList = $pageTmp->tags(true);
|
||||
if (!empty($tagsList)) {
|
||||
echo '<small>';
|
||||
foreach ($tagsList as $tagKey => $tagName) {
|
||||
echo '<a class="badge bg-gray text-dark text-decoration-none mr-2" href="' . DOMAIN_TAGS . $tagKey . '">' . $tagName . '</a>';
|
||||
}
|
||||
echo '</small>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!-- End Page tags -->
|
||||
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
<!-- End Pages -->
|
||||
|
||||
<!-- Pagination -->
|
||||
<?php if (Paginator::numberOfPages() > 1) : ?>
|
||||
<nav class="mt-4">
|
||||
<ul class="pagination pagination-sm">
|
||||
|
||||
<!-- Older pages -->
|
||||
<?php if (Paginator::showNext()) : ?>
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="<?php echo htmlspecialchars(Paginator::nextPageUrl(), ENT_QUOTES, 'UTF-8') ?>">◀ <?php echo $L->get('Previous'); ?></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<!-- End Older pages -->
|
||||
|
||||
<!-- Newer pages -->
|
||||
<?php if (Paginator::showPrev()) : ?>
|
||||
<li class="page-item ml-auto">
|
||||
<a class="page-link" href="<?php echo htmlspecialchars(Paginator::previousPageUrl(), ENT_QUOTES, 'UTF-8') ?>" tabindex="-1"><?php echo $L->get('Next'); ?> ►</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<!-- End Newer pages -->
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
<?php endif ?>
|
||||
<!-- End Pagination -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- End Print all the content -->
|
||||
@@ -0,0 +1,15 @@
|
||||
<nav class="navbar navbar-light bg-light sticky-top">
|
||||
<div class="container">
|
||||
<a class="navbar-brand bold" href="<?php echo $site->url() ?>"><?php echo $site->title() ?></a>
|
||||
<ul class="nav-links ml-auto mb-0">
|
||||
<!-- Blog link (when homepage is set to a static page) -->
|
||||
<?php if ($site->homepage()): ?>
|
||||
<li><a href="<?php echo DOMAIN_BASE . ltrim($url->filters('blog'), '/') ?>"><?php echo $L->get('Blog') ?></a></li>
|
||||
<?php endif; ?>
|
||||
<!-- Static pages -->
|
||||
<?php foreach ($staticContent as $tmp) : ?>
|
||||
<li><a href="<?php echo $tmp->permalink(); ?>"><?php echo $tmp->title(); ?></a></li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -0,0 +1,78 @@
|
||||
<section class="page mt-4 mb-4">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-6 mx-auto">
|
||||
<!-- Load Bludit Plugins: Page Begin -->
|
||||
<?php Theme::plugins('pageBegin'); ?>
|
||||
|
||||
<?php if (!$page->isStatic() && !$url->notFound()) : ?>
|
||||
<div class="form-text mb-2">
|
||||
<!-- Page creation time -->
|
||||
<span class="pr-3"><i class="bi bi-calendar"></i><?php echo $page->date() ?></span>
|
||||
|
||||
<!-- Page reading time -->
|
||||
<span class="pr-3"><i class="bi bi-clock"></i><?php echo $page->readingTime() . ' ' . $L->get('minutes') . ' ' . $L->g('read') ?></span>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<!-- Page description -->
|
||||
<?php if ($page->description()) : ?>
|
||||
<p class="page-description italic mt-1 color-light"><?php echo $page->description(); ?></p>
|
||||
<?php endif ?>
|
||||
|
||||
<!-- Page content -->
|
||||
<div class="page-content mt-3">
|
||||
<?php echo $page->content(); ?>
|
||||
</div>
|
||||
|
||||
<!-- Load Bludit Plugins: Page End -->
|
||||
<?php Theme::plugins('pageEnd'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Related pages -->
|
||||
<?php
|
||||
$relatedPages = $page->related(true, 3);
|
||||
?>
|
||||
<?php if (!empty($relatedPages)) : ?>
|
||||
<section class="related mt-4 mb-4">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 mx-auto p-4 bg-light">
|
||||
<h4><?php $L->p('Related pages') ?></h4>
|
||||
<div class="list-group list-group-flush">
|
||||
<?php foreach ($relatedPages as $pageKey) : ?>
|
||||
<?php $tmp = new Page($pageKey); ?>
|
||||
<div class="list-group-item pt-4 pb-4" aria-current="true">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
|
||||
<!-- Related page title -->
|
||||
<a href="<?php echo $tmp->permalink() ?>">
|
||||
<h5 class="mb-1"><?php echo $tmp->title() ?></h5>
|
||||
</a>
|
||||
|
||||
<!-- Related page date -->
|
||||
<small class="color-blue"><?php echo $tmp->relativeTime() ?></small>
|
||||
</div>
|
||||
|
||||
<!-- Related page description -->
|
||||
<?php if ($tmp->description()) : ?>
|
||||
<p class="mb-1 form-text"><?php echo $tmp->description(); ?></p>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
Reference in New Issue
Block a user