This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
@@ -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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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; ?>