bludit/bl-themes/clean-blog/php/home.php

55 lines
1.4 KiB
PHP
Raw Normal View History

2017-10-13 00:15:13 +02:00
<!-- Page Header -->
<header class="masthead" style="background-image: url('<?php echo $backgroundImage ?>')">
2017-10-13 00:15:13 +02:00
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-10 mx-auto">
<div class="site-heading">
<h1><?php echo $Site->title() ?></h1>
<span class="subheading"><?php echo $Site->description() ?></span>
</div>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-10 mx-auto">
<!-- Content -->
<?php
foreach ($content as $page):
?>
<div class="post-preview">
<a href="<?php echo $page->permalink() ?>">
<h2 class="post-title"><?php echo $page->title() ?></h2>
<h3 class="post-subtitle"><?php echo $page->description() ?></h3>
</a>
<p class="post-meta"><?php echo $Language->get('Posted by').' '.$page->user('username').' - '.$page->date() ?></p>
2017-10-13 00:15:13 +02:00
</div>
<hr>
<?php
endforeach
?>
<!-- Pager -->
<div class="clearfix">
2017-10-14 00:02:30 +02:00
<?php
if(Paginator::showPrev()) {
2017-10-14 18:19:37 +02:00
echo '<a class="btn btn-secondary float-left" href="'.Paginator::prevPageUrl().'">&larr; '.$Language->get('Previuos page').'</a>';
2017-10-14 00:02:30 +02:00
}
if(Paginator::showNext()) {
2017-10-14 18:19:37 +02:00
echo '<a class="btn btn-secondary float-left" href="'.Paginator::nextPageUrl().'">'.$Language->get('Next page').' &rarr;</a>';
2017-10-14 00:02:30 +02:00
}
?>
2017-10-13 00:15:13 +02:00
</div>
</div>
</div>
</div>
<hr>