-
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<footer class="footer bg-dark" role="contentinfo">
|
||||
<div class="container">
|
||||
<div class="d-flex flex-column flex-md-row justify-content-center align-items-center text-center text-white text-uppercase">
|
||||
<?php if (defined('BLUDIT_PRO')): ?>
|
||||
<span><?php echo $site->footer(); ?></span>
|
||||
<?php else: ?>
|
||||
<span class="mb-2 mb-md-0"><?php echo $site->footer(); ?></span>
|
||||
<span class="ml-md-4 text-warning">
|
||||
<img class="mini-logo" src="<?php echo DOMAIN_THEME_IMG.'favicon.png'; ?>" alt="Bludit logo" loading="lazy" />
|
||||
Powered by <a target="_blank" rel="noopener noreferrer" class="text-white" href="https://www.bludit.com">BLUDIT</a>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,167 @@
|
||||
<!-- Hero Section -->
|
||||
<header class="hero" role="banner">
|
||||
<div class="container">
|
||||
<div class="hero-content">
|
||||
<!-- Site slogan as main headline (hidden during search) -->
|
||||
<?php if ($WHERE_AM_I !== 'search') : ?>
|
||||
<h1 class="hero-title"><?php echo $site->slogan(); ?></h1>
|
||||
|
||||
<!-- Site description -->
|
||||
<?php if ($site->description()) : ?>
|
||||
<p class="hero-subtitle"><?php echo $site->description(); ?></p>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
<!-- Custom search form if the plugin "search" is enabled -->
|
||||
<?php
|
||||
if (pluginActivated('pluginSearch')) {
|
||||
$searchPlugin = getPlugin('pluginSearch');
|
||||
$showSearchBox = true;
|
||||
if ($WHERE_AM_I === 'search' && $searchPlugin->getResultCount() === 0) {
|
||||
$showSearchBox = false;
|
||||
}
|
||||
|
||||
if ($showSearchBox) : ?>
|
||||
<div class="hero-search">
|
||||
<form class="search-form" role="search" onsubmit="return searchNow();">
|
||||
<label for="search-input" class="sr-only"><?php $language->p('Search') ?></label>
|
||||
<div class="search-input-wrapper">
|
||||
<svg class="search-icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
||||
<circle cx="11" cy="11" r="8"></circle>
|
||||
<path d="M21 21l-4.35-4.35"></path>
|
||||
</svg>
|
||||
<input id="search-input" class="form-control" type="search" placeholder="<?php $language->p('Search') ?>" aria-label="<?php $language->p('Search') ?>" value="<?php echo ($WHERE_AM_I==='search'?htmlspecialchars($searchPlugin->getSearchTerm(), ENT_QUOTES, 'UTF-8'):'') ?>">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php endif;
|
||||
}
|
||||
?>
|
||||
<?php if (pluginActivated('pluginSearch')) : ?>
|
||||
<script>
|
||||
function searchNow() {
|
||||
var searchValue = document.getElementById("search-input").value.trim();
|
||||
if (searchValue.length === 0) {
|
||||
return false;
|
||||
}
|
||||
var searchURL = "<?php echo Theme::siteUrl(); ?>search/";
|
||||
window.location.href = searchURL + encodeURIComponent(searchValue);
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Main content area -->
|
||||
<main role="main">
|
||||
<?php if (empty($content)) : ?>
|
||||
<div class="text-center p-4">
|
||||
<p class="text-muted"><?php $language->p('No pages found') ?></p>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<!-- Print all the content -->
|
||||
<?php foreach ($content as $page) : ?>
|
||||
<article class="home-page" itemscope itemtype="https://schema.org/Article">
|
||||
<!-- Hidden SEO metadata for each article -->
|
||||
<div class="d-none" aria-hidden="true">
|
||||
<meta itemprop="mainEntityOfPage" content="<?php echo $page->permalink(); ?>" />
|
||||
<?php if ($page->coverImage()): ?>
|
||||
<meta itemprop="image" content="<?php echo $page->coverImage(); ?>" />
|
||||
<?php endif; ?>
|
||||
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
|
||||
<meta itemprop="name" content="<?php echo $page->user('nickname'); ?>" />
|
||||
</span>
|
||||
<span itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
|
||||
<meta itemprop="name" content="<?php echo $site->title(); ?>" />
|
||||
<span itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
|
||||
<meta itemprop="url" content="<?php echo DOMAIN_THEME_IMG . 'favicon.png'; ?>" />
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 mx-auto">
|
||||
<!-- Load Bludit Plugins: Page Begin -->
|
||||
<?php Theme::plugins('pageBegin'); ?>
|
||||
|
||||
<!-- Page title -->
|
||||
<header>
|
||||
<h2 class="title" itemprop="headline">
|
||||
<a class="text-dark" href="<?php echo $page->permalink(); ?>" itemprop="url"><?php echo $page->title(); ?></a>
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<!-- Page description -->
|
||||
<?php if ($page->description()) : ?>
|
||||
<p class="page-description" itemprop="description"><?php echo $page->description(); ?></p>
|
||||
<?php endif ?>
|
||||
|
||||
<!-- Page content until the pagebreak -->
|
||||
<div class="page-excerpt" itemprop="articleBody">
|
||||
<?php echo $page->contentBreak(); ?>
|
||||
</div>
|
||||
|
||||
<!-- Shows "read more" button if necessary -->
|
||||
<?php if ($page->readMore()) : ?>
|
||||
<div class="text-right pt-3">
|
||||
<a class="btn btn-primary btn-sm" href="<?php echo $page->permalink(); ?>" role="button" aria-label="<?php echo $L->get('Read more'); ?> - <?php echo $page->title(); ?>"><?php echo $L->get('Read more'); ?></a>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<!-- Page date -->
|
||||
<footer class="mt-3 article-footer">
|
||||
<?php if ($themePlugin->dateFormat() == 'relative') : ?>
|
||||
<small class="text-muted"><time datetime="<?php echo $page->dateRaw('c'); ?>" itemprop="datePublished"><?php echo $page->relativeTime() ?></time></small>
|
||||
<?php elseif ($themePlugin->dateFormat() == 'absolute') : ?>
|
||||
<small class="text-muted"><time datetime="<?php echo $page->dateRaw('c'); ?>" itemprop="datePublished"><?php echo $page->date() ?></time></small>
|
||||
<?php endif ?>
|
||||
<?php if ($page->dateModified()): ?>
|
||||
<meta itemprop="dateModified" content="<?php echo $page->dateModified('c'); ?>" />
|
||||
<?php else: ?>
|
||||
<meta itemprop="dateModified" content="<?php echo $page->dateRaw('c'); ?>" />
|
||||
<?php endif; ?>
|
||||
</footer>
|
||||
|
||||
<!-- Load Bludit Plugins: Page End -->
|
||||
<?php Theme::plugins('pageEnd'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
<?php endforeach ?>
|
||||
</main>
|
||||
|
||||
<!-- Pagination -->
|
||||
<?php if (Paginator::numberOfPages() > 1) : ?>
|
||||
<nav class="paginator" aria-label="<?php echo $L->get('Page navigation'); ?>">
|
||||
<ul class="pagination flex-wrap justify-content-center">
|
||||
|
||||
<!-- Previous button -->
|
||||
<?php if (Paginator::showPrev()) : ?>
|
||||
<li class="page-item mr-2">
|
||||
<a class="page-link" href="<?php echo htmlspecialchars(Paginator::previousPageUrl(), ENT_QUOTES, 'UTF-8') ?>" rel="prev" aria-label="<?php echo $L->get('Previous'); ?>">
|
||||
<span aria-hidden="true">◀</span> <?php echo $L->get('Previous'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Home button -->
|
||||
<li class="page-item <?php if (Paginator::currentPage() == 1) echo 'disabled' ?>" aria-current="<?php echo (Paginator::currentPage() == 1) ? 'page' : 'false'; ?>">
|
||||
<a class="page-link" href="<?php echo Theme::siteUrl() ?>"><?php echo $L->get('Home'); ?></a>
|
||||
</li>
|
||||
|
||||
<!-- Next button -->
|
||||
<?php if (Paginator::showNext()) : ?>
|
||||
<li class="page-item ml-2">
|
||||
<a class="page-link" href="<?php echo htmlspecialchars(Paginator::nextPageUrl(), ENT_QUOTES, 'UTF-8') ?>" rel="next" aria-label="<?php echo $L->get('Next'); ?>">
|
||||
<?php echo $L->get('Next'); ?> <span aria-hidden="true">►</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</nav>
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,60 @@
|
||||
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark text-uppercase" role="navigation" aria-label="Main navigation">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="<?php echo Theme::siteUrl(); ?>">
|
||||
<span class="text-white"><?php echo $site->title(); ?></span>
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="<?php echo $L->get('Toggle navigation'); ?>">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||||
|
||||
<ul class="navbar-nav ml-auto">
|
||||
|
||||
<!-- Blog link (when homepage is set to a static page) -->
|
||||
<?php if ($site->homepage()): ?>
|
||||
<li class="nav-item<?php echo ($WHERE_AM_I === 'blog') ? ' active' : ''; ?>">
|
||||
<a class="nav-link" href="<?php echo DOMAIN_BASE . ltrim($url->filters('blog'), '/') ?>">
|
||||
<?php echo $L->get('Blog') ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Static pages -->
|
||||
<?php foreach ($staticContent as $staticPage): ?>
|
||||
<li class="nav-item<?php echo ($page && $page->key() === $staticPage->key()) ? ' active' : ''; ?>">
|
||||
<a class="nav-link" href="<?php echo $staticPage->permalink(); ?>">
|
||||
<?php echo $staticPage->title(); ?>
|
||||
<?php if ($page && $page->key() === $staticPage->key()): ?>
|
||||
<span class="sr-only">(<?php echo $L->get('current'); ?>)</span>
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
|
||||
<!-- Social Networks -->
|
||||
<?php foreach (Theme::socialNetworks() as $key=>$label): ?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="<?php echo $site->{$key}(); ?>" target="_blank" rel="noopener noreferrer" title="<?php echo $label; ?>">
|
||||
<img class="d-none d-md-inline-block nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/'.$key.'.svg' ?>" alt="" aria-hidden="true" />
|
||||
<span class="d-inline d-md-none"><?php echo $label; ?></span>
|
||||
<span class="sr-only d-none d-md-inline"><?php echo $label; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<!-- RSS -->
|
||||
<?php if (Theme::rssUrl()): ?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="<?php echo Theme::rssUrl() ?>" target="_blank" rel="noopener noreferrer" title="RSS Feed">
|
||||
<img class="d-none d-md-inline-block nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/rss.svg' ?>" alt="" aria-hidden="true" />
|
||||
<span class="d-inline d-md-none">RSS</span>
|
||||
<span class="sr-only d-none d-md-inline">RSS Feed</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -0,0 +1,102 @@
|
||||
<!-- Breadcrumb Navigation for SEO -->
|
||||
<nav class="breadcrumb-nav" aria-label="<?php echo $L->get('Breadcrumb'); ?>">
|
||||
<div class="container">
|
||||
<ol class="breadcrumb bg-transparent p-0 mb-0" itemscope itemtype="https://schema.org/BreadcrumbList">
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href="<?php echo Theme::siteUrl(); ?>" itemprop="item">
|
||||
<span itemprop="name"><?php echo $L->get('Home'); ?></span>
|
||||
</a>
|
||||
<meta itemprop="position" content="1" />
|
||||
</li>
|
||||
<li class="breadcrumb-item active" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" aria-current="page">
|
||||
<span itemprop="name"><?php echo $page->title(); ?></span>
|
||||
<meta itemprop="item" content="<?php echo $page->permalink(); ?>" />
|
||||
<meta itemprop="position" content="2" />
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<article class="page" itemscope itemtype="https://schema.org/Article">
|
||||
<!-- Hidden SEO metadata -->
|
||||
<div class="d-none" aria-hidden="true">
|
||||
<meta itemprop="mainEntityOfPage" content="<?php echo $page->permalink(); ?>" />
|
||||
<?php if ($page->dateModified()): ?>
|
||||
<meta itemprop="dateModified" content="<?php echo $page->dateModified('c'); ?>" />
|
||||
<?php endif; ?>
|
||||
<meta itemprop="wordCount" content="<?php echo str_word_count(strip_tags($page->content())); ?>" />
|
||||
<span itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
|
||||
<meta itemprop="name" content="<?php echo $site->title(); ?>" />
|
||||
<span itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
|
||||
<meta itemprop="url" content="<?php echo DOMAIN_THEME_IMG . 'favicon.png'; ?>" />
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 mx-auto">
|
||||
<!-- Load Bludit Plugins: Page Begin -->
|
||||
<?php Theme::plugins('pageBegin'); ?>
|
||||
|
||||
<!-- Page header -->
|
||||
<header class="page-header mb-4">
|
||||
<!-- Page title -->
|
||||
<h1 class="title" itemprop="headline"><?php echo $page->title(); ?></h1>
|
||||
|
||||
<?php if (!$page->isStatic() && !$url->notFound() && $themePlugin->showPostInformation()) : ?>
|
||||
<div class="page-meta text-muted mb-3">
|
||||
<!-- Page creation time -->
|
||||
<span class="pr-3">
|
||||
<i class="bi bi-calendar" aria-hidden="true"></i>
|
||||
<time datetime="<?php echo $page->dateRaw('c'); ?>" itemprop="datePublished"><?php echo $page->date() ?></time>
|
||||
</span>
|
||||
|
||||
<?php if ($page->dateModified() && $page->dateModified() !== $page->date()): ?>
|
||||
<!-- Last modified -->
|
||||
<span class="pr-3">
|
||||
<i class="bi bi-pencil" aria-hidden="true"></i>
|
||||
<time datetime="<?php echo $page->dateModified('c'); ?>"><?php echo $L->get('Updated'); ?>: <?php echo $page->dateModified(); ?></time>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Page reading time -->
|
||||
<span class="pr-3">
|
||||
<i class="bi bi-clock" aria-hidden="true"></i>
|
||||
<span><?php echo $page->readingTime() . ' ' . $L->get('minutes') . ' ' . $L->g('read') ?></span>
|
||||
</span>
|
||||
|
||||
<!-- Page author -->
|
||||
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
|
||||
<i class="bi bi-person" aria-hidden="true"></i>
|
||||
<a href="<?php echo Theme::siteUrl(); ?>" rel="author" itemprop="url">
|
||||
<span itemprop="name"><?php echo $page->user('nickname') ?></span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<!-- Page description -->
|
||||
<?php if ($page->description()) : ?>
|
||||
<p class="page-description lead" itemprop="description"><?php echo $page->description(); ?></p>
|
||||
<?php endif ?>
|
||||
</header>
|
||||
|
||||
<!-- Page cover image -->
|
||||
<?php if ($page->coverImage()) : ?>
|
||||
<figure class="page-cover-image-wrapper mb-4">
|
||||
<img class="page-cover-image img-fluid rounded" src="<?php echo $page->coverImage(); ?>" alt="<?php echo $page->title(); ?>" loading="lazy" itemprop="image" />
|
||||
</figure>
|
||||
<?php endif ?>
|
||||
|
||||
<!-- Page content -->
|
||||
<div class="page-content" itemprop="articleBody">
|
||||
<?php echo $page->content(); ?>
|
||||
</div>
|
||||
|
||||
<!-- Load Bludit Plugins: Page End -->
|
||||
<?php Theme::plugins('pageEnd'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
Reference in New Issue
Block a user