bludit/bl-themes/lingonberry/php/home.php
Hakim Zulkufli 6b08a04a5c More Lingonberry updates. Should be fully usable now.
Plugins not tested.
Sitebar plugins will never work as before. (Not included in the theme.)
2017-08-07 16:42:56 +08:00

62 lines
2.1 KiB
PHP

<div class="content section-inner">
<div class="posts">
<?php foreach($pages as $Post): ?>
<div class="post format-standard">
<div class="post-bubbles">
<a href="<?php echo $Post->permalink() ?>" class="format-bubble" title="<?php echo $Post->title() ?>"></a>
</div>
<div class="content-inner">
<div class="post-header">
<?php if($Post->coverImage()) {
echo '<div class="featured-media">';
echo '<img class="attachment-post-image wp-post-image cover-image" src="'.$Post->coverImage().'" alt="Cover Image">';
echo '<div class="media-caption-container">';
echo '<a href="'.$Post->permalink().'" rel="bookmark" title="'.$Post->title().'">';
echo '<p class="media-caption">'.$Post->description().'</p>';
echo '</a>';
echo '</div>';
echo '</div> <!-- /featured-media -->';
} ?>
<h2 class="post-title"><a href="<?php echo $Post->permalink() ?>" rel="bookmark" title="<?php echo $Post->title() ?>"><?php echo $Post->title() ?></a></h2>
<div class="post-meta">
<span class="post-date"><a href="<?php echo $Post->permalink() ?>" title="<?php echo $Post->date() ?>"><?php echo $Post->date() ?></a></span>
<span class="date-sep"> / </span>
<span class="post-author"><?php
if( Text::isNotEmpty($Post->user('firstName')) || Text::isNotEmpty($Post->user('lastName')) ) {
echo $Post->user('firstName').' '.$Post->user('lastName');
}
else {
echo $Post->user('username');
}
?></span>
</div>
</div>
<div class="post-content">
<?php echo $Post->content(false) ?>
<?php if($Post->readMore()) { ?>
<a class="read-more" href="<?php echo $Post->permalink() ?>"><?php $Language->printMe('Read more') ?></a>
<?php } ?>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div class="clear"></div>
</div>
<?php endforeach; ?>
<div class="post-nav archive-nav">
<?php echo Paginator::html(); ?>
</div>
<div class="clear"></div>
</div>
</div>