First Version Ready for Beta

This commit is contained in:
2022-12-13 11:04:56 -06:00
parent bccc468c1f
commit 6f1d31f9b7
41 changed files with 957 additions and 0 deletions

40
php/footer.php Normal file
View File

@@ -0,0 +1,40 @@
<?php
/**
* GrayMatter Theme for Bludit
* Design was copied from a Flatpress Theme by Marc Thibeault
*
* Author: Rick Hays
* Date: 2022-12-12
*
*/
?>
<footer class="footer fixed-bottom">
<div class="row">
<div class="col-1">&nbsp;</div>
<div class="col-10 align-top text-white text-uppercase">
<p class="float-left text-left">
<?php echo $site->footer(); ?>
</p>
<p class="float-right text-warning text-right align-top">
<img height="32" width="32" class="mini-logo" src="<?php echo DOMAIN_THEME_IMG.'bludit.png'; ?>"/> Powered by
<a target="_blank" class="text-white" href="https://www.bludit.com">
<?php echo (defined('BLUDIT_PRO'))?'BLUDIT PRO':'BLUDIT' ?>
</a>
&nbsp; &nbsp; &nbsp; Theme:
<a target="_blank" class="text-white" href="">
Gray Matter
</a>
</p>
</div>
<div class="col-1">&nbsp;</div>
</div>
</footer>
<!-- Javascript -->
<?php
echo Theme::jquery();
echo Theme::jsBootstrap();
echo Theme::js('js/gray-matter.js')
?>

26
php/head.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
/**
* GrayMatter Theme for Bludit
* Design was copied from a Flatpress Theme by Marc Thibeault
*
* Author: Rick Hays
* Date: 2022-12-12
*
*/
?>
<meta charSet="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" content="Rick Hays - rhays@haysgang.com">
<?php echo Theme::metaTags('title'); ?>
<?php echo Theme::metaTags('description'); ?>
<?php echo Theme::favicon('img/favicon.png'); ?>
<!-- Bootstrap -->
<?php echo Theme::cssBootstrap(); ?>
<!-- Theme CSS -->
<?php echo Theme::css('css/gray-matter.css') ?>
<?php Theme::plugins('siteHead'); ?>

82
php/home.php Normal file
View File

@@ -0,0 +1,82 @@
<?php
/**
* GrayMatter Theme for Bludit
* Design was copied from a Flatpress Theme by Marc Thibeault
* Some code copied from Blog-X theme
*
* Author: Rick Hays
* Date: 2022-12-12
*
*/
?>
<?php if (empty($content)): ?>
<div class="mt-4">
<?php $language->p('No pages found') ?>
</div>
<?php endif ?>
<?php foreach ($content as $page): ?>
<div class="home">
<?php Theme::plugins('pageBegin'); ?>
<!-- Cover image -->
<?php if ($page->coverImage()): ?>
<img class="card-img-top mb-3 rounded-0" alt="Cover Image" src="<?php echo $page->coverImage(); ?>"/>
<?php endif ?>
<a href="<?php echo $page->permalink(); ?>">
<h3><?php echo $page->title(); ?></h3>
</a>
<!-- Breaked content -->
<?php echo $page->contentBreak(); ?>
<!-- "Read more" button -->
<?php if ($page->readMore()): ?>
<a href="<?php echo $page->permalink(); ?>"><?php echo $L->get('[ Read more ]'); ?></a>
<?php endif ?>
<h6 class="card-subtitle mb-3 text-muted text-right"><?php echo $page->date(); ?> - <?php echo $L->get('Reading time') . ': ' . $page->readingTime(); ?></h6>
<h6 class="card-subtitle mb-3 text-muted text-right"><?php echo 'Author: ' . $page->username(); ?></h6>
<div class="text-right">
<?php foreach (Theme::socialNetworks() as $key=>$label): ?>
<a class="" href="<?php echo $site->{$key}(); ?>" target="_blank">
<img height="20" width="20" class="" src="<?php echo DOMAIN_THEME.'img/'.$key.'.svg' ?>" alt="<?php echo $label ?>" />
<span class="d-inline d-sm-none"><?php echo $label; ?></span>
</a>
<?php endforeach; ?>
</div>
<?php Theme::plugins('pageEnd'); ?>
</div>
<?php endforeach ?>
<!-- Pagination -->
<?php if (Paginator::numberOfPages()>1): ?>
<nav class="paginator">
<ul class="pagination flex-wrap">
<!-- Previous button -->
<?php if (Paginator::showPrev()): ?>
<li class="page-item mr-2">
<a class="page-link" href="<?php echo Paginator::previousPageUrl() ?>" tabindex="-1"> &#9668; <?php echo $L->get('Prev'); ?></a>
</li>
<?php endif; ?>
<!-- Home button -->
<li class="page-item <?php if (Paginator::currentPage()==1) echo 'disabled' ?>">
<a class="page-link" href="<?php echo Theme::siteUrl() ?>">Home</a>
</li>
<!-- Next button -->
<?php if (Paginator::showNext()): ?>
<li class="page-item ml-2">
<a class="page-link" href="<?php echo Paginator::nextPageUrl() ?>"><?php echo $L->get('Next'); ?> &#9658;</a>
</li>
<?php endif; ?>
</ul>
</nav>
<?php endif ?>

41
php/page.php Normal file
View File

@@ -0,0 +1,41 @@
<?php
/**
* GrayMatter Theme for Bludit
* Design was copied from a Flatpress Theme by Marc Thibeault
* Some code copied from Blog-X theme
*
* Author: Rick Hays
* Date: 2022-12-12
*
*/
?>
<div class="home">
<?php Theme::plugins('pageBegin'); ?>
<!-- Cover image -->
<?php if ($page->coverImage()): ?>
<img class="card-img-top mb-3 rounded-0" alt="Cover Image" src="<?php echo $page->coverImage(); ?>"/>
<?php endif ?>
<a href="<?php echo $page->permalink(); ?>">
<h3><?php echo $page->title(); ?></h3>
</a>
<?php echo $page->content(); ?>
<h6 class="card-subtitle mb-3 text-muted text-right"><?php echo $page->date(); ?> - <?php echo $L->get('Reading time') . ': ' . $page->readingTime(); ?></h6>
<h6 class="card-subtitle mb-3 text-muted text-right"><?php echo 'Author: ' . $page->username(); ?></h6>
<div class="text-right">
<?php foreach (Theme::socialNetworks() as $key=>$label): ?>
<a class="" href="<?php echo $site->{$key}(); ?>" target="_blank">
<img height="20" width="20" class="" src="<?php echo DOMAIN_THEME.'img/'.$key.'.svg' ?>" alt="<?php echo $label ?>" />
<span class="d-inline d-sm-none"><?php echo $label; ?></span>
</a>
<?php endforeach; ?>
</div>
<?php Theme::plugins('pageEnd'); ?>
</div>

1
php/sidebar.php Normal file
View File

@@ -0,0 +1 @@
<?php Theme::plugins('siteSidebar') ?>