<?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 div {
        padding: 10px 20px;
        color: #ffffff;
        cursor: pointer;
        width: 120px;
        text-align: center;
        position: absolute;
        margin-top: 10px;
    }

    .post-info-action div {
        margin: 0 10px;
        width: 25px;
        cursor: pointer;
    }

    #mpblog-list-container a {
        text-decoration: none;
    }


    .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*/

    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>
