Files
2026-09-15 10:35:56 +08:00

207 lines
4.7 KiB
PHTML
Executable File

<?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\Design;
use Magento\Framework\Escaper;
/** @var Design $block */
/** @var Escaper $escaper */
?>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function () {
var body = document.body;
window.addEventListener('load', function () {
if (body.classList.contains('page-layout-1column')) {
var columns = document.querySelector('.columns');
var sidebarMain = columns.querySelector('.sidebar.sidebar-main');
if (sidebarMain) {
columns.removeChild(sidebarMain);
}
}
var currentTheme = "<?php echo /** @noEscape */ $block->getCurrentTheme() ?>";
if (currentTheme === "Etheme/yourstore") {
body.classList.add('mpblog-etheme-yourstore');
}
});
});
</script>
<?php $color = $block->getHelper()->getDisplayConfig('font_color');
?>
<style type="text/css">
.mp-blog-review-title {
text-align: center;
}
#mp-blog-review {
position: relative;
height: 65px;
}
#mp-blog-review div {
padding: 10px 20px;
color: #ffffff;
cursor: pointer;
width: 120px;
text-align: center;
position: absolute;
margin-top: 10px;
}
.mp-blog-like {
background-color: #6AA84F;
left: 33%;
}
.mp-blog-dislike {
background-color: #EC3A3C;
left: 52%;
}
@media (max-width: 1024px) {
.mp-blog-like {
left: 28%;
}
}
@media (max-width: 768px) {
.mp-blog-like {
left: 20%;
}
}
@media (max-width: 375px) {
.mp-blog-like {
left: 0;
}
}
.mp-blog-new-post {
height: 60px;
}
.mp-blog-new-post button {
float: right;
margin: 10px;
padding: 8px 15px
}
.post-item-wraper {
position: relative;
}
.post-info-action {
display: flex;
position: absolute;
float: right;
right: 10px;
top: 10px;
}
.post-info-action div {
margin: 0 10px;
width: 25px;
cursor: pointer;
}
#mpblog-list-container a {
text-decoration: none;
}
#mpblog-list-container a.mp-read-more{
text-decoration: underline;
}
.post-view-image {
text-align: center;
}
/*Post List Content Css*/
.post-info-wraper h2.mp-post-title a,
.about-admin h4.admin-title a,
.mp-post-meta-info a.mp-read-more,
.mp-post-info a.mp-info,
ul.menu-categories a.list-categories:hover,
.products-same-post a.product-item-link:hover,
a.mp-relate-link,
.mpblog-product-name {
color: <?= /** @noEscape */ $color ?> !important;
}
a.label.label-default.tags-list:hover,
a.label.label-default.tags-list:focus {
background: <?= /** @noEscape */ $color ?>;
color: #fff !important;
}
.list-post-tabs a {
background: #fbfbfb;
color: <?= /** @noEscape */ $color ?>;
}
/*Site Map CSS*/
.mp-sidebar a.sitemap-link,
.menu-archives a.list-archives:hover {
text-decoration: none !important;
color: <?= /** @noEscape */ $color ?> !important;
}
.mp-sidebar .row div {
width: 100%;
}
/*Comment CSS*/
button.default-cmt__content__cmt-block__cmt-box__cmt-btn__btn-submit {
background: <?= /** @noEscape */ $color ?> !important;
color: #fff;
border-color: #999 !important;
}
span.cmt-row__cmt-username {
font-weight: 600;
color: <?= /** @noEscape */ $color ?>;
}
a.interactions__btn-actions.mpblog-like {
color: #333333
}
a.interactions__btn-actions.mpblog-liked {
color: <?= /** @noEscape */ $color ?>;
}
a.interactions__btn-actions {
color: <?= /** @noEscape */ $color ?>;
}
/*Widget CSS*/
.widget-title a {
color: <?= /** @noEscape */ $color ?>;
font-size: 26px;
}
/*Author CSS*/
.author-name h3 {
color: <?= /** @noEscape */ $color ?>;
text-align: center;
}
</style>