🔥 Remove for the moment the bootstrap theme
This commit is contained in:
parent
574effa0f1
commit
45574acd76
17 changed files with 0 additions and 403 deletions
|
@ -1,4 +0,0 @@
|
|||
.site-logo {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 3.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 106 KiB |
|
@ -1,81 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="<?php echo Theme::lang() ?>">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="generator" content="Koblog">
|
||||
|
||||
<!-- Generate <title>...</title> -->
|
||||
<?php echo Theme::metaTagTitle(); ?>
|
||||
|
||||
<!-- Generate <meta name="description" content="..."> -->
|
||||
<?php echo Theme::metaTagDescription(); ?>
|
||||
|
||||
<!-- Generate <link rel="icon" href="..."> -->
|
||||
<?php echo Theme::favicon('img/favicon.png'); ?>
|
||||
|
||||
<!-- Include CSS Bootstrap file from Koblog Core -->
|
||||
<?php echo Theme::cssBootstrap(); ?>
|
||||
|
||||
<!-- Include CSS Bootstrap ICONS file from Koblog Core -->
|
||||
<?php echo Theme::cssBootstrapIcons(); ?>
|
||||
|
||||
<!-- Include CSS Styles -->
|
||||
<?php
|
||||
echo Theme::css(array(
|
||||
'css/01-style.css',
|
||||
'css/02-helpers.css'
|
||||
));
|
||||
?>
|
||||
|
||||
<!-- Execute Koblog plugins for the hook "Site head" -->
|
||||
<?php Theme::plugins('siteHead'); ?>
|
||||
</head>
|
||||
|
||||
<body class="bg-body-tertiary">
|
||||
|
||||
<!-- Execute Koblog plugins for the hook "Site body begin" -->
|
||||
<?php Theme::plugins('siteBodyBegin'); ?>
|
||||
|
||||
<!-- Navbar -->
|
||||
<?php include(THEME_DIR_PHP . 'navbar.php'); ?>
|
||||
|
||||
<!-- Content -->
|
||||
<?php
|
||||
// $WHERE_AM_I variable provides where the user is browsing
|
||||
// If the user is watching a particular page the variable takes the value "page"
|
||||
// If the user is watching the frontpage the variable takes the value "home"
|
||||
// If the user is watching a particular category the variable takes the value "category"
|
||||
if ($WHERE_AM_I == 'page') {
|
||||
include(THEME_DIR_PHP . 'page.php');
|
||||
} else {
|
||||
include(THEME_DIR_PHP . 'home.php');
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Footer -->
|
||||
<?php include(THEME_DIR_PHP . 'footer.php'); ?>
|
||||
|
||||
<!-- Include Jquery file from Koblog Core -->
|
||||
<?php echo Theme::jquery(); ?>
|
||||
|
||||
<!-- Include javascript Bootstrap file from Koblog Core -->
|
||||
<?php echo Theme::jsBootstrap(); ?>
|
||||
|
||||
<!-- Execute Koblog plugins for the hook "Site body end" -->
|
||||
<?php Theme::plugins('siteBodyEnd'); ?>
|
||||
|
||||
<script>
|
||||
window.addEventListener('scroll',(e)=>{
|
||||
const nav = document.querySelector('.navbar');
|
||||
if(window.pageYOffset>0){
|
||||
nav.classList.add("shadow-sm");
|
||||
}else{
|
||||
nav.classList.remove("shadow-sm");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1 +0,0 @@
|
|||
<?php defined('KOBLOG') or die('Koblog CMS.');
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"theme-data":
|
||||
{
|
||||
"name": "Bootstrap",
|
||||
"description": "A simple bootstrap-based theme"
|
||||
},
|
||||
"related-pages": "Verwandte Seiten",
|
||||
"minutes": "Minuten",
|
||||
"read": "Lesezeit"
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"theme-data":
|
||||
{
|
||||
"name": "Bootstrap",
|
||||
"description": "A simple bootstrap-based theme"
|
||||
},
|
||||
"related-pages": "Verwandte Seiten",
|
||||
"minutes": "Minuten",
|
||||
"read": "Lesezeit"
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"theme-data":
|
||||
{
|
||||
"name": "Bootstrap",
|
||||
"description": "A simple bootstrap-based theme"
|
||||
},
|
||||
"related-pages": "Verwandte Seiten",
|
||||
"minutes": "Minuten",
|
||||
"read": "Lesezeit"
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"theme-data":
|
||||
{
|
||||
"name": "Bootstrap",
|
||||
"description": "A simple bootstrap-based theme"
|
||||
},
|
||||
"related-pages": "Related pages",
|
||||
"minutes": "minutes",
|
||||
"read": "read",
|
||||
"enable-or-disable-dark-mode": "Enable or disable dark mode.",
|
||||
"enable-or-disable-google-fonts": "Enable or disable Google fonts.",
|
||||
"relative": "Relative",
|
||||
"absolute": "Absolute",
|
||||
"change-the-date-format-for-the-main-page": "Change the date format for the main page.",
|
||||
"show-tags": "Show tags",
|
||||
"show-tags-in-the-main-page-for-each-article": "Show tags on the main page for each article."
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"theme-data":
|
||||
{
|
||||
"name": "Bootstrap",
|
||||
"description": "A simple bootstrap-based theme"
|
||||
},
|
||||
"related-pages": "関連ページ",
|
||||
"minutes": "分",
|
||||
"read": "で読めます"
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"author": "Koblog",
|
||||
"email": "",
|
||||
"website": "https://themes.koblog.com",
|
||||
"version": "kb_0.0.1",
|
||||
"releaseDate": "2023-07-??",
|
||||
"license": "MIT",
|
||||
"compatible": "3.0",
|
||||
"notes": "",
|
||||
"plugin": "popeye",
|
||||
"type": "theme"
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
<footer class="footer p-3 p-md-5 mt-5 text-center">
|
||||
<div class="container">
|
||||
<p class="m-0 mt-2">
|
||||
<?php echo $site->footer(); ?> -
|
||||
<span><?php echo $L->get('Powered by'); ?> <a target="_blank" href="https://git.kobold.cafe/kazhnuz/koblog">KOBLOG</a></span>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
|
@ -1,118 +0,0 @@
|
|||
<header class="p-3">
|
||||
<div class="container mt-4">
|
||||
|
||||
<!-- Site logo -->
|
||||
<?php if ($site->logo()) : ?>
|
||||
<div class="site-logo">
|
||||
<img class="mx-auto d-block" src="<?php $site->logo() ?>" alt="">
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<!-- End Site logo -->
|
||||
|
||||
<!-- Site description -->
|
||||
<?php if ($site->description()) : ?>
|
||||
<div class="site-description mt-2 text-center font-bold">
|
||||
<p><strong><?php echo $site->description(); ?></strong></p>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<!-- End Site description -->
|
||||
|
||||
<!-- Site homepage presentation -->
|
||||
<?php if ($site->homepagePresentation() && ($WHERE_AM_I == 'home')) : ?>
|
||||
<div class="site-description mt-2 col-lg-8 mx-auto">
|
||||
<p><?php echo Theme::getHomepagePresentation(); ?></p>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<!-- End Site homepage presentation -->
|
||||
|
||||
</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">
|
||||
<?php if (Theme::locationTitle()): ?>
|
||||
<h2><?php echo Theme::locationTitle(); ?></h2>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 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">
|
||||
<?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)) {
|
||||
foreach ($tagsList as $tagKey => $tagName) {
|
||||
echo '<a class="badge btn btn-primary rounded-pill me-2" href="' . DOMAIN_TAGS . $tagKey . '">' . $tagName . '</a>';
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!-- End Page tags -->
|
||||
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
<!-- End Pages -->
|
||||
|
||||
<!-- Pagination -->
|
||||
<div class="mt-2">
|
||||
<?php echo Paginator::bootstrap_numberedPageHTML("justify-content-end"); ?>
|
||||
</div>
|
||||
<!-- End Pagination -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- End Print all the content -->
|
|
@ -1,34 +0,0 @@
|
|||
<nav class="navbar navbar-expand-lg bg-body-tertiary sticky-top">
|
||||
<div class="container">
|
||||
<a class="navbar-brand bold" href="<?php echo $site->url() ?>"><?php echo $site->title() ?></a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" href="<?php echo $site->url() ?>"><?php echo $L->get("Home"); ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="navbar-nav">
|
||||
<!-- Static pages -->
|
||||
<?php foreach ($staticContent as $tmp) : ?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="<?php echo $tmp->permalink(); ?>"><?php echo $tmp->title(); ?></a>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<?php echo $L->get("Social Networks"); ?>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<?php foreach (Theme::socialNetworks() as $key => $name) {
|
||||
echo '<li><a class="dropdown-item" href="' . $site->getSocialNetwork($name) . '">' . $name . '</a></li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
|
@ -1,40 +0,0 @@
|
|||
<section class="page mt-4 mb-4">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-6 mx-auto">
|
||||
<!-- Load Koblog Plugins: Page Begin -->
|
||||
<?php Theme::plugins('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 me-1"></i><?php echo $page->date() ?></span>
|
||||
|
||||
<!-- Page reading time -->
|
||||
<span class="pe-3"><i class="bi bi-clock me-1"></i><?php echo $page->readingTime() . ' ' . $L->get('minutes') . ' ' . $L->g('read') ?></span>
|
||||
|
||||
<!-- Page author -->
|
||||
<span><a href="<?php echo $page->user('authorUri'); ?>"><i class="bi bi-person me-1"></i><?php echo $page->user('displayName') ?></a></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>
|
||||
<hr />
|
||||
<?php endif ?>
|
||||
|
||||
<!-- Page content -->
|
||||
<div class="page-content mt-3">
|
||||
<?php echo $page->content(); ?>
|
||||
</div>
|
||||
|
||||
<!-- Load Koblog Plugins: Page End -->
|
||||
<?php Theme::plugins('pageEnd'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
|
@ -1,48 +0,0 @@
|
|||
<?php
|
||||
|
||||
class bootstrapTheme extends Plugin
|
||||
{
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->dbFields = array(
|
||||
'dateFormat' => 'relative',
|
||||
'showTags' => true
|
||||
);
|
||||
}
|
||||
|
||||
public function form()
|
||||
{
|
||||
global $L;
|
||||
|
||||
$html .= '<div class="mb-3">';
|
||||
$html .= '<label class="form-label" for="dateFormat">' . $L->get('Date format') . '</label>';
|
||||
$html .= '<select class="form-select" id="dateFormat" name="dateFormat">';
|
||||
$html .= '<option value="relative" ' . ($this->getValue('dateFormat') == 'relative' ? 'selected' : '') . '>' . $L->get('Relative') . '</option>';
|
||||
$html .= '<option value="absolute" ' . ($this->getValue('dateFormat') == 'absolute' ? 'selected' : '') . '>' . $L->get('Absolute') . '</option>';
|
||||
$html .= '</select>';
|
||||
$html .= '<div class="form-text">' . $L->get('Change the date format for the main page.') . '</div>';
|
||||
$html .= '</div>';
|
||||
|
||||
$html .= '<div class="mb-3">';
|
||||
$html .= '<label class="form-label" for="showTags">' . $L->get('Show tags') . '</label>';
|
||||
$html .= '<select class="form-select" id="showTags" name="showTags">';
|
||||
$html .= '<option value="true" ' . ($this->getValue('showTags') === true ? 'selected' : '') . '>' . $L->get('Enabled') . '</option>';
|
||||
$html .= '<option value="false" ' . ($this->getValue('showTags') === false ? 'selected' : '') . '>' . $L->get('Disabled') . '</option>';
|
||||
$html .= '</select>';
|
||||
$html .= '<div class="form-text">' . $L->get('Show tags in the main page for each article.') . '</div>';
|
||||
$html .= '</div>';
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
public function dateFormat()
|
||||
{
|
||||
return $this->getValue('dateFormat');
|
||||
}
|
||||
|
||||
public function showTags()
|
||||
{
|
||||
return $this->getValue('showTags');
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue