init
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
use Mageplaza\Blog\Block\Post\View;
|
||||
use Mageplaza\Blog\Helper\Image;
|
||||
use Mageplaza\Blog\Model\Config\Source\Comments\Type;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var View $block */
|
||||
/** @var Escaper $escaper */
|
||||
$helper = $block->getBlogHelper();
|
||||
$_post = $block->getPost();
|
||||
$author = $helper->getAuthorByPost($_post);
|
||||
$authorName = $author !== null ? $author->getName() : '';
|
||||
$modifier = $helper->getAuthorByPost($_post, true);
|
||||
$modifierName = $modifier !== null ? $modifier->getName() : '';
|
||||
?>
|
||||
<?php if ($authorName && $helper->showAuthorInfo()) : ?>
|
||||
|
|
||||
<span><i class="fa fa-user"> </i>
|
||||
<?= $escaper->escapeHtml(__(
|
||||
'By: %1',
|
||||
'<a class="mp-info" href="' . $author->getUrl() . '">' . $authorName . '</a>'
|
||||
)) ?></span>
|
||||
<?php if ($authorName != $modifierName && $modifierName) : ?>
|
||||
|
|
||||
<span><i class="fa fa-edit"> </i>
|
||||
<?= $escaper->escapeHtml(__(
|
||||
'Modify By: %1 at %2',
|
||||
'<a class="mp-info" href="' . $modifier->getUrl() . '">' . $modifierName . '</a>',
|
||||
$block->getDateFormat($_post->getUpdatedAt())
|
||||
)) ?></span>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
use Mageplaza\Blog\Block\Post\View;
|
||||
use Mageplaza\Blog\Helper\Image;
|
||||
use Mageplaza\Blog\Model\Config\Source\Comments\Type;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var View $block */
|
||||
/** @var Escaper $escaper */
|
||||
$_post = $block->getPost();
|
||||
?>
|
||||
<?php if ($categoryHtml = $block->getPostCategoryHtml($_post)) : ?>
|
||||
|
|
||||
<span><i class="fa fa-folder-open-o"> </i>
|
||||
<?= /* @noEscape */ (__('Categories: %1', $categoryHtml)); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
use Mageplaza\Blog\Block\Post\View;
|
||||
use Mageplaza\Blog\Helper\Image;
|
||||
use Mageplaza\Blog\Model\Config\Source\Comments\Type;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var View $block */
|
||||
/** @var Escaper $escaper */
|
||||
$_post = $block->getPost();
|
||||
?>
|
||||
<span><i class="fa fa-calendar-times-o"> </i>
|
||||
<?= $escaper->escapeHtml($block->getDateFormat($_post->getPublishDate())) ?>
|
||||
</span>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
use Mageplaza\Blog\Block\Post\View;
|
||||
use Mageplaza\Blog\Helper\Image;
|
||||
use Mageplaza\Blog\Model\Config\Source\Comments\Type;
|
||||
|
||||
/** @var View $block */
|
||||
?>
|
||||
<div class="col-xs-12">
|
||||
<hr/>
|
||||
<div class="mp-post-info">
|
||||
<?= $block->getChildHtml('mp_blog_post_info_date') ?>
|
||||
|
||||
<?= $block->getChildHtml('mp_blog_post_info_traffic') ?>
|
||||
|
||||
<?= $block->getChildHtml('mp_blog_post_info_category') ?>
|
||||
|
||||
<?= $block->getChildHtml('mp_blog_post_info_tag') ?>
|
||||
|
||||
<?= $block->getChildHtml('mp_blog_post_info_author') ?>
|
||||
|
||||
</div>
|
||||
<hr/>
|
||||
</div>
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
use Mageplaza\Blog\Block\Post\View;
|
||||
use Mageplaza\Blog\Helper\Image;
|
||||
use Mageplaza\Blog\Model\Config\Source\Comments\Type;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var View $block */
|
||||
/** @var Escaper $escaper */
|
||||
$_post = $block->getPost();
|
||||
?>
|
||||
<?php if ($tagList = $block->getTagList($_post)) : ?>
|
||||
| <span><i class="fa fa-tags"></i><?= $escaper->escapeHtml(__('Tags: %1', $tagList)); ?></span>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
use Mageplaza\Blog\Block\Post\View;
|
||||
use Mageplaza\Blog\Helper\Image;
|
||||
use Mageplaza\Blog\Model\Config\Source\Comments\Type;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var View $block */
|
||||
/** @var Escaper $escaper */
|
||||
$_post = $block->getPost();
|
||||
?>
|
||||
<?php if ($_post->getViewTraffic()) : ?>
|
||||
|
|
||||
<span><i class="mp-blog-icon mp-blog-traffic" aria-hidden="true"></i>
|
||||
<?= $escaper->escapeHtml(__('View: %1', $_post->getViewTraffic())) ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
Reference in New Issue
Block a user