mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 20:16:22 +05:30
post view
FI & Video
This commit is contained in:
parent
4bc0fda7a0
commit
02f72e51a8
1 changed files with 11 additions and 1 deletions
|
|
@ -5,6 +5,16 @@
|
|||
<a name="more"></a>
|
||||
<h1 class="title-post" itemprop="name"><?php echo $p->title ?></h1>
|
||||
<div class="date">
|
||||
<?php if (!empty($p->feature)){?>
|
||||
<div class="featured-image">
|
||||
<a href="<?php echo $p->url?>"><img src="<?php echo $p->feature; ?>" alt="<?php echo $p->title ?>"/></a>
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php if (!empty($p->video)){?>
|
||||
<div class="featured-video">
|
||||
<iframe src="https://www.youtube.com/embed/<?php echo $p->video; ?>" width="560" height="315" frameborder="0" allowfullscreen></iframe>
|
||||
</div>
|
||||
<?php }?>
|
||||
<span itemprop="datePublished"><a href="<?php echo $p->archive ?>" title="Show all posts made on this day"><?php echo date('d F Y', $p->date)?></a></span> - Posted in
|
||||
<span itemprop="articleSection"><?php echo $p->tag ?></span> by
|
||||
<span itemprop="author"><a href="<?php echo $p->authorurl ?>"><?php echo $p->author ?></a></span> -
|
||||
|
|
@ -45,4 +55,4 @@
|
|||
<?php if (disqus()):?>
|
||||
<?php echo disqus($p->title, $p->url) ?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue