mirror of
https://github.com/thewesker/htmly-cleanblog.git
synced 2025-12-20 04:01:06 -05:00
72 lines
4.0 KiB
PHP
72 lines
4.0 KiB
PHP
<!-- Post Content -->
|
|
<article>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
|
<?php if (login()) { echo tab($p); } ?>
|
|
<?php if (!empty($p->video)) { ?>
|
|
<div class="featured featured-video embed-responsive embed-responsive-16by9">
|
|
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/<?php echo $p->video; ?>" frameborder="0" allowfullscreen></iframe>
|
|
</div>
|
|
<?php } ?>
|
|
<?php if (!empty($p->audio)) { ?>
|
|
<div class="featured featured-audio embed-responsive embed-responsive-16by9">
|
|
<iframe class="embed-responsive-item" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&auto_play=false&visual=true"></iframe>
|
|
</div>
|
|
<?php } ?>
|
|
<?php if (!empty($p->quote)) { ?>
|
|
<div class="featured featured-quote">
|
|
<blockquote class="quote"><i class="fa fa-quote-left"></i> <?php echo $p->quote ?> <i class="fa fa-quote-right"></i></blockquote>
|
|
</div>
|
|
<?php } ?>
|
|
<?php if (!empty($p->link)) { ?>
|
|
<div class="featured featured-link">
|
|
<a target="_blank" href="<?php echo $p->link ?>"><i class="fa fa-external-link"></i> <?php echo $p->link ?></a>
|
|
</div>
|
|
<?php } ?>
|
|
<?php echo $p->body; ?>
|
|
<div class="toolbox">
|
|
<span class="category"><i class="fa fa-folder"></i> <?php echo $p->category;?></span>
|
|
<span class="tags"><i class="fa fa-tags"></i> <?php echo $p->tag;?></span>
|
|
<span class="share pull-right">
|
|
<a target="_blank" class="first" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fa fa-facebook"></i></a>
|
|
<a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fa fa-twitter"></i></a>
|
|
<a target="_blank" class="last" href="https://plus.google.com/share?url=<?php echo $p->url ?>"><i class="fa fa-google-plus"></i></a>
|
|
</span>
|
|
</div>
|
|
<?php if (disqus()): ?>
|
|
<?php echo disqus($p->title, $p->url) ?>
|
|
<?php endif; ?>
|
|
<?php if (disqus_count()): ?>
|
|
<?php echo disqus_count() ?>
|
|
<?php endif; ?>
|
|
<?php if (!empty($next) || !empty($prev)): ?>
|
|
<hr>
|
|
<!-- Pager -->
|
|
<ul class="pager">
|
|
<?php if (!empty($next)): ?>
|
|
<li class="next pull-left">
|
|
<a href="<?php echo($next['url']); ?>" rel="next">← Newer</a>
|
|
</li>
|
|
<?php endif;?>
|
|
<?php if (!empty($prev)): ?>
|
|
<li class="prev pull-right">
|
|
<a href="<?php echo($prev['url']); ?>" rel="prev">Older →</a>
|
|
</li>
|
|
<?php endif;?>
|
|
</ul>
|
|
<?php endif; ?>
|
|
<?php if (facebook() || disqus()): ?>
|
|
<div id="comments">
|
|
<?php if (facebook()): ?>
|
|
<div class="fb-comments" data-href="<?php echo $p->url ?>" data-numposts="<?php echo config('fb.num') ?>" data-colorscheme="<?php echo config('fb.color') ?>"></div>
|
|
<?php endif; ?>
|
|
<?php if (disqus()): ?>
|
|
<div id="disqus_thread"></div>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</article>
|