![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magefan/module-blog/view/frontend/templates/post/ |
<?php /** * Copyright © Magefan ([email protected]). All rights reserved. * Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement). * * Glory to Ukraine! Glory to the heroes! */ ?> <?php /** * Blog post view template * * @var $block \Magefan\Blog\Block\Post\View */ ?> <?php $_post = $block->getPost(); $_postUrl = $_post->getPostUrl(); $_postName = $block->escapeHtml($_post->getTitle(), null); ?> <?= $block->getStyleViewModel()->getStyle('Magefan_Blog::css/bootstrap-4.4.1-custom-min.css') ?> <div class="_post-view post-view-modern"> <div class="post-holder post-holder-<?= (int)$_post->getId() ?>"> <div class="post-header clearfix"> <!-- post category--> <?php if ($_categoriesCount = $_post->getCategoriesCount()) { ?> <div class="post-category mb-4"> <?php foreach ($_post->getParentCategories() as $ct) { ?> <a class="category-name" href="<?= $block->escapeUrl($ct->getCategoryUrl()) ?>" title="<?= $block->escapeHtml($ct->getTitle()) ?>"> <?= $block->escapeHtml($ct->getTitle()) ?> </a> <?php } ?> </div> <?php } ?> <!-- block data --> <div class="post-data-wrap mb-4"> <!-- post author --> <?php if ($block->authorEnabled()) { ?> <?php if ($_author = $_post->getAuthor()) { ?> <span class="post-author-name"> <?php if ($block->authorPageEnabled()) { ?> <a title="<?= $block->escapeHtml($_author->getTitle()) ?>" href="<?= $block->escapeUrl($_author->getAuthorUrl()) ?>"><?= $block->escapeHtml($_author->getTitle()) ?> </a> <?php } else { ?> <?= $block->escapeHtml($_author->getTitle()) ?> <?php } ?> <span>-</span> </span> <?php } ?> <?php } ?> <!-- post date --> <?php if ($_post->isPublishDateEnabled()) { ?> <span class="post-date"><?= $block->escapeHtml($_post->getPublishDate()) ?></span> <?php } ?> <!-- post views --> <?php if ($block->viewsCountEnabled()) { ?> <?php if ($viewsCount = $_post->getViewsCount()) { ?> <span class="post-views float-right d-none d-md-block"> <i class="mf-blog-icon mfbi-views"></i> <?= $block->escapeHtml($viewsCount)?> </span> <?php } ?> <?php } ?> <!-- post comments --> <?php if ($block->magefanCommentsEnabled() && $_post->getCommentsCount()) { ?> <span class="post-comments float-right d-none d-md-block"> <i class="mf-blog-icon mfbi-comments"></i> <a title="<?= $block->escapeHtml($_post->getTitle()) ?>" href="<?= $block->escapeUrl($_post->getPostUrl()) ?>#post-comments" ><?= $block->escapeHtml($_post->getCommentsCount()) ?></a> </span> <?php } ?> </div> <?php /* <div class="post-sharing mb-4 d-none"> <!-- Go to www.addthis.com/dashboard to customize your tools --> <div class="addthis_inline_share_toolbox text-center" addthis:url="<?= $block->escapeUrl($_postUrl) ?>"></div> </div> */ ?> </div> <div class="post-content"> <div class="_post-description clearfix"> <!-- Post Image --> <?php if ($featuredImage = $_post->getFeaturedImage()) { ?> <?php $featuredImgAlt = $_post->getData('featured_img_alt'); if (!$featuredImgAlt) { $featuredImgAlt = $_postName; } ?> <div class="post-featured-image"> <img src="<?= $block->escapeUrl($featuredImage) ?>" alt="<?= $block->escapeHtml($featuredImgAlt) ?>" /> </div> <?php } ?> <!-- Post Tags --> <?php if ($_tagsCount = $_post->getTagsCount()) { ?> <div class="post-tag"> <div class="item post-tags"> <div class="post-tag-title"><?= $block->escapeHtml(__('Tags')) ?></div> <?php $n = 0; ?> <?php foreach ($_post->getRelatedTags() as $tag) { ?> <?php $n++; ?> <a title="<?= $block->escapeHtml($tag->getTitle()) ?>" href="<?= $block->escapeUrl($tag->getTagUrl()) ?>" ><?= $block->escapeHtml($tag->getTitle()) ?></a> <?php } ?> </div> </div> <?php } ?> <!-- END Post Tags --> <div class="post-description"> <?= /*@noEscape*/ $block->getContent() ?> <div class="clear clearfix"></div> </div> </div> </div> <div class="post-bottom"> <?php if ($block->displayAddThisToolbox()) : ?> <!-- Post Sharing --> <div class="post-sharing post-sharing-bottom"> <div class="share-elements"> <div class="icon-wrapper icon-facebook" onclick="mfShareWindowOpen('<?= $block->escapeUrl($_postUrl) ?>', 'facebook')"> <div class="icon" title="<?= $block->escapeHtml(__('Share on %1', 'Facebook')) ?>"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" version="1.1" class="at-icon at-icon-facebook" style="fill: #ffffff;width: 48px;height: 48px;"> <title id="at-svg-facebook-1"><?= $block->escapeHtml(__('Share on %1', 'Facebook')) ?></title> <g><path d="M22 5.16c-.406-.054-1.806-.16-3.43-.16-3.4 0-5.733 1.825-5.733 5.17v2.882H9v3.913h3.837V27h4.604V16.965h3.823l.587-3.913h-4.41v-2.5c0-1.123.347-1.903 2.198-1.903H22V5.16z" fill-rule="evenodd"></path></g> </svg> </div> <div class="label"><?= $block->escapeHtml(__('Share on %1', 'Facebook')) ?></div> </div> <div class="icon-wrapper icon-twitter" onclick="mfShareWindowOpen('<?= $block->escapeUrl($_postUrl) ?>', 'twitter')" > <div class="icon" title="<?= $block->escapeHtml(__('Share on %1', 'Twitter')) ?>"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" version="1.1" class="at-icon at-icon-twitter" style="fill: #ffffff;width: 48px;height: 48px;"> <title id="at-svg-twitter-2"><?= $block->escapeHtml(__('Share on %1', 'Twitter')) ?></title> <g><path d="M27.996 10.116c-.81.36-1.68.602-2.592.71a4.526 4.526 0 0 0 1.984-2.496 9.037 9.037 0 0 1-2.866 1.095 4.513 4.513 0 0 0-7.69 4.116 12.81 12.81 0 0 1-9.3-4.715 4.49 4.49 0 0 0-.612 2.27 4.51 4.51 0 0 0 2.008 3.755 4.495 4.495 0 0 1-2.044-.564v.057a4.515 4.515 0 0 0 3.62 4.425 4.52 4.52 0 0 1-2.04.077 4.517 4.517 0 0 0 4.217 3.134 9.055 9.055 0 0 1-5.604 1.93A9.18 9.18 0 0 1 6 23.85a12.773 12.773 0 0 0 6.918 2.027c8.3 0 12.84-6.876 12.84-12.84 0-.195-.005-.39-.014-.583a9.172 9.172 0 0 0 2.252-2.336" fill-rule="evenodd"></path></g> </svg> </div> <div class="label"><?= $block->escapeHtml(__('Share on %1', 'Twitter')) ?></div> </div> <div class="icon-wrapper icon-pinterest" onclick="mfShareWindowOpen('<?= $_postUrl ?>', 'pinterest')"> <div class="icon" title="<?= $block->escapeHtml(__('Share on %1', 'Pinterest')) ?>"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" version="1.1" role="img" class="at-icon at-icon-pinterest" style="fill: rgb(255, 255, 255);"> <title id="at-svg-pinterest_share-1"><?= $block->escapeHtml(__('Share on %1', 'Pinterest')) ?></title> <g><path d="M7 13.252c0 1.81.772 4.45 2.895 5.045.074.014.178.04.252.04.49 0 .772-1.27.772-1.63 0-.428-1.174-1.34-1.174-3.123 0-3.705 3.028-6.33 6.947-6.33 3.37 0 5.863 1.782 5.863 5.058 0 2.446-1.054 7.035-4.468 7.035-1.232 0-2.286-.83-2.286-2.018 0-1.742 1.307-3.43 1.307-5.225 0-1.092-.67-1.977-1.916-1.977-1.692 0-2.732 1.77-2.732 3.165 0 .774.104 1.63.476 2.336-.683 2.736-2.08 6.814-2.08 9.633 0 .87.135 1.728.224 2.6l.134.137.207-.07c2.494-3.178 2.405-3.8 3.533-7.96.61 1.077 2.182 1.658 3.43 1.658 5.254 0 7.614-4.77 7.614-9.067C26 7.987 21.755 5 17.094 5 12.017 5 7 8.15 7 13.252z" fill-rule="evenodd"></path></g> </svg> </div> <div class="label"><?= $block->escapeHtml(__('Share on %1', 'Pinterest')) ?></div> </div> </div> </div> <!-- END Post Sharing --> <?php endif; ?> <?= $block->getChildHtml('blog.post.bottom') ?> </div> </div> </div>