First Version Ready for Beta
This commit is contained in:
40
php/footer.php
Normal file
40
php/footer.php
Normal 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"> </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>
|
||||
|
||||
Theme:
|
||||
<a target="_blank" class="text-white" href="">
|
||||
Gray Matter
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-1"> </div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<!-- Javascript -->
|
||||
<?php
|
||||
echo Theme::jquery();
|
||||
echo Theme::jsBootstrap();
|
||||
echo Theme::js('js/gray-matter.js')
|
||||
?>
|
||||
26
php/head.php
Normal file
26
php/head.php
Normal 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
82
php/home.php
Normal 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"> ◄ <?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'); ?> ►</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
<?php endif ?>
|
||||
41
php/page.php
Normal file
41
php/page.php
Normal 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
1
php/sidebar.php
Normal file
@@ -0,0 +1 @@
|
||||
<?php Theme::plugins('siteSidebar') ?>
|
||||
Reference in New Issue
Block a user