view.phtml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Copyright © 2015 Ihor Vansach (ihor@magefan.com). All rights reserved.
  4. * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
  5. *
  6. * Glory to Ukraine! Glory to the heroes!
  7. */
  8. ?>
  9. <?php
  10. /**
  11. * Blog post view template
  12. *
  13. * @var $block \Magefan\Blog\Block\Post\View
  14. */
  15. ?>
  16. <?php
  17. $_post = $this->getPost();
  18. $_postUrl = $_post->getPostUrl();
  19. $_postName = $block->escapeHtml($_post->getTitle(), null, true);
  20. ?>
  21. <div class="post-view">
  22. <div class="post-holder post-holder-<?php echo $_post->getId() ?>">
  23. <div class="post-header clearfix">
  24. <div class="addthis_toolbox addthis_default_style" addthis:url="<?php echo $_postUrl ?>">
  25. <a class="addthis_button_facebook"></a>
  26. <a class="addthis_button_twitter"></a>
  27. <a class="addthis_button_email"></a>
  28. <a class="addthis_button_compact"></a>
  29. </div>
  30. <?php echo $this->getInfoHtml() ?>
  31. </div>
  32. <div class="post-content">
  33. <div class="post-description clearfix">
  34. <?php if ($featuredImage = $_post->getFeaturedImage()) { ?>
  35. <div class="post-ftimg-hld">
  36. <img src="<?php echo $featuredImage ?>" alt="<?php echo $_postName ?>" />
  37. </div>
  38. <?php } ?>
  39. <div class="post-text-hld">
  40. <?php echo $block->getContent() ?>
  41. <div class="clear"></div>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="post-bottom">
  46. <?php echo $this->getChildHtml('blog.post.bottom') ?>
  47. </div>
  48. </div>
  49. </div>