mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
35 lines
1.4 KiB
PHP
35 lines
1.4 KiB
PHP
<?php Response::setMetaDescription($post->getTitle()) ?>
|
|
<?php Response::addMetaImages($post->getImageUrls()) ?>
|
|
<?php NavActions::setNavUri('/news') ?>
|
|
<?php echo View::render('nav/header') ?>
|
|
<main>
|
|
<header class="post-header <?php echo $post->getCover() ? 'with-cover' : ('no-cover'.$post->getCoverBackgroundStyle(4)) ?>"
|
|
<?php echo $post->getCover() ? 'style="background-image: url(\'/img/blog-covers/' . $post->getCover() . '\')"' : ''?>
|
|
>
|
|
<div class="post-header-inner content <?php echo $post->getIsCoverLight() ? 'content-light' : 'content-dark' ?>">
|
|
<h1><?php echo htmlentities($post->getTitle()) ?></h1>
|
|
<div class="meta spacer1">
|
|
<?php echo $post->getAuthorName() ?>
|
|
<?php echo $post->hasAuthor() && $post->hasDate() ? '•' : '' ?>
|
|
<?php if ($post->hasDate()): ?>
|
|
<span title="<?php echo $post->getDate()->format('F jS, Y') ?>"><?php echo $post->getDate()->format('M j') ?></span>
|
|
<?php endif ?>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="post-content">
|
|
<section class="content spacer2">
|
|
<?php echo $post->getContentHtml() ?>
|
|
</section>
|
|
<?php if($post->hasPrevNext()): ?>
|
|
<?php echo View::render('content/_postNav', ['post' => $post]) ?>
|
|
<?php endif ?>
|
|
</div>
|
|
|
|
<?php if ($post->hasAuthor()): ?>
|
|
<?php echo View::render('content/_postAuthor', ['post' => $post]) ?>
|
|
<?php endif ?>
|
|
|
|
</main>
|
|
<?php echo View::render('nav/footer') ?>
|