Skip to content

Instantly share code, notes, and snippets.

@anunay
Created July 22, 2014 11:34
Show Gist options
  • Select an option

  • Save anunay/3c0484dd97ac142910a4 to your computer and use it in GitHub Desktop.

Select an option

Save anunay/3c0484dd97ac142910a4 to your computer and use it in GitHub Desktop.
post.phtml
<?php
/**
* @category Fishpig
* @package Fishpig_Wordpress
* @license http://fishpig.co.uk/license.txt
* @author Ben Tideswell <[email protected]>
*/
?>
<?php $post = $this->getPost() ?>
<?php if ($post): ?>
<?php $helper = $this->helper('wordpress') ?>
<?php $author = $post->getAuthor() ?>
<div class="inside-blog-page">
<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
<div class="inside-inner-wrapper">
<a class="btn btn-primary btnback pull-right" href="/blog/" >Back</a>
<?php if ($post->isViewableForVisitor()): ?>
<?php if ($featuredImage = $post->getFeaturedImage()): ?>
<img src="<?php echo $featuredImage->getFullSizeImage() ?>" alt="<?php echo $this->escapeHtml($post->getPostTitle()) ?>"/>
<?php endif; ?>
<h2><?php echo $this->escapeHtml($post->getPostTitle()) ?></h2>
<small><em><?php echo stripslashes($this->__('%s<span class=\"by-author\"></span>.', $post->getPostDate())) ?></em></small>
<?php echo $post->getPostContent() ?>
<?php else: ?>
<?php echo $this->getPasswordProtectHtml() ?>
<?php endif; ?>
<p><?php echo $this->getBeforePostContentHtml() ?></p>
<div class="footer-meta"><?php echo $this->getAfterPostContentHtml() ?></div>
</div>
</div>
</div>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment