init
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<css src="Mageplaza_Core::css/owl.carousel.css"/>
|
||||
<css src="Mageplaza_Core::css/owl.theme.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<referenceBlock name="product.info.details">
|
||||
<block class="Mageplaza\Blog\Block\Post\RelatedPost" name="related.post.tab" template="Mageplaza_Blog::post/related_post.phtml" group="detailed_info" ifconfig="blog/product_post/product_detail/enable_post"/>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceContainer name="fieldset.create.info.additional">
|
||||
<block class="Mageplaza\Blog\Block\Frontend" ifconfig="blog/general/customer_approve" name="mpblog.author.create" as="mpblog.author.create" template="Mageplaza_Blog::author/create.phtml"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceBlock name="customer_account_navigation">
|
||||
<block class="Magento\Customer\Block\Account\SortLinkInterface" name="author-link" ifconfig="blog/general/enabled">
|
||||
<arguments>
|
||||
<argument name="path" xsi:type="string">mpblog/author/signup</argument>
|
||||
<argument name="label" xsi:type="string">My Better Blog</argument>
|
||||
<argument name="sortOrder" xsi:type="number">200</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</referenceBlock>
|
||||
<referenceBlock name="footer_links">
|
||||
<block class="Mageplaza\Blog\Block\Html\Footer" name="mp_blog_footer_link" template="Mageplaza_Blog::html/footer.phtml" after="-"/>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<css src="Mageplaza_Blog::css/mpBlogIcon.css"/>
|
||||
</head>
|
||||
</page>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<script src="Mageplaza_Blog::js/splide.min.js" />
|
||||
<css src="Mageplaza_Blog::css/splide.min.css" />
|
||||
</head>
|
||||
<body>
|
||||
<referenceBlock name="related.post.tab" >
|
||||
<action method="setTemplate">
|
||||
<argument name="template" xsi:type="string">Mageplaza_Blog::hyva/post/relatedpost.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
|
||||
<body>
|
||||
<referenceBlock name="footer-static-links">
|
||||
<action method="setTemplate">
|
||||
<argument name="template" xsi:type="string">Mageplaza_Blog::hyva/html/footer/links.phtml</argument>
|
||||
</action>
|
||||
<block class="Mageplaza\Blog\Block\Html\Footer" name="mp_blog_footer_link" template="Mageplaza_Blog::hyva/html/footer.phtml" after="-" ifconfig="blog/general/enabled"/>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<css src="Mageplaza_Core::css/font-awesome.min.css"/>
|
||||
<css src="Mageplaza_Blog::css/hyvaManagePost.css"/>
|
||||
<css src="Mageplaza_Blog::css/hyvaBlog.css"/>
|
||||
|
||||
<script src="Mageplaza_Blog::js/ckeditor.js" />
|
||||
|
||||
<script src="Mageplaza_Blog::js/treeselectjs.umd.js" />
|
||||
<css src="Mageplaza_Blog::css/treeselectjs.css" />
|
||||
</head>
|
||||
<update handle="hyva_form_validation"/>
|
||||
|
||||
<body>
|
||||
<referenceBlock name="mpblog.design">
|
||||
<action method="setTemplate">
|
||||
<argument name="template" xsi:type="string">Mageplaza_Blog::hyva/design.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
|
||||
</body>
|
||||
</page>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="mpblog_author"/>
|
||||
|
||||
<body>
|
||||
<referenceBlock name="blog_edit_form" >
|
||||
<action method="setTemplate" >
|
||||
<argument name="template" xsi:type="string">Mageplaza_Blog::hyva/author/signup.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="mpblog_signup"/>
|
||||
<update handle="hyva_form_validation"/>
|
||||
|
||||
<body>
|
||||
<referenceBlock name="blog_signup_form" >
|
||||
<action method="setTemplate" >
|
||||
<argument name="template" xsi:type="string">Mageplaza_Blog::hyva/author/signup.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<css src="Mageplaza_Core::css/grid-mageplaza.css"/>
|
||||
<css src="Mageplaza_Core::css/font-awesome.min.css"/>
|
||||
<css src="Mageplaza_Blog::css/hyvaBlog.css"/>
|
||||
|
||||
<script src="Mageplaza_Blog::js/splide.min.js" />
|
||||
<css src="Mageplaza_Blog::css/splide.min.css" />
|
||||
</head>
|
||||
<body>
|
||||
<referenceContainer name="columns">
|
||||
<container name="div.sidebar.main" htmlTag="div" htmlClass="sidebar sidebar-main" before="main">
|
||||
<container name="blog.sidebar.main" as="sidebar_main" label="Sidebar Main">
|
||||
<block class="Mageplaza\Blog\Block\Sidebar\Search" name="mpblog.sidebar.search" template="Mageplaza_Blog::hyva/sidebar/search.phtml" ifconfig="blog/sidebar/search/enable_search"/>
|
||||
<block class="Mageplaza\Blog\Block\Sidebar\MostView" name="mpblog.sidebar.mostview" template="Mageplaza_Blog::hyva/sidebar/mostview.phtml" ifconfig="blog/sidebar/recent_post/enable_widget"/>
|
||||
<block class="Mageplaza\Blog\Block\Category\Widget" name="mpblog.sidebar.category" template="Mageplaza_Blog::hyva/category/widget.phtml"/>
|
||||
<block class="Mageplaza\Blog\Block\MonthlyArchive\Widget" name="mpblog.sidebar.monthly" template="Mageplaza_Blog::monthly/widget.phtml"/>
|
||||
<block class="Mageplaza\Blog\Block\Topic\Widget" name="mpblog.sidebar.topic" template="Mageplaza_Blog::topic/widget.phtml"/>
|
||||
<block class="Mageplaza\Blog\Block\Tag\Widget" name="mpblog.sidebar.tag" template="Mageplaza_Blog::tag/widget.phtml"/>
|
||||
</container>
|
||||
</container>
|
||||
</referenceContainer>
|
||||
|
||||
<referenceBlock name="mpblog.design">
|
||||
<action method="setTemplate">
|
||||
<argument name="template" xsi:type="string">Mageplaza_Blog::hyva/design.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="mpblog_author"/>
|
||||
<update handle="hyva_modal"/>
|
||||
|
||||
<body>
|
||||
<referenceBlock name="mpblog.author.post" >
|
||||
<action method="setTemplate" >
|
||||
<argument name="template" xsi:type="string">Mageplaza_Blog::hyva/post/author_post.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
|
||||
<referenceBlock name="mpblog.manage.post" >
|
||||
<action method="setTemplate" >
|
||||
<argument name="template" xsi:type="string">Mageplaza_Blog::hyva/post/manage_post.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
|
||||
|
||||
</body>
|
||||
</page>
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceBlock name="mpblog.post.view" >
|
||||
<action method="setTemplate" >
|
||||
<argument name="template" xsi:type="string">Mageplaza_Blog::hyva/post/view.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
|
||||
<referenceBlock name="related.category.products">
|
||||
<action method="setTemplate" >
|
||||
<argument name="template" xsi:type="string">Mageplaza_Blog::hyva/product/list.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceBlock name="mpblog.post.view" >
|
||||
<action method="setTemplate" >
|
||||
<argument name="template" xsi:type="string">Mageplaza_Blog::hyva/post/view.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
|
||||
<referenceBlock name="related.category.products">
|
||||
<action method="setTemplate" >
|
||||
<argument name="template" xsi:type="string">Mageplaza_Blog::hyva/product/list.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<css src="Mageplaza_Core::css/font-awesome.min.css"/>
|
||||
<css src="Mageplaza_Blog::css/managePost.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<referenceContainer name="sidebar.main">
|
||||
<block class="Magento\Framework\View\Element\Template" name="sidebar.main.blog_nav" template="Magento_Theme::html/collapsible.phtml" before="-">
|
||||
<arguments>
|
||||
<argument name="block_css" xsi:type="string">block-collapsible-nav</argument>
|
||||
</arguments>
|
||||
<block class="Mageplaza\Blog\Block\Navigation" name="blog_account_navigation" before="-">
|
||||
<arguments>
|
||||
<argument name="css_class" xsi:type="string">nav items</argument>
|
||||
</arguments>
|
||||
<block class="Magento\Framework\View\Element\Html\Link\Current" name="blog-navigation-info">
|
||||
<arguments>
|
||||
<argument name="label" xsi:type="string" translate="true">Author Information</argument>
|
||||
<argument name="path" xsi:type="string">mpblog/author/information</argument>
|
||||
<argument name="sortOrder" xsi:type="number">10</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
<block class="Magento\Framework\View\Element\Html\Link\Current" name="blog-navigation-post-list">
|
||||
<arguments>
|
||||
<argument name="label" xsi:type="string" translate="true">Post List</argument>
|
||||
<argument name="path" xsi:type="string">mpblog/post/history</argument>
|
||||
<argument name="sortOrder" xsi:type="number">20</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
<block class="Magento\Framework\View\Element\Html\Link\Current" name="blog-navigation-back">
|
||||
<arguments>
|
||||
<argument name="label" xsi:type="string" translate="true">Back</argument>
|
||||
<argument name="path" xsi:type="string">customer/account/</argument>
|
||||
<argument name="sortOrder" xsi:type="number">100</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</block>
|
||||
</block>
|
||||
</referenceContainer>
|
||||
<referenceBlock name="head.additional">
|
||||
<block class="Mageplaza\Blog\Block\Design" ifconfig="blog/general/customer_approve" name="mpblog.design" template="Mageplaza_Blog::design.phtml"/>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="mpblog_author"/>
|
||||
<body>
|
||||
<referenceBlock name="page.main.title">
|
||||
<action method="setPageTitle">
|
||||
<argument translate="true" name="title" xsi:type="string">Author Information</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
<referenceContainer name="content">
|
||||
<block class="Mageplaza\Blog\Block\Author\SignupForm" name="blog_edit_form" template="Mageplaza_Blog::author/signup.phtml" cacheable="false"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="mpblog_signup"/>
|
||||
<body>
|
||||
<referenceBlock name="page.main.title">
|
||||
<action method="setPageTitle">
|
||||
<argument translate="true" name="title" xsi:type="string">Signup Author</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
<referenceContainer name="content">
|
||||
<block class="Mageplaza\Blog\Block\Author\SignupForm" name="blog_signup_form" template="Mageplaza_Blog::author/signup.phtml"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="mpblog_design"/>
|
||||
<body>
|
||||
<referenceContainer name="content">
|
||||
<block class="Mageplaza\Blog\Block\Author\Listpost" name="mpblog.post.list" template="Mageplaza_Blog::post/list.phtml"/>
|
||||
</referenceContainer>
|
||||
<referenceContainer name="blog.sidebar.main">
|
||||
<block class="Mageplaza\Blog\Block\Author\Widget" after="mpblog.sidebar.mostview" name="mpblog.view.sidebar.author" template="Mageplaza_Blog::author/widget.phtml"/>
|
||||
</referenceContainer>
|
||||
<referenceBlock name="mpblog.sidebar.category" remove="true"/>
|
||||
<referenceBlock name="mpblog.sidebar.monthly" remove="true"/>
|
||||
<referenceBlock name="mpblog.sidebar.topic" remove="true"/>
|
||||
<referenceBlock name="mpblog.sidebar.tag" remove="true"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="mpblog_design"/>
|
||||
<body>
|
||||
<referenceContainer name="content">
|
||||
<block class="Mageplaza\Blog\Block\Category\Listpost" name="mp.blog.category.post.list" template="Mageplaza_Blog::post/list.phtml"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<css src="Mageplaza_Core::css/grid-mageplaza.css"/>
|
||||
<css src="Mageplaza_Core::css/font-awesome.min.css"/>
|
||||
<css src="Mageplaza_Core::css/owl.carousel.css"/>
|
||||
<css src="Mageplaza_Core::css/owl.theme.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<referenceContainer name="columns">
|
||||
<container name="div.sidebar.main" htmlTag="div" htmlClass="sidebar sidebar-main" after="main">
|
||||
<container name="blog.sidebar.main" as="sidebar_main" label="Sidebar Main">
|
||||
<block class="Mageplaza\Blog\Block\Sidebar\Search" name="mpblog.sidebar.search" template="Mageplaza_Blog::sidebar/search.phtml" ifconfig="blog/sidebar/search/enable_search"/>
|
||||
<block class="Mageplaza\Blog\Block\Sidebar\MostView" name="mpblog.sidebar.mostview" template="Mageplaza_Blog::sidebar/mostview.phtml" ifconfig="blog/sidebar/recent_post/enable_widget"/>
|
||||
<block class="Mageplaza\Blog\Block\Category\Widget" name="mpblog.sidebar.category" template="Mageplaza_Blog::category/widget.phtml"/>
|
||||
<block class="Mageplaza\Blog\Block\MonthlyArchive\Widget" name="mpblog.sidebar.monthly" template="Mageplaza_Blog::monthly/widget.phtml"/>
|
||||
<block class="Mageplaza\Blog\Block\Topic\Widget" name="mpblog.sidebar.topic" template="Mageplaza_Blog::topic/widget.phtml"/>
|
||||
<block class="Mageplaza\Blog\Block\Tag\Widget" name="mpblog.sidebar.tag" template="Mageplaza_Blog::tag/widget.phtml"/>
|
||||
</container>
|
||||
</container>
|
||||
</referenceContainer>
|
||||
<referenceBlock name="head.additional">
|
||||
<block class="Mageplaza\Blog\Block\Design" name="mpblog.design" template="Mageplaza_Blog::design.phtml"/>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="mpblog_design"/>
|
||||
<body>
|
||||
<referenceContainer name="content">
|
||||
<block class="Mageplaza\Blog\Block\MonthlyArchive\Listpost" name="mp.blog.monthly.post.list" template="Mageplaza_Blog::post/list.phtml"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<script src="Mageplaza_blog::js/select/comboTreePlugin.js"/>
|
||||
<script src="Mageplaza_blog::js/select/icontain.js"/>
|
||||
</head>
|
||||
<body>
|
||||
<referenceContainer name="content">
|
||||
<block class="Mageplaza\Blog\Block\Post\ManagePost" name="mpblog.author.post" as="mpblog_post" template="Mageplaza_Blog::post/manage_post.phtml"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="mpblog_author"/>
|
||||
<body>
|
||||
<referenceContainer name="content">
|
||||
<block class="Mageplaza\Blog\Block\Post\AuthorPost" name="mpblog.author.post" as="mpblog_post" template="Mageplaza_Blog::post/author_post.phtml" cacheable="false">
|
||||
<block class="Mageplaza\Blog\Block\Post\ManagePost" name="mpblog.manage.post" as="mpblog_manage_post" template="Mageplaza_Blog::post/manage_post.phtml">
|
||||
<block name="field_additional"/>
|
||||
</block>
|
||||
</block>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="mpblog_design"/>
|
||||
<body>
|
||||
<referenceContainer name="content">
|
||||
<block class="Mageplaza\Blog\Block\Post\Listpost" name="mpblog.post.list" as="mpblog_post" template="Mageplaza_Blog::post/list.phtml"/>
|
||||
<block class="Magento\Framework\View\Element\Template" name="mpblog.copy.right" after="-" template="Mageplaza_Blog::html/copyright.phtml"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="mpblog_design"/>
|
||||
<body>
|
||||
<referenceBlock name="head.additional">
|
||||
<block class="Mageplaza\Blog\Block\Post\View" name="mpblog.post.head" template="Mageplaza_Blog::post/head.phtml"/>
|
||||
</referenceBlock>
|
||||
<referenceContainer name="content">
|
||||
<block class="Mageplaza\Blog\Block\Post\View" name="mpblog.post.view" template="Mageplaza_Blog::post/view.phtml" cacheable="false">
|
||||
<block class="Mageplaza\Blog\Block\Post\RelatedProduct" name="related.category.products" as="related_products" template="Mageplaza_Blog::product/list.phtml"/>
|
||||
</block>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="mpblog_design"/>
|
||||
<body>
|
||||
<referenceBlock name="head.additional">
|
||||
<block class="Mageplaza\Blog\Block\Post\View" name="mpblog.post.head" template="Mageplaza_Blog::post/head.phtml"/>
|
||||
</referenceBlock>
|
||||
<referenceContainer name="content">
|
||||
<block class="Mageplaza\Blog\Block\Post\View" name="mpblog.post.view" template="Mageplaza_Blog::post/view.phtml" cacheable="false">
|
||||
<block class="Mageplaza\Blog\Block\Post\View" name="mp_blog_post_info" template="Mageplaza_Blog::post/info/info.phtml">
|
||||
<block class="Mageplaza\Blog\Block\Post\View" name="mp_blog_post_info_date" template="Mageplaza_Blog::post/info/date.phtml"/>
|
||||
<block class="Mageplaza\Blog\Block\Post\View" name="mp_blog_post_info_traffic" template="Mageplaza_Blog::post/info/traffic.phtml"/>
|
||||
<block class="Mageplaza\Blog\Block\Post\View" name="mp_blog_post_info_category" template="Mageplaza_Blog::post/info/category.phtml"/>
|
||||
<block class="Mageplaza\Blog\Block\Post\View" name="mp_blog_post_info_tag" template="Mageplaza_Blog::post/info/tag.phtml"/>
|
||||
<block class="Mageplaza\Blog\Block\Post\View" name="mp_blog_post_info_author" template="Mageplaza_Blog::post/info/author.phtml"/>
|
||||
</block>
|
||||
<block class="Mageplaza\Blog\Block\Post\RelatedProduct" name="related.category.products" as="related_products" template="Mageplaza_Blog::product/list.phtml"/>
|
||||
</block>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceContainer name="sidebar.main">
|
||||
<block class="Magento\Framework\View\Element\Template" name="sidebar.main.reward_nav"
|
||||
template="Magento_Theme::html/collapsible.phtml" before="-">
|
||||
<arguments>
|
||||
<argument name="block_css" xsi:type="string">block-collapsible-nav</argument>
|
||||
</arguments>
|
||||
<block class="Mageplaza\Blog\Block\Navigation" name="blog_signup_navigation" before="-">
|
||||
<arguments>
|
||||
<argument name="css_class" xsi:type="string">nav items</argument>
|
||||
</arguments>
|
||||
<block class="Magento\Framework\View\Element\Html\Link\Current" name="blog-navigation-dashboard">
|
||||
<arguments>
|
||||
<argument name="label" xsi:type="string" translate="true">Signup</argument>
|
||||
<argument name="path" xsi:type="string">mpblog/author/signup</argument>
|
||||
<argument name="sortOrder" xsi:type="number">10</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
<block class="Magento\Framework\View\Element\Html\Link\Current" name="blog-navigation-back">
|
||||
<arguments>
|
||||
<argument name="label" xsi:type="string" translate="true">Back</argument>
|
||||
<argument name="path" xsi:type="string">customer/account/</argument>
|
||||
<argument name="sortOrder" xsi:type="number">100</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</block>
|
||||
</block>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="mpblog_design"/>
|
||||
<body>
|
||||
<referenceContainer name="content">
|
||||
<block class="Mageplaza\Blog\Block\Tag\Listpost" name="mp.blog.tag.post.list" template="Mageplaza_Blog::post/list.phtml"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="mpblog_design"/>
|
||||
<body>
|
||||
<referenceContainer name="content">
|
||||
<block class="Mageplaza\Blog\Block\Topic\Listpost" name="mp.blog.topic.post.list" template="Mageplaza_Blog::post/list.phtml"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
var config = {
|
||||
paths: {
|
||||
comment: 'Mageplaza_Blog/js/comment',
|
||||
categoryTree: 'Mageplaza_Blog/js/categorytree',
|
||||
owlCarousel: 'Mageplaza_Core/js/owl.carousel.min'
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,251 @@
|
||||
<?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
|
||||
*/
|
||||
|
||||
// @codingStandardsIgnoreFile
|
||||
|
||||
/** @var \Magento\Customer\Block\Form\Register $block */
|
||||
/** @var \Magento\Framework\Escaper $escaper */
|
||||
?>
|
||||
<?= $block->getChildHtml('form_fields_before') ?>
|
||||
<?php /* Extensions placeholder */ ?>
|
||||
<?= $block->getChildHtml('customer.form.register.extra') ?>
|
||||
<form class="form create account form-create-account" action="<?= $escaper->escapeUrl($block->getPostActionUrl()) ?>" method="post" id="form-validate" enctype="multipart/form-data" autocomplete="off">
|
||||
<?= /* @noEscape */ $block->getBlockHtml('formkey'); ?>
|
||||
<fieldset class="fieldset create info">
|
||||
<legend class="legend"><span><?= $escaper->escapeHtml(__('Personal Information')) ?></span></legend><br>
|
||||
<input type="hidden" name="success_url" value="<?= $escaper->escapeUrl($block->getSuccessUrl()) ?>">
|
||||
<input type="hidden" name="error_url" value="<?= $escaper->escapeUrl($block->getErrorUrl()) ?>">
|
||||
<?= $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Name')->setObject($block->getFormData())->setForceUseCustomerAttributes(true)->toHtml() ?>
|
||||
<?php if ($block->isNewsletterEnabled()): ?>
|
||||
<div class="field choice newsletter">
|
||||
<input type="checkbox" name="is_subscribed" title="<?= $escaper->escapeHtmlAttr(__('Sign Up for Newsletter')) ?>" value="1" id="is_subscribed"<?php if ($block->getFormData()->getIsSubscribed()): ?> checked="checked"<?php endif; ?> class="checkbox">
|
||||
<label for="is_subscribed" class="label"><span><?= $escaper->escapeHtml(__('Sign Up for Newsletter')) ?></span></label>
|
||||
</div>
|
||||
<?php /* Extensions placeholder */ ?>
|
||||
<?= $block->getChildHtml('customer.form.register.newsletter') ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?= $block->getChildHtml('mpblog.author.create') ?>
|
||||
|
||||
<?php $_dob = $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Dob') ?>
|
||||
<?php if ($_dob->isEnabled()): ?>
|
||||
<?= $_dob->setDate($block->getFormData()->getDob())->toHtml() ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php $_taxvat = $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Taxvat') ?>
|
||||
<?php if ($_taxvat->isEnabled()): ?>
|
||||
<?= $_taxvat->setTaxvat($block->getFormData()->getTaxvat())->toHtml() ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php $_gender = $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Gender') ?>
|
||||
<?php if ($_gender->isEnabled()): ?>
|
||||
<?= $_gender->setGender($block->getFormData()->getGender())->toHtml() ?>
|
||||
<?php endif ?>
|
||||
</fieldset>
|
||||
<?php if ($block->getShowAddressFields()): ?>
|
||||
<fieldset class="fieldset address">
|
||||
<legend class="legend"><span><?= $escaper->escapeHtml(__('Address Information')) ?></span></legend><br>
|
||||
<input type="hidden" name="create_address" value="1" />
|
||||
|
||||
<?php $_company = $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Company') ?>
|
||||
<?php if ($_company->isEnabled()): ?>
|
||||
<?= $_company->setCompany($block->getFormData()->getCompany())->toHtml() ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php $_telephone = $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Telephone') ?>
|
||||
<?php if ($_telephone->isEnabled()): ?>
|
||||
<?= $_telephone->setTelephone($block->getFormData()->getTelephone())->toHtml() ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php $_fax = $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Fax') ?>
|
||||
<?php if ($_fax->isEnabled()): ?>
|
||||
<?= $_fax->setFax($block->getFormData()->getFax())->toHtml() ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php $_streetValidationClass = $this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('street'); ?>
|
||||
|
||||
<div class="field street required">
|
||||
<label for="street_1" class="label"><span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('street') ?></span></label>
|
||||
<div class="control">
|
||||
<input type="text" name="street[]" value="<?= $escaper->escapeHtmlAttr($block->getFormData()->getStreet(0)) ?>" title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('street') ?>" id="street_1" class="input-text <?= $escaper->escapeHtmlAttr($_streetValidationClass) ?>">
|
||||
<div class="nested">
|
||||
<?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
||||
<?php for ($_i = 2, $_n = $this->helper('Magento\Customer\Helper\Address')->getStreetLines(); $_i <= $_n; $_i++): ?>
|
||||
<div class="field additional">
|
||||
<label class="label" for="street_<?= /* @noEscape */ $_i ?>">
|
||||
<span><?= $escaper->escapeHtml(__('Address')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input type="text" name="street[]" value="<?= $escaper->escapeHtml($block->getFormData()->getStreetLine($_i - 1)) ?>" title="<?= $escaper->escapeHtmlAttr(__('Street Address %1', $_i)) ?>" id="street_<?= /* @noEscape */ $_i ?>" class="input-text <?= $escaper->escapeHtmlAttr($_streetValidationClass) ?>">
|
||||
</div>
|
||||
</div>
|
||||
<?php endfor; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field required">
|
||||
<label for="city" class="label"><span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('city') ?></span></label>
|
||||
<div class="control">
|
||||
<input type="text" name="city" value="<?= $escaper->escapeHtmlAttr($block->getFormData()->getCity()) ?>" title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('city') ?>" class="input-text <?= $escaper->escapeHtmlAttr($this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('city')) ?>" id="city">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field region required">
|
||||
<label for="region_id" class="label"><span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?></span></label>
|
||||
<div class="control">
|
||||
<select id="region_id" name="region_id" title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>" class="validate-select region_id" style="display:none;">
|
||||
<option value=""><?= $escaper->escapeHtml(__('Please select a region, state or province.')) ?></option>
|
||||
</select>
|
||||
<input type="text" id="region" name="region" value="<?= $escaper->escapeHtml($block->getRegion()) ?>" title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>" class="input-text <?= $escaper->escapeHtmlAttr($this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('region')) ?>" style="display:none;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field zip required">
|
||||
<label for="zip" class="label"><span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('postcode') ?></span></label>
|
||||
<div class="control">
|
||||
<input type="text" name="postcode" value="<?= $escaper->escapeHtmlAttr($block->getFormData()->getPostcode()) ?>" title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('postcode') ?>" id="zip" class="input-text validate-zip-international <?= $escaper->escapeHtmlAttr($this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('postcode')) ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field country required">
|
||||
<label for="country" class="label"><span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('country_id') ?></span></label>
|
||||
<div class="control">
|
||||
<?= $block->getCountryHtmlSelect() ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php $addressAttributes = $block->getChildBlock('customer_form_address_user_attributes');?>
|
||||
<?php if ($addressAttributes): ?>
|
||||
<?php $addressAttributes->setEntityType('customer_address'); ?>
|
||||
<?php $addressAttributes->setFieldIdFormat('address:%1$s')->setFieldNameFormat('address[%1$s]');?>
|
||||
<?php $block->restoreSessionData($addressAttributes->getMetadataForm(), 'address');?>
|
||||
<?= $addressAttributes->setShowContainer(false)->toHtml() ?>
|
||||
<?php endif;?>
|
||||
<input type="hidden" name="default_billing" value="1">
|
||||
<input type="hidden" name="default_shipping" value="1">
|
||||
</fieldset>
|
||||
|
||||
<?php endif; ?>
|
||||
<fieldset class="fieldset create account" data-hasrequired="<?= $escaper->escapeHtmlAttr(__('* Required Fields')) ?>">
|
||||
<legend class="legend"><span><?= $escaper->escapeHtml(__('Sign-in Information')) ?></span></legend><br>
|
||||
<div class="field required">
|
||||
<label for="email_address" class="label"><span><?= $escaper->escapeHtml(__('Email')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="email" name="email" autocomplete="email" id="email_address" value="<?= $escaper->escapeHtmlAttr($block->getFormData()->getEmail()) ?>" title="<?= $escaper->escapeHtmlAttr(__('Email')) ?>" class="input-text" data-mage-init='{"mage/trim-input":{}}' data-validate="{required:true, 'validate-email':true}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field password required">
|
||||
<label for="password" class="label"><span><?= $escaper->escapeHtml(__('Password')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="password" name="password" id="password"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Password')) ?>"
|
||||
class="input-text"
|
||||
data-password-min-length="<?= $escaper->escapeHtmlAttr($block->getMinimumPasswordLength()) ?>"
|
||||
data-password-min-character-sets="<?= $escaper->escapeHtmlAttr($block->getRequiredCharacterClassesNumber()) ?>"
|
||||
data-validate="{required:true, 'validate-customer-password':true}"
|
||||
autocomplete="off">
|
||||
<div id="password-strength-meter-container" data-role="password-strength-meter" aria-live="polite">
|
||||
<div id="password-strength-meter" class="password-strength-meter">
|
||||
<?= $escaper->escapeHtml(__('Password Strength')) ?>:
|
||||
<span id="password-strength-meter-label" data-role="password-strength-meter-label">
|
||||
<?= $escaper->escapeHtml(__('No Password')) ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="field confirmation required">
|
||||
<label for="password-confirmation" class="label"><span><?= $escaper->escapeHtml(__('Confirm Password')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="password" name="password_confirmation" title="<?= $escaper->escapeHtmlAttr(__('Confirm Password')) ?>" id="password-confirmation" class="input-text" data-validate="{required:true, equalTo:'#password'}" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
<?= $block->getChildHtml('form_additional_info') ?>
|
||||
</fieldset>
|
||||
<div class="actions-toolbar">
|
||||
<div class="primary">
|
||||
<button type="submit" class="action submit primary" title="<?= $escaper->escapeHtmlAttr(__('Create an Account')) ?>"><span><?= $escaper->escapeHtml(__('Create an Account')) ?></span></button>
|
||||
</div>
|
||||
<div class="secondary">
|
||||
<a class="action back" href="<?= $escaper->escapeUrl($block->getBackUrl()) ?>"><span><?= $escaper->escapeHtml(__('Back')) ?></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<script>
|
||||
require([
|
||||
'jquery',
|
||||
'mage/mage'
|
||||
], function($){
|
||||
|
||||
var dataForm = $('#form-validate');
|
||||
var ignore = <?= /* @noEscape */ $_dob->isEnabled() ? '\'input[id$="full"]\'' : 'null' ?>;
|
||||
|
||||
dataForm.mage('validation', {
|
||||
<?php if ($_dob->isEnabled()): ?>
|
||||
errorPlacement: function(error, element) {
|
||||
if (element.prop('id').search('full') !== -1) {
|
||||
var dobElement = $(element).parents('.customer-dob'),
|
||||
errorClass = error.prop('class');
|
||||
error.insertAfter(element.parent());
|
||||
dobElement.find('.validate-custom').addClass(errorClass)
|
||||
.after('<div class="' + errorClass + '"></div>');
|
||||
}
|
||||
else {
|
||||
error.insertAfter(element);
|
||||
}
|
||||
},
|
||||
ignore: ':hidden:not(' + ignore + ')'
|
||||
<?php else: ?>
|
||||
ignore: ignore ? ':hidden:not(' + ignore + ')' : ':hidden'
|
||||
<?php endif ?>
|
||||
}).find('input:text').attr('autocomplete', 'off');
|
||||
|
||||
});
|
||||
</script>
|
||||
<?php if ($block->getShowAddressFields()): ?>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"#country": {
|
||||
"regionUpdater": {
|
||||
"optionalRegionAllowed": <?= /* @noEscape */ $block->getConfig('general/region/display_all') ? 'true' : 'false' ?>,
|
||||
"regionListId": "#region_id",
|
||||
"regionInputId": "#region",
|
||||
"postcodeId": "#zip",
|
||||
"form": "#form-validate",
|
||||
"regionJson": <?= /* @noEscape */ $this->helper(\Magento\Directory\Helper\Data::class)->getRegionJson() ?>,
|
||||
"defaultRegion": "<?= (int) $block->getFormData()->getRegionId() ?>",
|
||||
"countriesWithOptionalZip": <?= /* @noEscape */ $this->helper(\Magento\Directory\Helper\Data::class)->getCountriesWithOptionalZip(true) ?>
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
".field.password": {
|
||||
"passwordStrengthIndicator": {
|
||||
"formSelector": "form.form-create-account"
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -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 Magento\Framework\Escaper;
|
||||
|
||||
/** @var Escaper $escaper */
|
||||
?>
|
||||
<?php if ($block->isBlogEnabled()) : ?>
|
||||
<div class="field choice mp-blog-sign-up-author">
|
||||
<input type="checkbox" name="is_mp_author" title="<?= $block->escapeHtmlAttr(__('Sign Up to be an Author')) ?>"
|
||||
value="1" id="is_mp_author" class="checkbox">
|
||||
<label for="is_mp_author" class="label">
|
||||
<span><?= $escaper->escapeHtml(__('Sign Up to be an Author')) ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,189 @@
|
||||
<?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\Author\SignupForm;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var SignupForm $block */
|
||||
/** @var Escaper $escaper */
|
||||
$author = $block->getAuthor();
|
||||
?>
|
||||
<form enctype="multipart/form-data" data-mage-init='{"validation": {}}'
|
||||
action="<?= $escaper->escapeHtml($block->getUrl('mpblog/author/register')) ?>" method="post" class="form"
|
||||
name="mp_blog_author_form">
|
||||
<fieldset class="fieldset">
|
||||
<legend class="legend">
|
||||
<span><?= /* @noEscape */ $author['name'] === '' ? __('Signup Author') : __('Author Information') ?></span>
|
||||
</legend>
|
||||
<br>
|
||||
<div class="field required mp-field">
|
||||
<label for="name" class="label"><span><?= $escaper->escapeHtml(__('Display Name')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="text" name="name" id="name" value="<?= $escaper->escapeHtml($author['name']) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Display Name')) ?>"
|
||||
class="input-text" data-validate="{required:true, 'validate-no-empty':true}">
|
||||
</div>
|
||||
</div>
|
||||
<?php if (isset($author['status'])) : ?>
|
||||
<div class="field mp-field">
|
||||
<label for="name" class="label"><span><?= $escaper->escapeHtml(__('Status')) ?></span></label>
|
||||
<div class="control">
|
||||
<span><?= $escaper->escapeHtml($author['status']) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<div class="field mp-field">
|
||||
<label for="short_desciption" class="label">
|
||||
<span><?= $escaper->escapeHtml(__('Short Description')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<textarea name="short_description" id="short_description" rows="5" cols="19">
|
||||
<?= /* @noEscape */ $author['short_description']
|
||||
? $block->getPageFilter($author['short_description']) : '' ?>
|
||||
</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field">
|
||||
<label for="image" class="label"><span><?= /* @noEscape */
|
||||
__('Avatar') ?></span></label>
|
||||
<div class="control">
|
||||
<?php if (!empty($author['image'])) : ?>
|
||||
<a class="mp-image-link"
|
||||
href="<?= $escaper->escapeUrl($block->getImageUrl($author['image'], 'auth')) ?>" >
|
||||
<img src="<?= $escaper->escapeUrl($block->getImageUrl($author['image'], 'auth')) ?>"
|
||||
id="post_image_image"
|
||||
title="<?= $escaper->escapeHtmlAttr($author['image']) ?>"
|
||||
alt="<?= $escaper->escapeHtmlAttr($author['image']) ?>" height="22" width="22"
|
||||
class="small-image-preview v-middle">
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<input type="file" name="image" id="image" value="<?= $escaper->escapeHtml($author['image']) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Avatar')) ?>"
|
||||
class="input-file"
|
||||
style="width: 90%;position: relative;top: -5px">
|
||||
<?php if (!empty($author['image'])) : ?>
|
||||
<span class="delete-image">
|
||||
<input style="width: 8%" type="checkbox" name="image[delete]" value="1" class="checkbox" id="post_image_delete">
|
||||
<label for="post_image_delete"> Delete Image</label>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field">
|
||||
<label for="url_key" class="label"><span><?= $escaper->escapeHtml(__('URL Key')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="text" name="url_key" id="url_key" value="<?= $escaper->escapeHtmlAttr($author['url_key']) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('URL Key')) ?>"
|
||||
class="input-text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field">
|
||||
<label for="full_url" class="label"><span><?= $escaper->escapeHtml(__('Full URL')) ?></span></label>
|
||||
<div class="control">
|
||||
<span class="mp_full_url">
|
||||
<?= $escaper->escapeHtml($block->getUrl("blog/author")
|
||||
. $author['url_key'] . $block->getUrlSuffix()) ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field">
|
||||
<label for="facebook_link" class="label"><span><?= $escaper->escapeHtml(__('Facebook Link')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="url" name="facebook_link" id="facebook_link"
|
||||
value="<?= $escaper->escapeHtml($author['facebook_link']) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Facebook Link')) ?>" class="input-text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field">
|
||||
<label for="twitter_link" class="label"><span><?= $escaper->escapeHtml(__('Twitter Link')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="url" name="twitter_link" id="twitter_link"
|
||||
value="<?= $escaper->escapeHtmlAttr($author['twitter_link']) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Twitter Link')) ?>" class="input-text">
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="actions-toolbar">
|
||||
<div class="primary">
|
||||
<button type="submit" class="action submit primary"
|
||||
title="<?= /* @noEscape */ $author['name'] === '' ? __('Submit') : __('Save') ?>">
|
||||
<span>
|
||||
<?= /* @noEscape */ $author['name'] === '' ? __('Submit') : __('Save') ?>
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<style>
|
||||
.mp-field {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.mp-field .control{
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
.mp-field .control .delete-image{
|
||||
width: 65%;
|
||||
}
|
||||
|
||||
.mp-field .label {
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
.sidebar.sidebar-main:before {
|
||||
content: unset !important;
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
fieldset.fieldset {
|
||||
display: contents;
|
||||
}
|
||||
fieldset.fieldset .control .mp_full_url {
|
||||
word-break: break-all;
|
||||
}
|
||||
.actions-toolbar {
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
require(
|
||||
[
|
||||
'jquery',
|
||||
"Mageplaza_Blog/js/get-editor"
|
||||
], function ($, editor) {
|
||||
$('#url_key').on('keyup', function () {
|
||||
var url = '<?= $escaper->escapeUrl($block->getUrl("blog/author")) ?>'
|
||||
+ $(this).val() + '<?= $escaper->escapeHtml($block->getUrlSuffix())?>';
|
||||
|
||||
if ($(this).val() === '') {
|
||||
url = '';
|
||||
}
|
||||
$('.mp_full_url').html(url);
|
||||
});
|
||||
editor.config(
|
||||
'short_description',
|
||||
'<?= /* @noEscape */ $block->getVersion() ?>',
|
||||
'<?= /* @noEscape */ $block->getMagentoVersion() ?>',
|
||||
'99%'
|
||||
);
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,75 @@
|
||||
<?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\Author\Widget;
|
||||
use Mageplaza\Blog\Helper\Image;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Widget $block */
|
||||
/** @var Escaper $escaper */
|
||||
$author = $block->getCurrentAuthor();
|
||||
if ($author) : ?>
|
||||
<div class="mp-sidebar mpcss">
|
||||
<div class="row">
|
||||
<div class="author-name col-xs-12">
|
||||
<h3><?= $escaper->escapeHtml($author->getName()) ?></h3>
|
||||
</div>
|
||||
<div class="author-image col-xs-12">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($author->getImage() ? $block->resizeImage($author->getImage(), '135x', Image::TEMPLATE_MEDIA_TYPE_AUTH) : $block->getDefaultAuthorImage()) ?>"
|
||||
alt="<?= $escaper->escapeHtml($author->getName()); ?>"/>
|
||||
</div>
|
||||
<div class="author-content col-xs-12">
|
||||
<?= $block->getPageFilter(($author->getShortDescription())) ?: $escaper->escapeHtml(__('No info')) ?>
|
||||
</div>
|
||||
<div class="author-social col-xs-12">
|
||||
<?php if ($author->getFacebookLink()) : ?>
|
||||
<a href="<?= $escaper->escapeUrl($author->getFacebookLink()) ?>" target="_blank">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/facebook.png')) ?>"
|
||||
align="middle"
|
||||
alt="<?= $escaper->escapeHtml($author->getName()); ?>"/>
|
||||
</a>
|
||||
<?php else : ?>
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/facebookoff.png')) ?>"
|
||||
align="middle"
|
||||
alt="<?= $escaper->escapeHtml($author->getName()); ?>"/>
|
||||
<?php endif; ?>
|
||||
<?php if ($author->getTwitterLink()) : ?>
|
||||
<a href="<?= $escaper->escapeUrl($author->getTwitterLink()) ?>" target="_blank">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/twitter.png')) ?>"
|
||||
align="middle"
|
||||
alt="<?= $escaper->escapeHtml($author->getName()); ?>"/>
|
||||
</a>
|
||||
<?php else : ?>
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/twitter-off.png')) ?>"
|
||||
align="middle"
|
||||
alt="<?= $escaper->escapeHtml($author->getName()); ?>"/>
|
||||
<?php endif; ?>
|
||||
<div class="mp-clear"></div>
|
||||
</div>
|
||||
<div class="author-border col-xs-12"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
<?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\Category\Menu;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Menu $block */
|
||||
/** @var Escaper $escaper */
|
||||
$categories = $block->getCollections();
|
||||
?>
|
||||
<li class="ui-menu-item level0 fullwidth <?= $categories->getSize() ? 'parent' : ''?>" role="presentation">
|
||||
<div class="open-children-toggle"></div>
|
||||
<a href="<?= $escaper->escapeUrl($block->getBlogHomeUrl()) ?>"
|
||||
class="level-top" aria-haspopup="true" id="ui-id-6" tabindex="-1" role="menuitem">
|
||||
<span><?= $escaper->escapeHtml($block->getBlogHomePageTitle()) ?></span>
|
||||
</a>
|
||||
<?php if ($categories->getSize()) : ?>
|
||||
<div class="level0 submenu">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<ul class="subchildmenu col-md-12 mega-columns columns4" role="menu" aria-expanded="false" aria-hidden="true">
|
||||
<?php foreach ($categories as $category) : ?>
|
||||
<?= $escaper->escapeHtml($block->getPortoMenuHtml($category)) ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</li>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?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\Category\Menu;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Menu $block */
|
||||
/** @var Escaper $escaper */
|
||||
$categories = $block->getCollections();
|
||||
?>
|
||||
<li class="level0 category-item level-top parent ui-menu-item" role="presentation">
|
||||
<a href="<?= $escaper->escapeUrl($block->getBlogHomeUrl()) ?>"
|
||||
class="level-top ui-corner-all" aria-haspopup="true" id="ui-id-6" tabindex="-1" role="menuitem">
|
||||
<?php if ($categories->getSize()) : ?>
|
||||
<span class="ui-menu-icon ui-icon ui-icon-carat-1-e"></span>
|
||||
<?php endif; ?>
|
||||
<span><?= $escaper->escapeHtml($block->getBlogHomePageTitle()) ?></span>
|
||||
</a>
|
||||
<?php if ($categories->getSize()) : ?>
|
||||
<ul class="level0 submenu ui-menu ui-widget ui-widget-content ui-corner-all" role="menu" aria-expanded="false" style="display: none; top: 47px; left: -0.15625px;" aria-hidden="true">
|
||||
<?php foreach ($categories as $category) : ?>
|
||||
<?= /* @noEscape */ $block->getMenuHtml($category)?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif;?>
|
||||
</li>
|
||||
@@ -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\Category\Widget;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Widget $block */
|
||||
/** @var Escaper $escaper */
|
||||
$tree = $block->getTree();
|
||||
if ($tree) : ?>
|
||||
<div class="mp-sidebar mpcss">
|
||||
<div class="row">
|
||||
<div class="block-title col-xs-12 sidebar-categories">
|
||||
<p class="block-mp-sidebar-heading" role="heading" aria-label="2"><?= $escaper->escapeHtml(__('Categories')) ?></p>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<?= $block->getCategoryTreeHtml($tree) ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
require(['Mageplaza_Blog/js/categorytree'], function () {
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,209 @@
|
||||
<?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">
|
||||
require(['jquery'], function ($) {
|
||||
$(window).on('load',function () {
|
||||
var body = $('body');
|
||||
|
||||
if (body.hasClass('page-layout-1column')) {
|
||||
$('.columns').find('.sidebar.sidebar-main').remove();
|
||||
}
|
||||
<?php if ($block->getCurrentTheme() === "Etheme/yourstore") : ?>
|
||||
body.addClass('mpblog-etheme-yourstore');
|
||||
<?php endif; ?>
|
||||
});
|
||||
});
|
||||
</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%;
|
||||
}
|
||||
main#maincontent {
|
||||
position: relative;
|
||||
padding-top: 41px;
|
||||
width: auto;
|
||||
}
|
||||
.sidebar-main .block-collapsible-nav .title {
|
||||
padding: 30px 40px 10px 15px;
|
||||
}
|
||||
}
|
||||
|
||||
@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: 10px 30px
|
||||
}
|
||||
|
||||
.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>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?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
|
||||
*/
|
||||
?>
|
||||
|
||||
<div class="mp-footer">
|
||||
<span class="mp-footer-links-light">
|
||||
<h3>Build with <a href="https://www.mageplaza.com/magento-2-better-blog/" target="_blank">Magento 2 Better Blog</a> from <a href="https://www.mageplaza.com/" target="_blank">Mageplaza.com</a></h3>
|
||||
</span>
|
||||
</div>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?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\Html\Footer;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Footer $block */
|
||||
/** @var Escaper $escaper */
|
||||
$helper = $block->getHelperData();
|
||||
?>
|
||||
<?php if ($helper->isEnabled()) : ?>
|
||||
<?php if ($helper->getBlogConfig('display/footer')) : ?>
|
||||
<li>
|
||||
<a <?= /** @noEscape */ $block->getLinkAttributes() ?>>
|
||||
<?= $escaper->escapeHtml($block->getLabel()); ?>
|
||||
<?= ($block->getCounter()) ? '<span>' . $escaper->escapeHtml($block->getCounter()) . '</span>' : ''; ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?= $block->getChildHtml('mp_blog_footer_add') ?>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,268 @@
|
||||
<?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\Author\SignupForm;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var SignupForm $block */
|
||||
/** @var Escaper $escaper */
|
||||
$author = $block->getAuthor();
|
||||
|
||||
?>
|
||||
<form enctype="multipart/form-data"
|
||||
action="<?= $escaper->escapeHtml($block->getUrl('mpblog/author/register')) ?>" method="post" class="form"
|
||||
name="mp_blog_author_form"
|
||||
id="blog_signup_author"
|
||||
>
|
||||
<?= /* @noEscape */
|
||||
$block->getBlockHtml('formkey'); ?>
|
||||
<fieldset class="fieldset">
|
||||
<div class="legend border-b pb-px">
|
||||
<legend>
|
||||
<span><?= /* @noEscape */
|
||||
$author['name'] === '' ? __('Signup Author') : __('Author Information') ?></span>
|
||||
</legend>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<div class="field required mp-field ">
|
||||
<label for="name" class="label"><span><?= $escaper->escapeHtml(__('Display Name ')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="text" name="name" id="name" value="<?= $escaper->escapeHtml($author['name']) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Display Name')) ?>"
|
||||
class="input-text" data-validate='{"required": true}'>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (isset($author['status'])) : ?>
|
||||
<div class="field mp-field" style="margin-top: 1.5rem">
|
||||
<label for="name" class="label"><span><?= $escaper->escapeHtml(__('Status')) ?></span></label>
|
||||
<div class="control">
|
||||
<span><?= $escaper->escapeHtml($author['status']) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="field mp-field mb-2">
|
||||
<label for="short_desciption" class="label">
|
||||
<span><?= $escaper->escapeHtml(__('Short Description')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<textarea name="short_description" id="short_description" rows="5" cols="19">
|
||||
<?= /* @noEscape */
|
||||
$author['short_description']
|
||||
? $block->getPageFilter($author['short_description']) : '' ?>
|
||||
</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field" style="margin-top: 1.5rem">
|
||||
<label for="image" class="label"><span><?= /* @noEscape */
|
||||
__('Avatar') ?></span></label>
|
||||
<div class="control" style="display: flex">
|
||||
<?php if (!empty($author['image'])) : ?>
|
||||
<a class="mp-image-link" style="margin-right: 15px;"
|
||||
href="<?= $escaper->escapeUrl($block->getImageUrl($author['image'], 'auth')) ?>">
|
||||
<img src="<?= $escaper->escapeUrl($block->getImageUrl($author['image'], 'auth')) ?>"
|
||||
id="post_image_image"
|
||||
title="<?= $escaper->escapeHtmlAttr($author['image']) ?>"
|
||||
alt="<?= $escaper->escapeHtmlAttr($author['image']) ?>" height="70" width="70"
|
||||
class="small-image-preview v-middle">
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<input type="file" name="image" id="image" value="<?= $escaper->escapeHtml($author['image']) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Avatar')) ?>"
|
||||
class="input-file"
|
||||
style="width: 90%;position: relative;top: -5px">
|
||||
<?php if (!empty($author['image'])) : ?>
|
||||
<span class="delete-image" style="display: inline-flex;">
|
||||
<input type="checkbox" name="image[delete]" value="1" class="checkbox"
|
||||
id="post_image_delete">
|
||||
<label for="post_image_delete"> Delete Image</label>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field" style="margin-top: 1.5rem">
|
||||
<label for="url_key" class="label"><span><?= $escaper->escapeHtml(__('URL Key')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="text" name="url_key" id="url_key" value="<?= $escaper->escapeHtmlAttr($author['url_key']) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('URL Key')) ?>"
|
||||
class="input-text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field" style="margin-top: 1.5rem">
|
||||
<label for="full_url" class="label"><span><?= $escaper->escapeHtml(__('Full URL')) ?></span></label>
|
||||
<div class="control">
|
||||
<span class="mp_full_url">
|
||||
<?= $escaper->escapeHtml($block->getUrl("blog/author")
|
||||
. $author['url_key'] . $block->getUrlSuffix()) ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field" style="margin-top: 1.5rem">
|
||||
<label for="facebook_link" class="label"><span><?= $escaper->escapeHtml(__('Facebook Link')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="url" name="facebook_link" id="facebook_link"
|
||||
value="<?= $escaper->escapeHtml($author['facebook_link']) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Facebook Link')) ?>" class="input-text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field" style="margin-top: 1.5rem">
|
||||
<label for="twitter_link" class="label"><span><?= $escaper->escapeHtml(__('Twitter Link')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="url" name="twitter_link" id="twitter_link"
|
||||
value="<?= $escaper->escapeHtmlAttr($author['twitter_link']) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Twitter Link')) ?>" class="input-text">
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="actions-toolbar">
|
||||
<div class="primary">
|
||||
<button type="submit" class="action submit primary"
|
||||
title="<?= /* @noEscape */
|
||||
$author['name'] === '' ? __('Submit') : __('Save') ?>">
|
||||
<span>
|
||||
<?= /* @noEscape */
|
||||
$author['name'] === '' ? __('Submit') : __('Save') ?>
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<style>
|
||||
.mp-field {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.mp-field .control {
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
.mp-field .control .delete-image {
|
||||
width: 65%;
|
||||
}
|
||||
|
||||
.mp-field .label {
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
.sidebar.sidebar-main:before {
|
||||
content: unset !important;
|
||||
}
|
||||
#maincontent h1 {
|
||||
font-weight: 300;
|
||||
line-height: 1.1;
|
||||
font-size: 2.6rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
#maincontent h2 {
|
||||
font-weight: 300;
|
||||
line-height: 1.1;
|
||||
font-size: 1.8rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
#maincontent h3 {
|
||||
font-weight: 600;
|
||||
line-height: 1.1;
|
||||
font-size: 1.8rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
#maincontent h4 {
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
font-size: 1.4rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
#maincontent h5 {
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
font-size: 1.2rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
#maincontent p {
|
||||
margin-top: 0rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
.ck-editor__editable {min-height: 300px;}
|
||||
</style>
|
||||
|
||||
|
||||
<script>
|
||||
CKEDITOR.ClassicEditor.create(document.getElementById("short_description"), {
|
||||
toolbar: {
|
||||
items: [
|
||||
'undo', 'redo', '|',
|
||||
'heading', '|',
|
||||
'bold', 'italic', 'strikethrough', 'underline', 'code', 'subscript', 'superscript', 'removeFormat', '|',
|
||||
'bulletedList', 'numberedList', 'todoList', '|',
|
||||
'alignment:left', 'alignment:right', 'alignment:center', 'alignment:justify', '|',
|
||||
'blockQuote', '|',
|
||||
'outdent', 'indent',
|
||||
],
|
||||
shouldNotGroupWhenFull: true
|
||||
},
|
||||
list: {
|
||||
properties: {
|
||||
styles: true,
|
||||
startIndex: true,
|
||||
reversed: true
|
||||
}
|
||||
},
|
||||
heading: {
|
||||
options: [
|
||||
{ model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },
|
||||
{ model: 'heading1', view: 'h1', title: 'Heading 1', class: 'ck-heading_heading1' },
|
||||
{ model: 'heading2', view: 'h2', title: 'Heading 2', class: 'ck-heading_heading2' },
|
||||
{ model: 'heading3', view: 'h3', title: 'Heading 3', class: 'ck-heading_heading3' },
|
||||
{ model: 'heading4', view: 'h4', title: 'Heading 4', class: 'ck-heading_heading4' },
|
||||
{ model: 'heading5', view: 'h5', title: 'Heading 5', class: 'ck-heading_heading5' },
|
||||
{ model: 'heading6', view: 'h6', title: 'Heading 6', class: 'ck-heading_heading6' }
|
||||
]
|
||||
},
|
||||
placeholder: '',
|
||||
removePlugins: [
|
||||
'AIAssistant',
|
||||
'CKBox',
|
||||
'CKFinder',
|
||||
'EasyImage',
|
||||
'RealTimeCollaborativeComments',
|
||||
'RealTimeCollaborativeTrackChanges',
|
||||
'RealTimeCollaborativeRevisionHistory',
|
||||
'PresenceList',
|
||||
'Comments',
|
||||
'TrackChanges',
|
||||
'TrackChangesData',
|
||||
'RevisionHistory',
|
||||
'Pagination',
|
||||
'WProofreader',
|
||||
'MathType',
|
||||
'SlashCommand',
|
||||
'Template',
|
||||
'DocumentOutline',
|
||||
'FormatPainter',
|
||||
'TableOfContents',
|
||||
'PasteFromOfficeEnhanced'
|
||||
]
|
||||
}).then( editor => {
|
||||
window.editor = editor;
|
||||
} ).catch( err => {
|
||||
console.error( err.stack );
|
||||
} );
|
||||
</script>
|
||||
@@ -0,0 +1,94 @@
|
||||
<?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\Category\Widget;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Widget $block */
|
||||
/** @var Escaper $escaper */
|
||||
$tree = $block->getTree();
|
||||
if ($tree) : ?>
|
||||
<div class="mp-sidebar mpcss">
|
||||
<div class="row">
|
||||
<div class="block-title col-xs-12 sidebar-categories">
|
||||
<p class="block-mp-sidebar-heading" role="heading" aria-label="2"><?= $escaper->escapeHtml(__('Categories')) ?></p>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<?= $block->getCategoryTreeHtml($tree) ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
var parentCategory = document.querySelector(".mp-blog-expand-tree-2");
|
||||
var childCategory = document.querySelector(".mp-blog-expand-tree-3");
|
||||
if(parentCategory) {
|
||||
parentCategory.addEventListener('click', function (e) {
|
||||
var level3 = this.parentElement.querySelector(".category-level3");
|
||||
if (this.classList.contains("mp-blog-expand-tree-2")) {
|
||||
if(level3) {
|
||||
level3.style.display = "block";
|
||||
}
|
||||
this.classList.remove("mp-blog-expand-tree-2", "fa", "fa-plus-square-o");
|
||||
this.classList.add("mp-blog-narrow-tree-2", "fa", "fa-minus-square-o");
|
||||
} else {
|
||||
var level4 = this.parentElement.querySelector(".category-level4");
|
||||
if(level4) {
|
||||
level4.style.display = "none";
|
||||
}
|
||||
if(level3) {
|
||||
level3.style.display = "none";
|
||||
}
|
||||
this.classList.remove("mp-blog-narrow-tree-2", "fa", "fa-minus-square-o");
|
||||
this.classList.add("mp-blog-expand-tree-2", "fa", "fa-plus-square-o");
|
||||
if(this.parentElement.querySelector(".mp-blog-narrow-tree-3")) {
|
||||
this.parentElement.querySelector(".mp-blog-narrow-tree-3")
|
||||
.classList.remove("mp-blog-narrow-tree-3", "fa", "fa-minus-square-o");
|
||||
this.parentElement.querySelector(".mp-blog-narrow-tree-3")
|
||||
.classList.add("mp-blog-expand-tree-3", "fa", "fa-plus-square-o");
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if(childCategory) {
|
||||
childCategory.addEventListener('click', function (e) {
|
||||
var level4 = this.parentElement.querySelector(".category-level4");
|
||||
if (this.classList.contains("mp-blog-expand-tree-3")) {
|
||||
if(level4) {
|
||||
level4.style.display = "block";
|
||||
}
|
||||
this.classList.remove("mp-blog-expand-tree-3", "fa", "fa-plus-square-o");
|
||||
this.classList.add("mp-blog-narrow-tree-3", "fa", "fa-minus-square-o");
|
||||
} else {
|
||||
if(level4) {
|
||||
level4.style.display = "none";
|
||||
}
|
||||
this.classList.remove("mp-blog-narrow-tree-3", "fa", "fa-minus-square-o");
|
||||
this.classList.add("mp-blog-expand-tree-3", "fa", "fa-plus-square-o");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,206 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?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\Html\Footer;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Footer $block */
|
||||
/** @var Escaper $escaper */
|
||||
$helper = $block->getHelperData();
|
||||
?>
|
||||
<?php if ($helper->isEnabled()) : ?>
|
||||
<?php if ($helper->getBlogConfig('display/footer')) : ?>
|
||||
<li class="mt-4">
|
||||
<a class="text-base leading-6" <?= /** @noEscape */
|
||||
$block->getLinkAttributes() ?>>
|
||||
<?= $escaper->escapeHtml($block->getLabel()); ?>
|
||||
<?= ($block->getCounter()) ? '<span>' . $escaper->escapeHtml($block->getCounter()) . '</span>' : ''; ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
/**
|
||||
* Hyvä Themes - https://hyva.io
|
||||
* Copyright © Hyvä Themes 2020-present. All rights reserved.
|
||||
* This product is licensed per Magento install
|
||||
* See https://hyva.io/license
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Hyva\Theme\Model\ViewModelRegistry;
|
||||
use Hyva\Theme\ViewModel\Customer;
|
||||
use Hyva\Theme\ViewModel\StoreConfig;
|
||||
use Magento\Framework\Escaper;
|
||||
use Magento\Framework\View\Element\Template;
|
||||
|
||||
/** @var Template $block */
|
||||
/** @var Escaper $escaper */
|
||||
/** @var ViewModelRegistry $viewModels */
|
||||
|
||||
/** @var Customer $customer */
|
||||
$customer = $viewModels->require(Customer::class);
|
||||
/** @var StoreConfig $storeConfig */
|
||||
$storeConfig = $viewModels->require(StoreConfig::class);
|
||||
?>
|
||||
<div class="md:w-1/2 w-full flex flex-wrap pr-4">
|
||||
<div class="w-full grid grid-cols-1 sm:grid-cols-2 gap-8 xl:col-span-2">
|
||||
<div>
|
||||
<h2 class="text-md leading-5 font-semibold tracking-wider uppercase">
|
||||
Company
|
||||
</h2>
|
||||
<ul class="mt-4">
|
||||
<li>
|
||||
<a href="#" class="text-base leading-6">
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
<li class="mt-4">
|
||||
<a href="<?= $escaper->escapeUrl($block->getUrl('customer/account')) ?>"
|
||||
class="text-base leading-6">
|
||||
<?= $escaper->escapeHtml(__('My Account')) ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php if (!$customer->customerLoggedIn()): ?>
|
||||
<li class="mt-4">
|
||||
<a href="<?= $escaper->escapeUrl($block->getUrl('sales/guest/form')) ?>"
|
||||
class="text-base leading-6">
|
||||
<?= $escaper->escapeHtml(__('Orders and Returns')) ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if ($storeConfig->getStoreConfig('catalog/seo/search_terms')): ?>
|
||||
<li class="mt-4">
|
||||
<a href="<?= $escaper->escapeUrl($block->getUrl('search/term/popular')) ?>"
|
||||
class="text-base leading-6">
|
||||
<?= $escaper->escapeHtml(__('Search Terms')) ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li class="mt-4 mb-4">
|
||||
<a href="<?= $escaper->escapeUrl($block->getUrl('contact')) ?>"
|
||||
class="text-base leading-6">
|
||||
<?= $escaper->escapeHtml(__('Contact')) ?>
|
||||
</a>
|
||||
</li>
|
||||
<?= $block->getChildHtml() ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h2 class="text-md leading-5 font-semibold tracking-wider uppercase">
|
||||
Legal
|
||||
</h2>
|
||||
<ul class="mt-4">
|
||||
<li class="mt-4">
|
||||
<a href="#" class="text-base leading-6">
|
||||
Privacy
|
||||
</a>
|
||||
</li>
|
||||
<li class="mt-4">
|
||||
<a href="#" class="text-base leading-6">
|
||||
Terms and Conditions
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+335
@@ -0,0 +1,335 @@
|
||||
<?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\AuthorPost;
|
||||
use Mageplaza\Blog\Model\Post;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var AuthorPost $block */
|
||||
/** @var Escaper $escaper */
|
||||
$postCollection = $block->getPostCollection();
|
||||
$modalViewModel = $viewModels->require(\Hyva\Theme\ViewModel\Modal::class);
|
||||
$postDatas = $block->getPostDatas($postCollection);
|
||||
$jsonData = json_encode($postDatas);
|
||||
|
||||
?>
|
||||
<?php if (!$block->getAuthorStatus()) : ?>
|
||||
<div>
|
||||
<h3><?= $escaper->escapeHtml(__('Your account must be licensed in order to perform the Post creation and management function')) ?></h3>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="mp-blog-new-post" x-data="{
|
||||
...hyva.modal(),
|
||||
init() {
|
||||
window.openDialogNewPost = function (event) {
|
||||
this.show('add-new-post-name', event);
|
||||
}.bind(this);
|
||||
window.hideMyDialogNewPost = function (event) {
|
||||
this.hide('add-new-post-name', event);
|
||||
|
||||
}.bind(this);
|
||||
|
||||
|
||||
}
|
||||
}" x-init="init()">
|
||||
<button onclick="handleAddPost()" type="button" aria-haspopup="dialog"
|
||||
class="action primary btn btn-primary" title="<?= $escaper->escapeHtmlAttr(__('Add New Post')) ?>">
|
||||
<?= $escaper->escapeHtml(__('Add New Post')) ?>
|
||||
</button>
|
||||
<?= /** @noEscape */ $modalViewModel->createModal()
|
||||
->addDialogClass('overflow-y-hidden overflow-x-hidden fixed z-50 justify-center items-center w-3/4 md:inset-0 h-4/5')
|
||||
->removeDialogClass('p-10')
|
||||
->withDialogRefName("add-new-post-name")
|
||||
->withContent(<<<HTML
|
||||
<div id="mp-blog-new-post-popup">
|
||||
<header class="modal-header mb-3">
|
||||
<h3 id="popup_author_post" class="modal-title text-3xl border-b p-4" data-role="title">Add New Post</h3>
|
||||
</header>
|
||||
{$block->getChildHtml('mpblog_manage_post')}
|
||||
</div>
|
||||
HTML
|
||||
) ?>
|
||||
|
||||
</div>
|
||||
<div class="post-list-content" id="mpblog-list-container">
|
||||
<?php if ($postCollection && count($postCollection) > 0) : ?>
|
||||
<div class="post-list-body">
|
||||
<?php $i = 1 ?>
|
||||
<?php /** @var Post $post */
|
||||
foreach ($postCollection as $post) : ?>
|
||||
<div data-post-id="<?= $escaper->escapeHtml($post->getId()); ?>"
|
||||
class="post-list-item col-mp post-item-list mp-12">
|
||||
<div class="post-item-wraper">
|
||||
<?= /* @noEscape */
|
||||
$block->getStatusHtmlById($post->getEnabled()) ?>
|
||||
<?php if ($post->getImage()) : ?>
|
||||
<div class="post-image">
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->resizeImage($post->getImage(),
|
||||
'400x')) ?>"
|
||||
alt="<?= $escaper->escapeHtmlAttr($post->getName()) ?>"/>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="post-info-wraper">
|
||||
<h2 class="mp-post-title">
|
||||
<a class="post-link-title" title="<?= $escaper->escapeHtml($post->getName()); ?>"
|
||||
href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<?= $escaper->escapeHtml($post->getName()) ?>
|
||||
</a>
|
||||
</h2>
|
||||
<div class="mp-post-info">
|
||||
<?= /* @noEscape */
|
||||
$block->getPostInfo($post) ?>
|
||||
</div>
|
||||
<div class="post-short-description">
|
||||
<p>
|
||||
<?= /* @noEscape */
|
||||
$block->maxShortDescription($post->getShortDescription()) ?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="mp-clearfix"></div>
|
||||
<div class="mp-post-meta-info mp-alignright">
|
||||
<div class="actions">
|
||||
<a class="mp-read-more" href="<?= $escaper->escapeUrl($post->getUrl()) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Read More')) ?>">
|
||||
<?= $escaper->escapeHtml(__('Read More')) ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post-info-action" data-postId="<?= $escaper->escapeHtml($post->getId()); ?>">
|
||||
<div class="mpblog-post-duplicate"
|
||||
onclick='handleDuplicate(this,<?= /** @noEscape */ $post->getId() ?>, "<?= /** @noEscape */ $post->getImage() ?>")'
|
||||
>
|
||||
<img
|
||||
src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/duplicate.svg')) ?>"
|
||||
align="middle"
|
||||
alt="<?= $escaper->escapeHtmlAttr(__('Duplicate')); ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Duplicate')) ?>"
|
||||
/>
|
||||
</div>
|
||||
<div class="mpblog-post-edit"
|
||||
onclick='handleEdit(this,<?= /** @noEscape */ $post->getId() ?>, "<?= /** @noEscape */ $post->getImage() ?>")'
|
||||
>
|
||||
<img src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/writing.svg')) ?>"
|
||||
align="middle"
|
||||
alt="<?= $escaper->escapeHtmlAttr(__('Edit')); ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Edit')) ?>"
|
||||
/>
|
||||
</div>
|
||||
<div class="mpblog-post-delete" onclick="handleDelete(this)">
|
||||
<img src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/delete.svg')) ?>"
|
||||
align="middle"
|
||||
alt="<?= $escaper->escapeHtmlAttr(__('Delete')) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Delete')) ?>"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php $i++; ?>
|
||||
<?php if ($i % 2 == 0) : ?>
|
||||
<div class="mp-clear"></div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<div class="mp-clear"></div>
|
||||
</div>
|
||||
<?= $block->getPagerHtml() ?>
|
||||
<?php else : ?>
|
||||
<?= $escaper->escapeHtml(__('There are no posts at this moment')) ?>
|
||||
<?php endif; ?>
|
||||
<?= /* @noEscape */
|
||||
$block->getChildHtml('additional') ?>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
let pubUrl = "<?= $escaper->escapeHtml($block->getBaseMediaUrl()) ?>";
|
||||
let title = document.querySelector('#popup_author_post');
|
||||
let name = document.querySelector('#name');
|
||||
let post_id = document.querySelector('#post_id');
|
||||
let short_description = document.querySelector('#short_description');
|
||||
let allow_comment = document.querySelector('#allow_comment');
|
||||
let publish_date = document.querySelector('#publish_date');
|
||||
|
||||
function handleDelete (element) {
|
||||
var postId = element.closest('.post-info-action').getAttribute('data-postId');
|
||||
fetch("<?= $escaper->escapeHtml($block->getUrl('mpblog/post/deletepost')) ?>", {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
"X-Requested-With": "XMLHttpRequest"
|
||||
},
|
||||
body: new URLSearchParams({
|
||||
post_id: postId
|
||||
})
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(result => {
|
||||
if (result.status === 1) {
|
||||
var postListItem = document.querySelector('.post-list-item[data-post-id="' + result.post_id + '"]');
|
||||
if (postListItem) {
|
||||
postListItem.remove();
|
||||
const reloadCustomerDataEvent = new CustomEvent("reload-customer-section-data");
|
||||
window.dispatchEvent(reloadCustomerDataEvent);
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch(error => console.error('Error:', error));
|
||||
}
|
||||
// open modal add new post
|
||||
function handleAddPost () {
|
||||
resetFormModal();
|
||||
title.innerText = 'Add New Post';
|
||||
openDialogNewPost();
|
||||
}
|
||||
// open modal edit new post
|
||||
function handleEdit (e, post_id, image) {
|
||||
resetFormModal();
|
||||
let listData = <?php echo /** @noEscape */ json_decode($jsonData) ?>;
|
||||
let dataSelect = listData[post_id];
|
||||
name.value = dataSelect?.name;
|
||||
post_id.value = dataSelect?.post_id;
|
||||
short_description.value = dataSelect?.short_description;
|
||||
editor.setData(dataSelect?.post_content ?? "");
|
||||
allow_comment.value = dataSelect?.allow_comment;
|
||||
publish_date.value = convertDateToDisplay(dataSelect?.publish_date);
|
||||
treeselectCategories.updateValue(dataSelect?.category_ids);
|
||||
|
||||
treeselectTags.updateValue(dataSelect?.tag_ids);
|
||||
treeselectTopics.updateValue(dataSelect?.topic_ids);
|
||||
addPreviewImg(image);
|
||||
|
||||
title.innerText = 'Edit Post';
|
||||
openDialogNewPost()
|
||||
}
|
||||
// open modal duplicate new post
|
||||
function handleDuplicate (e, post_id, image) {
|
||||
resetFormModal();
|
||||
let listData = <?php echo /** @noEscape */ json_decode($jsonData) ?>;
|
||||
let dataSelect = listData[post_id];
|
||||
name.value = dataSelect?.name;
|
||||
short_description.value = dataSelect?.short_description;
|
||||
editor.setData(dataSelect?.post_content ?? "");
|
||||
allow_comment.value = dataSelect?.allow_comment;
|
||||
publish_date.value = convertDateToDisplay(dataSelect?.publish_date);
|
||||
treeselectCategories.updateValue(dataSelect?.category_ids);
|
||||
treeselectTags.updateValue(dataSelect?.tag_ids);
|
||||
treeselectTopics.updateValue(dataSelect?.topic_ids);
|
||||
addPreviewImg(image);
|
||||
title.innerText = 'Duplicate Post';
|
||||
openDialogNewPost()
|
||||
}
|
||||
// reset data when hide modal
|
||||
function resetFormModal () {
|
||||
name.value = '';
|
||||
post_id.value = '';
|
||||
short_description.value = '';
|
||||
editor.setData("");
|
||||
allow_comment.value = 0;
|
||||
publish_date.value = '';
|
||||
treeselectCategories.updateValue([]);
|
||||
treeselectTags.updateValue([]);
|
||||
treeselectTopics.updateValue([]);
|
||||
var element = document.querySelector('.mp-image-link');
|
||||
if (element) {
|
||||
element.parentNode.removeChild(element);
|
||||
}
|
||||
let messagesError = document.querySelectorAll('#mp-blog-new-post-popup form .messages');
|
||||
messagesError.forEach(mess => {
|
||||
mess.remove()
|
||||
})
|
||||
}
|
||||
// add preview image when open modal edit and duplicate modal
|
||||
function addPreviewImg (value) {
|
||||
if (value) {
|
||||
const imageEl = document.getElementById("image")?.parentElement;
|
||||
var linkElement = document.createElement('a');
|
||||
linkElement.className = 'mp-image-link';
|
||||
linkElement.style = "margin-right: 15px";
|
||||
linkElement.href = pubUrl + 'mageplaza/blog/post/' + value;
|
||||
linkElement.onclick = function () {
|
||||
imagePreview('post_image_image');
|
||||
return false;
|
||||
};
|
||||
var imageElement = document.createElement('img');
|
||||
imageElement.src = pubUrl + 'mageplaza/blog/post/' + value;
|
||||
imageElement.id = 'post_image_image';
|
||||
imageElement.title = value;
|
||||
imageElement.alt = value;
|
||||
imageElement.height = 40;
|
||||
imageElement.width = 40;
|
||||
imageElement.className = 'small-image-preview v-middle';
|
||||
linkElement.appendChild(imageElement);
|
||||
if (imageEl) {
|
||||
imageEl.insertBefore(linkElement, imageEl.children[0]);
|
||||
}
|
||||
var deleteSpan = document.createElement('span');
|
||||
deleteSpan.className = 'delete-image';
|
||||
deleteSpan.style.display = 'inline-flex';
|
||||
var deleteInput = document.createElement('input');
|
||||
deleteInput.type = 'checkbox';
|
||||
deleteInput.name = 'image[delete]';
|
||||
deleteInput.value = '1';
|
||||
deleteInput.className = 'checkbox';
|
||||
deleteInput.id = 'post_image_delete';
|
||||
|
||||
var deleteLabel = document.createElement('label');
|
||||
deleteLabel.htmlFor = 'post_image_delete';
|
||||
deleteLabel.textContent = 'Delete Image';
|
||||
|
||||
deleteSpan.appendChild(deleteInput);
|
||||
deleteSpan.appendChild(deleteLabel);
|
||||
if (!imageEl.querySelector('.delete-image')) {
|
||||
imageEl.appendChild(deleteSpan);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// convert date in modal
|
||||
function convertDateToSave (publicDateValue) {
|
||||
var inputDate = new Date(publicDateValue);
|
||||
var formattedDate = ("0" + (inputDate.getMonth() + 1)).slice(-2) + '/' +
|
||||
("0" + inputDate.getDate()).slice(-2) + '/' +
|
||||
inputDate.getFullYear() + ' ' +
|
||||
("0" + inputDate.getHours()).slice(-2) + ':' +
|
||||
("0" + inputDate.getMinutes()).slice(-2) + ':' +
|
||||
("0" + inputDate.getSeconds()).slice(-2);
|
||||
return formattedDate
|
||||
}
|
||||
|
||||
function convertDateToDisplay (dateString) {
|
||||
var currentDate = new Date(dateString);
|
||||
var year = currentDate.getFullYear();
|
||||
var month = ('0' + (currentDate.getMonth() + 1)).slice(-2);
|
||||
var day = ('0' + currentDate.getDate()).slice(-2);
|
||||
var hours = ('0' + currentDate.getHours()).slice(-2);
|
||||
var minutes = ('0' + currentDate.getMinutes()).slice(-2);
|
||||
var formattedDateTime = year + '-' + month + '-' + day + 'T' + hours + ':' + minutes;
|
||||
return formattedDateTime;
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
+336
@@ -0,0 +1,336 @@
|
||||
<?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\ManagePost;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var ManagePost $block */
|
||||
/** @var Escaper $escaper */
|
||||
?>
|
||||
<button title="Close (Esc)" type="button" class="mfp-close" style="position: absolute;top: -5px;right: 10px;font-size: 25px;" onclick="hideMyDialogNewPost()">×</button>
|
||||
<form enctype="multipart/form-data" data-mage-init='{"validation": {}}'
|
||||
action="<?= $escaper->escapeHtml($block->getUrl('mpblog/post/manage')) ?>" method="post" class="form"
|
||||
name="mp_blog_post_form" id="mp_blog_post_form"
|
||||
style="overflow-y: auto; height: 700px"
|
||||
x-data="Object.assign(hyva.formValidation($el), initAddNewPost())"
|
||||
@submit.prevent="submitForm();"
|
||||
>
|
||||
<?= /* @noEscape */ $block->getBlockHtml('formkey'); ?>
|
||||
<fieldset class="fieldset">
|
||||
<div class="field required mp-field">
|
||||
<label for="name" class="label">
|
||||
<span>
|
||||
<b><?= $escaper->escapeHtml(__('Post Name')) ?></b>
|
||||
</span></label>
|
||||
<div class="control">
|
||||
<input type="text" name="name" id="name" title="<?= $escaper->escapeHtmlAttr(__('Post Name')) ?>"
|
||||
class="input-text" data-validate='{"required": true}'>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="post_id" id="post_id">
|
||||
<div class="field mp-field" style="margin-top: 1.5rem">
|
||||
<b for="short_description" class="label">
|
||||
<span><?= $escaper->escapeHtml(__('Short Description')) ?></span>
|
||||
</b>
|
||||
<div class="control">
|
||||
<textarea name="short_description" id="short_description" rows="5" cols="19" class="w-full"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field" style="margin-top: 1.5rem">
|
||||
<b for="post_content" class="label">
|
||||
<span><?= $escaper->escapeHtml(__('Post Content')) ?></span>
|
||||
</b>
|
||||
<div class="control">
|
||||
<textarea name="post_content" id="post_content" class="post_content_hyva" rows="5" cols="19">
|
||||
</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field" style="margin-top: 1.5rem">
|
||||
<label for="image" class="label"><b><?= $escaper->escapeHtml(__('Image')) ?></b></label>
|
||||
<div class="control" style="display: flex">
|
||||
<input type="file" name="image" id="image" title="<?= $escaper->escapeHtmlAttr(__('Image')) ?>"
|
||||
class="input-file">
|
||||
</div>
|
||||
</div>
|
||||
<div class="mp-custom">
|
||||
<div class="field mp-field" style="margin-top: 1.5rem">
|
||||
<label class="label"><span><?= $escaper->escapeHtml(__('Select Category')) ?></span></label>
|
||||
<div data-bind="scope: 'customCategory'">
|
||||
<div id="categories_ids"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field" style="margin-top: 1.5rem">
|
||||
<label class="label"><span><?= $escaper->escapeHtml(__('Select Topic')) ?></span></label>
|
||||
<div data-bind="scope: 'customTopic'">
|
||||
<div id="topics_ids"></div>
|
||||
<!-- ko template: getTemplate() --><!-- /ko -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field" style="margin-top: 1.5rem">
|
||||
<label class="label"><span><?= $escaper->escapeHtml(__('Select Tag')) ?></span></label>
|
||||
<div data-bind="scope: 'customTag'">
|
||||
<div id="tags_ids"></div>
|
||||
<!-- ko template: getTemplate() --><!-- /ko -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field" style="margin-top: 1.5rem">
|
||||
<label for="allow_comment" class="label"><b><?= $escaper->escapeHtml(__('Allow Comment')) ?></b></label>
|
||||
<div class="control">
|
||||
<select id="allow_comment" name="allow_comment" class="w-full">
|
||||
<option value="0"><span><?= $escaper->escapeHtml(__('No')) ?></option>
|
||||
<option value="1"><span><?= $escaper->escapeHtml(__('Yes')) ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field" style="margin-top: 1.5rem">
|
||||
<label for="publish_date" class="label"><b><?= $escaper->escapeHtml(__('Publish Date')) ?></b></label>
|
||||
<div class="control">
|
||||
<input name="publish_date" id="publish_date" type="datetime-local">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?= $block->getChildHtml('field_additional') ?>
|
||||
</fieldset>
|
||||
<div class="actions-toolbar">
|
||||
<div class="primary">
|
||||
<button type="submit" class="action submit primary mpblog-action-new"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Save')) ?>">
|
||||
<span><?= $escaper->escapeHtml(__('Save')) ?></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($block->checkTheme()) : ?>
|
||||
<style>
|
||||
.admin__action-multiselect-crumb .action-close:before {
|
||||
top: -6px;
|
||||
right: 8px;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-menu-inner-item._root .action-menu-item .admin__action-multiselect-label:before {
|
||||
content: '\f846';
|
||||
font-family: 'porto-icons';
|
||||
}
|
||||
|
||||
.admin__action-multiselect-dropdown:before {
|
||||
content: '\f803';
|
||||
font-family: 'porto-icons';
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .action-menu-item._expended .admin__action-multiselect-dropdown:before {
|
||||
right: 5px;
|
||||
position: absolute;
|
||||
content: '\f800';
|
||||
font-family: 'porto-icons';
|
||||
}
|
||||
|
||||
</style>
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
<style>
|
||||
.ck-editor__editable {min-height: 300px;}
|
||||
</style>
|
||||
<script>
|
||||
CKEDITOR.ClassicEditor.create(document.getElementById("post_content"), {
|
||||
toolbar: {
|
||||
items: [
|
||||
'undo', 'redo', '|',
|
||||
'heading', '|',
|
||||
'bold', 'italic', 'strikethrough', 'underline', 'code', 'subscript', 'superscript', 'removeFormat', '|',
|
||||
'bulletedList', 'numberedList', 'todoList', '|',
|
||||
'alignment:left', 'alignment:right', 'alignment:center', 'alignment:justify', '|',
|
||||
'blockQuote', '|',
|
||||
'outdent', 'indent'
|
||||
],
|
||||
shouldNotGroupWhenFull: true
|
||||
},
|
||||
list: {
|
||||
properties: {
|
||||
styles: true,
|
||||
startIndex: true,
|
||||
reversed: true
|
||||
}
|
||||
},
|
||||
heading: {
|
||||
options: [
|
||||
{model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph'},
|
||||
{model: 'heading1', view: 'h1', title: 'Heading 1', class: 'ck-heading_heading1'},
|
||||
{model: 'heading2', view: 'h2', title: 'Heading 2', class: 'ck-heading_heading2'},
|
||||
{model: 'heading3', view: 'h3', title: 'Heading 3', class: 'ck-heading_heading3'},
|
||||
{model: 'heading4', view: 'h4', title: 'Heading 4', class: 'ck-heading_heading4'},
|
||||
{model: 'heading5', view: 'h5', title: 'Heading 5', class: 'ck-heading_heading5'},
|
||||
{model: 'heading6', view: 'h6', title: 'Heading 6', class: 'ck-heading_heading6'}
|
||||
]
|
||||
},
|
||||
placeholder: '',
|
||||
removePlugins: [
|
||||
'AIAssistant',
|
||||
'CKBox',
|
||||
'CKFinder',
|
||||
'EasyImage',
|
||||
'RealTimeCollaborativeComments',
|
||||
'RealTimeCollaborativeTrackChanges',
|
||||
'RealTimeCollaborativeRevisionHistory',
|
||||
'PresenceList',
|
||||
'Comments',
|
||||
'TrackChanges',
|
||||
'TrackChangesData',
|
||||
'RevisionHistory',
|
||||
'Pagination',
|
||||
'WProofreader',
|
||||
'MathType',
|
||||
'SlashCommand',
|
||||
'Template',
|
||||
'DocumentOutline',
|
||||
'FormatPainter',
|
||||
'TableOfContents',
|
||||
'PasteFromOfficeEnhanced'
|
||||
]
|
||||
}).then(editor => {
|
||||
window.editor = editor;
|
||||
}).catch(err => {
|
||||
console.error(err.stack);
|
||||
});
|
||||
|
||||
const categories = <?php echo /** @noEscape */ ($block->getCategoriesTree()) ?>;
|
||||
const topics = <?php echo /** @noEscape */ ($block->getTopicTree()) ?>;
|
||||
const tags = <?php echo /** @noEscape */ ($block->getTagTree()) ?>;
|
||||
const optionsCategories = categories?.map(data => {
|
||||
return {
|
||||
name: data?.label,
|
||||
value: data?.value
|
||||
}
|
||||
});
|
||||
const optionsTopics = Object.values(topics)?.map(data => {
|
||||
return {
|
||||
name: data?.label,
|
||||
value: data?.value
|
||||
}
|
||||
});
|
||||
const optionsTags = Object.values(tags)?.map(data => {
|
||||
return {
|
||||
name: data?.label,
|
||||
value: data?.value
|
||||
}
|
||||
});
|
||||
const domElementCategories = document.querySelector('#categories_ids');
|
||||
const treeselectCategories = new Treeselect({
|
||||
parentHtmlContainer: domElementCategories,
|
||||
options: optionsCategories,
|
||||
value: []
|
||||
|
||||
});
|
||||
const domElementTopics = document.querySelector('#topics_ids');
|
||||
const treeselectTopics = new Treeselect({
|
||||
parentHtmlContainer: domElementTopics,
|
||||
options: optionsTopics,
|
||||
value: []
|
||||
|
||||
});
|
||||
const domElementTags = document.querySelector('#tags_ids');
|
||||
const treeselectTags = new Treeselect({
|
||||
parentHtmlContainer: domElementTags,
|
||||
options: optionsTags,
|
||||
value: []
|
||||
|
||||
});
|
||||
treeselectTags.srcElement.addEventListener('input', (e) => {
|
||||
tags_ids = e.detail?.join(',')
|
||||
});
|
||||
function initAddNewPost () {
|
||||
return {
|
||||
errors: 0,
|
||||
hasCaptchaToken: 0,
|
||||
showPassword: false,
|
||||
displayErrorMessage: false,
|
||||
errorMessages: [],
|
||||
setErrorMessages (messages) {
|
||||
this.errorMessages = [messages];
|
||||
this.displayErrorMessage = this.errorMessages.length
|
||||
},
|
||||
submitForm () {
|
||||
this.validate()
|
||||
.then(() => {
|
||||
const $form = document.querySelector('#mp_blog_post_form');
|
||||
if (this.errors === 0) {
|
||||
this.dispatchAddNewPostRequest($form);
|
||||
}
|
||||
})
|
||||
.catch((invalid) => {
|
||||
if (invalid.length > 0) {
|
||||
invalid[0].focus();
|
||||
}
|
||||
});
|
||||
},
|
||||
dispatchAddNewPostRequest: function (form) {
|
||||
const formData = new FormData();
|
||||
var imageInput = document.querySelector('#image');
|
||||
if (imageInput?.files.length > 0) {
|
||||
formData.append('image', imageInput.files[0]);
|
||||
} else {
|
||||
var emptyBlob = new Blob([''], {type: 'application/octet-stream'});
|
||||
formData.append('image', emptyBlob, 'empty_image.txt');
|
||||
}
|
||||
formData.append('name', document.querySelector('#name').value);
|
||||
formData.append('post_id', document.querySelector('#post_id').value);
|
||||
formData.append('short_description', document.querySelector('#short_description').value);
|
||||
formData.append('post_content', document.querySelector('#post_content').value);
|
||||
|
||||
formData.append('categories_ids', treeselectCategories.value?.join(','));
|
||||
formData.append('topics_ids', treeselectTopics.value?.join(','));
|
||||
formData.append('tags_ids', treeselectTags.value?.join(','));
|
||||
formData.append('allow_comment', document.querySelector('#allow_comment').value);
|
||||
|
||||
const publicDateValue = document.querySelector('#publish_date').value;
|
||||
if(publicDateValue) {
|
||||
formData.append('publish_date', convertDateToSave(publicDateValue));
|
||||
} else {
|
||||
formData.append('publish_date', '');
|
||||
}
|
||||
var checkboxElement = document.getElementById("post_image_delete");
|
||||
if(checkboxElement && checkboxElement.checked) {
|
||||
formData.append(checkboxElement.name, checkboxElement.value);
|
||||
}
|
||||
var imgElement= document.getElementById("post_image_image");
|
||||
if(imgElement) {
|
||||
|
||||
formData.append('image', imgElement.title);
|
||||
}
|
||||
|
||||
fetch("<?= $escaper->escapeHtml($block->getUrl('mpblog/post/manage')) ?>", {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
"X-Requested-With": "XMLHttpRequest"
|
||||
},
|
||||
body: formData,
|
||||
mode: "cors",
|
||||
credentials: "include"
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(response => {
|
||||
window.location.reload();
|
||||
})
|
||||
.catch(error => console.error('Error:', error));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
+116
@@ -0,0 +1,116 @@
|
||||
<?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\RelatedPost;
|
||||
use Mageplaza\Blog\Model\ResourceModel\Post\Collection;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Collection $posts */
|
||||
/** @var RelatedPost $block */
|
||||
/** @var Escaper $escaper */
|
||||
$posts = $block->getRelatedPostList();
|
||||
if ($posts && $block->isEnabledBlog()) : ?>
|
||||
<h2 class="text-xl"><?= $posts->getSize() ? $escaper->escapeHtml(__('Related Posts')) : $escaper->escapeHtml(__('No Related Posts')) ?></h2>
|
||||
<?php if ($block->getRelatedMode()) : ?>
|
||||
<div class="mp-blog-owl-carousel ">
|
||||
<section id="relatedposts-carousel" class="splide" aria-label="Related Posts">
|
||||
<div class="splide__track">
|
||||
<ul class="splide__list">
|
||||
<?php foreach ($posts as $post) : ?>
|
||||
<li class="splide__slide">
|
||||
<div class="item post-list-item col-mp post-item-list mp-4">
|
||||
<div class="post-item-wraper">
|
||||
<div class="post-info-wraper">
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->resizeImage($post->getImage(),
|
||||
'400x')) ?>"
|
||||
alt="<?= $escaper->escapeHtml($post->getName()); ?>"/>
|
||||
</a>
|
||||
<h2 class="mp-post-title" style="margin: 20px 0;">
|
||||
<a class="post-link-title"
|
||||
title="<?= $escaper->escapeHtml($post->getName()); ?>"
|
||||
href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<?= $escaper->escapeHtml($post->getName()) ?>
|
||||
</a>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
new Splide('#relatedposts-carousel', {
|
||||
perPage: 3,
|
||||
gap: 15,
|
||||
breakpoints: {
|
||||
1028: {
|
||||
perPage: 2
|
||||
}
|
||||
}
|
||||
}).mount();
|
||||
});
|
||||
</script>
|
||||
<?php else : ?>
|
||||
<ul class="relatedposts-list" style="list-style-type:disc; padding-left: 30px">
|
||||
<?php foreach ($posts as $post) : ?>
|
||||
<li>
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>"><?= $escaper->escapeHtml($post->getName()) ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<style>
|
||||
.post-item-wraper:hover {
|
||||
border: 1px solid #eee;
|
||||
box-shadow: 3px 3px 4px 0 rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
.splide__pagination {
|
||||
bottom: -0.5em;
|
||||
}
|
||||
|
||||
.splide__arrow {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.splide__pagination__page.is-active {
|
||||
background: #869791
|
||||
}
|
||||
.post-item-wraper {
|
||||
border: 1px solid #eee;
|
||||
padding: 10px !important;
|
||||
|
||||
}
|
||||
#relatedposts-carousel, .relatedposts-list a:visited, .alink:visited {
|
||||
color: #006bb4;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#relatedposts-carousel a:hover, .alink:hover {
|
||||
color: #006bb4;
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,959 @@
|
||||
<?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 Magento\Framework\Escaper;
|
||||
use Mageplaza\Blog\Block\Post\View;
|
||||
use Mageplaza\Blog\Helper\Image;
|
||||
use Mageplaza\Blog\Model\Config\Source\Comments\Type;
|
||||
|
||||
/** @var Escaper $escaper */
|
||||
/** @var View $block */
|
||||
$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() : '';
|
||||
$isLogged = ($block->isLoggedIn()) ? 'Yes' : 'No';
|
||||
$color = $helper->getDisplayConfig('font_color');
|
||||
?>
|
||||
<div class="mp-blog-view">
|
||||
<!--div class="mp-blog-rss">
|
||||
<a href="<?= $escaper->escapeUrl($block->getRssUrl('post/rss')) ?>" class="bb-rss-icon">
|
||||
<img src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/rss.png')) ?>"
|
||||
width="16px">
|
||||
</a>
|
||||
</div-->
|
||||
<div class="mpcss post-view" id="mpblog-list-container">
|
||||
<div class="post-list-content col-md-12 col-sm-8">
|
||||
<div class="post-view-image col-xs-12">
|
||||
<?php if ($_post->getImage()) : ?>
|
||||
<img class="img-responsive" src="<?= $escaper->escapeUrl($block->getImageUrl($_post->getImage())) ?>"
|
||||
alt="<?= $escaper->escapeHtmlAttr($_post->getName()) ?>"/>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="post-post_content col-xs-12">
|
||||
<?= /** @noEscape */
|
||||
$block->getPageFilter($_post->getPostContent() ?: '') ?>
|
||||
</div>
|
||||
<div class="mp-clear"></div>
|
||||
<?= $block->getChildHtml('mp_blog_post_info') ?>
|
||||
|
||||
<?= $block->getChildHtml('mp_blog_post_slider') ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($helper->isEnabledReview()) : ?>
|
||||
<div class="mp-blog-review-title">
|
||||
<span><?= $escaper->escapeHtml(__('Did you find it helpful?')) ?></span>
|
||||
</div>
|
||||
<div id="mp-blog-review">
|
||||
<div class="mp-blog-like" style="width: 155px">
|
||||
<i class="fa fa-thumbs-up" aria-hidden="true"></i>
|
||||
<span><?= $escaper->escapeHtml(__('LIKE')) ?></span>
|
||||
<span class="mp-blog-view">
|
||||
<?php if (!empty($block->getPostLike($_post->getId(), '1'))) : ?>
|
||||
(<?= $escaper->escapeHtml($block->getPostLike($_post->getId(), '1')) ?>)
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="mp-blog-dislike" style="width: 155px">
|
||||
<i class="fa fa-thumbs-down" aria-hidden="true"></i>
|
||||
<span><?= $escaper->escapeHtml(__('DISLIKE')) ?></span>
|
||||
<span class="mp-blog-view">
|
||||
<?php if (!empty($block->getPostLike($_post->getId(), '0'))) : ?>
|
||||
(<?= $escaper->escapeHtml($block->getPostLike($_post->getId(), '0')) ?>)
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mp-blog-review-label"></div>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"#mp-blog-review": {
|
||||
"Mageplaza_Blog/js/helpful-rate": {
|
||||
"url": "<?= /* @noEscape */ $block->getUrl('mpblog/post/review') ?>",
|
||||
"post_id" : <?= /* @noEscape */ $_post->getId() ?>,
|
||||
"mode": <?= /* @noEscape */ $helper->getReviewMode() ?>
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
var options = {
|
||||
url: "<?= /* @noEscape */ $block->getUrl('mpblog/post/review') ?>",
|
||||
post_id: "<?= /* @noEscape */ $_post->getId() ?>",
|
||||
mode: "<?= /* @noEscape */ $helper->getReviewMode() ?>"
|
||||
};
|
||||
|
||||
function create () {
|
||||
const formKey = hyva.getFormKey();
|
||||
|
||||
var post_id = options.post_id,
|
||||
url = options.url,
|
||||
subPostId = {};
|
||||
if (options.mode === '1') {
|
||||
fetch(url, {
|
||||
"headers": {
|
||||
"content-type": "application/x-www-form-urlencoded; charset=UTF-8"
|
||||
},
|
||||
"body": "form_key=" + formKey + '&post_id=' + post_id + '&action=3&mode=' + options.mode,
|
||||
"method": "POST",
|
||||
"mode": "cors",
|
||||
"credentials": "include"
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(response => {
|
||||
if (response.status === 0) {
|
||||
disableReview(response.action);
|
||||
}
|
||||
})
|
||||
.catch(error => console.error('Error:', error));
|
||||
} else {
|
||||
var storedPostData = JSON.parse(getCookie('mpblog_post_data'));
|
||||
if (storedPostData) {
|
||||
subPostId = storedPostData;
|
||||
if (subPostId[post_id] !== undefined) {
|
||||
disableReview(subPostId[post_id].type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
document.querySelectorAll('#mp-blog-review div').forEach(function (el) {
|
||||
el.addEventListener('click', function () {
|
||||
var action = 0,
|
||||
currentPostIds = {},
|
||||
likeId = 0;
|
||||
|
||||
var storedPostIds = JSON.parse(getCookie('mpblog_post_data'));
|
||||
|
||||
if (this.classList.contains('mp-blog-like')) {
|
||||
action = 1;
|
||||
}
|
||||
|
||||
if (storedPostIds && storedPostIds[post_id] !== undefined && options.mode === '0') {
|
||||
likeId = storedPostIds[post_id].likeId;
|
||||
enableReview(storedPostIds[post_id].type);
|
||||
if (action === storedPostIds[post_id].type) {
|
||||
delete storedPostIds[post_id];
|
||||
document.cookie = 'mpblog_post_data=' + JSON.stringify(storedPostIds);
|
||||
} else {
|
||||
storedPostIds[post_id].type = action;
|
||||
disableReview(action);
|
||||
}
|
||||
}
|
||||
|
||||
fetch(url, {
|
||||
"headers": {
|
||||
"content-type": "application/x-www-form-urlencoded; charset=UTF-8"
|
||||
},
|
||||
"body": "form_key=" + formKey + '&post_id=' + post_id + '&action=' + action + '&mode=' + options.mode + '&likeId=' + likeId,
|
||||
"method": "POST",
|
||||
"mode": "cors",
|
||||
"credentials": "include"
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(response => {
|
||||
var storedPostIds, jsonStringIds;
|
||||
if (response['postLike'] && options.mode === '0' && typeof currentPostIds[post_id] === 'undefined') {
|
||||
var storedPostIds = receiveCookiePostIds(post_id, action, response['postLike'], self);
|
||||
var jsonStringIds = JSON.stringify(storedPostIds);
|
||||
|
||||
document.cookie = 'mpblog_post_data=' + jsonStringIds + '; expires=Sun, 1 Jan 2023 00:00:00 GMT; path=/';
|
||||
}
|
||||
|
||||
if (response['status']) {
|
||||
if (response.sumLike) {
|
||||
document.querySelector('#mp-blog-review .mp-blog-like .mp-blog-view').textContent = '(' + response.sumLike + ')';
|
||||
} else {
|
||||
document.querySelector('#mp-blog-review .mp-blog-like .mp-blog-view').textContent = '';
|
||||
}
|
||||
if (response.sumDislike) {
|
||||
document.querySelector('#mp-blog-review .mp-blog-dislike .mp-blog-view').textContent = '(' + response.sumDislike + ')';
|
||||
} else {
|
||||
document.querySelector('#mp-blog-review .mp-blog-dislike .mp-blog-view').textContent = '';
|
||||
}
|
||||
}
|
||||
|
||||
if (response['status']) {
|
||||
enableAllReview();
|
||||
if (response['postLike']) {
|
||||
disableReview(action);
|
||||
}
|
||||
}
|
||||
const reloadCustomerDataEvent = new CustomEvent("reload-customer-section-data");
|
||||
window.dispatchEvent(reloadCustomerDataEvent);
|
||||
window.scrollTo({
|
||||
top: document.body.offsetTop,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
})
|
||||
.catch(error => console.error('Error:', error));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function disableReview (action) {
|
||||
if (action === '1') {
|
||||
document.querySelector('.mp-blog-like').style.backgroundColor = '#658259';
|
||||
} else {
|
||||
document.querySelector('.mp-blog-dislike').style.backgroundColor = '#9a6464';
|
||||
}
|
||||
}
|
||||
|
||||
function enableReview (action) {
|
||||
if (action === '1') {
|
||||
document.querySelector('.mp-blog-like').style.backgroundColor = '#6AA84F';
|
||||
} else {
|
||||
document.querySelector('.mp-blog-dislike').style.backgroundColor = '#EC3A3C';
|
||||
}
|
||||
}
|
||||
|
||||
function enableAllReview () {
|
||||
document.querySelector('.mp-blog-like').style.backgroundColor = '#6AA84F';
|
||||
document.querySelector('.mp-blog-dislike').style.backgroundColor = '#EC3A3C';
|
||||
}
|
||||
|
||||
function getCookie (name) {
|
||||
var v = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
|
||||
return v ? v[2] : null;
|
||||
}
|
||||
|
||||
function receiveCookiePostIds (postId, action, likeId) {
|
||||
var postData = {
|
||||
id: postId,
|
||||
type: action,
|
||||
likeId: likeId
|
||||
},
|
||||
receivedJsonStr = getCookie('mpblog_post_data'),
|
||||
postIds = JSON.parse(receivedJsonStr) || {};
|
||||
|
||||
if (postIds[postId] !== undefined) {
|
||||
return postIds;
|
||||
}
|
||||
postIds[postId] = postData;
|
||||
return postIds;
|
||||
}
|
||||
|
||||
create();
|
||||
});
|
||||
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
<?php if ($helper->getBlogConfig('platforms/fb_platform/fb_share') || $helper->getBlogConfig('platforms/x_platform/x_share')) : ?>
|
||||
<div class="mp-clear"></div>
|
||||
<div class="mpcss">
|
||||
<div id="sharing">
|
||||
<div class="share-col-left">
|
||||
<h5><?= $escaper->escapeHtml(__('Share this post')) ?></h5>
|
||||
</div>
|
||||
<div class="share-col-right">
|
||||
<div class="post-sharing-button flex">
|
||||
<?php if ($helper->getBlogConfig('platforms/x_platform/x_share')) : ?>
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/twitter.png')) ?>"
|
||||
alt="Share on Twitter"
|
||||
onclick="window.open('https://twitter.com/share?text=&url=<?= /* @noEscape */
|
||||
$_post->getUrl() ?>','Twitter-dialog','width=626,height=436'); return false;"
|
||||
style="cursor: pointer;width: 43%;position: relative; left: 0.5rem"
|
||||
/>
|
||||
<?php endif; ?>
|
||||
<?php if ($helper->getBlogConfig('platforms/fb_platform/fb_share')) : ?>
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/facebook.png')) ?>"
|
||||
alt="Share on Facebook"
|
||||
onclick="window.open('https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent('<?= /* @noEscape */
|
||||
$_post->getUrl() ?>'),'facebook-share-dialog','width=626,height=436'); return false;"
|
||||
style="cursor: pointer;"
|
||||
/>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($authorName && $helper->showAuthorInfo()) :
|
||||
$block->resizeImage($author->getImage(), '135x', Image::TEMPLATE_MEDIA_TYPE_AUTH);
|
||||
?>
|
||||
<div class="block-blog-related about-admin">
|
||||
<h2><?= $escaper->escapeHtml(__('About the Author')) ?></h2>
|
||||
<div class="related-content-container">
|
||||
<div class="author-content-image">
|
||||
<img class="img-responsive"
|
||||
src="<?= /* @noEscape */
|
||||
$author->getImage()
|
||||
? $block->resizeImage($author->getImage(), '135x', Image::TEMPLATE_MEDIA_TYPE_AUTH)
|
||||
: $block->getDefaultAuthorImage() ?>">
|
||||
</div>
|
||||
<div class="author-content-information">
|
||||
<div class="author-name"><?= /* @noEscape */
|
||||
$authorName ?></div>
|
||||
<p class="author-description">
|
||||
<?= /* @noEscape */
|
||||
$author->getShortDescription() ? $block->getPageFilter($author->getShortDescription()) : '' ?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="mp-clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php $relatedPosts = $_post->getRelatedPostsCollection(); ?>
|
||||
<?php if ($relatedPosts && count($relatedPosts)) : ?>
|
||||
<div class="block-blog-related topic-list mpcss" style="width: 90%;">
|
||||
<h2><?= $escaper->escapeHtml(__('Related Posts')) ?></h2>
|
||||
<?php if ($block->getRelatedMode()) : ?>
|
||||
<div class="">
|
||||
<section id="card-carousel" class="splide" aria-label="Related Posts">
|
||||
<div class="splide__track">
|
||||
<ul class="splide__list">
|
||||
<?php foreach ($relatedPosts as $post) : ?>
|
||||
<li class="splide__slide">
|
||||
<div class="item post-list-item" style="margin-right: 10px">
|
||||
<div class="post-item-wraper">
|
||||
<div class="post-image">
|
||||
<?php if ($post->getImage()) : ?>
|
||||
<a href="<?= /* @noEscape */
|
||||
$post->getUrl() ?>">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->resizeImage($post->getImage(),
|
||||
'400x')) ?>"
|
||||
alt="<?= $escaper->escapeHtmlAttr($post->getName()) ?>"/>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="post-info-wraper">
|
||||
<h2 class="mp-post-title">
|
||||
<a class="post-link-title"
|
||||
title="<?= $escaper->escapeHtmlAttr($post->getName()) ?>"
|
||||
href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<?= $escaper->escapeHtml($post->getName()) ?>
|
||||
</a>
|
||||
</h2>
|
||||
<div class="mp-post-info">
|
||||
<?= /* @noEscape */
|
||||
$block->getPostInfo($post); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<style>
|
||||
.splide__pagination {
|
||||
bottom: -0.5em;
|
||||
}
|
||||
|
||||
.splide__arrow {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.splide__pagination__page.is-active {
|
||||
background: #869791
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<?php else : ?>
|
||||
<div class="related-content-container" style="display: flex; flex-wrap: wrap;">
|
||||
<?php foreach ($relatedPosts as $post) : ?>
|
||||
<div class="post-list-item col-mp mp-6 mp-lg-4 mp-md-6 mp-xs-12">
|
||||
<div class="post-item-wraper">
|
||||
<div class="post-image">
|
||||
<?php if ($post->getImage()) : ?>
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->resizeImage($post->getImage(),
|
||||
'400x')) ?>"
|
||||
alt="<?= $escaper->escapeHtmlAttr($post->getName()) ?>"/>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="post-info-wraper">
|
||||
<h2 class="mp-post-title">
|
||||
<a class="post-link-title"
|
||||
title="<?= $escaper->escapeHtmlAttr($post->getName()); ?>"
|
||||
href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<?= $escaper->escapeHtml($post->getName()) ?>
|
||||
</a>
|
||||
</h2>
|
||||
<div class="mp-post-info">
|
||||
<?= /* @noEscape */
|
||||
$block->getPostInfo($post) ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<div class="mp-clear"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($helper->getBlogConfig('product_post/post_detail/enable_product')) : ?>
|
||||
<?php $relatedBlock = $block->getChildBlock('related_products'); ?>
|
||||
<?php if ($relatedBlock->hasProduct()) : ?>
|
||||
<div class="block-blog-related products-same-post page-products mpcss" style="width: 90%;">
|
||||
<h2><?= $helper->getBlogConfig('product_post/post_detail/title') ?: $escaper->escapeHtml(__('Related Products')) ?></h2>
|
||||
<div class="related-content-container">
|
||||
<?= $relatedBlock->toHtml(); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php $typeComment = $block->helperComment('type'); ?>
|
||||
<?php if (((int) $typeComment !== Type::DISABLE) && $_post->getAllowComment()) : ?>
|
||||
<div class="block-blog-related blog-comment">
|
||||
<h2><?= $escaper->escapeHtml(__('Comments')) ?></h2>
|
||||
<?php if ((int) $typeComment === Type::DISQUS) : ?>
|
||||
<div class="related-content-container box-collateral box-reviews" id="post-reviews">
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disShortName = '<?= /** @noEscape */ $block->helperComment('disqus'); ?>';
|
||||
|
||||
/* * * DON'T EDIT BELOW THIS LINE * * */
|
||||
(function () {
|
||||
var dsq = document.createElement('script');
|
||||
dsq.type = 'text/javascript';
|
||||
dsq.async = true;
|
||||
dsq.src = '//' + disShortName + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
<?php elseif ($typeComment == Type::FACEBOOK) : ?>
|
||||
<div class="related-content-container box-collateral box-reviews
|
||||
<?= /* @noEscape */
|
||||
$helper->getBlogConfig('comment/facebook_colorscheme') ?>"
|
||||
id="post-reviews">
|
||||
<div id="fb-root"></div>
|
||||
<script>(function (d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s);
|
||||
js.id = id;
|
||||
js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v12.0&appId=<?=
|
||||
/* @noEscape */ $block->getDecrypt($block->helperComment('facebook_appid')) ?>";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
</script>
|
||||
<div class="fb-comments" data-href="<?= /* @noEscape */
|
||||
$_post->getUrl() ?>"
|
||||
data-numposts="<?= /* @noEscape */
|
||||
$block->helperComment('facebook_number_comment') ?>"
|
||||
data-width="100%"
|
||||
data-colorscheme="<?= /* @noEscape */
|
||||
$block->helperComment('facebook_colorscheme') ?>"
|
||||
data-order-by="<?= /* @noEscape */
|
||||
$block->helperComment('facebook_order_by') ?>">
|
||||
</div>
|
||||
</div>
|
||||
<?php elseif ($typeComment == Type::DEFAULT_COMMENT) : ?>
|
||||
<div class="related-content-container container default-cmt">
|
||||
<?php if (!$block->isLoggedIn()) : ?>
|
||||
<div class="col-mp default-cmt__cmt-login">
|
||||
<button class="primary btn default-cmt__cmt-login__btn-login">
|
||||
<?= $escaper->escapeHtml(__('Login')) ?>
|
||||
</button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="col-mp mp-12" style="float: left;">
|
||||
<div class="default-cmt__content">
|
||||
<div class="default-cmt__content__cmt-block">
|
||||
<?php if (!$block->isLoggedIn()) : ?>
|
||||
<form id="default-cmt__content__cmt-block__guest-form"
|
||||
|
||||
x-data="Object.assign(hyva.formValidation($el), initCustomerCommentForm())"
|
||||
@submit.prevent="submitForm();"
|
||||
>
|
||||
<?= /* @noEscape */
|
||||
$block->getBlockHtml('formkey'); ?>
|
||||
<div class="col-mp mp-6 default-cmt__content__cmt-block__guest-box">
|
||||
<label for="default-cmt__content__cmt-block__guest-box__name-input">Name
|
||||
*</label>
|
||||
<input id="default-cmt__content__cmt-block__guest-box__name-input"
|
||||
type="text"
|
||||
name="default-cmt__content__cmt-block__guest-box__name-input"
|
||||
placeholder="<?= $escaper->escapeHtmlAttr(__('Your display name')) ?>"
|
||||
data-validate='{"required": true}'>
|
||||
</div>
|
||||
<div class="col-mp mp-6 default-cmt__content__cmt-block__guest-box">
|
||||
<label for="default-cmt__content__cmt-block__guest-box__email-input">Email
|
||||
*</label>
|
||||
<input id="default-cmt__content__cmt-block__guest-box__email-input"
|
||||
type="text"
|
||||
name="default-cmt__content__cmt-block__guest-box__email-input"
|
||||
placeholder="<?= $escaper->escapeHtmlAttr(__('Your email')) ?> "
|
||||
data-validate='{"required": true, "email": true}'
|
||||
>
|
||||
</div>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
<div class="default-cmt__content__cmt-block__cmt-box">
|
||||
<div class="col-mp mp-12">
|
||||
<label for="mp-guest-cmt-commentbox">Comment</label>
|
||||
<div>
|
||||
<textarea
|
||||
class="default-cmt__content__cmt-block__cmt-box__cmt-input w-full"
|
||||
maxlength="255"
|
||||
placeholder="<?= $escaper->escapeHtmlAttr(__('Type comments here...')) ?>">
|
||||
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="default-cmt__content__cmt-block__cmt-box__cmt-btn">
|
||||
<div class="default-cmt_loading" style="display: none">
|
||||
<img
|
||||
src="<?= $escaper->escapeUrl($block->getViewFileUrl('images/loader-1.gif')) ?>"
|
||||
alt="Loading...">
|
||||
</div>
|
||||
<button class="default-cmt__content__cmt-block__cmt-box__cmt-btn__btn-submit
|
||||
primary btn btn-primary" type="submit" style="display: block"
|
||||
form="default-cmt__content__cmt-block__guest-form">
|
||||
<?= $escaper->escapeHtml(__('Comment')) ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-cmt__content__cmt-content">
|
||||
<?php
|
||||
$comments = $block->getPostComments($_post->getId());
|
||||
$block->getCommentsTree($comments, 0);
|
||||
?>
|
||||
<?= $block->getCommentsHtml() ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//get login url, text of button like, reply
|
||||
var loginUrl = '<?= /* @noEscape */ $block->getLoginUrl(); ?>',
|
||||
like = '<?= /* @noEscape */ __('Like') ?>',
|
||||
reply = '<?= /* @noEscape */ __('Reply') ?>',
|
||||
isLogged = '<?= /* @noEscape */ $isLogged ?>',
|
||||
likedColor = '<?= /* @noEscape */ $color?>',
|
||||
messengerBox = {
|
||||
cmt_warning: '<?= /* @noEscape */ $block->getMessagesHtml('adderror',
|
||||
'Please write the comment.')?>',
|
||||
exist_email_warning: '<?= /* @noEscape */$block->getMessagesHtml('adderror',
|
||||
'This email is exist. Please <a href="' . $block->getLoginUrl() . '"> Login </a> as our customer.')?>',
|
||||
login_warning: '<?= /* @noEscape */ $block->getMessagesHtml('adderror',
|
||||
'You are not logged in. Please <a href="' . $block->getLoginUrl() . '"> Login </a> or <a href="' . $block->getRegisterUrl() . '"> Signup </a> to like or send a reply.</div>')?>',
|
||||
comment_approve: '<?= /* @noEscape */ $block->getMessagesHtml('addsuccess',
|
||||
'Your comment has been sent successfully. Please wait admin approve !')?>'
|
||||
};
|
||||
|
||||
require(['comment']);
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?= $block->getChildHtml('mp_blog_post_view_add') ?>
|
||||
</div>
|
||||
<style>
|
||||
.default-cmt__content__cmt-content.row {
|
||||
padding-inline-start: 40px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
if(document.getElementById('card-carousel')) {
|
||||
new Splide('#card-carousel', {
|
||||
perPage: 3,
|
||||
breakpoints: {
|
||||
1028: {
|
||||
perPage: 2
|
||||
}
|
||||
}
|
||||
}).mount();
|
||||
}
|
||||
|
||||
});
|
||||
var cmtBox = document.querySelector('.default-cmt__content__cmt-block__cmt-box__cmt-input');
|
||||
var submitCmt = document.querySelector('.default-cmt__content__cmt-block__cmt-box__cmt-btn__btn-submit');
|
||||
var defaultCmt = document.querySelector('ul.default-cmt__content__cmt-content:first-child');
|
||||
var likeBtn = defaultCmt.querySelectorAll('.btn-like');
|
||||
var replyBtn = defaultCmt.querySelectorAll('.btn-reply');
|
||||
|
||||
let loginBtnCmt = document.querySelector('.default-cmt__cmt-login__btn-login');
|
||||
if (loginBtnCmt) {
|
||||
loginBtnCmt.addEventListener('click', function () {
|
||||
var socialPopup = document.querySelector(".social-login-popup");
|
||||
if (socialPopup) {
|
||||
openMyDialog();
|
||||
showLogin();
|
||||
} else {
|
||||
window.location.href = loginUrl;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function initCustomerCommentForm () {
|
||||
return {
|
||||
errors: 0,
|
||||
hasCaptchaToken: 0,
|
||||
showPassword: false,
|
||||
displayErrorMessage: false,
|
||||
errorMessages: [],
|
||||
setErrorMessages (messages) {
|
||||
this.errorMessages = [messages];
|
||||
this.displayErrorMessage = this.errorMessages.length
|
||||
},
|
||||
submitForm () {
|
||||
this.validate()
|
||||
.then(() => {
|
||||
const $form = document.querySelector('#default-cmt__content__cmt-block__guest-form');
|
||||
if (this.errors === 0) {
|
||||
this.dispatchCommentRequest($form);
|
||||
}
|
||||
})
|
||||
.catch((invalid) => {
|
||||
if (invalid.length > 0) {
|
||||
invalid[0].focus();
|
||||
}
|
||||
});
|
||||
},
|
||||
dispatchCommentRequest: function (form) {
|
||||
callApiSubmitComment();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function submitComment () {
|
||||
if (isLogged === 'Yes') {
|
||||
submitCmt.addEventListener('click', function () {
|
||||
callApiSubmitComment();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
submitComment();
|
||||
|
||||
async function callApiSubmitComment () {
|
||||
var messagesContainer = document.querySelector('.default-cmt__content__cmt-block__cmt-box .messages');
|
||||
if (messagesContainer) {
|
||||
messagesContainer.style.display = 'none';
|
||||
}
|
||||
|
||||
var cmtBox = document.querySelector('.default-cmt__content__cmt-block__cmt-box__cmt-input');
|
||||
var submitCmt = document.querySelector('.default-cmt__content__cmt-block__cmt-box__cmt-btn__btn-submit');
|
||||
var cmtText = cmtBox.value;
|
||||
if (cmtText.trim().length) {
|
||||
document.querySelector('.default-cmt_loading').style.display = 'block';
|
||||
this.disabled = true;
|
||||
await ajaxCommentActions(cmtText, submitCmt);
|
||||
cmtBox.value = '';
|
||||
document.querySelector('.default-cmt_loading').style.display = 'none';
|
||||
submitCmt.disabled = false;
|
||||
|
||||
} else {
|
||||
var cmtInputParent = document.querySelector('.default-cmt__content__cmt-block__cmt-box__cmt-input').parentElement;
|
||||
cmtInputParent.insertAdjacentHTML('beforeend', messengerBox.cmt_warning);
|
||||
}
|
||||
}
|
||||
|
||||
// ajax call api to comments
|
||||
function ajaxCommentActions (cmtText, inputEl, checkReply, cmtId, parentComment) {
|
||||
var isReply = (typeof checkReply !== 'undefined') ? 1 : 0,
|
||||
replyId = (typeof cmtId !== 'undefined') ? cmtId : 0,
|
||||
displayReply = (typeof checkReply !== 'undefined');
|
||||
var guestName = document.querySelector('#default-cmt__content__cmt-block__guest-box__name-input')?.value;
|
||||
|
||||
var guestEmail = document.querySelector('#default-cmt__content__cmt-block__guest-box__email-input')?.value;
|
||||
let url = window.location.href;
|
||||
const body = new URLSearchParams({
|
||||
form_key: hyva.getFormKey(),
|
||||
cmt_text: cmtText,
|
||||
isReply: isReply,
|
||||
replyId: replyId,
|
||||
guestName: guestName,
|
||||
guestEmail: guestEmail
|
||||
});
|
||||
fetch(url, {
|
||||
headers: {
|
||||
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
||||
"X-Requested-With": "XMLHttpRequest"
|
||||
},
|
||||
body: body,
|
||||
method: "POST",
|
||||
mode: "cors",
|
||||
credentials: "include"
|
||||
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
switch (data.status){
|
||||
case 'duplicated':
|
||||
document.querySelector('.default-cmt__content__cmt-block__cmt-box__cmt-input').parentElement.appendChild(document.createRange().createContextualFragment(messengerBox.exist_email_warning));
|
||||
break;
|
||||
case 3:
|
||||
document.querySelector('.default-cmt__content__cmt-block').insertAdjacentHTML('afterbegin', messengerBox.comment_approve);
|
||||
break;
|
||||
case 1:
|
||||
displayComment(data, displayReply);
|
||||
var cmtCount = document.querySelectorAll('.default-cmt li').length;
|
||||
if (document.querySelector('.mp-cmt-count')) {
|
||||
document.querySelector('.mp-cmt-count').textContent = cmtCount;
|
||||
}
|
||||
|
||||
inputEl.value = '';
|
||||
break;
|
||||
case 'error':
|
||||
if (checkReply !== 'undefined') {
|
||||
parentComment.insertAdjacentHTML('beforeend', data.error);
|
||||
} else {
|
||||
document.querySelector('.default-cmt').insertAdjacentHTML('beforeend', data.error);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
})
|
||||
.catch(error => console.error('Error:', error));
|
||||
}
|
||||
// handle display comments
|
||||
function displayComment (cmt, isReply) {
|
||||
function htmlComment (text) {
|
||||
var html = '';
|
||||
var sub = text.split("\n");
|
||||
for (var i = 0; i < sub.length; i++){
|
||||
html += '<p>' + sub[i] + '</p>';
|
||||
}
|
||||
return html;
|
||||
}
|
||||
|
||||
var cmtRow = document.createElement('li');
|
||||
cmtRow.style.width = '100%';
|
||||
cmtRow.id = 'cmt-id-' + cmt.cmt_id;
|
||||
cmtRow.className = 'default-cmt__content__cmt-content__cmt-row cmt-row-' + cmt.cmt_id + ' cmt-row col-m-12' +
|
||||
(isReply ? ' reply-row' : '');
|
||||
cmtRow.setAttribute('data-cmt-id', cmt.cmt_id);
|
||||
if (isReply) {
|
||||
cmtRow.setAttribute('data-reply-id', cmt.reply_cmt);
|
||||
}
|
||||
|
||||
cmtRow.innerHTML = '<div class="cmt-row__cmt-username"> ' +
|
||||
'<span class="cmt-row__cmt-username username username__' + cmt.cmt_id + '">' + cmt.user_cmt + '</span> ' +
|
||||
'</div>' +
|
||||
'<div class="cmt-row__cmt-content"> ' +
|
||||
'<p>' + htmlComment(cmt.cmt_text) + '</p> ' +
|
||||
'</div>' +
|
||||
'<div class="cmt-row__cmt-interactions interactions"> <div class="interactions__btn-actions"> ' +
|
||||
'<a class="interactions__btn-actions action btn-like mpblog-like" data-cmt-id="' + cmt.cmt_id + '" click="1">' +
|
||||
'<i class="fa fa-thumbs-up" aria-hidden="true" style="margin-right: 3px"></i>' +
|
||||
'<span class="count-like__like-text"></span>' +
|
||||
'</a>' +
|
||||
'<a class="interactions__btn-actions action btn-reply" data-cmt-id="' + cmt.cmt_id + '">' + reply + '</a> ' +
|
||||
'</div>' +
|
||||
'<div class="interactions__cmt-createdat"> ' +
|
||||
'<span>' + cmt.created_at + '</span> ' +
|
||||
'</div> ';
|
||||
|
||||
if (isReply) {
|
||||
var replyCmtId = cmt.reply_cmt;
|
||||
var replyCmtList = document.querySelectorAll('.default-cmt__content__cmt-content__cmt-row');
|
||||
|
||||
replyCmtList.forEach(function (cmtEl) {
|
||||
if (cmtEl.getAttribute('data-cmt-id') === replyCmtId) {
|
||||
var replyList = cmtEl.querySelector('ul.default-cmt__content__cmt-content:first-child');
|
||||
|
||||
if (!replyList) {
|
||||
var newUl = document.createElement('ul');
|
||||
newUl.className = 'default-cmt__content__cmt-content row';
|
||||
newUl.appendChild(cmtRow);
|
||||
cmtEl.appendChild(newUl);
|
||||
|
||||
likeComment(cmtRow.querySelectorAll('.btn-like'));
|
||||
showReply(cmtRow.querySelectorAll('.btn-reply'));
|
||||
} else {
|
||||
replyList.appendChild(cmtRow);
|
||||
|
||||
likeComment(cmtRow.querySelectorAll('.btn-like'));
|
||||
showReply(cmtRow.querySelectorAll('.btn-reply'));
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
defaultCmt.appendChild(cmtRow);
|
||||
|
||||
likeComment(cmtRow.querySelectorAll('.btn-like'));
|
||||
showReply(cmtRow.querySelectorAll('.btn-reply'));
|
||||
}
|
||||
}
|
||||
// handle click like comment
|
||||
function likeComment (btns) {
|
||||
btns.forEach(function (likeEl) {
|
||||
likeEl.addEventListener('click', function () {
|
||||
var cmtId = this.getAttribute('data-cmt-id');
|
||||
var cmtRowContainer = this.closest('.default-cmt__content__cmt-content__cmt-row');
|
||||
|
||||
if (isLogged === 'Yes') {
|
||||
var likeCountText = this.querySelector('span').textContent.trim();
|
||||
var likeCount = parseInt(likeCountText, 10) || 0; // Convert to integer, default to 0 if NaN
|
||||
if (this.getAttribute('click') === '1') {
|
||||
if (this.classList.contains('mpblog-liked')) {
|
||||
this.style.color = '#333333';
|
||||
likeCount--;
|
||||
this.querySelector('span').textContent = (likeCount === 0) ? "" : likeCount;
|
||||
this.classList.remove('mpblog-liked');
|
||||
} else {
|
||||
likeCount++;
|
||||
this.querySelector('span').textContent = likeCount;
|
||||
this.style.color = likedColor;
|
||||
this.classList.add('mpblog-liked');
|
||||
}
|
||||
|
||||
fetch(window.location.href, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
|
||||
"X-Requested-With": "XMLHttpRequest"
|
||||
},
|
||||
body: 'cmtId=' + cmtId,
|
||||
mode: "cors",
|
||||
credentials: "include"
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(response => {
|
||||
if (response.status === 'ok') {
|
||||
likeEl.setAttribute('click', '1');
|
||||
} else if (response.status === 'error' && response.hasOwnProperty('error')) {
|
||||
var errorElement = document.createElement('div');
|
||||
errorElement.innerHTML = response.error;
|
||||
defaultCmt.appendChild(errorElement);
|
||||
}
|
||||
})
|
||||
.catch(error => console.error('Error:', error));
|
||||
}
|
||||
|
||||
likeEl.setAttribute('click', '0');
|
||||
} else {
|
||||
cmtRowContainer.insertAdjacentHTML('beforeend', messengerBox.login_warning);
|
||||
setTimeout(function () {
|
||||
var errorNotification = document.querySelector('.message.error.message-error');
|
||||
if (errorNotification) {
|
||||
errorNotification.parentElement.removeChild(errorNotification);
|
||||
}
|
||||
}, 3000);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
likeComment(likeBtn);
|
||||
// handle show reply comment
|
||||
function showReply (btns) {
|
||||
btns.forEach(function (btn) {
|
||||
btn.addEventListener('click', function () {
|
||||
var cmtId = (typeof closestWithDataAttr(btn, 'data-cmt-id') !== 'undefined') ? closestWithDataAttr(btn, 'data-cmt-id') : btn.getAttribute('data-cmt-id');
|
||||
|
||||
var inputCmtID = this.getAttribute('data-cmt-id');
|
||||
var cmtRowCmt = document.querySelector('#cmt-row');
|
||||
var cmtRowContainer = this.closest('.default-cmt__content__cmt-content__cmt-row');
|
||||
|
||||
if (document.querySelectorAll('.cmt-row__reply-row.row__' + inputCmtID).length) {
|
||||
cmtRowContainer = document.querySelector("#cmt-id-" + cmtId + " ul:last-child");
|
||||
}
|
||||
|
||||
var cmtRow = cmtRowContainer.querySelector('.cmt-row__reply-row.row__' + inputCmtID);
|
||||
var cmtName = document.querySelector(".username__" + inputCmtID).textContent;
|
||||
|
||||
if (isLogged === 'Yes') {
|
||||
if (cmtRowCmt) {
|
||||
cmtRowCmt.style.display = (cmtRowCmt.style.display === 'none') ? 'block' : 'none';
|
||||
cmtRowCmt.parentElement.removeChild(cmtRowCmt);
|
||||
}
|
||||
|
||||
if (cmtRow) {
|
||||
cmtRow.style.display = (cmtRow.style.display === 'none') ? 'block' : 'none';
|
||||
cmtRow.parentElement.removeChild(cmtRow);
|
||||
} else {
|
||||
cmtRowContainer.insertAdjacentHTML('beforeend', '<div id="cmt-row" class="cmt-row__reply-row row row__' + inputCmtID + ' col-md-12">' +
|
||||
'<div class="reply-form__form-input form-group col-xs-8 col-md-6">' +
|
||||
'<label for="reply_cmt' + inputCmtID + '"></label>' +
|
||||
'<input type="text" id="reply_cmt' + inputCmtID + '" class="form-group__input form-control" placeholder="Press enter to submit reply" value="' + cmtName + ' " autofocus onfocus="this.setSelectionRange(1000,1001);"/>' +
|
||||
'</div>' +
|
||||
'</div>');
|
||||
|
||||
var input = document.getElementById('reply_cmt' + inputCmtID);
|
||||
input.closest('.form-group').appendChild(
|
||||
document.querySelector('.default-cmt__content__cmt-block__cmt-box__cmt-btn .default-cmt_loading').cloneNode(true)
|
||||
);
|
||||
input.focus();
|
||||
|
||||
submitReply(input, cmtId, cmtRowContainer);
|
||||
}
|
||||
} else {
|
||||
cmtRowContainer.insertAdjacentHTML('beforeend', messengerBox.login_warning);
|
||||
setTimeout(function () {
|
||||
var errorNotification = document.querySelector('.message.error.message-error');
|
||||
if (errorNotification) {
|
||||
errorNotification.parentElement.removeChild(errorNotification);
|
||||
}
|
||||
}, 3000);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
// handle find comment id closest
|
||||
function closestWithDataAttr (element, attribute) {
|
||||
while (element && !element.getAttribute(attribute)){
|
||||
element = element.parentNode;
|
||||
}
|
||||
return element ? element.getAttribute(attribute) : null;
|
||||
}
|
||||
|
||||
showReply(replyBtn);
|
||||
|
||||
var firstCmtRow = document.querySelector('li.default-cmt__content__cmt-content__cmt-row:first-child');
|
||||
if (firstCmtRow) {
|
||||
firstCmtRow.style.borderTop = 'none';
|
||||
}
|
||||
// handle reply comment
|
||||
function submitReply (input, replyId, parentComment) {
|
||||
input.addEventListener('keypress', async function (e) {
|
||||
var text = input.value;
|
||||
if (text !== '') {
|
||||
if (e.keyCode === 13) {
|
||||
input.nextElementSibling.style.display = 'block';
|
||||
input.disabled = true;
|
||||
await ajaxCommentActions(text, input, true, replyId, parentComment);
|
||||
input.closest('.cmt-row__reply-row').style.display = 'none';
|
||||
input.nextElementSibling.style.display = 'none';
|
||||
input.disabled = false;
|
||||
var cmtRow = document.getElementById('cmt-row');
|
||||
if (cmtRow) {
|
||||
cmtRow.remove();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,340 @@
|
||||
<?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 Magento\Catalog\Block\Product\ReviewRendererInterface;
|
||||
use Magento\Catalog\Model\Product;
|
||||
use Magento\Framework\App\Action\Action;
|
||||
use Mageplaza\Blog\Block\Post\RelatedProduct;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var $block RelatedProduct */
|
||||
/** @var Escaper $escaper */
|
||||
$_productCollection = $block->getLoadedProductCollection();
|
||||
$_helper = $block->getHelper();
|
||||
|
||||
?>
|
||||
<?php if (!$_productCollection->count()) : ?>
|
||||
<div class="message info empty">
|
||||
<div><?= $escaper->escapeHtml(__('We can\'t find products matching the selection.')) ?></div>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?= $block->getToolbarHtml() ?>
|
||||
<?= $block->getAdditionalHtml() ?>
|
||||
<?php
|
||||
if ($block->getMode() == 'grid') {
|
||||
$viewMode = '';
|
||||
$imageDisplayArea = 'category_page_grid';
|
||||
$showDescription = false;
|
||||
$templateType = ReviewRendererInterface::SHORT_VIEW;
|
||||
} else {
|
||||
$viewMode = 'list';
|
||||
$imageDisplayArea = 'category_page_list';
|
||||
$showDescription = true;
|
||||
$templateType = ReviewRendererInterface::FULL_VIEW;
|
||||
}
|
||||
$pos = $block->getPositioned();
|
||||
?>
|
||||
<div class="products wrapper <?= /* @noEscape */ $viewMode ?> products-<?= /* @noEscape */ $viewMode ?>">
|
||||
<?php if ($block->relatedMode() !== '1') : ?>
|
||||
<div class="products list items product-items mt-6 grid grid-cols-2 gap-4 md:grid-cols-3 lg:grid-cols-4">
|
||||
<?php /** @var Product $_product */ ?>
|
||||
<?php foreach ($_productCollection as $_product) : ?>
|
||||
<div class="item product product-item">
|
||||
<div class="product-item-info" data-container="product-<?= /* @noEscape */
|
||||
$viewMode ?>">
|
||||
<?php
|
||||
$productImage = $block->getImage($_product, $imageDisplayArea);
|
||||
if ($pos != null) {
|
||||
$position = ' style="left:' . $productImage->getWidth() . 'px;'
|
||||
. 'top:' . $productImage->getHeight() . 'px;"';
|
||||
}
|
||||
?>
|
||||
<?php // Product Image ?>
|
||||
<a href="<?= $escaper->escapeUrl($block->getParentProductUrl($_product)) ?>"
|
||||
class="product photo product-item-photo"
|
||||
tabindex="-1">
|
||||
<?= $productImage->toHtml() ?>
|
||||
</a>
|
||||
<div class="product details product-item-details">
|
||||
<?php
|
||||
$_productNameStripped = $block->stripTags($_product->getName(), null, true);
|
||||
?>
|
||||
<strong class="product name product-item-name">
|
||||
<a class="product-item-link"
|
||||
href="<?= $escaper->escapeUrl($block->getParentProductUrl($_product)) ?>">
|
||||
<?= /* @noEscape */
|
||||
$_helper->productAttribute($_product, $_product->getName(), 'name') ?>
|
||||
</a>
|
||||
</strong>
|
||||
<?= $block->getReviewsSummaryHtml($_product, $templateType) ?>
|
||||
<?= /* @noEscape */
|
||||
$block->getProductPrice($_product) ?>
|
||||
<?= $block->getProductDetailsHtml($_product) ?>
|
||||
<div class="product-item-inner">
|
||||
<div class="product actions product-item-actions"
|
||||
<?= strpos((string) $pos, $viewMode . '-actions')
|
||||
? $escaper->escapeHtmlAttr($position) : '' ?>>
|
||||
<div class="actions-primary"
|
||||
<?= strpos((string) $pos, $viewMode . '-primary')
|
||||
? $escaper->escapeHtmlAttr($position) : '' ?>>
|
||||
<?php if ($_product->isSaleable()) : ?>
|
||||
<?php $postParams = $block->getAddToCartPostParams($_product); ?>
|
||||
<form data-role="tocart-form"
|
||||
data-product-sku="<?= $escaper->escapeHtml($_product->getSku()) ?>"
|
||||
action="<?= $escaper->escapeUrl($postParams['action']) ?>"
|
||||
method="post">
|
||||
<input type="hidden" name="product"
|
||||
value="<?= /* @noEscape */
|
||||
$postParams['data']['product'] ?>">
|
||||
<input type="hidden" name="<?= /* @noEscape */
|
||||
Action::PARAM_NAME_URL_ENCODED ?>"
|
||||
value="<?= /* @noEscape */
|
||||
$postParams['data'][Action::PARAM_NAME_URL_ENCODED] ?>">
|
||||
<?= $block->getBlockHtml('formkey') ?>
|
||||
<button type="submit"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Add to Cart')) ?>"
|
||||
class="action tocart btn btn-primary">
|
||||
<span><?= $escaper->escapeHtml(__('Add to Cart')) ?></span>
|
||||
</button>
|
||||
</form>
|
||||
<?php else : ?>
|
||||
<?php if ($_product->isAvailable()) : ?>
|
||||
<div class="stock available">
|
||||
<span><?= $escaper->escapeHtml(__('In stock')) ?></span></div>
|
||||
<?php else : ?>
|
||||
<div class="stock unavailable">
|
||||
<span><?= $escaper->escapeHtml(__('Out of stock')) ?></span></div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div data-role="add-to-links" class="actions-secondary"
|
||||
<?= strpos((string) $pos, $viewMode . '-secondary')
|
||||
? $escaper->escapeHtmlAttr($position) : '' ?>>
|
||||
<?php if ($addToBlock = $block->getChildBlock('addto')) : ?>
|
||||
<?= $addToBlock->setProduct($_product)->getChildHtml() ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($showDescription) : ?>
|
||||
<div class="product description product-item-description">
|
||||
<?= /* @noEscape */
|
||||
$_helper->productAttribute(
|
||||
$_product,
|
||||
$_product->getShortDescription(),
|
||||
'short_description'
|
||||
) ?>
|
||||
<a href="<?= $escaper->escapeUrl($block->getParentProductUrl($_product)) ?>"
|
||||
title="<?= /* @noEscape */
|
||||
$_productNameStripped ?>"
|
||||
class="action more"><?= $escaper->escapeHtml(__('Learn More')) ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<style>
|
||||
.page-products .product-item-info {
|
||||
width: 220px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<?php else : ?>
|
||||
<div class="">
|
||||
<?php /** @var $_product Product */ ?>
|
||||
<section id="products-carousel" class="splide" aria-label="Related Products">
|
||||
<div class="splide__track">
|
||||
<ul class="splide__list">
|
||||
<?php foreach ($_productCollection as $_product) : ?>
|
||||
<li class="splide__slide">
|
||||
<div class="item product product-item mp-blog-slider-item">
|
||||
<div class="product-item-info" data-container="product-<?= /* @noEscape */
|
||||
$viewMode ?>">
|
||||
<?php
|
||||
$productImage = $block->getImage($_product, $imageDisplayArea);
|
||||
if ($pos != null) {
|
||||
$position = ' style="left:' . $productImage->getWidth() . 'px;'
|
||||
. 'top:' . $productImage->getHeight() . 'px;"';
|
||||
}
|
||||
?>
|
||||
<?php // Product Image ?>
|
||||
<a href="<?= $escaper->escapeUrl($block->getParentProductUrl($_product)) ?>"
|
||||
class="product photo product-item-photo"
|
||||
tabindex="-1">
|
||||
<?= $productImage->toHtml() ?>
|
||||
</a>
|
||||
<div class="product details product-item-details">
|
||||
<?php
|
||||
$_productNameStripped = $block->stripTags($_product->getName(), null,
|
||||
true);
|
||||
?>
|
||||
<strong class="product name product-item-name">
|
||||
<a class="product-item-link"
|
||||
href="<?= $escaper->escapeUrl($block->getParentProductUrl($_product)) ?>">
|
||||
<?= /* @noEscape */
|
||||
$_helper->productAttribute($_product, $_product->getName(),
|
||||
'name') ?>
|
||||
</a>
|
||||
</strong>
|
||||
<?= $block->getReviewsSummaryHtml($_product, $templateType) ?>
|
||||
<?= /* @noEscape */
|
||||
$block->getProductPrice($_product) ?>
|
||||
<?= $block->getProductDetailsHtml($_product) ?>
|
||||
<div class="product-item-inner">
|
||||
<div class="product actions product-item-actions"
|
||||
<?= strpos((string) $pos, $viewMode . '-actions')
|
||||
? $escaper->escapeHtmlAttr($position) : '' ?>>
|
||||
<div class="actions-primary"
|
||||
<?= strpos((string) $pos, $viewMode . '-primary')
|
||||
? $escaper->escapeHtmlAttr($position) : '' ?>>
|
||||
<?php if ($_product->isSaleable()) : ?>
|
||||
<?php $postParams = $block->getAddToCartPostParams($_product); ?>
|
||||
<form data-role="tocart-form"
|
||||
data-product-sku="<?= $escaper->escapeHtml($_product->getSku()) ?>"
|
||||
action="<?= $escaper->escapeUrl($postParams['action']) ?>"
|
||||
method="post">
|
||||
<input type="hidden"
|
||||
name="product"
|
||||
value="<?= /* @noEscape */
|
||||
$postParams['data']['product'] ?>">
|
||||
<input type="hidden" name="<?= /* @noEscape */
|
||||
Action::PARAM_NAME_URL_ENCODED ?>"
|
||||
value="<?= /* @noEscape */
|
||||
$postParams['data'][Action::PARAM_NAME_URL_ENCODED] ?>">
|
||||
<?= $block->getBlockHtml('formkey') ?>
|
||||
<button type="submit"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Add to Cart')) ?>"
|
||||
class="action tocart btn btn-primary">
|
||||
<span><?= $escaper->escapeHtml(__('Add to Cart')) ?></span>
|
||||
</button>
|
||||
</form>
|
||||
<?php else : ?>
|
||||
<?php if ($_product->isAvailable()) : ?>
|
||||
<div class="stock available">
|
||||
<span><?= $escaper->escapeHtml(__('In stock')) ?></span>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="stock unavailable">
|
||||
<span><?= $escaper->escapeHtml(__('Out of stock')) ?></span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div data-role="add-to-links" class="actions-secondary"
|
||||
<?= strpos((string) $pos, $viewMode . '-secondary')
|
||||
? $escaper->escapeHtmlAttr($position) : '' ?>>
|
||||
<?php if ($addToBlock = $block->getChildBlock('addto')) : ?>
|
||||
<?= $addToBlock->setProduct($_product)->getChildHtml() ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($showDescription) : ?>
|
||||
<div class="product description product-item-description">
|
||||
<?= /* @noEscape */
|
||||
$_helper->productAttribute(
|
||||
$_product,
|
||||
$_product->getShortDescription(),
|
||||
'short_description'
|
||||
) ?>
|
||||
<a href="<?= $escaper->escapeUrl($block->getParentProductUrl($_product)) ?>"
|
||||
title="<?= /* @noEscape */
|
||||
$_productNameStripped ?>"
|
||||
class="action more"><?= $escaper->escapeHtml(__('Learn More')) ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
new Splide('#products-carousel', {
|
||||
perPage: 3,
|
||||
breakpoints: {
|
||||
1028: {
|
||||
perPage: 2
|
||||
}
|
||||
}
|
||||
}).mount();
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?= $block->getToolbarHtml() ?>
|
||||
<?php if (!$block->isRedirectToCartEnabled()) : ?>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"[data-role=tocart-form], .form.map.checkout": {
|
||||
"catalogAddToCart": {
|
||||
"product_sku": "<?= $escaper->escapeJs($_product->getSku()) ?>"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<style>
|
||||
|
||||
.product-item .price-box {
|
||||
margin: 10px 0 25px;
|
||||
}
|
||||
|
||||
|
||||
.item.product.product-item.mp-blog-slider-item {
|
||||
width: 85%;
|
||||
text-align: center;
|
||||
min-height: 450px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.product-item-info:hover, .products-grid .product-item-info.active {
|
||||
|
||||
background: #ffffff;
|
||||
box-shadow: 3px 4px 4px 0 rgba(0, 0, 0, 0.3);
|
||||
border: 1px solid #bbbbbb;
|
||||
margin: -10px;
|
||||
padding: 18px;
|
||||
position: relative;
|
||||
z-index: 9;
|
||||
}
|
||||
|
||||
.product-item-info:hover .btn.btn-primary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.btn.btn-primary {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.products-grid .product-item-actions {
|
||||
margin: -10px 0 10px;
|
||||
}
|
||||
|
||||
</style>
|
||||
+96
@@ -0,0 +1,96 @@
|
||||
<?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\Sidebar\MostView;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var MostView $block */
|
||||
/** @var Escaper $escaper */
|
||||
$posts = $block->getMostViewPosts();
|
||||
$postsRecent = $block->getRecentPost();
|
||||
?>
|
||||
<div class="mp-sidebar product info detailed">
|
||||
<div class="product data items" data-mage-init='{"tabs":{"openedState":"active"}}' x-data="{ activeTab: 0 }">
|
||||
<div class="data item title" data-role="collapsible" id="tab-label-popular" @click="activeTab = 0" :class="{ 'active': activeTab === 0 }">
|
||||
<a class="data switch" tabindex="-1" data-toggle="switch" id="tab-label-popular-title" >
|
||||
<div class="text-center"><?= $escaper->escapeHtml(__('Popular')) ?></div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="data item content" id="tab-content-popular" data-role="content" :class="{ 'active': activeTab === 0 }" x-show.transition.in.opacity.duration.600="activeTab === 0">
|
||||
<?php if ($posts->getSize()) : ?>
|
||||
<?php foreach ($posts as $post) : ?>
|
||||
<div class="list-post-tabs">
|
||||
<div class="post-left">
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->resizeImage($post->getImage(), '100x')) ?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="post-right">
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<span><?= $escaper->escapeHtml($post->getName()) ?></span>
|
||||
</a>
|
||||
<span class="create-at">
|
||||
<?= $post->getPublishDate()
|
||||
? $escaper->escapeHtml($block->getDateFormat($post->getPublishDate())) : '' ?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="mp-clear"></div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php else : ?>
|
||||
<div class="mostview-nopost"><?= $escaper->escapeHtml(__('No Posts')) ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="data item title" data-role="collapsible" id="tab-label-mostview" @click="activeTab = 1" :class="{ 'active': activeTab === 1 }">
|
||||
<a class="data switch" tabindex="-1" data-toggle="switch" id="tab-label-mostview-title" >
|
||||
<div class="text-center"><?= $escaper->escapeHtml(__('Latest')) ?></div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="data item content" id="tab-content-mostview" data-role="content" :class="{ 'active': activeTab === 1 }" x-show.transition.in.opacity.duration.600="activeTab === 1">
|
||||
<?php if ($postsRecent->getSize()) : ?>
|
||||
<?php foreach ($postsRecent as $post) : ?>
|
||||
<div class="list-post-tabs" href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<div class="post-left">
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->resizeImage($post->getImage(), '100x')) ?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="post-right">
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<span><?= $escaper->escapeHtml($post->getName()) ?></span>
|
||||
</a>
|
||||
<span class="create-at">
|
||||
<?= $post->getPublishDate()
|
||||
? $escaper->escapeHtml($block->getDateFormat($post->getPublishDate())) : '' ?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="mp-clear"></div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php else : ?>
|
||||
<div class="mostview-nopost"><?= $escaper->escapeHtml(__('No Posts')) ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,154 @@
|
||||
<?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\Sidebar\Search;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Search $block */
|
||||
/** @var Escaper $escaper */
|
||||
?>
|
||||
<style>
|
||||
.sidebar.sidebar-main:before {
|
||||
content: unset;
|
||||
}
|
||||
</style>
|
||||
<div class="mpblog-search">
|
||||
<div class="field search">
|
||||
<label class="label" for="mpblog-search-box" data-role="minisearch-label">
|
||||
<span><?= $escaper->escapeHtml(__('Search')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input id="mpblog-search-box"
|
||||
type="text"
|
||||
name="query"
|
||||
value="<?= $escaper->escapeHtmlAttr($block->getRequest()->getParam('query')) ?>"
|
||||
placeholder="<?= $escaper->escapeHtmlAttr(__('Search blogs here...')) ?>"
|
||||
class="input-text"
|
||||
role="combobox"
|
||||
aria-haspopup="false"
|
||||
aria-autocomplete="both"
|
||||
/>
|
||||
<div id="autocomplete-results" class="autocomplete-suggestions" style="display: none;position: absolute;z-index: 100;width: 100%" >
|
||||
<!-- Autocomplete results here -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<button type="submit" title="<?= $escaper->escapeHtmlAttr(__('Search')) ?>" class="action search">
|
||||
<i class="fa fa-search" aria-hidden="true" style="font-size: 16px;margin-top: 5px;"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
var visibleImage = <?php echo /** @noEscape */ json_encode($block->getSidebarConfig('search/show_image')); ?>;
|
||||
var searchBox = document.getElementById('mpblog-search-box');
|
||||
let minChars = <?= $block->getSidebarConfig('search/min_chars') ?: 1; ?>;
|
||||
searchBox.addEventListener('input', function () {
|
||||
var searchTerm = searchBox.value;
|
||||
fetchSuggestions(searchTerm);
|
||||
});
|
||||
|
||||
function fetchSuggestions (searchTerm) {
|
||||
updateAutocompleteResults(<?php echo /** @noEscape */ ($block->getSearchBlogData()); ?>, searchTerm);
|
||||
}
|
||||
|
||||
function updateAutocompleteResults (suggestions, searchTerm) {
|
||||
var autocompleteResults = document.getElementById('autocomplete-results');
|
||||
autocompleteResults.innerHTML = '';
|
||||
if (searchTerm && searchTerm.length >= minChars) {
|
||||
if (suggestions.length > 0) {
|
||||
autocompleteResults.style.display = 'block';
|
||||
var existedPost = false;
|
||||
var limitPost = <?= $block->getSidebarConfig('search/search_limit') ?: 10; ?>;
|
||||
let checkNumberPostRender = 0;
|
||||
suggestions.forEach(function (suggestion, index) {
|
||||
|
||||
if (suggestion.value.toLocaleLowerCase().includes(searchTerm.toLowerCase())) {
|
||||
checkNumberPostRender ++;
|
||||
if (checkNumberPostRender > limitPost) {
|
||||
return;
|
||||
}
|
||||
existedPost = true;
|
||||
var suggestionDiv = document.createElement('div');
|
||||
suggestionDiv.className = 'mpblog-suggestion';
|
||||
|
||||
var suggestionDivParrent = document.createElement('div');
|
||||
suggestionDivParrent.className = 'autocomplete-suggestion list-post-tabs cursor-pointer';
|
||||
|
||||
if (visibleImage && visibleImage !== '0') {
|
||||
var suggestionLeftDiv = document.createElement('div');
|
||||
suggestionLeftDiv.className = 'mpblog-suggestion-left';
|
||||
var img = document.createElement('img');
|
||||
img.className = 'img-responsive';
|
||||
img.src = suggestion.image;
|
||||
suggestionLeftDiv.appendChild(img);
|
||||
suggestionDiv.appendChild(suggestionLeftDiv);
|
||||
}
|
||||
|
||||
var suggestionRightDiv = document.createElement('div');
|
||||
suggestionRightDiv.className = 'mpblog-suggestion-right ' + (visibleImage ? 'image-visible' : '');
|
||||
|
||||
var productLineDiv = document.createElement('div');
|
||||
productLineDiv.className = 'mpblog-product-line mpblog-product-name';
|
||||
productLineDiv.textContent = suggestion.value;
|
||||
suggestionRightDiv.appendChild(productLineDiv);
|
||||
|
||||
var productDesDiv = document.createElement('div');
|
||||
productDesDiv.className = 'mpblog-product-des';
|
||||
var shortDesP = document.createElement('p');
|
||||
shortDesP.className = 'mpblog-short-des';
|
||||
shortDesP.textContent = suggestion.desc;
|
||||
productDesDiv.appendChild(shortDesP);
|
||||
|
||||
suggestionRightDiv.appendChild(productDesDiv);
|
||||
suggestionDiv.appendChild(suggestionRightDiv);
|
||||
suggestionDivParrent.appendChild(suggestionDiv);
|
||||
suggestionDivParrent.addEventListener("click", function () {
|
||||
window.location.href = suggestion.url;
|
||||
});
|
||||
autocompleteResults.appendChild(suggestionDivParrent);
|
||||
}
|
||||
});
|
||||
if (!existedPost) {
|
||||
var suggestionDivParrent = document.createElement('div');
|
||||
suggestionDivParrent.className = 'autocomplete-suggestion';
|
||||
suggestionDivParrent.innerText = "No results";
|
||||
autocompleteResults.appendChild(suggestionDivParrent);
|
||||
|
||||
}
|
||||
} else {
|
||||
autocompleteResults.style.display = 'none';
|
||||
}
|
||||
} else {
|
||||
autocompleteResults.style.display = 'none';
|
||||
}
|
||||
}
|
||||
searchBox.addEventListener("blur",function (e) {
|
||||
setTimeout(() => {
|
||||
var autocompleteResults = document.getElementById('autocomplete-results');
|
||||
autocompleteResults.style.display = 'none';
|
||||
},150);
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
<?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\Widget\Posts;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Posts $block */
|
||||
/** @var Escaper $escaper */
|
||||
$posts = $block->getCollection();
|
||||
?>
|
||||
|
||||
<div class="blog-widget-title"><a></a></div>
|
||||
<div class="post-list-container mpcss" id="mpblog-list-container" style="margin-bottom: 50px">
|
||||
<div class="widget-title">
|
||||
<a href="<?= $escaper->escapeUrl($block->getBlogUrl('')) ?>"><?= $escaper->escapeHtml($block->getTitle()) ?></a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<?php foreach ($posts as $post) : ?>
|
||||
<div class="post-list-item" style="margin-left: 5px">
|
||||
<div class="post-item-wraper">
|
||||
<?php if ($post->getImage()) : ?>
|
||||
<div class="post-image">
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<img class="img-responsive" style="height: 220px; margin:auto"
|
||||
src="<?= $escaper->escapeUrl($block->resizeImage($post->getImage(), '400x')) ?>"
|
||||
alt="<?= $escaper->escapeHtml($post->getName()); ?>"/>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="post-info-wraper">
|
||||
<h2 class="mp-post-title" style="font-size: 22px">
|
||||
<a class="post-link-title" title="<?= $escaper->escapeHtmlAttr($post->getName()) ?>"
|
||||
href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<?= $escaper->escapeHtml($post->getName()) ?>
|
||||
</a>
|
||||
</h2>
|
||||
<div class="mp-post-info">
|
||||
<?= /** @noEscape */ $block->getPostInfo($post) ?>
|
||||
</div>
|
||||
<div class="post-short-description">
|
||||
<p><?= /** @noEscape */ $post->getShortDescription() ?></p>
|
||||
</div>
|
||||
<div class="mp-clearfix"></div>
|
||||
<div class="mp-post-meta-info mp-alignright">
|
||||
<div class="actions">
|
||||
<a class="mp-read-more" href="<?= $escaper->escapeUrl($post->getUrl()) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Read More')) ?>">
|
||||
<?= $escaper->escapeHtml(__('Read more')) ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<style>
|
||||
.mp-post-info {
|
||||
color: #999999;
|
||||
font-size: 10px;
|
||||
line-height: 30px;
|
||||
margin: 0;
|
||||
}
|
||||
.post-item-wraper:hover {
|
||||
border: 1px solid #eee;
|
||||
box-shadow: 3px 3px 4px 0 rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
.post-item-wraper {
|
||||
padding: 10px !important;
|
||||
border: 1px solid #eee;
|
||||
|
||||
}
|
||||
.post-list-item {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,54 @@
|
||||
<?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\MonthlyArchive\Widget;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Widget $block */
|
||||
/** @var Escaper $escaper */
|
||||
$dateArrayCount = $block->getDateArrayCount();
|
||||
$dateArrayUnique = $block->getDateArrayUnique();
|
||||
$dateLabel = $block->getDateLabel();
|
||||
|
||||
if ($block->isEnable() && $dateArrayUnique) : ?>
|
||||
<div class="mp-sidebar mpcss">
|
||||
<div class="row">
|
||||
<div class="block-title col-xs-12 sidebar-archives">
|
||||
<p class="block-mp-sidebar-heading" role="heading"
|
||||
aria-level="2"><?= $escaper->escapeHtml(__('Monthly Archive')) ?></p>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<ul class="menu-archives">
|
||||
<?php $size = $block->getDateCount() ?>
|
||||
<?php for ($i = 0; $i < $size; $i++) : ?>
|
||||
<li class="archive-item">
|
||||
<a class="list-archives"
|
||||
href="<?= $escaper->escapeUrl($block->getMonthlyUrl(date("Y-m", $block->dateTime->timestamp($dateArrayUnique[$i])))) ?>">
|
||||
<i class="fa fa-calendar" aria-hidden="true"></i>
|
||||
<?= $escaper->escapeHtml($dateLabel[$i] . ' (' . $dateArrayCount[$i] . ')') ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endfor; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
<?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\Helper\Data;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Escaper $escaper */
|
||||
$helper = $this->helper(Data::class);
|
||||
|
||||
if ($helper->isEnabled() && $helper->getBlogConfig('display/toplinks')) : ?>
|
||||
<li class="nav-item level0 nav-5 level-top classic">
|
||||
<a href="<?= $escaper->escapeUrl($helper->getBlogUrl('')) ?>" class="level-top">
|
||||
<span><?= $helper->getBlogConfig('display/name') ?: $escaper->escapeHtml(__('Blog')) ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
<?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\Helper\Data;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Escaper $escaper */
|
||||
$helper = $this->helper(Data::class);
|
||||
|
||||
if ($helper->isEnabled() && $helper->getBlogConfig('display/toplinks')) : ?>
|
||||
<li class="ui-menu-item level0 fullwidth">
|
||||
<a href="<?= $escaper->escapeUrl($helper->getBlogUrl('')) ?>" class="level-top">
|
||||
<span><?= $helper->getBlogConfig('display/name') ?: $escaper->escapeHtml(__('Blog')) ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,142 @@
|
||||
<?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\AuthorPost;
|
||||
use Mageplaza\Blog\Model\Post;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var AuthorPost $block */
|
||||
/** @var Escaper $escaper */
|
||||
$postCollection = $block->getPostCollection();
|
||||
?>
|
||||
<?php if (!$block->getAuthorStatus()) : ?>
|
||||
<div>
|
||||
<h3><?= $escaper->escapeHtml(__('Your account must be licensed in order to perform the Post creation and management function')) ?></h3>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="mp-blog-new-post">
|
||||
<button type="button" class="action primary" title="<?= $escaper->escapeHtmlAttr(__('Add New Post')) ?>">
|
||||
<?= $escaper->escapeHtml(__('Add New Post')) ?>
|
||||
</button>
|
||||
</div>
|
||||
<div class="post-list-content" id="mpblog-list-container">
|
||||
<?php if ($postCollection && count($postCollection) > 0) : ?>
|
||||
<div class="post-list-body">
|
||||
<?php $i = 1 ?>
|
||||
<?php /** @var Post $post */
|
||||
foreach ($postCollection as $post) : ?>
|
||||
<div data-post-id="<?= $escaper->escapeHtml($post->getId()); ?>"
|
||||
class="post-list-item col-mp post-item-list mp-12">
|
||||
<div class="post-item-wraper">
|
||||
<?= /* @noEscape */ $block->getStatusHtmlById($post->getEnabled()) ?>
|
||||
<?php if ($post->getImage()) : ?>
|
||||
<div class="post-image">
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->resizeImage($post->getImage(), '400x')) ?>"
|
||||
alt="<?= $escaper->escapeHtmlAttr($post->getName()) ?>"/>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="post-info-wraper">
|
||||
<h2 class="mp-post-title">
|
||||
<a class="post-link-title" title="<?= $escaper->escapeHtml($post->getName()); ?>"
|
||||
href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<?= $escaper->escapeHtml($post->getName()) ?>
|
||||
</a>
|
||||
</h2>
|
||||
<div class="mp-post-info">
|
||||
<?= /* @noEscape */ $block->getPostInfo($post) ?>
|
||||
</div>
|
||||
<div class="post-short-description">
|
||||
<p>
|
||||
<?= /* @noEscape */ $block->maxShortDescription($post->getShortDescription()) ?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="mp-clearfix"></div>
|
||||
<div class="mp-post-meta-info mp-alignright">
|
||||
<div class="actions">
|
||||
<a class="mp-read-more" href="<?= $escaper->escapeUrl($post->getUrl()) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Read More')) ?>">
|
||||
<?= $escaper->escapeHtml(__('Read More')) ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post-info-action" data-postId="<?= $escaper->escapeHtml($post->getId()); ?>">
|
||||
<div class="mpblog-post-duplicate">
|
||||
<img
|
||||
src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/duplicate.svg')) ?>"
|
||||
align="middle"
|
||||
alt="<?= $escaper->escapeHtmlAttr(__('Duplicate')); ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Duplicate')) ?>"
|
||||
/>
|
||||
</div>
|
||||
<div class="mpblog-post-edit" >
|
||||
<img src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/writing.svg')) ?>"
|
||||
align="middle"
|
||||
alt="<?= $escaper->escapeHtmlAttr(__('Edit')); ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Edit')) ?>"
|
||||
/>
|
||||
</div>
|
||||
<div class="mpblog-post-delete">
|
||||
<img src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/delete.svg')) ?>"
|
||||
align="middle"
|
||||
alt="<?= $escaper->escapeHtmlAttr(__('Delete')) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Delete')) ?>"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php $i++; ?>
|
||||
<?php if ($i % 2 == 0) : ?>
|
||||
<div class="mp-clear"></div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<div class="mp-clear"></div>
|
||||
</div>
|
||||
<?= $block->getPagerHtml() ?>
|
||||
<?php else : ?>
|
||||
<?= $escaper->escapeHtml(__('There are no posts at this moment')) ?>
|
||||
<?php endif; ?>
|
||||
<?= /* @noEscape */ $block->getChildHtml('additional') ?>
|
||||
</div>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"*": {
|
||||
"Mageplaza_Blog/js/managePost": {
|
||||
"deleteUrl": "<?= $escaper->escapeHtml($block->getUrl('mpblog/post/deletepost')) ?>",
|
||||
"basePubUrl": "<?= $escaper->escapeHtml($block->getBaseMediaUrl()) ?>",
|
||||
"postDatas": <?= $escaper->escapeHtml($block->getPostDatas($postCollection)) ?>,
|
||||
"editorVersion": "<?= $escaper->escapeHtml($block->getVersion()) ?>",
|
||||
"magentoVersion": "<?= $escaper->escapeHtml($block->getMagentoVersion()) ?>"
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
require(['jquery'], function ($) {
|
||||
$('.limiter').css('float', 'right');
|
||||
});
|
||||
</script>
|
||||
<div id="mp-blog-new-post-popup" style="display: none"><?= $block->getChildHtml('mpblog_manage_post') ?></div>
|
||||
<?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 Magento\Framework\Escaper;
|
||||
|
||||
/** @var \Mageplaza\Blog\Block\Post\View $block */
|
||||
/** @var Escaper $escaper */
|
||||
$_post = $block->getPost();
|
||||
?>
|
||||
<!--Open Graph Meta tags by Mageplaza-->
|
||||
<meta property="og:url" content="<?= $escaper->escapeUrl($_post->getUrl()) ?>" />
|
||||
<meta property="og:title" content="<?= $escaper->escapeHtmlAttr($block->getPostMetaTitle()) ?>" />
|
||||
<meta property="og:image" content="<?= $escaper->escapeUrl($block->getImageUrl($_post->getImage())) ?>" />
|
||||
<meta property="og:description" content="<?= $escaper->escapeHtmlAttr($block->getPostMetaDescription()) ?>" />
|
||||
<!--End Open Graph Meta tags by Mageplaza-->
|
||||
@@ -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; ?>
|
||||
@@ -0,0 +1,90 @@
|
||||
<?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\Frontend;
|
||||
use Mageplaza\Blog\Model\Post;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Frontend $block */
|
||||
/** @var Escaper $escaper */
|
||||
?>
|
||||
<!--div class="mp-blog-rss">
|
||||
<a href="<?= $escaper->escapeUrl($block->getRssUrl('post/rss')) ?>" class="bb-rss-icon">
|
||||
<img src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/rss.png')) ?>"
|
||||
width="16px">
|
||||
</a>
|
||||
</div-->
|
||||
<div class="post-list-content" id="mpblog-list-container">
|
||||
<?php $postCollection = $block->getPostCollection(); ?>
|
||||
<?php if ($postCollection && $postCollection->getSize()) : ?>
|
||||
<div class="post-list-body <?= $block->isGridView() ? /* @noEscape */ 'grid products-grid' : '' ?>">
|
||||
<?php /** @var Post $post */
|
||||
foreach ($postCollection as $post) : ?>
|
||||
<div class="item product product-item post-list-item <?= $block->isGridView()
|
||||
? ' post-item-grid ' : ' post-item-list '; ?>">
|
||||
<div class="post-item-wraper">
|
||||
<?php if ($post->getImage()) : ?>
|
||||
<div class="post-image">
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->resizeImage($post->getImage(), '400x')) ?>"
|
||||
alt="<?= $escaper->escapeHtml($post->getName()); ?>"/>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="post-info-wraper">
|
||||
<h2 class="mp-post-title">
|
||||
<a class="post-link-title" title="<?= $escaper->escapeHtml($post->getName()); ?>"
|
||||
href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<?= $escaper->escapeHtml($post->getName()) ?>
|
||||
</a>
|
||||
</h2>
|
||||
<div class="mp-post-info">
|
||||
<?= /** @noEscape */ $block->getPostInfo($post) ?>
|
||||
</div>
|
||||
<div class="post-short-description">
|
||||
<p><?= /** @noEscape */ $block->maxShortDescription($post->getShortDescription()) ?></p>
|
||||
</div>
|
||||
<div class="mp-clearfix"></div>
|
||||
<div class="mp-post-meta-info mp-alignright">
|
||||
<div class="actions">
|
||||
<a class="mp-read-more" href="<?= $escaper->escapeUrl($post->getUrl()) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Read More')) ?>">
|
||||
<?= $escaper->escapeHtml(__('Read More')) ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?= $block->getPagerHtml() ?>
|
||||
<?php else : ?>
|
||||
<?= $escaper->escapeHtml(__('There are no posts at this moment')) ?>
|
||||
<?php endif; ?>
|
||||
<?= $block->getChildHtml('additional'); ?>
|
||||
</div>
|
||||
<style>
|
||||
.limiter {
|
||||
float: right;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,187 @@
|
||||
<?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\ManagePost;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var ManagePost $block */
|
||||
/** @var Escaper $escaper */
|
||||
?>
|
||||
<form enctype="multipart/form-data" data-mage-init='{"validation": {}}'
|
||||
action="<?= $escaper->escapeHtml($block->getUrl('mpblog/post/manage'))?>" method="post" class="form"
|
||||
name="mp_blog_post_form" id="mp_blog_post_form">
|
||||
<fieldset class="fieldset">
|
||||
<div class="field required mp-field">
|
||||
<label for="name" class="label"><span><?= $escaper->escapeHtml(__('Post Name')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="text" name="name" id="name" title="<?= $escaper->escapeHtmlAttr(__('Post Name')) ?>"
|
||||
class="input-text" data-validate="{required:true, 'validate-no-empty':true}">
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="post_id" id="post_id">
|
||||
<div class="field mp-field">
|
||||
<label for="short_description" class="label">
|
||||
<span><?= $escaper->escapeHtml(__('Short Description')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<textarea name="short_description" id="short_description" rows="5" cols="19"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field">
|
||||
<label for="post_content" class="label">
|
||||
<span><?= $escaper->escapeHtml(__('Post Content')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<textarea name="post_content" id="post_content" rows="5" cols="19">
|
||||
</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field">
|
||||
<label for="image" class="label"><span><?= $escaper->escapeHtml(__('Image')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="file" name="image" id="image" title="<?= $escaper->escapeHtmlAttr(__('Image')) ?>"
|
||||
class="input-file">
|
||||
</div>
|
||||
</div>
|
||||
<div class="mp-custom">
|
||||
<div class="field mp-field">
|
||||
<label class="label"><span><?= $escaper->escapeHtml(__('Select Category')) ?></span></label>
|
||||
<div data-bind="scope: 'customCategory'">
|
||||
<input name="categories_ids" data-bind="value: value" style="display: none"/>
|
||||
<!-- ko template: getTemplate() --><!-- /ko -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field">
|
||||
<label class="label"><span><?= $escaper->escapeHtml(__('Select Topic')) ?></span></label>
|
||||
<div data-bind="scope: 'customTopic'">
|
||||
<input name="topics_ids" data-bind="value: value" style="display: none"/>
|
||||
<!-- ko template: getTemplate() --><!-- /ko -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field">
|
||||
<label class="label"><span><?= $escaper->escapeHtml(__('Select Tag')) ?></span></label>
|
||||
<div data-bind="scope: 'customTag'">
|
||||
<input name="tags_ids" data-bind="value: value" style="display: none"/>
|
||||
<!-- ko template: getTemplate() --><!-- /ko -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field">
|
||||
<label for="allow_comment" class="label"><span><?= $escaper->escapeHtml(__('Allow Comment')) ?></span></label>
|
||||
<div class="control">
|
||||
<select id="allow_comment" name="allow_comment">
|
||||
<option value="0"><span><?= $escaper->escapeHtml(__('No')) ?></option>
|
||||
<option value="1"><span><?= $escaper->escapeHtml(__('Yes')) ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field mp-field">
|
||||
<label for="publish_date" class="label"><span><?= $escaper->escapeHtml(__('Publish Date')) ?></span></label>
|
||||
<div class="control">
|
||||
<input name="publish_date" id="publish_date" type="text" data-validate="{'datetime-validation':true}">
|
||||
<script>
|
||||
require([
|
||||
"jquery",
|
||||
"mage/calendar"
|
||||
], function($){
|
||||
$('#publish_date').datetimepicker({
|
||||
dateFormat:'yy-mm-dd',
|
||||
beforeShowDay: $.datepicker.noWeekends,
|
||||
}
|
||||
);
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
<?= $block->getChildHtml('field_additional') ?>
|
||||
</fieldset>
|
||||
<div class="actions-toolbar">
|
||||
<div class="primary">
|
||||
<button type="button" class="action submit primary mpblog-action-new"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Save')) ?>">
|
||||
<span><?= $escaper->escapeHtml(__('Save')) ?></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($block->checkTheme()) : ?>
|
||||
<style>
|
||||
.admin__action-multiselect-crumb .action-close:before {
|
||||
top: -6px;
|
||||
right: 8px;
|
||||
}
|
||||
.admin__action-multiselect-menu-inner-item._root .action-menu-item .admin__action-multiselect-label:before {
|
||||
content: '\f846';
|
||||
font-family: 'porto-icons';
|
||||
}
|
||||
.admin__action-multiselect-dropdown:before {
|
||||
content: '\f803';
|
||||
font-family: 'porto-icons';
|
||||
}
|
||||
.admin__action-multiselect-tree .action-menu-item._expended .admin__action-multiselect-dropdown:before {
|
||||
right: 5px;
|
||||
position: absolute;
|
||||
content: '\f800';
|
||||
font-family: 'porto-icons';
|
||||
}
|
||||
</style>
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
".mp-custom": {
|
||||
"Magento_Ui/js/core/app": {
|
||||
"components": {
|
||||
"customCategory": {
|
||||
"component": "Magento_Ui/js/form/element/ui-select",
|
||||
"template" : "Mageplaza_Blog/ui-select",
|
||||
"filterOptions": true,
|
||||
"levelsVisibility": "1",
|
||||
"multiple": true,
|
||||
"showCheckbox": true,
|
||||
"options": <?= /** @noEscape */ $block->getCategoriesTree()?>
|
||||
},
|
||||
"customTopic": {
|
||||
"component": "Magento_Ui/js/form/element/ui-select",
|
||||
"template" : "Mageplaza_Blog/ui-select",
|
||||
"filterOptions": true,
|
||||
"levelsVisibility": "1",
|
||||
"multiple": true,
|
||||
"showCheckbox": true,
|
||||
"options": <?= /** @noEscape */ $block->getTopicTree()?>
|
||||
},
|
||||
"customTag": {
|
||||
"component": "Magento_Ui/js/form/element/ui-select",
|
||||
"template" : "Mageplaza_Blog/ui-select",
|
||||
"filterOptions": true,
|
||||
"levelsVisibility": "1",
|
||||
"multiple": true,
|
||||
"showCheckbox": true,
|
||||
"options": <?= /** @noEscape */ $block->getTagTree()?>
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"*": {
|
||||
"Mageplaza_Blog/js/postAction": {
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,82 @@
|
||||
<?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\RelatedPost;
|
||||
use Mageplaza\Blog\Model\ResourceModel\Post\Collection;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Collection $posts */
|
||||
/** @var RelatedPost $block */
|
||||
/** @var Escaper $escaper */
|
||||
$posts = $block->getRelatedPostList();
|
||||
if ($posts && $block->isEnabledBlog()) : ?>
|
||||
<h2><?= $posts->getSize() ? $escaper->escapeHtml(__('Related Posts')) : $escaper->escapeHtml(__('No Related Posts')) ?></h2>
|
||||
<?php if ($block->getRelatedMode()) : ?>
|
||||
<div class="mp-blog-owl-carousel owl-carousel owl-theme">
|
||||
<?php foreach ($posts as $post) : ?>
|
||||
<div class="item post-list-item col-mp post-item-list mp-4">
|
||||
<div class="post-item-wraper">
|
||||
<div class="post-info-wraper">
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->resizeImage($post->getImage(), '400x')) ?>"
|
||||
alt="<?= $escaper->escapeHtml($post->getName()); ?>"/>
|
||||
</a>
|
||||
<h2 class="mp-post-title" style="margin: 20px 0;">
|
||||
<a class="post-link-title" title="<?= $escaper->escapeHtml($post->getName()); ?>"
|
||||
href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<?= $escaper->escapeHtml($post->getName()) ?>
|
||||
</a>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<script>
|
||||
require([
|
||||
'jquery',
|
||||
'owlCarousel'
|
||||
], function ($) {
|
||||
'use strict';
|
||||
$(document).ready(function () {
|
||||
$('.mp-blog-owl-carousel.owl-carousel').owlCarousel({
|
||||
items: 2,
|
||||
loop: false,
|
||||
margin: 10,
|
||||
responsive: {
|
||||
600: {
|
||||
items: 4
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php else : ?>
|
||||
<ul>
|
||||
<?php foreach ($posts as $post) : ?>
|
||||
<li>
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>"><?= $escaper->escapeHtml($post->getName()) ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,390 @@
|
||||
<?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 Magento\Framework\Escaper;
|
||||
use Mageplaza\Blog\Block\Post\View;
|
||||
use Mageplaza\Blog\Helper\Image;
|
||||
use Mageplaza\Blog\Model\Config\Source\Comments\Type;
|
||||
|
||||
/** @var Escaper $escaper */
|
||||
/** @var View $block */
|
||||
$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() : '';
|
||||
$isLogged = ($block->isLoggedIn()) ? 'Yes' : 'No';
|
||||
$color = $helper->getDisplayConfig('font_color');
|
||||
?>
|
||||
<div class="mp-blog-view">
|
||||
<!--div class="mp-blog-rss">
|
||||
<a href="<?= $escaper->escapeUrl($block->getRssUrl('post/rss')) ?>" class="bb-rss-icon">
|
||||
<img src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/rss.png')) ?>"
|
||||
width="16px">
|
||||
</a>
|
||||
</div-->
|
||||
<div class="mpcss post-view" id="mpblog-list-container">
|
||||
<div class="post-list-content col-md-12 col-sm-8">
|
||||
<div class="post-view-image col-xs-12">
|
||||
<?php if ($_post->getImage()) : ?>
|
||||
<img class="img-responsive" src="<?= $escaper->escapeUrl($block->getImageUrl($_post->getImage())) ?>"
|
||||
alt="<?= $escaper->escapeHtmlAttr($_post->getName()) ?>"/>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="post-post_content col-xs-12">
|
||||
<?= /** @noEscape */ $block->getPageFilter($_post->getPostContent() ?: '') ?>
|
||||
</div>
|
||||
<div class="mp-clear"></div>
|
||||
<?= $block->getChildHtml('mp_blog_post_info') ?>
|
||||
|
||||
<?= $block->getChildHtml('mp_blog_post_slider') ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($helper->isEnabledReview()) : ?>
|
||||
<div class="mp-blog-review-title">
|
||||
<span><?= $escaper->escapeHtml(__('Did you find it helpful?')) ?></span>
|
||||
</div>
|
||||
<div id="mp-blog-review">
|
||||
<div class="mp-blog-like">
|
||||
<i class="fa fa-thumbs-up" aria-hidden="true"></i>
|
||||
<span><?= $escaper->escapeHtml(__('LIKE')) ?></span>
|
||||
<span class="mp-blog-view">
|
||||
<?php if (!empty($block->getPostLike($_post->getId(), '1'))) : ?>
|
||||
(<?= $escaper->escapeHtml($block->getPostLike($_post->getId(), '1')) ?>)
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="mp-blog-dislike">
|
||||
<i class="fa fa-thumbs-down" aria-hidden="true"></i>
|
||||
<span><?= $escaper->escapeHtml(__('DISLIKE')) ?></span>
|
||||
<span class="mp-blog-view">
|
||||
<?php if (!empty($block->getPostLike($_post->getId(), '0'))) : ?>
|
||||
(<?= $escaper->escapeHtml($block->getPostLike($_post->getId(), '0')) ?>)
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mp-blog-review-label"></div>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"#mp-blog-review": {
|
||||
"Mageplaza_Blog/js/helpful-rate": {
|
||||
"url": "<?= /* @noEscape */ $block->getUrl('mpblog/post/review') ?>",
|
||||
"post_id" : <?= /* @noEscape */ $_post->getId() ?>,
|
||||
"mode": <?= /* @noEscape */ $helper->getReviewMode() ?>
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
<?php if ($helper->getBlogConfig('platforms/fb_platform/fb_share') || $helper->getBlogConfig('platforms/x_platform/x_share')) : ?>
|
||||
<div class="mp-clear"></div>
|
||||
<div class="mpcss">
|
||||
<div id="sharing">
|
||||
<div class="share-col-left">
|
||||
<h5><?= $escaper->escapeHtml(__('Share this post')) ?></h5>
|
||||
</div>
|
||||
<div class="share-col-right">
|
||||
<div class="post-sharing-button">
|
||||
<?php if ($helper->getBlogConfig('platforms/x_platform/x_share')) : ?>
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/twitter.png')) ?>"
|
||||
alt="Share on Twitter"
|
||||
onclick="window.open('https://twitter.com/share?text=&url=<?= /* @noEscape */
|
||||
$_post->getUrl() ?>','Twitter-dialog','width=626,height=436'); return false;"
|
||||
style="cursor: pointer;width: 43%;position: relative; left: 1rem"
|
||||
/>
|
||||
<?php endif; ?>
|
||||
<?php if ($helper->getBlogConfig('platforms/fb_platform/fb_share')) : ?>
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->getViewFileUrl('Mageplaza_Blog::media/images/facebook.png')) ?>"
|
||||
alt="Share on Facebook"
|
||||
onclick="window.open('https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent('<?= /* @noEscape */
|
||||
$_post->getUrl() ?>'),'facebook-share-dialog','width=626,height=436'); return false;"
|
||||
style="cursor: pointer;"
|
||||
/>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($authorName && $helper->showAuthorInfo()) :
|
||||
$block->resizeImage($author->getImage(), '135x', Image::TEMPLATE_MEDIA_TYPE_AUTH);
|
||||
?>
|
||||
<div class="block-blog-related about-admin">
|
||||
<h2><?= $escaper->escapeHtml(__('About the Author')) ?></h2>
|
||||
<div class="related-content-container">
|
||||
<div class="author-content-image">
|
||||
<img class="img-responsive"
|
||||
src="<?= /* @noEscape */ $author->getImage()
|
||||
? $block->resizeImage($author->getImage(), '135x', Image::TEMPLATE_MEDIA_TYPE_AUTH)
|
||||
: $block->getDefaultAuthorImage() ?>">
|
||||
</div>
|
||||
<div class="author-content-information">
|
||||
<div class="author-name"><?= /* @noEscape */ $authorName ?></div>
|
||||
<p class="author-description">
|
||||
<?= /* @noEscape */
|
||||
$author->getShortDescription() ? $block->getPageFilter($author->getShortDescription()) : '' ?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="mp-clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php $relatedPosts = $_post->getRelatedPostsCollection(); ?>
|
||||
<?php if ($relatedPosts && count($relatedPosts)) : ?>
|
||||
<div class="block-blog-related topic-list mpcss" style="width: 90%;">
|
||||
<h2><?= $escaper->escapeHtml(__('Related Posts')) ?></h2>
|
||||
<?php if ($block->getRelatedMode()) : ?>
|
||||
<div class="owl-carousel owl-theme">
|
||||
<?php foreach ($relatedPosts as $post) : ?>
|
||||
<div class="item post-list-item ">
|
||||
<div class="post-item-wraper">
|
||||
<div class="post-image">
|
||||
<?php if ($post->getImage()) : ?>
|
||||
<a href="<?= /* @noEscape */
|
||||
$post->getUrl() ?>">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->resizeImage($post->getImage(), '400x')) ?>"
|
||||
alt="<?= $escaper->escapeHtmlAttr($post->getName()) ?>"/>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="post-info-wraper">
|
||||
<h2 class="mp-post-title">
|
||||
<a class="post-link-title"
|
||||
title="<?= $escaper->escapeHtmlAttr($post->getName()) ?>"
|
||||
href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<?= $escaper->escapeHtml($post->getName()) ?>
|
||||
</a>
|
||||
</h2>
|
||||
<div class="mp-post-info">
|
||||
<?= /* @noEscape */ $block->getPostInfo($post); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<style>
|
||||
.item.post-list-item.col-mp {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
require([
|
||||
'jquery',
|
||||
'owlCarousel'
|
||||
], function ($) {
|
||||
'use strict';
|
||||
$(document).ready(function () {
|
||||
$(".owl-carousel").owlCarousel({
|
||||
items: 2,
|
||||
loop: false,
|
||||
margin: 10,
|
||||
responsive: {
|
||||
600: {
|
||||
items: 3
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php else : ?>
|
||||
<div class="related-content-container" style="display: flex; flex-wrap: wrap;">
|
||||
<?php foreach ($relatedPosts as $post) : ?>
|
||||
<div class="post-list-item col-mp mp-6 mp-lg-4 mp-md-6 mp-xs-12">
|
||||
<div class="post-item-wraper">
|
||||
<div class="post-image">
|
||||
<?php if ($post->getImage()) : ?>
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->resizeImage($post->getImage(), '400x')) ?>"
|
||||
alt="<?= $escaper->escapeHtmlAttr($post->getName()) ?>"/>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="post-info-wraper">
|
||||
<h2 class="mp-post-title">
|
||||
<a class="post-link-title"
|
||||
title="<?= $escaper->escapeHtmlAttr($post->getName()); ?>"
|
||||
href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<?= $escaper->escapeHtml($post->getName()) ?>
|
||||
</a>
|
||||
</h2>
|
||||
<div class="mp-post-info">
|
||||
<?= /* @noEscape */ $block->getPostInfo($post) ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<div class="mp-clear"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($helper->getBlogConfig('product_post/post_detail/enable_product')) : ?>
|
||||
<?php $relatedBlock = $block->getChildBlock('related_products'); ?>
|
||||
<?php if ($relatedBlock->hasProduct()) : ?>
|
||||
<div class="block-blog-related products-same-post page-products mpcss" style="width: 90%;">
|
||||
<h2><?= $helper->getBlogConfig('product_post/post_detail/title') ?: $escaper->escapeHtml(__('Related Products')) ?></h2>
|
||||
<div class="related-content-container">
|
||||
<?= $relatedBlock->toHtml(); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php $typeComment = $block->helperComment('type'); ?>
|
||||
<?php if (((int) $typeComment !== Type::DISABLE) && $_post->getAllowComment()) : ?>
|
||||
<div class="block-blog-related blog-comment">
|
||||
<h2><?= $escaper->escapeHtml(__('Comments')) ?></h2>
|
||||
<?php if ((int) $typeComment === Type::DISQUS) : ?>
|
||||
<div class="related-content-container box-collateral box-reviews" id="post-reviews">
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disShortName = '<?= /** @noEscape */ $block->helperComment('disqus'); ?>';
|
||||
|
||||
/* * * DON'T EDIT BELOW THIS LINE * * */
|
||||
(function () {
|
||||
var dsq = document.createElement('script');
|
||||
dsq.type = 'text/javascript';
|
||||
dsq.async = true;
|
||||
dsq.src = '//' + disShortName + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
<?php elseif ($typeComment == Type::FACEBOOK) : ?>
|
||||
<div class="related-content-container box-collateral box-reviews
|
||||
<?= /* @noEscape */ $helper->getBlogConfig('comment/facebook_colorscheme') ?>"
|
||||
id="post-reviews">
|
||||
<div id="fb-root"></div>
|
||||
<script>(function (d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s);
|
||||
js.id = id;
|
||||
js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v12.0&appId=<?=
|
||||
/* @noEscape */ $block->getDecrypt($block->helperComment('facebook_appid')) ?>";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
</script>
|
||||
<div class="fb-comments" data-href="<?= /* @noEscape */
|
||||
$_post->getUrl() ?>"
|
||||
data-numposts="<?= /* @noEscape */ $block->helperComment('facebook_number_comment') ?>"
|
||||
data-width="100%"
|
||||
data-colorscheme="<?= /* @noEscape */ $block->helperComment('facebook_colorscheme') ?>"
|
||||
data-order-by="<?= /* @noEscape */ $block->helperComment('facebook_order_by') ?>">
|
||||
</div>
|
||||
</div>
|
||||
<?php elseif ($typeComment == Type::DEFAULT_COMMENT) : ?>
|
||||
<div class="related-content-container container default-cmt">
|
||||
<?php if (!$block->isLoggedIn()) : ?>
|
||||
<div class="col-mp default-cmt__cmt-login">
|
||||
<button class="primary btn-primary default-cmt__cmt-login__btn-login">
|
||||
<?= $escaper->escapeHtml(__('Login')) ?>
|
||||
</button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="col-mp mp-12" style="float: left;">
|
||||
<div class="default-cmt__content">
|
||||
<div class="default-cmt__content__cmt-block">
|
||||
<?php if (!$block->isLoggedIn()) : ?>
|
||||
<form id="default-cmt__content__cmt-block__guest-form"
|
||||
data-mage-init='{"validation":{}}'>
|
||||
<div class="col-mp mp-6 default-cmt__content__cmt-block__guest-box">
|
||||
<label for="default-cmt__content__cmt-block__guest-box__name-input">Name
|
||||
*</label>
|
||||
<input id="default-cmt__content__cmt-block__guest-box__name-input"
|
||||
type="text"
|
||||
name="default-cmt__content__cmt-block__guest-box__name-input"
|
||||
placeholder="<?= $escaper->escapeHtmlAttr(__('Your display name')) ?>"
|
||||
data-validate="{required:true}">
|
||||
</div>
|
||||
<div class="col-mp mp-6 default-cmt__content__cmt-block__guest-box">
|
||||
<label for="default-cmt__content__cmt-block__guest-box__email-input">Email
|
||||
*</label>
|
||||
<input id="default-cmt__content__cmt-block__guest-box__email-input"
|
||||
type="text"
|
||||
name="default-cmt__content__cmt-block__guest-box__email-input"
|
||||
placeholder="<?= $escaper->escapeHtmlAttr(__('Your email')) ?> "
|
||||
data-validate="{required:true, 'validate-email':true}">
|
||||
</div>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
<div class="default-cmt__content__cmt-block__cmt-box">
|
||||
<div class="col-mp mp-12">
|
||||
<label for="mp-guest-cmt-commentbox">Comment</label>
|
||||
<textarea class="default-cmt__content__cmt-block__cmt-box__cmt-input"
|
||||
maxlength="255"
|
||||
placeholder="<?= $escaper->escapeHtmlAttr(__('Type comments here...')) ?>">
|
||||
|
||||
</textarea>
|
||||
</div>
|
||||
<div class="default-cmt__content__cmt-block__cmt-box__cmt-btn">
|
||||
<div class="default-cmt_loading" style="display: none">
|
||||
<img
|
||||
src="<?= $escaper->escapeUrl($block->getViewFileUrl('images/loader-1.gif')) ?>"
|
||||
alt="Loading...">
|
||||
</div>
|
||||
<button class="default-cmt__content__cmt-block__cmt-box__cmt-btn__btn-submit
|
||||
primary btn-primary">
|
||||
<?= $escaper->escapeHtml(__('Comment')) ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="default-cmt__content__cmt-content">
|
||||
<?php
|
||||
$comments = $block->getPostComments($_post->getId());
|
||||
$block->getCommentsTree($comments, 0);
|
||||
?>
|
||||
<?= $block->getCommentsHtml() ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//get login url, text of button like, reply
|
||||
var loginUrl = '<?= /* @noEscape */ $block->getLoginUrl(); ?>',
|
||||
like = '<?= /* @noEscape */ __('Like') ?>',
|
||||
reply = '<?= /* @noEscape */ __('Reply') ?>',
|
||||
isLogged = '<?= /* @noEscape */ $isLogged ?>',
|
||||
likedColor = '<?= /* @noEscape */ $color?>',
|
||||
messengerBox = {
|
||||
cmt_warning: '<?= /* @noEscape */ $block->getMessagesHtml('adderror', 'Please write the comment.')?>',
|
||||
exist_email_warning: '<?= /* @noEscape */$block->getMessagesHtml('adderror', 'This email is exist. Please <a href="' . $block->getLoginUrl() . '"> Login </a> as our customer.')?>',
|
||||
login_warning: '<?= /* @noEscape */ $block->getMessagesHtml('adderror', 'You are not logged in. Please <a href="' . $block->getLoginUrl() . '"> Login </a> or <a href="' . $block->getRegisterUrl() . '"> Signup </a> to like or send a reply.</div>')?>',
|
||||
comment_approve: '<?= /* @noEscape */ $block->getMessagesHtml('addsuccess', 'Your comment has been sent successfully. Please wait admin approve !')?>'
|
||||
};
|
||||
|
||||
require(['comment']);
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?= $block->getChildHtml('mp_blog_post_view_add') ?>
|
||||
</div>
|
||||
@@ -0,0 +1,292 @@
|
||||
<?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 Magento\Catalog\Block\Product\ReviewRendererInterface;
|
||||
use Magento\Catalog\Model\Product;
|
||||
use Magento\Framework\App\Action\Action;
|
||||
use Mageplaza\Blog\Block\Post\RelatedProduct;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var $block RelatedProduct */
|
||||
/** @var Escaper $escaper */
|
||||
$_productCollection = $block->getLoadedProductCollection();
|
||||
$_helper = $block->getHelper();
|
||||
?>
|
||||
<?php if (!$_productCollection->count()) : ?>
|
||||
<div class="message info empty">
|
||||
<div><?= $escaper->escapeHtml(__('We can\'t find products matching the selection.')) ?></div>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?= $block->getToolbarHtml() ?>
|
||||
<?= $block->getAdditionalHtml() ?>
|
||||
<?php
|
||||
if ($block->getMode() == 'grid') {
|
||||
$viewMode = 'grid';
|
||||
$imageDisplayArea = 'category_page_grid';
|
||||
$showDescription = false;
|
||||
$templateType = ReviewRendererInterface::SHORT_VIEW;
|
||||
} else {
|
||||
$viewMode = 'list';
|
||||
$imageDisplayArea = 'category_page_list';
|
||||
$showDescription = true;
|
||||
$templateType = ReviewRendererInterface::FULL_VIEW;
|
||||
}
|
||||
/**
|
||||
* Position for actions regarding image size changing in vde if needed
|
||||
*/
|
||||
$pos = $block->getPositioned();
|
||||
?>
|
||||
<div class="products wrapper <?= /* @noEscape */ $viewMode ?> products-<?= /* @noEscape */ $viewMode ?>">
|
||||
<?php if ($block->relatedMode() !== '1') : ?>
|
||||
<ol class="products list items product-items">
|
||||
<?php /** @var Product $_product */ ?>
|
||||
<?php foreach ($_productCollection as $_product) : ?>
|
||||
<li class="item product product-item">
|
||||
<div class="product-item-info" data-container="product-<?= /* @noEscape */ $viewMode ?>">
|
||||
<?php
|
||||
$productImage = $block->getImage($_product, $imageDisplayArea);
|
||||
if ($pos != null) {
|
||||
$position = ' style="left:' . $productImage->getWidth() . 'px;'
|
||||
. 'top:' . $productImage->getHeight() . 'px;"';
|
||||
}
|
||||
?>
|
||||
<?php // Product Image ?>
|
||||
<a href="<?= $escaper->escapeUrl($block->getParentProductUrl($_product)) ?>"
|
||||
class="product photo product-item-photo"
|
||||
tabindex="-1">
|
||||
<?= $productImage->toHtml() ?>
|
||||
</a>
|
||||
<div class="product details product-item-details">
|
||||
<?php
|
||||
$_productNameStripped = $block->stripTags($_product->getName(), null, true);
|
||||
?>
|
||||
<strong class="product name product-item-name">
|
||||
<a class="product-item-link"
|
||||
href="<?= $escaper->escapeUrl($block->getParentProductUrl($_product)) ?>">
|
||||
<?= /* @noEscape */ $_helper->productAttribute($_product, $_product->getName(), 'name') ?>
|
||||
</a>
|
||||
</strong>
|
||||
<?= $block->getReviewsSummaryHtml($_product, $templateType) ?>
|
||||
<?= /* @noEscape */ $block->getProductPrice($_product) ?>
|
||||
<?= $block->getProductDetailsHtml($_product) ?>
|
||||
<div class="product-item-inner">
|
||||
<div class="product actions product-item-actions"
|
||||
<?= strpos((string) $pos, $viewMode . '-actions')
|
||||
? $escaper->escapeHtmlAttr($position) : '' ?>>
|
||||
<div class="actions-primary"
|
||||
<?= strpos((string) $pos, $viewMode . '-primary')
|
||||
? $escaper->escapeHtmlAttr($position) : '' ?>>
|
||||
<?php if ($_product->isSaleable()) : ?>
|
||||
<?php $postParams = $block->getAddToCartPostParams($_product); ?>
|
||||
<form data-role="tocart-form"
|
||||
data-product-sku="<?= $escaper->escapeHtml($_product->getSku()) ?>"
|
||||
action="<?= $escaper->escapeUrl($postParams['action']) ?>"
|
||||
method="post">
|
||||
<input type="hidden" name="product"
|
||||
value="<?=/* @noEscape */ $postParams['data']['product'] ?>">
|
||||
<input type="hidden" name="<?= /* @noEscape */
|
||||
Action::PARAM_NAME_URL_ENCODED ?>"
|
||||
value="<?= /* @noEscape */ $postParams['data'][Action::PARAM_NAME_URL_ENCODED] ?>">
|
||||
<?= $block->getBlockHtml('formkey') ?>
|
||||
<button type="submit"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Add to Cart')) ?>"
|
||||
class="action tocart primary">
|
||||
<span><?= $escaper->escapeHtml(__('Add to Cart')) ?></span>
|
||||
</button>
|
||||
</form>
|
||||
<?php else : ?>
|
||||
<?php if ($_product->isAvailable()) : ?>
|
||||
<div class="stock available">
|
||||
<span><?= $escaper->escapeHtml(__('In stock')) ?></span></div>
|
||||
<?php else : ?>
|
||||
<div class="stock unavailable">
|
||||
<span><?= $escaper->escapeHtml(__('Out of stock')) ?></span></div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div data-role="add-to-links" class="actions-secondary"
|
||||
<?= strpos((string) $pos, $viewMode . '-secondary')
|
||||
? $escaper->escapeHtmlAttr($position) : '' ?>>
|
||||
<?php if ($addToBlock = $block->getChildBlock('addto')) : ?>
|
||||
<?= $addToBlock->setProduct($_product)->getChildHtml() ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($showDescription) : ?>
|
||||
<div class="product description product-item-description">
|
||||
<?= /* @noEscape */ $_helper->productAttribute(
|
||||
$_product,
|
||||
$_product->getShortDescription(),
|
||||
'short_description'
|
||||
) ?>
|
||||
<a href="<?= $escaper->escapeUrl($block->getParentProductUrl($_product)) ?>"
|
||||
title="<?= /* @noEscape */ $_productNameStripped ?>"
|
||||
class="action more"><?= $escaper->escapeHtml(__('Learn More')) ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
<?php else : ?>
|
||||
<div class="owl-carousel owl-theme">
|
||||
<?php /** @var $_product Product */ ?>
|
||||
<?php foreach ($_productCollection as $_product) : ?>
|
||||
<div class="item product product-item mp-blog-slider-item">
|
||||
<div class="product-item-info" data-container="product-<?= /* @noEscape */ $viewMode ?>">
|
||||
<?php
|
||||
$productImage = $block->getImage($_product, $imageDisplayArea);
|
||||
if ($pos != null) {
|
||||
$position = ' style="left:' . $productImage->getWidth() . 'px;'
|
||||
. 'top:' . $productImage->getHeight() . 'px;"';
|
||||
}
|
||||
?>
|
||||
<?php // Product Image ?>
|
||||
<a href="<?= $escaper->escapeUrl($block->getParentProductUrl($_product)) ?>"
|
||||
class="product photo product-item-photo"
|
||||
tabindex="-1">
|
||||
<?= $productImage->toHtml() ?>
|
||||
</a>
|
||||
<div class="product details product-item-details">
|
||||
<?php
|
||||
$_productNameStripped = $block->stripTags($_product->getName(), null, true);
|
||||
?>
|
||||
<strong class="product name product-item-name">
|
||||
<a class="product-item-link"
|
||||
href="<?= $escaper->escapeUrl($block->getParentProductUrl($_product)) ?>">
|
||||
<?= /* @noEscape */
|
||||
$_helper->productAttribute($_product, $_product->getName(), 'name') ?>
|
||||
</a>
|
||||
</strong>
|
||||
<?= $block->getReviewsSummaryHtml($_product, $templateType) ?>
|
||||
<?= /* @noEscape */ $block->getProductPrice($_product) ?>
|
||||
<?= $block->getProductDetailsHtml($_product) ?>
|
||||
<div class="product-item-inner">
|
||||
<div class="product actions product-item-actions"
|
||||
<?= strpos((string) $pos, $viewMode . '-actions')
|
||||
? $escaper->escapeHtmlAttr($position) : '' ?>>
|
||||
<div class="actions-primary"
|
||||
<?= strpos((string) $pos, $viewMode . '-primary')
|
||||
? $escaper->escapeHtmlAttr($position) : '' ?>>
|
||||
<?php if ($_product->isSaleable()) : ?>
|
||||
<?php $postParams = $block->getAddToCartPostParams($_product); ?>
|
||||
<form data-role="tocart-form"
|
||||
data-product-sku="<?= $escaper->escapeHtml($_product->getSku()) ?>"
|
||||
action="<?= $escaper->escapeUrl($postParams['action']) ?>"
|
||||
method="post">
|
||||
<input type="hidden"
|
||||
name="product"
|
||||
value="<?= /* @noEscape */ $postParams['data']['product'] ?>">
|
||||
<input type="hidden" name="<?= /* @noEscape */
|
||||
Action::PARAM_NAME_URL_ENCODED ?>"
|
||||
value="<?= /* @noEscape */ $postParams['data'][Action::PARAM_NAME_URL_ENCODED] ?>">
|
||||
<?= $block->getBlockHtml('formkey') ?>
|
||||
<button type="submit"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Add to Cart')) ?>"
|
||||
class="action tocart primary">
|
||||
<span><?= $escaper->escapeHtml(__('Add to Cart')) ?></span>
|
||||
</button>
|
||||
</form>
|
||||
<?php else : ?>
|
||||
<?php if ($_product->isAvailable()) : ?>
|
||||
<div class="stock available">
|
||||
<span><?= $escaper->escapeHtml(__('In stock')) ?></span></div>
|
||||
<?php else : ?>
|
||||
<div class="stock unavailable">
|
||||
<span><?= $escaper->escapeHtml(__('Out of stock')) ?></span></div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div data-role="add-to-links" class="actions-secondary"
|
||||
<?= strpos((string) $pos, $viewMode . '-secondary')
|
||||
? $escaper->escapeHtmlAttr($position) : '' ?>>
|
||||
<?php if ($addToBlock = $block->getChildBlock('addto')) : ?>
|
||||
<?= $addToBlock->setProduct($_product)->getChildHtml() ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($showDescription) : ?>
|
||||
<div class="product description product-item-description">
|
||||
<?= /* @noEscape */ $_helper->productAttribute(
|
||||
$_product,
|
||||
$_product->getShortDescription(),
|
||||
'short_description'
|
||||
) ?>
|
||||
<a href="<?= $escaper->escapeUrl($block->getParentProductUrl($_product)) ?>"
|
||||
title="<?= /* @noEscape */ $_productNameStripped ?>"
|
||||
class="action more"><?= $escaper->escapeHtml(__('Learn More')) ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<style>
|
||||
.item.product.product-item.mp-blog-slider-item {
|
||||
width: 85%;
|
||||
text-align: center;
|
||||
height: 450px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.owl-stage-outer {
|
||||
padding-left: 5px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
require([
|
||||
'jquery',
|
||||
'owlCarousel'
|
||||
], function ($) {
|
||||
'use strict';
|
||||
$(document).ready(function () {
|
||||
$(".owl-carousel").owlCarousel({
|
||||
items: 4,
|
||||
loop: false,
|
||||
margin: 10,
|
||||
responsive: {
|
||||
600: {
|
||||
items: 4
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?= $block->getToolbarHtml() ?>
|
||||
<?php if (!$block->isRedirectToCartEnabled()) : ?>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"[data-role=tocart-form], .form.map.checkout": {
|
||||
"catalogAddToCart": {
|
||||
"product_sku": "<?= $escaper->escapeJs($_product->getSku()) ?>"
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,114 @@
|
||||
<?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\Sidebar\MostView;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var MostView $block */
|
||||
/** @var Escaper $escaper */
|
||||
$posts = $block->getMostViewPosts();
|
||||
$postsRecent = $block->getRecentPost();
|
||||
?>
|
||||
<div class="mp-sidebar product info detailed">
|
||||
<div class="product data items" data-mage-init='{"tabs":{"openedState":"active"}}'>
|
||||
<div class="data item title" data-role="collapsible" id="tab-label-popular">
|
||||
<a class="data switch" tabindex="-1" data-toggle="switch" id="tab-label-popular-title">
|
||||
<div><?= $escaper->escapeHtml(__('Popular')) ?></div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="data item content" id="tab-content-popular" data-role="content">
|
||||
<?php if ($posts->getSize()) : ?>
|
||||
<?php foreach ($posts as $post) : ?>
|
||||
<div class="list-post-tabs">
|
||||
<div class="post-left">
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->resizeImage($post->getImage(), '100x')) ?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="post-right">
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<span><?= $escaper->escapeHtml($post->getName()) ?></span>
|
||||
</a>
|
||||
<span class="create-at">
|
||||
<?= $post->getPublishDate()
|
||||
? $escaper->escapeHtml($block->getDateFormat($post->getPublishDate())) : '' ?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="mp-clear"></div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php else : ?>
|
||||
<div class="mostview-nopost"><?= $escaper->escapeHtml(__('No Posts')) ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="data item title" data-role="collapsible" id="tab-label-mostview">
|
||||
<a class="data switch" tabindex="-1" data-toggle="switch" id="tab-label-mostview-title">
|
||||
<div><?= $escaper->escapeHtml(__('Latest')) ?></div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="data item content" id="tab-content-mostview" data-role="content">
|
||||
<?php if ($postsRecent->getSize()) : ?>
|
||||
<?php foreach ($postsRecent as $post) : ?>
|
||||
<div class="list-post-tabs" href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<div class="post-left">
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<img class="img-responsive"
|
||||
src="<?= $escaper->escapeUrl($block->resizeImage($post->getImage(), '100x')) ?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="post-right">
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<span><?= $escaper->escapeHtml($post->getName()) ?></span>
|
||||
</a>
|
||||
<span class="create-at">
|
||||
<?= $post->getPublishDate()
|
||||
? $escaper->escapeHtml($block->getDateFormat($post->getPublishDate())) : '' ?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="mp-clear"></div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php else : ?>
|
||||
<div class="mostview-nopost"><?= $escaper->escapeHtml(__('No Posts')) ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
require([
|
||||
'jquery'
|
||||
], function ($) {
|
||||
$("#popular-tab").click(function () {
|
||||
$("#tab-1").addClass('active');
|
||||
$("#tab-2").removeClass('active');
|
||||
$('#mostview').show();
|
||||
$('#mostrecent').hide();
|
||||
});
|
||||
$("#recent-tab").click(function () {
|
||||
$("#tab-1").removeClass('active');
|
||||
$("#tab-2").addClass('active');
|
||||
$('#mostview').hide();
|
||||
$('#mostrecent').show();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,89 @@
|
||||
<?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\Sidebar\Search;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Search $block */
|
||||
/** @var Escaper $escaper */
|
||||
?>
|
||||
<style>
|
||||
.sidebar.sidebar-main:before {
|
||||
content: unset;
|
||||
}
|
||||
</style>
|
||||
<div class="mpblog-search">
|
||||
<div class="field search">
|
||||
<label class="label" for="mpblog-search-box" data-role="minisearch-label">
|
||||
<span><?= $escaper->escapeHtml(__('Search')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input id="mpblog-search-box"
|
||||
type="text"
|
||||
name="query"
|
||||
value="<?= $escaper->escapeHtmlAttr($block->getRequest()->getParam('query')) ?>"
|
||||
placeholder="<?= $escaper->escapeHtmlAttr(__('Search blogs here...')) ?>"
|
||||
class="input-text"
|
||||
role="combobox"
|
||||
aria-haspopup="false"
|
||||
aria-autocomplete="both"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<button type="submit" title="<?= $escaper->escapeHtmlAttr(__('Search')) ?>" class="action search">
|
||||
<i class="fa fa-search" aria-hidden="true" style="font-size: 16px;margin-top: 5px;"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
require(['jquery', 'mpDevbridgeAutocomplete'], function ($) {
|
||||
var visibleImage = <?= /** @noEscape */ $block->getSidebarConfig('search/show_image') ?>;
|
||||
|
||||
$('#mpblog-search-box').autocomplete({
|
||||
lookup: <?= /** @noEscape */ $block->getSearchBlogData() ?>,
|
||||
lookupLimit: <?= $block->getSidebarConfig('search/search_limit') ?: 10; ?>,
|
||||
maxHeight: 2000,
|
||||
minChars: <?= $block->getSidebarConfig('search/min_chars') ?: 1; ?>,
|
||||
autoSelectFirst: true,
|
||||
showNoSuggestionNotice: true,
|
||||
triggerSelectOnValidInput: false,
|
||||
onSelect: function (suggestion) {
|
||||
window.location.href = suggestion.url;
|
||||
},
|
||||
formatResult: function (suggestion, currentValue) {
|
||||
var additionClass = '',
|
||||
html = "<div class='mpblog-suggestion'>";
|
||||
|
||||
if (visibleImage) {
|
||||
html += "<div class='mpblog-suggestion-left'><img class='img-responsive' src='" + suggestion.image + "' /></div>";
|
||||
additionClass = 'image-visible';
|
||||
}
|
||||
|
||||
html += "<div class='mpblog-suggestion-right " + additionClass + "'>" +
|
||||
"<div class='mpblog-product-line mpblog-product-name'>" + suggestion.value + "</div>" +
|
||||
"<div class='mpblog-product-des'><p class='mpblog-short-des'>" + suggestion.desc + "</p></div></div></div>";
|
||||
|
||||
return html;
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,46 @@
|
||||
<?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\Tag\Widget;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Widget $block */
|
||||
/** @var Escaper $escaper */
|
||||
$tags = $block->getTagList();
|
||||
|
||||
if ($tags && $tags->getSize()) : ?>
|
||||
<div class="mp-sidebar mpcss">
|
||||
<div class="row">
|
||||
<div class="block-title col-xs-12 sidebar-tags">
|
||||
<p class="block-mp-sidebar-heading" role="heading" aria-level="2"><?= $escaper->escapeHtml(__('Tags')) ?></p>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<?php foreach ($tags as $tag) : ?>
|
||||
<a class="label label-default tags-list"
|
||||
style="font-size:<?= $escaper->escapeHtmlAttr($block->getTagSize($tag)) . 'px'; ?>"
|
||||
href="<?= $escaper->escapeUrl($block->getTagUrl($tag)) ?>">
|
||||
<?= $escaper->escapeHtml($tag->getName()) ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?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\Topic\Widget;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Widget $block */
|
||||
/** @var Escaper $escaper */
|
||||
$topics = $block->getTopicList();
|
||||
if ($topics && $topics->getSize()) : ?>
|
||||
<div class="mp-sidebar mpcss">
|
||||
<div class="row">
|
||||
<div class="block-title col-xs-12 sidebar-categories">
|
||||
<p class="block-mp-sidebar-heading" role="heading" aria-level="2"><?= $escaper->escapeHtml(__('Topics')) ?></p>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<ul class="block-content menu-categories">
|
||||
<?php foreach ($topics as $topic) : ?>
|
||||
<li class="category-item">
|
||||
<a class="list-categories" href="<?= $escaper->escapeUrl($block->getTopicUrl($topic)) ?>">
|
||||
<i class="fa fa-folder-o" aria-hidden="true"> </i>
|
||||
<?= $escaper->escapeHtml(ucfirst($topic->getName())) ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,74 @@
|
||||
<?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\Widget\Posts;
|
||||
use Magento\Framework\Escaper;
|
||||
|
||||
/** @var Posts $block */
|
||||
/** @var Escaper $escaper */
|
||||
$posts = $block->getCollection();
|
||||
?>
|
||||
<div class="blog-widget-title"><a></a></div>
|
||||
<div class="post-list-container mpcss" id="mpblog-list-container">
|
||||
<div class="widget-title">
|
||||
<a href="<?= $escaper->escapeUrl($block->getBlogUrl('')) ?>"><?= $escaper->escapeHtml($block->getTitle()) ?></a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<?php foreach ($posts as $post) : ?>
|
||||
<div class="post-list-item" style="margin-left: 5px">
|
||||
<div class="post-item-wraper">
|
||||
<?php if ($post->getImage()) : ?>
|
||||
<div class="post-image">
|
||||
<a href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<img class="img-responsive" style="height: 220px"
|
||||
src="<?= $escaper->escapeUrl($block->resizeImage($post->getImage(), '400x')) ?>"
|
||||
alt="<?= $escaper->escapeHtml($post->getName()); ?>"/>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="post-info-wraper">
|
||||
<h2 class="mp-post-title" style="font-size: 22px">
|
||||
<a class="post-link-title" title="<?= $escaper->escapeHtmlAttr($post->getName()) ?>"
|
||||
href="<?= $escaper->escapeUrl($post->getUrl()) ?>">
|
||||
<?= $escaper->escapeHtml($post->getName()) ?>
|
||||
</a>
|
||||
</h2>
|
||||
<div class="mp-post-info">
|
||||
<?= /** @noEscape */ $block->getPostInfo($post) ?>
|
||||
</div>
|
||||
<div class="post-short-description">
|
||||
<p><?= /** @noEscape */ $post->getShortDescription() ?></p>
|
||||
</div>
|
||||
<div class="mp-clearfix"></div>
|
||||
<div class="mp-post-meta-info mp-alignright">
|
||||
<div class="actions">
|
||||
<a class="mp-read-more" href="<?= $escaper->escapeUrl($post->getUrl()) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Read More')) ?>">
|
||||
<?= $escaper->escapeHtml(__('Read more')) ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
+715
@@ -0,0 +1,715 @@
|
||||
|
||||
|
||||
.mp-blog-view a,
|
||||
.mp-sidebar a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.mp-blog-rss {
|
||||
text-align: right;
|
||||
}
|
||||
.mp-blog-rss > a {
|
||||
display: inline-block;
|
||||
}
|
||||
.mp-post-info {
|
||||
color: #999999;
|
||||
font-size: 10px;
|
||||
line-height: 30px;
|
||||
margin: 0;
|
||||
}
|
||||
.mp-post-info span {
|
||||
color: #6f6f6f;
|
||||
}
|
||||
.post-item-wraper {
|
||||
border: 1px solid #eee;
|
||||
}
|
||||
.post-item-wraper:hover {
|
||||
border: 1px solid #eee;
|
||||
box-shadow: 3px 3px 4px 0 rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
.post-info-wraper {
|
||||
padding: 20px 15px 10px 15px;
|
||||
}
|
||||
.post-list-item {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.post-short-description {
|
||||
max-width: 100%;
|
||||
}
|
||||
.post-short-description p {
|
||||
max-width: 100%;
|
||||
color: #666;
|
||||
}
|
||||
.post-post_content {
|
||||
margin: 10px 0 10px 0;
|
||||
font-size: 15px;
|
||||
color: #666;
|
||||
}
|
||||
.post-post_content img,.post-post_content video,.post-post_content iframe{
|
||||
text-align: center;
|
||||
display: block;
|
||||
margin: 20px auto;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.post-sharing-button {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
#sharing {
|
||||
padding: 20px 30px;
|
||||
background: #f6f6f6;
|
||||
margin-top: 40px;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
#sharing .share-col-left {
|
||||
float: left;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
}
|
||||
.about-admin h4.admin-title {
|
||||
width: 215px;
|
||||
float: left;
|
||||
}
|
||||
.block-blog-related {
|
||||
margin-top: 35px;
|
||||
}
|
||||
.block-blog-related .related-content-container {
|
||||
padding: 0 10px;
|
||||
}
|
||||
.block-blog-related .related-content-container .author-content-image {
|
||||
float: left;
|
||||
width: 135px;
|
||||
}
|
||||
.block-blog-related .related-content-container .author-content-information {
|
||||
float: left;
|
||||
padding-left: 20px;
|
||||
width: calc(100% - 155px);
|
||||
}
|
||||
.block-blog-related .related-content-container .author-content-information .author-name {
|
||||
font-size: 20px;
|
||||
}
|
||||
#post-reviews {
|
||||
margin-top: 50px;
|
||||
}
|
||||
a.mp-relate-link {
|
||||
background: #f55567;
|
||||
color: #0a0a0a;
|
||||
}
|
||||
a.mp-relate-link img.img-responsive {
|
||||
margin: 0 auto;
|
||||
height: 200px;
|
||||
display: block;
|
||||
}
|
||||
.menu-archives {
|
||||
list-style: none;
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
.author-image {
|
||||
text-align: center;
|
||||
}
|
||||
.author-image img.img-responsive {
|
||||
border: none;
|
||||
padding-right: 7px;
|
||||
padding-left: 7px;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.tab-content {
|
||||
border: 1px solid #ddd;
|
||||
border-top: none;
|
||||
}
|
||||
.pager {
|
||||
text-align: center;
|
||||
}
|
||||
.pager span.toolbar-number {
|
||||
display: none;
|
||||
}
|
||||
.block-title p {
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
}
|
||||
.mp-sidebar {
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.mp-sidebar .block-content {
|
||||
padding-left: 10px;
|
||||
}
|
||||
.mp-sidebar .data.item.title {
|
||||
cursor: pointer;
|
||||
}
|
||||
.mp-sidebar .product.data.items > .item.content {
|
||||
padding: 20px 0 20px 10px !important;
|
||||
}
|
||||
.sidebar-tags {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
a.label.label-default.tags-list {
|
||||
background: #fff;
|
||||
border: 1px solid #bbb;
|
||||
color: inherit;
|
||||
font-weight: normal;
|
||||
font-size: 100%;
|
||||
border-radius: 1px;
|
||||
display: inline-block;
|
||||
margin-bottom: 5px;
|
||||
padding: 10px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
ul.menu-categories li.category-item {
|
||||
list-style: none;
|
||||
}
|
||||
ul.menu-categories .category-level3 {
|
||||
display: none;
|
||||
padding-left: 15px;
|
||||
}
|
||||
ul.menu-categories .category-level4 {
|
||||
display: none;
|
||||
padding-left: 30px;
|
||||
}
|
||||
ul.menu-categories a.list-categories {
|
||||
color: inherit;
|
||||
margin-left: 8px;
|
||||
}
|
||||
ul.menu-categories i {
|
||||
cursor: pointer;
|
||||
}
|
||||
h2.list-title {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.list-post-tabs {
|
||||
padding: 5px 10px 5px 0;
|
||||
}
|
||||
.list-post-tabs:hover {
|
||||
background-color: #eee;
|
||||
}
|
||||
.list-post-tabs .post-left {
|
||||
float: left;
|
||||
width: 25%;
|
||||
}
|
||||
.list-post-tabs .post-right {
|
||||
float: left;
|
||||
width: 75%;
|
||||
padding-left: 10px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.list-post-tabs .post-right span {
|
||||
font-size: 14px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
display: block;
|
||||
}
|
||||
.list-post-tabs .post-right span.create-at {
|
||||
font-size: 12px;
|
||||
}
|
||||
.tab-pane.fade {
|
||||
border-left: 1px solid #ddd;
|
||||
border-right: 1px solid #ddd;
|
||||
border-bottom: 1px solid #ddd;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.fa.fa-angle-right {
|
||||
font-size: larger;
|
||||
}
|
||||
.sidebar .mpblog-search {
|
||||
float: none !important;
|
||||
padding: 0 !important;
|
||||
margin-bottom: 15px !important;
|
||||
width: 100%;
|
||||
}
|
||||
.autocomplete-suggestions {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #ddd;
|
||||
background: #FFF;
|
||||
cursor: default;
|
||||
overflow: auto;
|
||||
-webkit-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64);
|
||||
-moz-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64);
|
||||
box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64);
|
||||
border-top: 0;
|
||||
padding: 10px 0;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.autocomplete-suggestions strong {
|
||||
font-weight: bold;
|
||||
color: #000;
|
||||
}
|
||||
.autocomplete-suggestion {
|
||||
padding: 2px 5px;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
.autocomplete-suggestion:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.autocomplete-suggestion .mpblog-suggestion {
|
||||
display: block;
|
||||
}
|
||||
.autocomplete-suggestion .mpblog-suggestion:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
line-height: 0;
|
||||
height: 0;
|
||||
}
|
||||
.autocomplete-suggestion .mpblog-suggestion .mpblog-suggestion-left,
|
||||
.autocomplete-suggestion .mpblog-suggestion .mpblog-suggestion-right {
|
||||
float: left;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
.autocomplete-suggestion .mpblog-suggestion .mpblog-suggestion-left {
|
||||
max-width: 25%;
|
||||
}
|
||||
.autocomplete-suggestion .mpblog-suggestion .mpblog-suggestion-right.image-visible {
|
||||
max-width: calc(75% - 40px);
|
||||
}
|
||||
.autocomplete-no-suggestion {
|
||||
padding: 2px 5px;
|
||||
}
|
||||
.autocomplete-selected {
|
||||
background: #F0F0F0;
|
||||
}
|
||||
.autocomplete-group {
|
||||
padding: 2px 5px;
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
color: #000;
|
||||
display: block;
|
||||
border-bottom: 1px solid #000;
|
||||
}
|
||||
.mpblog-product-des {
|
||||
color: #333333;
|
||||
}
|
||||
.mpblog-product-des p {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
}
|
||||
.mpblog-search {
|
||||
position: relative;
|
||||
}
|
||||
.mpblog-search button.action.search {
|
||||
display: inline-block;
|
||||
background: none !important;
|
||||
-moz-box-sizing: content-box;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
line-height: inherit;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-shadow: none;
|
||||
font-weight: 400;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 2px;
|
||||
z-index: 1;
|
||||
}
|
||||
.mpblog-search button.action.search :before {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
color: #8f8f8f;
|
||||
}
|
||||
.mpblog-search button.action.search span {
|
||||
border: 0;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
}
|
||||
.mpblog-search label[for="mpblog-search-box"] {
|
||||
display: none;
|
||||
}
|
||||
/* style comment */
|
||||
textarea.default-cmt__content__cmt-block__cmt-box__cmt-input {
|
||||
overflow: hidden !important;
|
||||
resize: none;
|
||||
min-height: 80px;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.default-cmt__content__cmt-block__guest-box {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.show-cmt__cmt-row.is-reply {
|
||||
padding-left: 50px !important;
|
||||
}
|
||||
.default-cmt__content__cmt-block__cmt-box__cmt-btn {
|
||||
float: right;
|
||||
}
|
||||
.default-cmt__content__cmt-block__cmt-box__cmt-btn .default-cmt_loading {
|
||||
display: inline-block;
|
||||
width: 20px;
|
||||
vertical-align: middle;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.cmt-row__reply-row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.default-cmt__cmt-login {
|
||||
float: right;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
div.default-cmt__content__cmt-content {
|
||||
width: 100%;
|
||||
margin-top: 50px;
|
||||
float: left;
|
||||
}
|
||||
ul.default-cmt__content__cmt-content {
|
||||
list-style: none !important;
|
||||
}
|
||||
.cmt-row__cmt-content {
|
||||
font-size: 13px;
|
||||
}
|
||||
.cmt-row__cmt-interactions {
|
||||
font-size: 13px;
|
||||
}
|
||||
.cmt-row__cmt-content p {
|
||||
margin: 3px 0 !important;
|
||||
}
|
||||
.interactions__btn-actions {
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
}
|
||||
a.interactions__btn-actions.action {
|
||||
cursor: pointer;
|
||||
}
|
||||
.interactions__cmt-createdat {
|
||||
display: inline-block;
|
||||
color: #999;
|
||||
font-size: 13px;
|
||||
}
|
||||
.cmt-row.reply-row {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
.reply-form__form-input {
|
||||
margin-bottom: 0 !important;
|
||||
position: relative;
|
||||
}
|
||||
.reply-form__form-input .default-cmt_loading {
|
||||
width: 20px;
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
}
|
||||
.default-cmt__content__cmt-row.reply-row {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
li.default-cmt__content__cmt-content__cmt-row.cmt-row.reply-row {
|
||||
margin-top: 5px;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
li.default-cmt__content__cmt-content__cmt-row.cmt-row {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 15px;
|
||||
padding-bottom: 5px;
|
||||
border-top: 1px solid #f5f5f5;
|
||||
}
|
||||
.default-cmt__content__cmt-content ul:first-child {
|
||||
padding-left: 5px !important;
|
||||
}
|
||||
/* end style comment */
|
||||
.widget-title {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.author-social img.img-responsive {
|
||||
float: left;
|
||||
margin-top: 15px;
|
||||
margin-left: 15px;
|
||||
height: 25px;
|
||||
width: 25px;
|
||||
}
|
||||
.share-col-right {
|
||||
display: inline-block;
|
||||
|
||||
}
|
||||
/*post view css*/
|
||||
.page-layout-1column .column.main {
|
||||
width: 100% !important;
|
||||
}
|
||||
/* Footer Copyright */
|
||||
.mp-footer {
|
||||
margin-top: 50px;
|
||||
font-size: 8px !important;
|
||||
display: block;
|
||||
clear: both;
|
||||
float: right;
|
||||
text-transform: inherit;
|
||||
}
|
||||
.mp-footer h3 {
|
||||
margin-top: 50px;
|
||||
font-size: 8px !important;
|
||||
display: block;
|
||||
clear: both;
|
||||
float: right;
|
||||
text-transform: inherit;
|
||||
}
|
||||
.mp-footer-links-light {
|
||||
color: #E8E8E8 !important;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
.mp-footer-links-light a {
|
||||
color: #E8E8E8 !important;
|
||||
}
|
||||
.post-image {
|
||||
min-height: 250px;
|
||||
position: relative;
|
||||
}
|
||||
.post-image img.img-responsive {
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
border: none;
|
||||
}
|
||||
.mpblog-post-view{
|
||||
margin-left: 40px;
|
||||
}
|
||||
.mpblog-post-view .sidebar-additional{
|
||||
display: none;
|
||||
}
|
||||
.mpblog-post-view .post-view-image {
|
||||
text-align: center;
|
||||
display: none;
|
||||
}
|
||||
.post-item-wraper {
|
||||
padding: 10px !important;
|
||||
}
|
||||
@media only screen and (min-width: 600px) {
|
||||
.post-item-list .post-image {
|
||||
min-width: 250px;
|
||||
display: table-cell;
|
||||
}
|
||||
.post-item-list .post-info-wraper {
|
||||
display: table-cell;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
.post-info-wraper {
|
||||
display: table-cell;
|
||||
vertical-align: top;
|
||||
}
|
||||
.post-info-wraper h2.mp-post-title {
|
||||
margin-top: 0;
|
||||
font-size: 20px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.post-list-content .limiter {
|
||||
display: block !important;
|
||||
}
|
||||
/** Yourstore theme */
|
||||
.mpblog-etheme-yourstore .post-list-container,
|
||||
.mpblog-etheme-yourstore .post-view,
|
||||
.mpblog-etheme-yourstore .mp-blog-rss {
|
||||
width: 85%;
|
||||
margin: auto;
|
||||
}
|
||||
.mpblog-etheme-yourstore .block-blog-related {
|
||||
border-bottom: solid 1px #dfdfdf;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.mpblog-etheme-yourstore .page-layout-2columns-right .post-list-content {
|
||||
border-right: solid 1px #dfdfdf;
|
||||
}
|
||||
.mpblog-etheme-yourstore .page-layout-2columns-left .post-list-content {
|
||||
border-left: solid 1px #dfdfdf;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1024px) {
|
||||
.mpblog-etheme-yourstore .products-same-post li {
|
||||
height: 400px;
|
||||
width: 24.5% !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1440px) {
|
||||
.mpblog-etheme-yourstore .products-same-post li {
|
||||
height: 500px;
|
||||
width: 16.67% !important;
|
||||
}
|
||||
}
|
||||
@media all and (min-width: 640px) {
|
||||
.post-list-content .products-grid .product-item {
|
||||
width: 48%;
|
||||
}
|
||||
}
|
||||
@media all and (max-width: 640px) {
|
||||
.post-list-content .products-grid .product-item {
|
||||
width: 98%;
|
||||
}
|
||||
}
|
||||
.mp-sidebar {
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.mp-sidebar .block-content {
|
||||
padding-left: 10px;
|
||||
}
|
||||
.mp-sidebar .data.item.title {
|
||||
cursor: pointer;
|
||||
}
|
||||
.mp-sidebar .product.data.items > .item.content {
|
||||
padding: 20px 0 20px 10px !important;
|
||||
}
|
||||
.product.data.items {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
border-bottom: 0;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
.product.data.items:before,
|
||||
.product.data.items:after {
|
||||
content: '';
|
||||
display: table;
|
||||
}
|
||||
.product.data.items:after {
|
||||
clear: both;
|
||||
}
|
||||
.product.data.items > .item.title {
|
||||
float: left;
|
||||
width: 50%;
|
||||
}
|
||||
.product.data.items > .item.title > .switch {
|
||||
height: 20px;
|
||||
display: block;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
.product.data.items > .item.content {
|
||||
margin-top: 20px;
|
||||
box-sizing: border-box;
|
||||
float: right;
|
||||
margin-left: -100%;
|
||||
width: 100%;
|
||||
}
|
||||
.product.data.items > .item.content:before,
|
||||
.product.data.items > .item.content:after {
|
||||
content: '';
|
||||
display: table;
|
||||
}
|
||||
.product.data.items > .item.content:after {
|
||||
clear: both;
|
||||
}
|
||||
.product.data.items > .item.content.active {
|
||||
display: block;
|
||||
}
|
||||
.product.data.items > .item.title {
|
||||
margin: 0 -1px 0 0;
|
||||
}
|
||||
.product.data.items > .item.title > .switch {
|
||||
font-weight: 400;
|
||||
line-height: 40px;
|
||||
font-size: 14px;
|
||||
color: #6d6d6d;
|
||||
text-decoration: none;
|
||||
background: #f6f6f6;
|
||||
border: 1px solid #cccccc;
|
||||
border-bottom: none;
|
||||
height: 40px;
|
||||
padding: 1px 35px 1px 35px;
|
||||
}
|
||||
.product.data.items > .item.title > .switch:visited {
|
||||
color: #6d6d6d;
|
||||
text-decoration: none;
|
||||
}
|
||||
.product.data.items > .item.title > .switch:hover {
|
||||
color: #6d6d6d;
|
||||
text-decoration: none;
|
||||
}
|
||||
.product.data.items > .item.title > .switch:active {
|
||||
color: #333333;
|
||||
text-decoration: none;
|
||||
}
|
||||
.product.data.items > .item.title:not(.disabled) > .switch:focus,
|
||||
.product.data.items > .item.title:not(.disabled) > .switch:hover {
|
||||
background: #ffffff;
|
||||
}
|
||||
.product.data.items > .item.title:not(.disabled) > .switch:active,
|
||||
.product.data.items > .item.title.active > .switch,
|
||||
.product.data.items > .item.title.active > .switch:focus,
|
||||
.product.data.items > .item.title.active > .switch:hover {
|
||||
background: #ffffff;
|
||||
color: #333333;
|
||||
text-decoration: none;
|
||||
}
|
||||
.product.data.items > .item.title.active > .switch,
|
||||
.product.data.items > .item.title.active > .switch:focus,
|
||||
.product.data.items > .item.title.active > .switch:hover {
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
.product.data.items > .item.content {
|
||||
background: #ffffff;
|
||||
margin-top: 43px;
|
||||
padding: 35px 35px 35px 35px;
|
||||
border: 1px solid #cccccc;
|
||||
}
|
||||
.product.data.items .item.title a:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#maincontent input[type="text"],
|
||||
input[type="password"],
|
||||
input[type="url"],
|
||||
input[type="tel"],
|
||||
input[type="search"],
|
||||
input[type="number"],
|
||||
input[type*="date"],
|
||||
input[type="email"] {
|
||||
background: #ffffff;
|
||||
background-clip: padding-box;
|
||||
border: 1px solid #c2c2c2;
|
||||
border-radius: 1px;
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
height: 32px;
|
||||
line-height: 1.42857143;
|
||||
padding: 0 9px;
|
||||
vertical-align: baseline;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#maincontent h1 {
|
||||
font-weight: 300;
|
||||
line-height: 1.1;
|
||||
font-size: 2.6rem;
|
||||
|
||||
}
|
||||
#maincontent h2 {
|
||||
font-weight: 300;
|
||||
line-height: 1.1;
|
||||
font-size: 1.8rem;
|
||||
|
||||
}
|
||||
#maincontent h3 {
|
||||
font-weight: 600;
|
||||
line-height: 1.1;
|
||||
font-size: 1.8rem;
|
||||
|
||||
}
|
||||
#maincontent h4 {
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
font-size: 1.4rem;
|
||||
|
||||
}
|
||||
#maincontent h5 {
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
font-size: 1.2rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
#maincontent p {
|
||||
margin-top: 0rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
@@ -0,0 +1,825 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
#mp-blog-review div {
|
||||
padding: 10px 20px;
|
||||
color: #ffffff;
|
||||
cursor: pointer;
|
||||
width: 155px;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.mp-post-status {
|
||||
padding: 5px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
left: 1px;
|
||||
color: white;
|
||||
border-radius: 5px;
|
||||
font-size: 10px;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.mp-post-disapproved {
|
||||
background-color: #e67878;
|
||||
}
|
||||
|
||||
.mp-post-approved {
|
||||
background-color: #35a927;
|
||||
}
|
||||
|
||||
.mp-post-pending {
|
||||
background-color: #d7da1e;
|
||||
}
|
||||
|
||||
.mp-blog-new-post {
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
.mp-blog-new-post button {
|
||||
float: right;
|
||||
margin: 10px;
|
||||
padding: 0px 0px
|
||||
}
|
||||
|
||||
.post-item-wraper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.post-info-action {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
float: right;
|
||||
right: 10px;
|
||||
top: 10px;
|
||||
}
|
||||
|
||||
.sidebar.sidebar-main:before {
|
||||
content: unset !important;
|
||||
}
|
||||
|
||||
.post-info-action div {
|
||||
margin: 0 10px;
|
||||
width: 25px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#mp-blog-new-post-popup .column.main {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#mp_blog_post_form input#image {
|
||||
position: relative;
|
||||
bottom: 5px;
|
||||
}
|
||||
|
||||
.mp-field {
|
||||
display: flex;
|
||||
padding: 0 10%;
|
||||
}
|
||||
|
||||
.mp-field .label {
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
.mp-field > div {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mp-custom .mp-field {
|
||||
margin: 0 0 20px;
|
||||
}
|
||||
|
||||
.mp-custom .field label.label {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.admin__form-field-label {
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
margin: 0 0 .3rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.admin__data-grid-filters-wrap .admin__form-field .admin__form-field .admin__form-field-label {
|
||||
border: 1px solid transparent;
|
||||
float: left;
|
||||
font-weight: normal;
|
||||
line-height: 1.36;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0.6rem;
|
||||
padding-right: 1em;
|
||||
padding-top: 0.6rem;
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.admin__control-text {
|
||||
-webkit-appearance: none;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #adadad;
|
||||
border-radius: 1px;
|
||||
box-shadow: none;
|
||||
color: #303030;
|
||||
font-size: 1.4rem;
|
||||
font-weight: 400;
|
||||
height: auto;
|
||||
line-height: 1.36;
|
||||
padding: 0.6rem 1rem 0.6rem;
|
||||
transition: border-color 0.1s linear;
|
||||
vertical-align: baseline;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.admin__data-grid-filters-wrap .admin__form-field-label,
|
||||
.admin__data-grid-filters-wrap .admin__control-text,
|
||||
.admin__data-grid-filters-wrap .admin__control-select,
|
||||
.admin__data-grid-filters-wrap .admin__action-multiselect,
|
||||
.admin__data-grid-filters-wrap .ui-datepicker .ui-datepicker-title select {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .action-menu,
|
||||
.admin__action-multiselect-tree .abs-action-menu .action-submenu,
|
||||
.admin__action-multiselect-tree .action-menu .action-submenu,
|
||||
.admin__action-multiselect-tree .actions-split .dropdown-menu .action-submenu,
|
||||
.admin__action-multiselect-tree .actions-split .action-menu .action-submenu {
|
||||
min-width: 34.7rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .action-menu .action-menu-item,
|
||||
.admin__action-multiselect-tree .abs-action-menu .action-submenu .action-menu-item,
|
||||
.admin__action-multiselect-tree .action-menu .action-submenu .action-menu-item,
|
||||
.admin__action-multiselect-tree .actions-split .dropdown-menu .action-submenu .action-menu-item,
|
||||
.admin__action-multiselect-tree .actions-split .action-menu .action-submenu .action-menu-item {
|
||||
margin-top: .1rem;
|
||||
}
|
||||
|
||||
.action-menu .item,
|
||||
.action-menu .action-menu-item,
|
||||
.abs-action-menu .action-submenu .item,
|
||||
.abs-action-menu .action-submenu .action-menu-item,
|
||||
.action-menu .action-submenu .item,
|
||||
.action-menu .action-submenu .action-menu-item,
|
||||
.actions-split .dropdown-menu .action-submenu .item,
|
||||
.actions-split .dropdown-menu .action-submenu .action-menu-item,
|
||||
.actions-split .action-menu .action-submenu .item,
|
||||
.actions-split .action-menu .action-submenu .action-menu-item {
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
padding: .6875em 1em;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .action-menu-item {
|
||||
margin-left: 4.2rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .action-menu-item._expended:before {
|
||||
border-left: 1px dashed #a79d95;
|
||||
bottom: 0;
|
||||
content: '';
|
||||
left: -1rem;
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-dropdown {
|
||||
border-radius: 50%;
|
||||
height: 2.2rem;
|
||||
left: -2.2rem;
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
width: 2.2rem;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
margin: 2px 5px 0 0;
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-wrap .action-menu-item {
|
||||
transition: background-color 0.1s linear;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .action-menu-item._expended .admin__action-multiselect-dropdown:before {
|
||||
line-height: 28px;
|
||||
content: '\e621';
|
||||
font-family: 'luma-icons';
|
||||
}
|
||||
|
||||
[class*='admin__'] + label,
|
||||
[class*='admin__'] + label:after,
|
||||
[class*='admin__'] + label:before,
|
||||
[class*='admin__']:before,
|
||||
[class*='admin__']:after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-dropdown:before {
|
||||
background: #ffffff;
|
||||
color: #a79d95;
|
||||
content: '\e622';
|
||||
font-size: 2.2rem;
|
||||
font-family: 'luma-icons';
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .action-menu-item._with-checkbox .admin__action-multiselect-label {
|
||||
padding-left: 2.6rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner .admin__action-multiselect-menu-inner {
|
||||
padding-left: 3.2rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner .admin__action-multiselect-menu-inner:before {
|
||||
left: 4.3rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item:last-child:before {
|
||||
height: 2.1rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item:after,
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item:before {
|
||||
content: '';
|
||||
left: 0;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item:after {
|
||||
border-top: 1px dashed #a79d95;
|
||||
height: 1px;
|
||||
top: 2.1rem;
|
||||
width: 4.2rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item:before {
|
||||
border-left: 1px dashed #a79d95;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item._parent:after {
|
||||
width: 4.2rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item._root {
|
||||
margin-left: -1rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item._root:after {
|
||||
left: 3.2rem;
|
||||
width: 2.2rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item._root:before {
|
||||
left: 3.2rem;
|
||||
top: 1rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item._root._parent:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item._root:first-child:before {
|
||||
top: 2.1rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item._root:last-child:before {
|
||||
height: 1rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-label {
|
||||
line-height: 2.2rem;
|
||||
vertical-align: middle;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-label:before {
|
||||
left: 1rem;
|
||||
position: absolute;
|
||||
top: 1.4rem;
|
||||
}
|
||||
|
||||
.action-select-wrap {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select {
|
||||
padding-right: 3.2rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
background-color: #ffffff;
|
||||
font-weight: 400;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select._active:after,
|
||||
.action-select-wrap .action-select.active:after {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select:after {
|
||||
border-color: #000000 transparent transparent transparent;
|
||||
border-style: solid;
|
||||
border-width: 0.5rem 0.4rem 0 0.4rem;
|
||||
content: '';
|
||||
height: 0;
|
||||
margin-top: -0.2rem;
|
||||
position: absolute;
|
||||
right: 1.2rem;
|
||||
top: 50%;
|
||||
transition: all .2s linear;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
._active .action-select-wrap .action-select:after,
|
||||
.active .action-select-wrap .action-select:after {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select:hover:after {
|
||||
border-color: #000000 transparent transparent transparent;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select:hover {
|
||||
border-color: #878787;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select:hover:before {
|
||||
border-color: #878787;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select:before {
|
||||
background-color: #e3e3e3;
|
||||
border: 1px solid #adadad;
|
||||
bottom: 0;
|
||||
content: '';
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 3.2rem;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select._active {
|
||||
border-color: #007bdb;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select._active:before {
|
||||
border-color: #007bdb;
|
||||
border-left-color: #adadad;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select[disabled] {
|
||||
color: #41362f;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select[disabled]:after {
|
||||
border-color: #41362f transparent transparent transparent;
|
||||
}
|
||||
|
||||
.action-select-wrap._active {
|
||||
z-index: 500;
|
||||
}
|
||||
|
||||
.action-select-wrap._active .action-select {
|
||||
border-color: #007bdb;
|
||||
}
|
||||
|
||||
.action-select-wrap._active .action-select:before {
|
||||
border-color: #007bdb;
|
||||
}
|
||||
|
||||
.action-select-wrap._active .action-select:after {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.action-select-wrap .action-menu,
|
||||
.action-select-wrap .abs-action-menu .action-submenu,
|
||||
.action-select-wrap .action-menu .action-submenu,
|
||||
.action-select-wrap .actions-split .dropdown-menu .action-submenu,
|
||||
.action-select-wrap .actions-split .action-menu .action-submenu {
|
||||
max-height: 45rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-menu ._disabled:hover,
|
||||
.action-select-wrap .abs-action-menu .action-submenu ._disabled:hover,
|
||||
.action-select-wrap .action-menu .action-submenu ._disabled:hover,
|
||||
.action-select-wrap .actions-split .dropdown-menu .action-submenu ._disabled:hover,
|
||||
.action-select-wrap .actions-split .action-menu .action-submenu ._disabled:hover {
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-menu ._disabled .action-menu-item,
|
||||
.action-select-wrap .abs-action-menu .action-submenu ._disabled .action-menu-item,
|
||||
.action-select-wrap .action-menu .action-submenu ._disabled .action-menu-item,
|
||||
.action-select-wrap .actions-split .dropdown-menu .action-submenu ._disabled .action-menu-item,
|
||||
.action-select-wrap .actions-split .action-menu .action-submenu ._disabled .action-menu-item {
|
||||
cursor: default;
|
||||
opacity: .5;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-menu-items {
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 100%;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-menu-items > .action-menu,
|
||||
.action-select-wrap .action-menu-items > .abs-action-menu .action-submenu,
|
||||
.action-select-wrap .action-menu-items > .action-menu .action-submenu,
|
||||
.action-select-wrap .action-menu-items > .actions-split .dropdown-menu .action-submenu,
|
||||
.action-select-wrap .action-menu-items > .actions-split .action-menu .action-submenu {
|
||||
min-width: 100%;
|
||||
position: static;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-menu-items > .action-menu .action-submenu,
|
||||
.action-select-wrap .action-menu-items > .abs-action-menu .action-submenu .action-submenu,
|
||||
.action-select-wrap .action-menu-items > .action-menu .action-submenu .action-submenu,
|
||||
.action-select-wrap .action-menu-items > .actions-split .dropdown-menu .action-submenu .action-submenu,
|
||||
.action-select-wrap .action-menu-items > .actions-split .action-menu .action-submenu .action-submenu {
|
||||
position: absolute;
|
||||
right: -100%;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-crumb .action-close {
|
||||
bottom: 0;
|
||||
font-size: .5em;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 2rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-wrap {
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
display: block;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-wrap .admin__action-multiselect {
|
||||
border: 1px solid #adadad;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
min-height: 3.2rem;
|
||||
padding-right: 3.6rem;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.admin__control-table-wrapper .admin__action-multiselect-wrap .admin__action-multiselect {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-text {
|
||||
padding: .6rem 1rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-search-wrap {
|
||||
border-bottom: 1px solid #e3e3e3;
|
||||
margin: 0 1rem;
|
||||
padding: 1rem 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-search {
|
||||
padding-right: 3rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.admin__data-grid-action-bookmarks .admin__action-dropdown-menu .admin__control-text {
|
||||
font-size: 1.3rem;
|
||||
min-width: 15rem;
|
||||
width: calc(100% - 4rem);
|
||||
}
|
||||
|
||||
.admin__control-text {
|
||||
min-width: 4rem;
|
||||
}
|
||||
|
||||
button, input, optgroup, select, textarea, .block-footer .action-add {
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin__fieldset > .admin__field > .admin__field-control input[type="checkbox"] {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
input[type='checkbox'].admin__control-checkbox {
|
||||
margin: 0;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
input[type='checkbox'] {
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.admin__scope-old input[type="checkbox"] {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
-ms-appearance: none;
|
||||
appearance: none;
|
||||
background: #ffffff;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #adadad;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
height: 16px;
|
||||
margin: 0 5px 0 0;
|
||||
position: relative;
|
||||
transition: all 0.1s ease-in;
|
||||
vertical-align: middle;
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
.admin__scope-old input[type="radio"] {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
-ms-appearance: none;
|
||||
appearance: none;
|
||||
background: #ffffff;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #adadad;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
height: 16px;
|
||||
margin: 0 5px 0 0;
|
||||
position: relative;
|
||||
transition: all 0.1s ease-in;
|
||||
vertical-align: middle;
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-search-label {
|
||||
display: block;
|
||||
font-size: 1.5rem;
|
||||
height: 1.3em;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
right: 2.2rem;
|
||||
top: 1.7rem;
|
||||
width: 1em;
|
||||
}
|
||||
|
||||
[class*='admin__'] + label, [class*='admin__'] + label:after,
|
||||
[class*='admin__'] + label:before, [class*='admin__']:before, [class*='admin__']:after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.admin__control-checkbox + label:before, .mass-select-wrap select + label:before {
|
||||
border-radius: 1px;
|
||||
content: '';
|
||||
font-size: 0;
|
||||
transition: font-size 0.1s ease-out, color 0.1s ease-out, border-color 0.1s linear;
|
||||
}
|
||||
|
||||
.admin__control-radio + label:before, .admin__control-checkbox + label:before, .mass-select-wrap select + label:before {
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #adadad;
|
||||
color: transparent;
|
||||
float: left;
|
||||
height: 1.6rem;
|
||||
text-align: center;
|
||||
vertical-align: top;
|
||||
width: 1.6rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-crumb .action-close:before {
|
||||
position: absolute;
|
||||
top: -9px;
|
||||
right: -10px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-menu-inner-item._root .action-menu-item .admin__action-multiselect-label:before {
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
.admin__control-checkbox:checked + label:before, .mass-select-wrap select._checked + label:before {
|
||||
content: '\e610';
|
||||
font-size: 1.1rem;
|
||||
line-height: 125%;
|
||||
color: #000;
|
||||
font-family: 'luma-icons';
|
||||
}
|
||||
|
||||
.admin__scope-old input[type=text] {
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #adadad;
|
||||
border-radius: 1px;
|
||||
padding: .6rem 1rem .6rem;
|
||||
color: #303030;
|
||||
background-color: #ffffff;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
height: 33px;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-crumb:hover {
|
||||
border-color: #908379;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-crumb {
|
||||
background-color: #f5f5f5;
|
||||
border: 1px solid #a79d95;
|
||||
border-radius: 1px;
|
||||
display: inline-block;
|
||||
font-size: 1.2rem;
|
||||
margin: 0.3rem -4px 0.3rem 0.3rem;
|
||||
padding: 0.3rem 2.4rem 0.4rem 1rem;
|
||||
position: relative;
|
||||
transition: border-color 0.1s linear;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-menu-inner {
|
||||
margin-bottom: 0;
|
||||
max-height: 46rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-menu-inner .admin__action-multiselect-menu-inner {
|
||||
list-style: none;
|
||||
max-height: none;
|
||||
overflow: hidden;
|
||||
padding-left: 2.2rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-menu-inner ._hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-actions-wrap {
|
||||
border-top: 1px solid #e3e3e3;
|
||||
margin: 0 1rem;
|
||||
padding: 1rem 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-actions-wrap .action-default {
|
||||
font-size: 1.3rem;
|
||||
min-width: 13rem;
|
||||
}
|
||||
|
||||
.action-default, button, .block-footer .action-add, .block-footer .action-add {
|
||||
background: #e3e3e3;
|
||||
border-color: #adadad;
|
||||
color: #514943;
|
||||
}
|
||||
|
||||
.action-default, button {
|
||||
all: unset;
|
||||
}
|
||||
|
||||
button, html input[type='button'], input[type='reset'], input[type='submit'], .block-footer .action-add {
|
||||
-webkit-appearance: button;
|
||||
appearance: button;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
ul, ol, dl {
|
||||
margin-top: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-wrap.action-select-wrap .action-menu,
|
||||
.admin__action-multiselect-wrap.action-select-wrap .abs-action-menu
|
||||
.action-submenu, .admin__action-multiselect-wrap.action-select-wrap
|
||||
.action-menu .action-submenu, .admin__action-multiselect-wrap.action-select-wrap
|
||||
.actions-split .dropdown-menu .action-submenu,
|
||||
.admin__action-multiselect-wrap.action-select-wrap .actions-split .action-menu .action-submenu {
|
||||
max-height: none;
|
||||
overflow-y: inherit;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.action-menu._active,
|
||||
.abs-action-menu .action-submenu._active,
|
||||
.action-menu .action-submenu._active, .actions-split .dropdown-menu .action-submenu._active,
|
||||
.actions-split .action-menu .action-submenu._active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .action-menu,
|
||||
.admin__action-multiselect-tree .abs-action-menu .action-submenu,
|
||||
.admin__action-multiselect-tree .action-menu .action-submenu,
|
||||
.admin__action-multiselect-tree .actions-split .dropdown-menu .action-submenu,
|
||||
.admin__action-multiselect-tree .actions-split .action-menu .action-submenu {
|
||||
min-width: 34.7rem;
|
||||
}
|
||||
|
||||
.action-menu,
|
||||
.abs-action-menu .action-submenu, .action-menu .action-submenu,
|
||||
.actions-split .dropdown-menu .action-submenu, .actions-split .action-menu .action-submenu {
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #007bdb;
|
||||
border-radius: 1px;
|
||||
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
|
||||
color: #41362f;
|
||||
display: none;
|
||||
font-weight: 400;
|
||||
left: 0;
|
||||
list-style: none;
|
||||
margin: 2px 0 0;
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 100%;
|
||||
}
|
||||
|
||||
.action-menu,
|
||||
.abs-action-menu .action-submenu,
|
||||
.action-menu .action-submenu,
|
||||
.actions-split .dropdown-menu .action-submenu,
|
||||
.actions-split .action-menu .action-submenu {
|
||||
left: 0;
|
||||
margin-top: 2px;
|
||||
right: auto;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.admin__form-field-control .admin__control-text,
|
||||
.admin__field-control .admin__control-text,
|
||||
.admin__form-field-control .admin__control-textarea,
|
||||
.admin__field-control .admin__control-textarea {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.admin__control-checkbox {
|
||||
cursor: pointer;
|
||||
opacity: .01;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.action-close {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.action-close:before {
|
||||
content: '\e616';
|
||||
transition: color 0.1s linear;
|
||||
font-family: 'luma-icons';
|
||||
}
|
||||
|
||||
.action-close > span {
|
||||
clip: rect(0, 0, 0, 0);
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-search-wrap input[type="text"] {
|
||||
width: 100%;
|
||||
}
|
||||
.fieldset > .field.required > .label:after, .fieldset > .fields > .field.required > .label:after, .fieldset > .field._required > .label:after, .fieldset > .fields > .field._required > .label:after {
|
||||
content: '*';
|
||||
color: #e02b27;
|
||||
font-size: 1.2rem;
|
||||
margin: 0 0 0 5px;
|
||||
}
|
||||
@@ -0,0 +1,839 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
.mp-post-status {
|
||||
padding: 5px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
left: 1px;
|
||||
color: white;
|
||||
border-radius: 5px;
|
||||
font-size: 10px;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.mp-post-disapproved {
|
||||
background-color: #e67878;
|
||||
}
|
||||
|
||||
.mp-post-approved {
|
||||
background-color: #35a927;
|
||||
}
|
||||
|
||||
.mp-post-pending {
|
||||
background-color: #d7da1e;
|
||||
}
|
||||
|
||||
.mp-blog-new-post {
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
.mp-blog-new-post button {
|
||||
float: right;
|
||||
margin: 10px;
|
||||
padding: 10px 30px
|
||||
}
|
||||
|
||||
.post-item-wraper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.post-info-action {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
float: right;
|
||||
right: 10px;
|
||||
top: 10px;
|
||||
}
|
||||
|
||||
.sidebar.sidebar-main:before {
|
||||
content: unset !important;
|
||||
}
|
||||
|
||||
.post-info-action div {
|
||||
margin: 0 10px;
|
||||
width: 25px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#mp-blog-new-post-popup .column.main {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#mp_blog_post_form input#image {
|
||||
position: relative;
|
||||
bottom: 5px;
|
||||
}
|
||||
|
||||
.mp-field {
|
||||
display: flex;
|
||||
padding: 0 10%;
|
||||
}
|
||||
|
||||
.mp-field .label {
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
.mp-field > div {
|
||||
width: 100%;
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
.mp-field .label {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mp-field {
|
||||
flex-wrap: wrap;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.modal-content {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.modal-content fieldset.fieldset {
|
||||
display: contents;
|
||||
}
|
||||
.modal-content .actions-toolbar {
|
||||
margin-top: 15px;
|
||||
}
|
||||
}
|
||||
.mp-custom .mp-field {
|
||||
margin: 0 0 20px;
|
||||
}
|
||||
|
||||
.mp-custom .field label.label {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.admin__form-field-label {
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
margin: 0 0 .3rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.admin__data-grid-filters-wrap .admin__form-field .admin__form-field .admin__form-field-label {
|
||||
border: 1px solid transparent;
|
||||
float: left;
|
||||
font-weight: normal;
|
||||
line-height: 1.36;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0.6rem;
|
||||
padding-right: 1em;
|
||||
padding-top: 0.6rem;
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.admin__control-text {
|
||||
-webkit-appearance: none;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #adadad;
|
||||
border-radius: 1px;
|
||||
box-shadow: none;
|
||||
color: #303030;
|
||||
font-size: 1.4rem;
|
||||
font-weight: 400;
|
||||
height: auto;
|
||||
line-height: 1.36;
|
||||
padding: 0.6rem 1rem 0.6rem;
|
||||
transition: border-color 0.1s linear;
|
||||
vertical-align: baseline;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.admin__data-grid-filters-wrap .admin__form-field-label,
|
||||
.admin__data-grid-filters-wrap .admin__control-text,
|
||||
.admin__data-grid-filters-wrap .admin__control-select,
|
||||
.admin__data-grid-filters-wrap .admin__action-multiselect,
|
||||
.admin__data-grid-filters-wrap .ui-datepicker .ui-datepicker-title select {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .action-menu,
|
||||
.admin__action-multiselect-tree .abs-action-menu .action-submenu,
|
||||
.admin__action-multiselect-tree .action-menu .action-submenu,
|
||||
.admin__action-multiselect-tree .actions-split .dropdown-menu .action-submenu,
|
||||
.admin__action-multiselect-tree .actions-split .action-menu .action-submenu {
|
||||
min-width: 34.7rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .action-menu .action-menu-item,
|
||||
.admin__action-multiselect-tree .abs-action-menu .action-submenu .action-menu-item,
|
||||
.admin__action-multiselect-tree .action-menu .action-submenu .action-menu-item,
|
||||
.admin__action-multiselect-tree .actions-split .dropdown-menu .action-submenu .action-menu-item,
|
||||
.admin__action-multiselect-tree .actions-split .action-menu .action-submenu .action-menu-item {
|
||||
margin-top: .1rem;
|
||||
}
|
||||
|
||||
.action-menu .item,
|
||||
.action-menu .action-menu-item,
|
||||
.abs-action-menu .action-submenu .item,
|
||||
.abs-action-menu .action-submenu .action-menu-item,
|
||||
.action-menu .action-submenu .item,
|
||||
.action-menu .action-submenu .action-menu-item,
|
||||
.actions-split .dropdown-menu .action-submenu .item,
|
||||
.actions-split .dropdown-menu .action-submenu .action-menu-item,
|
||||
.actions-split .action-menu .action-submenu .item,
|
||||
.actions-split .action-menu .action-submenu .action-menu-item {
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
padding: .6875em 1em;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .action-menu-item {
|
||||
margin-left: 4.2rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .action-menu-item._expended:before {
|
||||
border-left: 1px dashed #a79d95;
|
||||
bottom: 0;
|
||||
content: '';
|
||||
left: -1rem;
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-dropdown {
|
||||
border-radius: 50%;
|
||||
height: 2.2rem;
|
||||
left: -2.2rem;
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
width: 2.2rem;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
margin: 2px 5px 0 0;
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-wrap .action-menu-item {
|
||||
transition: background-color 0.1s linear;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .action-menu-item._expended .admin__action-multiselect-dropdown:before {
|
||||
line-height: 28px;
|
||||
content: '\e621';
|
||||
font-family: 'luma-icons';
|
||||
}
|
||||
|
||||
[class*='admin__'] + label,
|
||||
[class*='admin__'] + label:after,
|
||||
[class*='admin__'] + label:before,
|
||||
[class*='admin__']:before,
|
||||
[class*='admin__']:after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-dropdown:before {
|
||||
background: #ffffff;
|
||||
color: #a79d95;
|
||||
content: '\e622';
|
||||
font-size: 2.2rem;
|
||||
font-family: 'luma-icons';
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .action-menu-item._with-checkbox .admin__action-multiselect-label {
|
||||
padding-left: 2.6rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner .admin__action-multiselect-menu-inner {
|
||||
padding-left: 3.2rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner .admin__action-multiselect-menu-inner:before {
|
||||
left: 4.3rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item:last-child:before {
|
||||
height: 2.1rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item:after,
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item:before {
|
||||
content: '';
|
||||
left: 0;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item:after {
|
||||
border-top: 1px dashed #a79d95;
|
||||
height: 1px;
|
||||
top: 2.1rem;
|
||||
width: 4.2rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item:before {
|
||||
border-left: 1px dashed #a79d95;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item._parent:after {
|
||||
width: 4.2rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item._root {
|
||||
margin-left: -1rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item._root:after {
|
||||
left: 3.2rem;
|
||||
width: 2.2rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item._root:before {
|
||||
left: 3.2rem;
|
||||
top: 1rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item._root._parent:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item._root:first-child:before {
|
||||
top: 2.1rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-menu-inner-item._root:last-child:before {
|
||||
height: 1rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-label {
|
||||
line-height: 2.2rem;
|
||||
vertical-align: middle;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .admin__action-multiselect-label:before {
|
||||
left: 1rem;
|
||||
position: absolute;
|
||||
top: 1.4rem;
|
||||
}
|
||||
|
||||
.action-select-wrap {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select {
|
||||
padding-right: 3.2rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
background-color: #ffffff;
|
||||
font-weight: 400;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select._active:after,
|
||||
.action-select-wrap .action-select.active:after {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select:after {
|
||||
border-color: #000000 transparent transparent transparent;
|
||||
border-style: solid;
|
||||
border-width: 0.5rem 0.4rem 0 0.4rem;
|
||||
content: '';
|
||||
height: 0;
|
||||
margin-top: -0.2rem;
|
||||
position: absolute;
|
||||
right: 1.2rem;
|
||||
top: 50%;
|
||||
transition: all .2s linear;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
._active .action-select-wrap .action-select:after,
|
||||
.active .action-select-wrap .action-select:after {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select:hover:after {
|
||||
border-color: #000000 transparent transparent transparent;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select:hover {
|
||||
border-color: #878787;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select:hover:before {
|
||||
border-color: #878787;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select:before {
|
||||
background-color: #e3e3e3;
|
||||
border: 1px solid #adadad;
|
||||
bottom: 0;
|
||||
content: '';
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 3.2rem;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select._active {
|
||||
border-color: #007bdb;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select._active:before {
|
||||
border-color: #007bdb;
|
||||
border-left-color: #adadad;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select[disabled] {
|
||||
color: #41362f;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-select[disabled]:after {
|
||||
border-color: #41362f transparent transparent transparent;
|
||||
}
|
||||
|
||||
.action-select-wrap._active {
|
||||
z-index: 500;
|
||||
}
|
||||
|
||||
.action-select-wrap._active .action-select {
|
||||
border-color: #007bdb;
|
||||
}
|
||||
|
||||
.action-select-wrap._active .action-select:before {
|
||||
border-color: #007bdb;
|
||||
}
|
||||
|
||||
.action-select-wrap._active .action-select:after {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.action-select-wrap .action-menu,
|
||||
.action-select-wrap .abs-action-menu .action-submenu,
|
||||
.action-select-wrap .action-menu .action-submenu,
|
||||
.action-select-wrap .actions-split .dropdown-menu .action-submenu,
|
||||
.action-select-wrap .actions-split .action-menu .action-submenu {
|
||||
max-height: 45rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-menu ._disabled:hover,
|
||||
.action-select-wrap .abs-action-menu .action-submenu ._disabled:hover,
|
||||
.action-select-wrap .action-menu .action-submenu ._disabled:hover,
|
||||
.action-select-wrap .actions-split .dropdown-menu .action-submenu ._disabled:hover,
|
||||
.action-select-wrap .actions-split .action-menu .action-submenu ._disabled:hover {
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-menu ._disabled .action-menu-item,
|
||||
.action-select-wrap .abs-action-menu .action-submenu ._disabled .action-menu-item,
|
||||
.action-select-wrap .action-menu .action-submenu ._disabled .action-menu-item,
|
||||
.action-select-wrap .actions-split .dropdown-menu .action-submenu ._disabled .action-menu-item,
|
||||
.action-select-wrap .actions-split .action-menu .action-submenu ._disabled .action-menu-item {
|
||||
cursor: default;
|
||||
opacity: .5;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-menu-items {
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 100%;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-menu-items > .action-menu,
|
||||
.action-select-wrap .action-menu-items > .abs-action-menu .action-submenu,
|
||||
.action-select-wrap .action-menu-items > .action-menu .action-submenu,
|
||||
.action-select-wrap .action-menu-items > .actions-split .dropdown-menu .action-submenu,
|
||||
.action-select-wrap .action-menu-items > .actions-split .action-menu .action-submenu {
|
||||
min-width: 100%;
|
||||
position: static;
|
||||
}
|
||||
|
||||
.action-select-wrap .action-menu-items > .action-menu .action-submenu,
|
||||
.action-select-wrap .action-menu-items > .abs-action-menu .action-submenu .action-submenu,
|
||||
.action-select-wrap .action-menu-items > .action-menu .action-submenu .action-submenu,
|
||||
.action-select-wrap .action-menu-items > .actions-split .dropdown-menu .action-submenu .action-submenu,
|
||||
.action-select-wrap .action-menu-items > .actions-split .action-menu .action-submenu .action-submenu {
|
||||
position: absolute;
|
||||
right: -100%;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-crumb .action-close {
|
||||
bottom: 0;
|
||||
font-size: .5em;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 2rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-wrap {
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
display: block;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-wrap .admin__action-multiselect {
|
||||
border: 1px solid #adadad;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
min-height: 3.2rem;
|
||||
padding-right: 3.6rem;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.admin__control-table-wrapper .admin__action-multiselect-wrap .admin__action-multiselect {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-text {
|
||||
padding: .6rem 1rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-search-wrap {
|
||||
border-bottom: 1px solid #e3e3e3;
|
||||
margin: 0 1rem;
|
||||
padding: 1rem 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-search {
|
||||
padding-right: 3rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.admin__data-grid-action-bookmarks .admin__action-dropdown-menu .admin__control-text {
|
||||
font-size: 1.3rem;
|
||||
min-width: 15rem;
|
||||
width: calc(100% - 4rem);
|
||||
}
|
||||
|
||||
.admin__control-text {
|
||||
min-width: 4rem;
|
||||
}
|
||||
|
||||
button, input, optgroup, select, textarea, .block-footer .action-add {
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin__fieldset > .admin__field > .admin__field-control input[type="checkbox"] {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
input[type='checkbox'].admin__control-checkbox {
|
||||
margin: 0;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
input[type='checkbox'] {
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.admin__scope-old input[type="checkbox"] {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
-ms-appearance: none;
|
||||
appearance: none;
|
||||
background: #ffffff;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #adadad;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
height: 16px;
|
||||
margin: 0 5px 0 0;
|
||||
position: relative;
|
||||
transition: all 0.1s ease-in;
|
||||
vertical-align: middle;
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
.admin__scope-old input[type="radio"] {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
-ms-appearance: none;
|
||||
appearance: none;
|
||||
background: #ffffff;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #adadad;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
height: 16px;
|
||||
margin: 0 5px 0 0;
|
||||
position: relative;
|
||||
transition: all 0.1s ease-in;
|
||||
vertical-align: middle;
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-search-label {
|
||||
display: block;
|
||||
font-size: 1.5rem;
|
||||
height: 1.3em;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
right: 2.2rem;
|
||||
top: 1.7rem;
|
||||
width: 1em;
|
||||
}
|
||||
|
||||
[class*='admin__'] + label, [class*='admin__'] + label:after,
|
||||
[class*='admin__'] + label:before, [class*='admin__']:before, [class*='admin__']:after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.admin__control-checkbox + label:before, .mass-select-wrap select + label:before {
|
||||
border-radius: 1px;
|
||||
content: '';
|
||||
font-size: 0;
|
||||
transition: font-size 0.1s ease-out, color 0.1s ease-out, border-color 0.1s linear;
|
||||
}
|
||||
|
||||
.admin__control-radio + label:before, .admin__control-checkbox + label:before, .mass-select-wrap select + label:before {
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #adadad;
|
||||
color: transparent;
|
||||
float: left;
|
||||
height: 1.6rem;
|
||||
text-align: center;
|
||||
vertical-align: top;
|
||||
width: 1.6rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-crumb .action-close:before {
|
||||
position: absolute;
|
||||
top: -9px;
|
||||
right: -10px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-menu-inner-item._root .action-menu-item .admin__action-multiselect-label:before {
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
.admin__control-checkbox:checked + label:before, .mass-select-wrap select._checked + label:before {
|
||||
content: '\e610';
|
||||
font-size: 1.1rem;
|
||||
line-height: 125%;
|
||||
color: #000;
|
||||
font-family: 'luma-icons';
|
||||
}
|
||||
|
||||
.admin__scope-old input[type=text] {
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #adadad;
|
||||
border-radius: 1px;
|
||||
padding: .6rem 1rem .6rem;
|
||||
color: #303030;
|
||||
background-color: #ffffff;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
height: 33px;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-crumb:hover {
|
||||
border-color: #908379;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-crumb {
|
||||
background-color: #f5f5f5;
|
||||
border: 1px solid #a79d95;
|
||||
border-radius: 1px;
|
||||
display: inline-block;
|
||||
font-size: 1.2rem;
|
||||
margin: 0.3rem -4px 0.3rem 0.3rem;
|
||||
padding: 0.3rem 2.4rem 0.4rem 1rem;
|
||||
position: relative;
|
||||
transition: border-color 0.1s linear;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-menu-inner {
|
||||
margin-bottom: 0;
|
||||
max-height: 46rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-menu-inner .admin__action-multiselect-menu-inner {
|
||||
list-style: none;
|
||||
max-height: none;
|
||||
overflow: hidden;
|
||||
padding-left: 2.2rem;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-menu-inner ._hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-actions-wrap {
|
||||
border-top: 1px solid #e3e3e3;
|
||||
margin: 0 1rem;
|
||||
padding: 1rem 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-actions-wrap .action-default {
|
||||
font-size: 1.3rem;
|
||||
min-width: 13rem;
|
||||
}
|
||||
|
||||
.action-default, button, .block-footer .action-add, .block-footer .action-add {
|
||||
background: #e3e3e3;
|
||||
border-color: #adadad;
|
||||
color: #514943;
|
||||
}
|
||||
|
||||
.action-default, button {
|
||||
border: 1px solid;
|
||||
border-radius: 0;
|
||||
display: inline-block;
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-size: 1.4rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.36;
|
||||
padding: 0.6rem 1em 0.6rem;
|
||||
text-align: center;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
button, html input[type='button'], input[type='reset'], input[type='submit'], .block-footer .action-add {
|
||||
-webkit-appearance: button;
|
||||
appearance: button;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
ul, ol, dl {
|
||||
margin-top: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-wrap.action-select-wrap .action-menu,
|
||||
.admin__action-multiselect-wrap.action-select-wrap .abs-action-menu
|
||||
.action-submenu, .admin__action-multiselect-wrap.action-select-wrap
|
||||
.action-menu .action-submenu, .admin__action-multiselect-wrap.action-select-wrap
|
||||
.actions-split .dropdown-menu .action-submenu,
|
||||
.admin__action-multiselect-wrap.action-select-wrap .actions-split .action-menu .action-submenu {
|
||||
max-height: none;
|
||||
overflow-y: inherit;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.action-menu._active,
|
||||
.abs-action-menu .action-submenu._active,
|
||||
.action-menu .action-submenu._active, .actions-split .dropdown-menu .action-submenu._active,
|
||||
.actions-split .action-menu .action-submenu._active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-tree .action-menu,
|
||||
.admin__action-multiselect-tree .abs-action-menu .action-submenu,
|
||||
.admin__action-multiselect-tree .action-menu .action-submenu,
|
||||
.admin__action-multiselect-tree .actions-split .dropdown-menu .action-submenu,
|
||||
.admin__action-multiselect-tree .actions-split .action-menu .action-submenu {
|
||||
min-width: 34.7rem;
|
||||
}
|
||||
|
||||
.action-menu,
|
||||
.abs-action-menu .action-submenu, .action-menu .action-submenu,
|
||||
.actions-split .dropdown-menu .action-submenu, .actions-split .action-menu .action-submenu {
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #007bdb;
|
||||
border-radius: 1px;
|
||||
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
|
||||
color: #41362f;
|
||||
display: none;
|
||||
font-weight: 400;
|
||||
left: 0;
|
||||
list-style: none;
|
||||
margin: 2px 0 0;
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 100%;
|
||||
}
|
||||
|
||||
.action-menu,
|
||||
.abs-action-menu .action-submenu,
|
||||
.action-menu .action-submenu,
|
||||
.actions-split .dropdown-menu .action-submenu,
|
||||
.actions-split .action-menu .action-submenu {
|
||||
left: 0;
|
||||
margin-top: 2px;
|
||||
right: auto;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.admin__form-field-control .admin__control-text,
|
||||
.admin__field-control .admin__control-text,
|
||||
.admin__form-field-control .admin__control-textarea,
|
||||
.admin__field-control .admin__control-textarea {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.admin__control-checkbox {
|
||||
cursor: pointer;
|
||||
opacity: .01;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.action-close {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.action-close:before {
|
||||
content: '\e616';
|
||||
transition: color 0.1s linear;
|
||||
font-family: 'luma-icons';
|
||||
}
|
||||
|
||||
.action-close > span {
|
||||
clip: rect(0, 0, 0, 0);
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-search-wrap input[type="text"] {
|
||||
width: 100%;
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
.mp-blog-icon:before {
|
||||
background-repeat: no-repeat;
|
||||
color: #999999;
|
||||
content: '';
|
||||
display: inline-flex;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
opacity: 50%;
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
.mp-blog-calendar-times:before {
|
||||
background-image: url("../media/images/calendar-times.svg");
|
||||
}
|
||||
.mp-blog-user:before {
|
||||
background-image: url("../media/images/user.svg");
|
||||
}
|
||||
.mp-blog-comments:before {
|
||||
background-image: url("../media/images/comments.svg");
|
||||
}
|
||||
.mp-blog-traffic:before {
|
||||
background-image: url("../media/images/eye.svg");
|
||||
}
|
||||
.mp-blog-thumbs-up:before {
|
||||
background-image: url("../media/images/thumbs-up.svg");
|
||||
}
|
||||
@@ -0,0 +1,722 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
.mp-blog-view a,
|
||||
.mp-sidebar a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.mp-blog-rss {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.mp-post-info {
|
||||
color: #999999;
|
||||
font-size: 10px;
|
||||
line-height: 18px;
|
||||
margin: 0;
|
||||
|
||||
span {
|
||||
color: #6f6f6f;;
|
||||
}
|
||||
}
|
||||
|
||||
.post-item-wraper {
|
||||
border: 1px solid #eee;
|
||||
|
||||
&:hover {
|
||||
border: 1px solid #eee;
|
||||
box-shadow: 3px 3px 4px 0 rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
.post-info-wraper {
|
||||
padding: 20px 15px 10px 15px;
|
||||
}
|
||||
|
||||
.post-list-item {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.post-short-description {
|
||||
max-width: 100%;
|
||||
|
||||
p {
|
||||
max-width: 100%;
|
||||
//overflow: hidden;
|
||||
//text-overflow: ellipsis;
|
||||
//max-height: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.post-post_content {
|
||||
margin: 10px 0 10px 0;
|
||||
font-size: 15px;
|
||||
color: #666;
|
||||
}
|
||||
.post-post_content img,.post-post_content video,.post-post_content iframe{
|
||||
text-align: center;
|
||||
display: block;
|
||||
margin: 20px auto;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.post-sharing-button {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
#sharing {
|
||||
padding: 20px 30px;
|
||||
background: #f6f6f6;
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
#sharing .share-col-left {
|
||||
float: left;
|
||||
width: 20%;
|
||||
}
|
||||
}
|
||||
|
||||
.about-admin {
|
||||
h4.admin-title {
|
||||
width: 215px;
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
||||
.block-blog-related {
|
||||
margin-top: 35px;
|
||||
|
||||
.related-content-container {
|
||||
padding: 0 10px;
|
||||
|
||||
.author-content-image {
|
||||
float: left;
|
||||
width: 135px;
|
||||
}
|
||||
|
||||
.author-content-information {
|
||||
float: left;
|
||||
padding-left: 20px;
|
||||
width: calc(~"100% - 155px");
|
||||
|
||||
.author-name {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#post-reviews {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
a.mp-relate-link {
|
||||
background: #f55567;
|
||||
color: #0a0a0a;
|
||||
|
||||
img.img-responsive {
|
||||
margin: 0 auto;
|
||||
height: 200px;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-archives {
|
||||
list-style: none;
|
||||
padding-left: 8px;
|
||||
|
||||
a.list-archives {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
.author-image {
|
||||
text-align: center;
|
||||
|
||||
img.img-responsive {
|
||||
border: none;
|
||||
padding-right: 7px;
|
||||
padding-left: 7px;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
border: 1px solid #ddd;
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.pager {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.pager span.toolbar-number {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.block-title p {
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.mp-sidebar {
|
||||
margin-bottom: 25px;
|
||||
|
||||
.block-content {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.data.item.title {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.product.data.items {
|
||||
> .item.content {
|
||||
padding: 20px 0 20px 10px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
|
||||
.mp-sidebar {
|
||||
.data.item.title {
|
||||
width: 50% !important;
|
||||
margin: 0 !important;
|
||||
|
||||
.data.switch {
|
||||
padding-left: 10px !important;
|
||||
padding-right: 10px !important;
|
||||
|
||||
div {
|
||||
width: fit-content;
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#tab-label-popular {
|
||||
.data.switch {
|
||||
border-right: 0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-tags {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
a.label.label-default.tags-list {
|
||||
background: #fff;
|
||||
border: 1px solid #bbb;
|
||||
color: inherit;
|
||||
font-weight: normal;
|
||||
font-size: 100%;
|
||||
border-radius: 1px;
|
||||
display: inline-block;
|
||||
margin-bottom: 5px;
|
||||
padding: 10px;
|
||||
margin-right: 5px
|
||||
}
|
||||
|
||||
ul.menu-categories {
|
||||
li.category-item {
|
||||
list-style: none;
|
||||
//padding: 10px 0 5px 0;
|
||||
}
|
||||
|
||||
.category-level3 {
|
||||
display: none;
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
.category-level4 {
|
||||
display: none;
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
a.list-categories {
|
||||
color: inherit;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
i {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
h2.list-title {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.list-post-tabs {
|
||||
padding: 5px 10px 5px 0;
|
||||
|
||||
&:hover {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
.post-left {
|
||||
float: left;
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.post-right {
|
||||
float: left;
|
||||
width: 75%;
|
||||
padding-left: 10px;
|
||||
box-sizing: border-box;
|
||||
|
||||
span {
|
||||
font-size: 14px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
display: block;
|
||||
|
||||
&.create-at {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tab-pane.fade {
|
||||
border-left: 1px solid #ddd;
|
||||
border-right: 1px solid #ddd;
|
||||
border-bottom: 1px solid #ddd;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.fa.fa-angle-right {
|
||||
font-size: larger;
|
||||
}
|
||||
|
||||
.sidebar .mpblog-search {
|
||||
float: none !important;
|
||||
padding: 0 !important;
|
||||
margin-bottom: 15px !important;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.autocomplete-suggestions {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #ddd;
|
||||
background: #FFF;
|
||||
cursor: default;
|
||||
overflow: auto;
|
||||
-webkit-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64);
|
||||
-moz-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64);
|
||||
box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64);
|
||||
border-top: 0;
|
||||
padding: 10px 0;
|
||||
overflow-x: hidden;
|
||||
|
||||
strong {
|
||||
font-weight: bold;
|
||||
color: #000;
|
||||
}
|
||||
}
|
||||
|
||||
.autocomplete-suggestion {
|
||||
padding: 2px 5px;
|
||||
border-bottom: 1px solid #eee;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.mpblog-suggestion {
|
||||
display: block;
|
||||
|
||||
&:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
line-height: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.mpblog-suggestion-left, .mpblog-suggestion-right {
|
||||
float: left;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
.mpblog-suggestion-left {
|
||||
max-width: 25%;
|
||||
}
|
||||
|
||||
.mpblog-suggestion-right.image-visible {
|
||||
max-width: calc(~"75% - 40px");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.autocomplete-no-suggestion {
|
||||
padding: 2px 5px;
|
||||
}
|
||||
|
||||
.autocomplete-selected {
|
||||
background: #F0F0F0;
|
||||
}
|
||||
|
||||
.autocomplete-group {
|
||||
padding: 2px 5px;
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
color: #000;
|
||||
display: block;
|
||||
border-bottom: 1px solid #000;
|
||||
}
|
||||
|
||||
//@media (max-width: 767px) {
|
||||
// .autocomplete-suggestion .mpblog-suggestion .mpblog-suggestion-right {
|
||||
// max-width: calc(100% - 31%);
|
||||
// }
|
||||
//}
|
||||
|
||||
.mpblog-product-des {
|
||||
color: #333333;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.mpblog-search {
|
||||
position: relative;
|
||||
|
||||
button.action.search {
|
||||
display: inline-block;
|
||||
background: none !important;
|
||||
-moz-box-sizing: content-box;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
line-height: inherit;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-shadow: none;
|
||||
font-weight: 400;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 2px;
|
||||
z-index: 1;
|
||||
|
||||
:before {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
color: #8f8f8f;
|
||||
}
|
||||
|
||||
span {
|
||||
border: 0;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
label[for="mpblog-search-box"] {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* style comment */
|
||||
textarea.default-cmt__content__cmt-block__cmt-box__cmt-input {
|
||||
overflow: hidden !important;
|
||||
resize: none;
|
||||
min-height: 80px;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.default-cmt__content__cmt-block__guest-box {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.show-cmt__cmt-row.is-reply {
|
||||
padding-left: 50px !important;
|
||||
}
|
||||
|
||||
.default-cmt__content__cmt-block__cmt-box__cmt-btn {
|
||||
float: right;
|
||||
|
||||
.default-cmt_loading {
|
||||
display: inline-block;
|
||||
width: 20px;
|
||||
vertical-align: middle;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.cmt-row__reply-row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.default-cmt__cmt-login {
|
||||
float: right;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
div.default-cmt__content__cmt-content {
|
||||
width: 100%;
|
||||
margin-top: 50px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
ul.default-cmt__content__cmt-content {
|
||||
list-style: none !important;
|
||||
}
|
||||
|
||||
.cmt-row__cmt-content {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.cmt-row__cmt-interactions {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.cmt-row__cmt-content p {
|
||||
margin: 3px 0 !important;
|
||||
}
|
||||
|
||||
.interactions__btn-actions {
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
a.interactions__btn-actions.action {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.interactions__cmt-createdat {
|
||||
display: inline-block;
|
||||
color: #999;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.cmt-row.reply-row {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.reply-form__form-input {
|
||||
margin-bottom: 0 !important;
|
||||
position: relative;
|
||||
|
||||
.default-cmt_loading {
|
||||
width: 20px;
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.default-cmt__content__cmt-row.reply-row {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
|
||||
li.default-cmt__content__cmt-content__cmt-row.cmt-row.reply-row {
|
||||
margin-top: 5px;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
li.default-cmt__content__cmt-content__cmt-row.cmt-row {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 15px;
|
||||
padding-bottom: 5px;
|
||||
border-top: 1px solid #f5f5f5;
|
||||
}
|
||||
|
||||
.default-cmt__content__cmt-content ul:first-child {
|
||||
padding-left: 5px !important;
|
||||
}
|
||||
|
||||
/* end style comment */
|
||||
|
||||
.widget-title {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.author-social img.img-responsive {
|
||||
float: left;
|
||||
margin-top: 15px;
|
||||
margin-left: 15px;
|
||||
height: 25px;
|
||||
width: 25px;
|
||||
}
|
||||
|
||||
.share-col-right {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/*post view css*/
|
||||
.page-layout-1column .column.main {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
/* Footer Copyright */
|
||||
.mp-footer {
|
||||
margin-top: 50px;
|
||||
font-size: 8px !important;
|
||||
display: block;
|
||||
clear: both;
|
||||
float: right;
|
||||
text-transform: inherit;
|
||||
|
||||
h3 {
|
||||
margin-top: 50px;
|
||||
font-size: 8px !important;
|
||||
display: block;
|
||||
clear: both;
|
||||
float: right;
|
||||
text-transform: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
.mp-footer-links-light {
|
||||
color: #E8E8E8 !important;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
vertical-align: baseline;
|
||||
|
||||
a {
|
||||
color: #E8E8E8 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.post-image {
|
||||
min-height: 250px;
|
||||
position: relative;
|
||||
|
||||
img.img-responsive {
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
.mpblog-post-view {
|
||||
.post-view-image {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 600px) {
|
||||
.post-item-list {
|
||||
.post-image {
|
||||
min-width: 250px;
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
.post-info-wraper {
|
||||
display: table-cell;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.post-info-wraper {
|
||||
display: table-cell;
|
||||
vertical-align: top;
|
||||
|
||||
h2.mp-post-title {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.post-list-content {
|
||||
.limiter {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
|
||||
/** Yourstore theme */
|
||||
.mpblog-etheme-yourstore {
|
||||
.post-list-container,
|
||||
.post-view,
|
||||
.mp-blog-rss {
|
||||
width: 85%;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.block-blog-related {
|
||||
border-bottom: solid 1px #dfdfdf;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.mpblog-etheme-yourstore {
|
||||
.page-layout-2columns-right .post-list-content {
|
||||
border-right: solid 1px #dfdfdf;
|
||||
}
|
||||
|
||||
.page-layout-2columns-left .post-list-content {
|
||||
border-left: solid 1px #dfdfdf;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.mpblog-etheme-yourstore {
|
||||
.products-same-post li {
|
||||
height: 400px;
|
||||
width: 24.5% !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1440px) {
|
||||
.mpblog-etheme-yourstore {
|
||||
.products-same-post li {
|
||||
height: 500px;
|
||||
width: 16.67% !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
@media all and (min-width: 640px) {
|
||||
.post-list-content .products-grid .product-item {
|
||||
width: 48%;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (max-width: 640px) {
|
||||
.post-list-content .products-grid .product-item {
|
||||
width: 98%;
|
||||
}
|
||||
}
|
||||
/* mageplaza end blog style */
|
||||
+1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
define([
|
||||
'jquery'
|
||||
], function ($) {
|
||||
"use strict";
|
||||
|
||||
var parentCategory = $(".mp-blog-expand-tree-2");
|
||||
var childCategory = $(".mp-blog-expand-tree-3");
|
||||
|
||||
parentCategory.click(function () {
|
||||
if ($(this).hasClass("mp-blog-expand-tree-2")) {
|
||||
$(this).parent().find(".category-level3").slideDown("fast");
|
||||
$(this).removeClass("mp-blog-expand-tree-2 fa fa-plus-square-o")
|
||||
.addClass("mp-blog-narrow-tree-2 fa fa-minus-square-o");
|
||||
} else {
|
||||
$(this).parent().find(".category-level4").slideUp("fast");
|
||||
$(this).parent().find(".category-level3").slideUp("fast");
|
||||
$(this).removeClass("mp-blog-narrow-tree-2 fa fa-minus-square-o")
|
||||
.addClass("mp-blog-expand-tree-2 fa fa-plus-square-o");
|
||||
$(this).parent().find(".mp-blog-narrow-tree-3")
|
||||
.removeClass("mp-blog-narrow-tree-3 fa fa-minus-square-o")
|
||||
.addClass("mp-blog-expand-tree-3 fa fa-plus-square-o");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
childCategory.click(function () {
|
||||
if ($(this).hasClass("mp-blog-expand-tree-3")) {
|
||||
$(this).parent().find(".category-level4").slideDown("fast");
|
||||
$(this).removeClass("mp-blog-expand-tree-3 fa fa-plus-square-o")
|
||||
.addClass("mp-blog-narrow-tree-3 fa fa-minus-square-o");
|
||||
} else {
|
||||
$(this).parent().find(".category-level4").slideUp("fast");
|
||||
$(this).removeClass("mp-blog-narrow-tree-3 fa fa-minus-square-o")
|
||||
.addClass("mp-blog-expand-tree-3 fa fa-plus-square-o");
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
+84
File diff suppressed because one or more lines are too long
+304
@@ -0,0 +1,304 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
|
||||
require([
|
||||
'jquery'
|
||||
], function ($) {
|
||||
'use strict';
|
||||
|
||||
var cmtBox = $('.default-cmt__content__cmt-block__cmt-box__cmt-input'),
|
||||
submitCmt = $('.default-cmt__content__cmt-block__cmt-box__cmt-btn__btn-submit'),
|
||||
defaultCmt = $('ul.default-cmt__content__cmt-content:first'),
|
||||
likeBtn = defaultCmt.find('.btn-like'),
|
||||
replyBtn = defaultCmt.find('.btn-reply');
|
||||
|
||||
submitComment();
|
||||
likeComment(likeBtn);
|
||||
showReply(replyBtn);
|
||||
|
||||
$('li.default-cmt__content__cmt-content__cmt-row:first').css({'border-top': 'none'});
|
||||
$('.default-cmt__cmt-login__btn-login').click(function () {
|
||||
var socialPopup = $("[href$='social-login-popup']");
|
||||
|
||||
if (socialPopup.length) {
|
||||
socialPopup.first().trigger("click");
|
||||
} else {
|
||||
window.location.href = loginUrl;
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Check the guest name and email input is valid
|
||||
*
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function checkGuestFormValidate() {
|
||||
if (isLogged == 'No') {
|
||||
return $("#default-cmt__content__cmt-block__guest-form").valid();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* The comment submit button action
|
||||
*/
|
||||
function submitComment() {
|
||||
submitCmt.click(function () {
|
||||
$(".default-cmt__content__cmt-block__cmt-box").find('.messages').hide();
|
||||
if (checkGuestFormValidate()) {
|
||||
var cmtText = cmtBox.val();
|
||||
|
||||
if (cmtText.trim().length) {
|
||||
$('.default-cmt_loading').show();
|
||||
$(this).prop('disabled', true);
|
||||
var ajaxRequest = ajaxCommentActions(cmtText, submitCmt);
|
||||
ajaxRequest.done(function () {
|
||||
cmtBox.val('');
|
||||
$('.default-cmt_loading').hide();
|
||||
$(this).prop('disabled', false);
|
||||
}.bind(this));
|
||||
} else {
|
||||
$('.default-cmt__content__cmt-block__cmt-box__cmt-input').parent().append(messengerBox.cmt_warning);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//like action
|
||||
function likeComment(btn) {
|
||||
btn.each(function () {
|
||||
var likeEl = $(this);
|
||||
|
||||
likeEl.click(function () {
|
||||
var cmtId = $(this).attr('data-cmt-id'),
|
||||
cmtRowContainer = $(this).closest('.default-cmt__content__cmt-content__cmt-row');
|
||||
if (isLogged === 'Yes') {
|
||||
var likeCount = $(this).find('span').text();
|
||||
if ($(this).attr('click') === '1') {
|
||||
if ($(this).hasClass('mpblog-liked')) {
|
||||
$(this).css('color', '#333333');
|
||||
likeCount--;
|
||||
$(this).find('span').text((likeCount === 0) ? "" : likeCount);
|
||||
$(this).removeClass('mpblog-liked')
|
||||
|
||||
} else {
|
||||
likeCount++;
|
||||
$(this).find('span').text(likeCount);
|
||||
$(this).css('color', likedColor);
|
||||
$(this).addClass('mpblog-liked')
|
||||
}
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: window.location.href,
|
||||
data: {cmtId: cmtId},
|
||||
success: function (response) {
|
||||
if (response.status === 'ok') {
|
||||
$(likeEl).attr('click', '1');
|
||||
} else if (response.status === 'error' && response.hasOwnProperty(error)) {
|
||||
defaultCmt.append(response.error);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$(this).attr('click', '0');
|
||||
|
||||
} else {
|
||||
cmtRowContainer.append(messengerBox.login_warning);
|
||||
jQuery.fn.fadeOutAndRemove = function (speed) {
|
||||
$(this).fadeOut(speed, function () {
|
||||
$(this).remove();
|
||||
})
|
||||
};
|
||||
var removeNotification = function () {
|
||||
$('.message.error.message-error').fadeOutAndRemove('normal');
|
||||
};
|
||||
setTimeout(removeNotification, 3000);
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
//show reply
|
||||
function showReply(btn) {
|
||||
btn.each(function () {
|
||||
|
||||
$(this).click(function () {
|
||||
var cmtId = (typeof $(this).closest('.default-cmt__content__cmt-content__cmt-row').parent().parent().parent().parent().attr('data-cmt-id') !== 'undefined') ? $(this).closest('.default-cmt__content__cmt-content__cmt-row').parent().parent().attr('data-cmt-id') : $(this).attr('data-cmt-id'),
|
||||
inputCmtID = $(this).attr('data-cmt-id'),
|
||||
cmtRowCmt = $("div").find('#cmt-row');
|
||||
var cmtRowContainer = $(this).closest('.default-cmt__content__cmt-content__cmt-row');
|
||||
if ($("li.cmt-row-" + cmtId).find("ul").length) {
|
||||
var cmtRowContainer = $("#cmt-id-" + cmtId + " ul:last-child");
|
||||
}
|
||||
var cmtRow = cmtRowContainer.find('.row__' + inputCmtID);
|
||||
var cmtName = $(".username__" + inputCmtID).text();
|
||||
|
||||
if (isLogged === 'Yes') {
|
||||
if (cmtRowCmt.length) {
|
||||
cmtRowCmt.toggle();
|
||||
$("#cmt-row").remove();
|
||||
}
|
||||
if (cmtRow.length) {
|
||||
cmtRow.toggle();
|
||||
$("#cmt-row").remove();
|
||||
} else {
|
||||
cmtRowContainer.append('<div id="cmt-row" class="cmt-row__reply-row row row__' + inputCmtID + ' col-md-12">' +
|
||||
'<div class="reply-form__form-input form-group col-xs-8 col-md-6">' +
|
||||
'<label for="reply_cmt' + inputCmtID + '"></label>' +
|
||||
'<input type="text" id="reply_cmt' + inputCmtID + '" class="form-group__input form-control" placeholder="Press enter to submit reply" value="' + cmtName + ' " autofocus onfocus="this.setSelectionRange(1000,1001);"/>' +
|
||||
'</div>' +
|
||||
'</div>');
|
||||
var input = $('#reply_cmt' + inputCmtID);
|
||||
input.closest('.form-group').append(
|
||||
$('.default-cmt__content__cmt-block__cmt-box__cmt-btn .default-cmt_loading').clone()
|
||||
);
|
||||
input.focus();
|
||||
submitReply(input, cmtId, cmtRowContainer);
|
||||
}
|
||||
} else {
|
||||
cmtRowContainer.append(messengerBox.login_warning);
|
||||
jQuery.fn.fadeOutAndRemove = function (speed) {
|
||||
$(this).fadeOut(speed, function () {
|
||||
$(this).remove();
|
||||
})
|
||||
};
|
||||
var removeNotification = function () {
|
||||
$('.message.error.message-error').fadeOutAndRemove('normal');
|
||||
};
|
||||
setTimeout(removeNotification, 3000);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
//submit reply
|
||||
function submitReply(input, replyId, parentComment) {
|
||||
input.keypress(function (e) {
|
||||
var text = input.val();
|
||||
if (text !== '') {
|
||||
if (e.keyCode === 13) {
|
||||
input.siblings('.default-cmt_loading').show();
|
||||
input.prop('disabled', true);
|
||||
var ajaxRequest = ajaxCommentActions(text, input, true, replyId, parentComment);
|
||||
ajaxRequest.done(function () {
|
||||
input.closest('.cmt-row__reply-row').hide();
|
||||
input.siblings('.default-cmt_loading').hide();
|
||||
input.prop('disabled', false);
|
||||
$("#cmt-row").remove();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//submit comment actions
|
||||
function ajaxCommentActions(cmtText, inputEl, checkReply, cmtId, parentComment) {
|
||||
var isReply = (typeof checkReply !== 'undefined') ? 1 : 0,
|
||||
replyId = (typeof cmtId !== 'undefined') ? cmtId : 0,
|
||||
displayReply = (typeof checkReply !== 'undefined');
|
||||
var guestName = $('#default-cmt__content__cmt-block__guest-box__name-input').val();
|
||||
var guestEmail = $('#default-cmt__content__cmt-block__guest-box__email-input').val();
|
||||
return $.ajax({
|
||||
type: 'POST',
|
||||
url: window.location.href,
|
||||
// async: false,
|
||||
data: {cmt_text: cmtText, isReply: isReply, replyId: replyId, guestName: guestName, guestEmail: guestEmail},
|
||||
success: function (response) {
|
||||
switch (response.status) {
|
||||
case 'duplicated':
|
||||
$('.default-cmt__content__cmt-block__cmt-box__cmt-input').parent().append(messengerBox.exist_email_warning);
|
||||
break;
|
||||
case 3:
|
||||
$('.default-cmt__content__cmt-block').prepend(messengerBox.comment_approve);
|
||||
break;
|
||||
case 1:
|
||||
displayComment(response, displayReply);
|
||||
var cmtCount = defaultCmt.find('li').length;
|
||||
$('.mp-cmt-count').text(cmtCount);
|
||||
inputEl.val('');
|
||||
break;
|
||||
case 'error':
|
||||
if (checkReply !== 'undefined') {
|
||||
parentComment.append(response.error);
|
||||
} else {
|
||||
defaultCmt.append(response.error);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// display comment
|
||||
function displayComment(cmt, isReply) {
|
||||
function htmlComment(text) {
|
||||
var html = '';
|
||||
var sub = text.split("\n");
|
||||
for (var i = 0; i < sub.length; i++) {
|
||||
html += '<p>' + sub[i] + '</p>';
|
||||
}
|
||||
return html;
|
||||
}
|
||||
var cmtRow = '<li style="width: 100%" id="cmt-id-' + cmt.cmt_id + '" class="default-cmt__content__cmt-content__cmt-row cmt-row-' + cmt.cmt_id + ' cmt-row col-m-12 '
|
||||
+ (isReply ? ('reply-row') : '') + '" data-cmt-id="' + cmt.cmt_id + '"' + (isReply ? ('data-reply-id="' + cmt.reply_cmt + '"') : '')
|
||||
+ '> <div class="cmt-row__cmt-username"> <span class="cmt-row__cmt-username username username__' + cmt.cmt_id + '">' + cmt.user_cmt
|
||||
+ '</span> </div> <div class="cmt-row__cmt-content"> <p>' + htmlComment(cmt.cmt_text)
|
||||
+ '</p> </div> <div class="cmt-row__cmt-interactions interactions"> <div class="interactions__btn-actions"> <a class="interactions__btn-actions action btn-like mpblog-like" data-cmt-id="'
|
||||
+ cmt.cmt_id + '" click="1"><i class="fa fa-thumbs-up" aria-hidden="true" style="margin-right: 3px"></i><span class="count-like__like-text"></span></a> <a class="interactions__btn-actions action btn-reply" data-cmt-id="'
|
||||
+ cmt.cmt_id + '">' + reply + '</a> </div> <div class="interactions__cmt-createdat"> <span>' + cmt.created_at + '</span> </div> </div> </li>';
|
||||
|
||||
if (isReply) {
|
||||
var replyCmtId = cmt.reply_cmt;
|
||||
var replyCmt = defaultCmt.find('.default-cmt__content__cmt-content__cmt-row');
|
||||
|
||||
replyCmt.each(function () {
|
||||
var cmtEl = $(this);
|
||||
if (cmtEl.attr('data-cmt-id') === replyCmtId) {
|
||||
var replyList = cmtEl.find('ul.default-cmt__content__cmt-content:first');
|
||||
|
||||
if (!replyList.length) {
|
||||
cmtRow = $('<ul class="default-cmt__content__cmt-content row">' + cmtRow + '</ul>');
|
||||
cmtEl.append(cmtRow);
|
||||
|
||||
likeComment(cmtRow.find('.btn-like'));
|
||||
showReply(cmtRow.find('.btn-reply'));
|
||||
} else {
|
||||
cmtRow = $(cmtRow);
|
||||
replyList.append(cmtRow);
|
||||
|
||||
likeComment(cmtRow.find('.btn-like'));
|
||||
showReply(cmtRow.find('.btn-reply'));
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
cmtRow = $(cmtRow);
|
||||
defaultCmt.append(cmtRow);
|
||||
|
||||
likeComment(cmtRow.find('.btn-like'));
|
||||
showReply(cmtRow.find('.btn-reply'));
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,90 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
define([
|
||||
'jquery',
|
||||
"mage/adminhtml/events",
|
||||
"mage/adminhtml/wysiwyg/tiny_mce/setup"
|
||||
], function ($) {
|
||||
'use strict';
|
||||
|
||||
return {
|
||||
config: function (nameEL, versionEditor, versionMagento, width) {
|
||||
var wysiwygcompany_description,
|
||||
config = {},
|
||||
editor;
|
||||
|
||||
if (typeof width === 'undefined') {
|
||||
width = '99%';
|
||||
}
|
||||
|
||||
if (versionMagento === "2") {
|
||||
$.extend(config, {
|
||||
settings: {
|
||||
theme_advanced_buttons1: 'bold,italic,|,justifyleft,justifycenter,justifyright,|,' +
|
||||
'fontselect,fontsizeselect,|,forecolor,backcolor,|,link,unlink,image,|,' +
|
||||
'bullist,numlist,|,code',
|
||||
theme_advanced_buttons2: null,
|
||||
theme_advanced_buttons3: null,
|
||||
theme_advanced_buttons4: null
|
||||
}
|
||||
});
|
||||
editor = new tinyMceWysiwygSetup(
|
||||
nameEL,
|
||||
config
|
||||
);
|
||||
editor.turnOn();
|
||||
$('#' + nameEL).addClass('wysiwyg-editor').data('wysiwygEditor', editor);
|
||||
} else if (versionEditor === "4") {
|
||||
wysiwygcompany_description = new wysiwygSetup(nameEL, {
|
||||
"width": width,
|
||||
"height": "200px",
|
||||
"plugins": [{"name": "image"}],
|
||||
"tinymce4": {
|
||||
"toolbar": "formatselect | bold italic underline | alignleft aligncenter alignright |" +
|
||||
" bullist numlist | link table charmap",
|
||||
"plugins": "advlist autolink lists link charmap media noneditable" +
|
||||
" table contextmenu paste code help table"
|
||||
}
|
||||
});
|
||||
wysiwygcompany_description.setup("exact");
|
||||
} else {
|
||||
$.extend(config, {
|
||||
settings: {
|
||||
theme_advanced_buttons1: 'bold,italic,|,justifyleft,justifycenter,justifyright,|,' +
|
||||
'fontselect,fontsizeselect,|,forecolor,backcolor,|,link,unlink,image,|,' +
|
||||
'bullist,numlist,|,code',
|
||||
theme_advanced_buttons2: null,
|
||||
theme_advanced_buttons3: null,
|
||||
theme_advanced_buttons4: null
|
||||
},
|
||||
tinymce : {
|
||||
content_css : null
|
||||
}
|
||||
});
|
||||
editor = new wysiwygSetup(
|
||||
nameEL,
|
||||
config
|
||||
);
|
||||
editor.setup("exact");
|
||||
$('#' + nameEL).addClass('wysiwyg-editor').data('wysiwygEditor', editor);
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
@@ -0,0 +1,193 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
define([
|
||||
'jquery'
|
||||
], function ($) {
|
||||
'use strict';
|
||||
|
||||
$.widget('mageplaza.mpBlogHelpfulRate', {
|
||||
options: {
|
||||
url: '',
|
||||
post_id: '',
|
||||
mode: ''
|
||||
},
|
||||
_create: function () {
|
||||
var post_id = this.options.post_id,
|
||||
url = this.options.url,
|
||||
self = this,
|
||||
subPostId = {};
|
||||
|
||||
if (self.options.mode === 1) {
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: "post",
|
||||
data: {
|
||||
post_id: post_id,
|
||||
action: '3',
|
||||
mode: self.options.mode
|
||||
},
|
||||
showLoader: false,
|
||||
success: function (response) {
|
||||
if (response.status === 0) {
|
||||
self.disableReview(response.action);
|
||||
}
|
||||
}
|
||||
});
|
||||
} else if (JSON.parse(self.getCookie('mpblog_post_data'))) {
|
||||
subPostId = JSON.parse(self.getCookie('mpblog_post_data'));
|
||||
if (typeof subPostId[post_id] !== "undefined") {
|
||||
self.disableReview(subPostId[post_id].type);
|
||||
}
|
||||
}
|
||||
|
||||
$('#mp-blog-review div').each(function () {
|
||||
var el = this;
|
||||
|
||||
|
||||
$(el).on('click', function () {
|
||||
var action = 0,
|
||||
currentPostIds = {},
|
||||
likeId = 0;
|
||||
|
||||
if (JSON.parse(self.getCookie('mpblog_post_data'))) {
|
||||
currentPostIds = JSON.parse(self.getCookie('mpblog_post_data'));
|
||||
}
|
||||
|
||||
if ($(this).hasClass('mp-blog-like')) {
|
||||
action = 1;
|
||||
}
|
||||
|
||||
if (typeof currentPostIds[post_id] !== "undefined" && self.options.mode === 0) {
|
||||
likeId = currentPostIds[post_id].likeId;
|
||||
self.enableReview(currentPostIds[post_id].type);
|
||||
if (action === currentPostIds[post_id].type) {
|
||||
delete currentPostIds[post_id];
|
||||
document.cookie = 'mpblog_post_data = ' + JSON.stringify(currentPostIds);
|
||||
} else {
|
||||
currentPostIds[post_id].type = action;
|
||||
self.disableReview(action);
|
||||
}
|
||||
}
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: "post",
|
||||
data: {
|
||||
post_id: post_id,
|
||||
action: action,
|
||||
mode: self.options.mode,
|
||||
likeId: likeId
|
||||
},
|
||||
showLoader: true,
|
||||
success: function (response) {
|
||||
var storedPostIds,
|
||||
jsonStringIds;
|
||||
|
||||
if (response['postLike']
|
||||
&& self.options.mode === 0 && typeof currentPostIds[post_id] === "undefined") {
|
||||
storedPostIds =
|
||||
self.receiveCookiePostIds(post_id, action, response['postLike'], self);
|
||||
jsonStringIds = JSON.stringify(storedPostIds);
|
||||
document.cookie = 'mpblog_post_data = ' + jsonStringIds;
|
||||
}
|
||||
|
||||
if (response['status']) {
|
||||
if (response["sumLike"]) {
|
||||
$('#mp-blog-review .mp-blog-like .mp-blog-view')
|
||||
.text('(' + response["sumLike"] + ')');
|
||||
} else {
|
||||
$('#mp-blog-review .mp-blog-like .mp-blog-view')
|
||||
.text('');
|
||||
}
|
||||
if (response["sumDislike"]) {
|
||||
$('#mp-blog-review .mp-blog-dislike .mp-blog-view')
|
||||
.text('(' + response["sumDislike"] + ')');
|
||||
} else {
|
||||
$('#mp-blog-review .mp-blog-dislike .mp-blog-view')
|
||||
.text('');
|
||||
}
|
||||
}
|
||||
|
||||
if (response['status']) {
|
||||
self.enableAllReview();
|
||||
if (response['postLike']) {
|
||||
self.disableReview(action);
|
||||
}
|
||||
}
|
||||
|
||||
$('html, body').animate({
|
||||
scrollTop: $('body').offset().top
|
||||
}, 500);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
},
|
||||
disableReview: function (action) {
|
||||
if ('' + action === '1') {
|
||||
$('.mp-blog-like').css('background-color', '#658259');
|
||||
|
||||
} else {
|
||||
$('.mp-blog-dislike').css('background-color', '#9a6464');
|
||||
}
|
||||
},
|
||||
enableReview: function (action) {
|
||||
if ('' + action === '1') {
|
||||
$('.mp-blog-like').css('background-color', '#6AA84F');
|
||||
|
||||
} else {
|
||||
$('.mp-blog-dislike').css('background-color', '#EC3A3C');
|
||||
}
|
||||
},
|
||||
enableAllReview: function () {
|
||||
$('.mp-blog-like').css('background-color', '#6AA84F');
|
||||
$('.mp-blog-dislike').css('background-color', '#EC3A3C');
|
||||
|
||||
},
|
||||
getCookie: function (name) {
|
||||
var v = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
|
||||
|
||||
return v ? v[2] : null;
|
||||
},
|
||||
receiveCookiePostIds: function (postId, action, likeId, self) {
|
||||
var postData = {
|
||||
id: postId,
|
||||
type: action,
|
||||
likeId: likeId
|
||||
},
|
||||
receivedJsonStr = self.getCookie('mpblog_post_data'),
|
||||
postIds = JSON.parse(receivedJsonStr);
|
||||
|
||||
if (postIds == null) {
|
||||
postIds = {};
|
||||
}
|
||||
if (typeof postIds[postId] !== "undefined") {
|
||||
|
||||
return postIds;
|
||||
}
|
||||
postIds[postId] = postData;
|
||||
|
||||
return postIds;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
return $.mageplaza.mpBlogHelpfulRate;
|
||||
});
|
||||
+204
@@ -0,0 +1,204 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
define([
|
||||
'jquery',
|
||||
'mage/translate',
|
||||
'underscore',
|
||||
'Magento_Ui/js/modal/modal',
|
||||
'uiRegistry',
|
||||
'moment',
|
||||
"Mageplaza_Blog/js/get-editor"
|
||||
], function ($, $t, _, modal, registry, moment, editor) {
|
||||
'use strict';
|
||||
|
||||
$.widget('mageplaza.mpBlogManagePost', {
|
||||
options: {
|
||||
deleteUrl: '',
|
||||
basePubUrl: '',
|
||||
postDatas: {},
|
||||
editorVersion: '',
|
||||
magentoVersion: ''
|
||||
},
|
||||
_create: function () {
|
||||
var self = this,
|
||||
htmlPopup = $('#mp-blog-new-post-popup');
|
||||
|
||||
$('.mp-blog-new-post button').on('click', function () {
|
||||
self._AddNewPost(self, htmlPopup);
|
||||
});
|
||||
|
||||
$('.mpblog-post-edit').on('click', function () {
|
||||
self._EditPost(self, this, htmlPopup);
|
||||
});
|
||||
|
||||
$('.mpblog-post-duplicate').on('click', function () {
|
||||
self._DuplicatePost(self, this, htmlPopup);
|
||||
});
|
||||
|
||||
$('.mpblog-post-delete').on('click', function () {
|
||||
self._DeletePost(self, this);
|
||||
});
|
||||
},
|
||||
_AddNewPost: function (self, htmlPopup) {
|
||||
var options = {
|
||||
'type': 'popup',
|
||||
'title': $t('Add New Post'),
|
||||
'responsive': true,
|
||||
'innerScroll': true,
|
||||
'buttons': []
|
||||
};
|
||||
|
||||
self._resetForm('');
|
||||
self._openPopup(options, htmlPopup, self);
|
||||
},
|
||||
_resetForm: function (postContent) {
|
||||
var iframe = document.getElementById('post_content_ifr');
|
||||
|
||||
$('#mp_blog_post_form').trigger("reset");
|
||||
$('#short_description').empty();
|
||||
$('#post_content').empty();
|
||||
$('#post_id').removeAttr('value');
|
||||
|
||||
if (iframe){
|
||||
iframe.contentWindow.document.open();
|
||||
iframe.contentWindow.document.write(postContent);
|
||||
iframe.contentWindow.document.close();
|
||||
}
|
||||
|
||||
$('.mp-field .mp-image-link').remove();
|
||||
registry.get('customCategory').value('');
|
||||
registry.get('customTag').value('');
|
||||
registry.get('customTopic').value('');
|
||||
},
|
||||
_EditPost: function (self, click, htmlPopup) {
|
||||
var postId = $(click).parent().data('postid'),
|
||||
postData = self.options.postDatas[postId],
|
||||
pubUrl = self.options.basePubUrl,
|
||||
options = {
|
||||
'type': 'popup',
|
||||
'title': $t('Edit Post'),
|
||||
'responsive': true,
|
||||
'innerScroll': true,
|
||||
'buttons': []
|
||||
};
|
||||
if (htmlPopup.find('#mp_blog_post_form [name="name"]').length > 0) {
|
||||
self._resetForm(postData['post_content']);
|
||||
}
|
||||
self._openPopup(options, htmlPopup, self);
|
||||
self._setPopupFormData(postData, pubUrl, htmlPopup);
|
||||
},
|
||||
_setPopupFormData: function(postData, pubUrl, htmlPopup){
|
||||
_.each(postData, function (value, name) {
|
||||
var field = htmlPopup.find('#mp_blog_post_form [name="' + name + '"]'),
|
||||
imageEL,
|
||||
deleteEL,
|
||||
date;
|
||||
if (field.is('[type="file"]') && value) {
|
||||
imageEL = '<a class="mp-image-link" href="' + pubUrl + 'mageplaza/blog/post/' + value
|
||||
+ '" onclick="imagePreview(\'post_image_image\'); return false;" >' +
|
||||
'<img src="' + pubUrl + 'mageplaza/blog/post/' + value + '" id="post_image_image"' +
|
||||
' title="' + value + '" alt="' + value + '" height="22" width="22"' +
|
||||
' class="small-image-preview v-middle">' +
|
||||
'</a>';
|
||||
field.parent().prepend(imageEL);
|
||||
deleteEL = '<span class="delete-image">'
|
||||
+ '<input style="width: 8%" type="checkbox" name="image[delete]"'
|
||||
+ ' value="1" class="checkbox" id="post_image_delete">'
|
||||
+ '<label for="post_image_delete"> Delete Image</label>'
|
||||
+ '</span>';
|
||||
if (!field.parent().find('.delete-image').lenth) {
|
||||
field.parent().append(deleteEL);
|
||||
}
|
||||
} else if (field.is('[type="datetime-local"]')) {
|
||||
date = moment(value).format("YYYY-MM-DDTkk:mm");
|
||||
field.val(date);
|
||||
} else if (field.is('input') || field.is('select')) {
|
||||
field.val(value);
|
||||
} else if (field.is('textarea')) {
|
||||
field.html(value);
|
||||
}
|
||||
if (name === 'category_ids') {
|
||||
registry.get('customCategory').value(value);
|
||||
}
|
||||
if (name === 'tag_ids') {
|
||||
registry.get('customTag').value(value);
|
||||
}
|
||||
if (name === 'topic_ids') {
|
||||
registry.get('customTopic').value(value);
|
||||
}
|
||||
});
|
||||
},
|
||||
_DuplicatePost: function (self, click, htmlPopup) {
|
||||
var postId = $(click).parent().data('postid'),
|
||||
postData = self.options.postDatas[postId],
|
||||
pubUrl = self.options.basePubUrl,
|
||||
options = {
|
||||
'type': 'popup',
|
||||
'title': $t('Duplicate Post'),
|
||||
'responsive': true,
|
||||
'innerScroll': true,
|
||||
'buttons': []
|
||||
};
|
||||
|
||||
if (htmlPopup.find('#mp_blog_post_form [name="name"]').length > 0) {
|
||||
self._resetForm(postData['post_content']);
|
||||
}
|
||||
self._openPopup(options, htmlPopup, self);
|
||||
self._setPopupFormData(postData, pubUrl, htmlPopup);
|
||||
$('#post_id').removeAttr('value');
|
||||
$('#image').parent().append('<input type="hidden" name="image" value="'+postData["image"]+'" />');
|
||||
},
|
||||
_DeletePost: function (self, widget) {
|
||||
var url = self.options.deleteUrl,
|
||||
id = $(widget).parent().data('postid');
|
||||
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: "post",
|
||||
data: {
|
||||
post_id: id
|
||||
},
|
||||
showLoader: true,
|
||||
success: function (result) {
|
||||
if (result['status'] === 1){
|
||||
$('.post-list-item[data-post-id="'+result['post_id']+'"]').remove();
|
||||
}
|
||||
},
|
||||
complete: function () {
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
_openPopup: function (options, htmlPopup, self) {
|
||||
var popupModal,
|
||||
editorVersion = self.options.editorVersion,
|
||||
magentoVersion = self.options.magentoVersion;
|
||||
|
||||
popupModal = modal(options, htmlPopup);
|
||||
popupModal.openModal();
|
||||
$('#mp_blog_post_form').trigger('contentUpdated');
|
||||
|
||||
editor.config('post_content', editorVersion, magentoVersion);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
return $.mageplaza.mpBlogManagePost;
|
||||
});
|
||||
@@ -0,0 +1,63 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
define([
|
||||
'jquery',
|
||||
"mage/adminhtml/events",
|
||||
"mage/adminhtml/wysiwyg/tiny_mce/setup"
|
||||
], function ($) {
|
||||
'use strict';
|
||||
|
||||
$.widget('mageplaza.mpBlogPostAction', {
|
||||
options: {},
|
||||
_create: function () {
|
||||
var self = this;
|
||||
|
||||
$('button.mpblog-action-new').on('click', function () {
|
||||
self._AddNew();
|
||||
});
|
||||
},
|
||||
_AddNew: function () {
|
||||
var form = $('#mp_blog_post_form'),
|
||||
formData = new FormData(form[0]),
|
||||
htmlPopup = $('#mp-blog-new-post-popup'),
|
||||
url = form.attr('action');
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: "post",
|
||||
data: formData,
|
||||
cache: false,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
showLoader: true,
|
||||
success: function (result) {
|
||||
htmlPopup.data('mageModal').closeModal();
|
||||
if (result.status === 1) {
|
||||
setTimeout(function () {
|
||||
location.reload();
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
return $.mageplaza.mpBlogPostAction;
|
||||
});
|
||||
+9
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,144 @@
|
||||
|
||||
<!-- ko ifnot: disableLabel -->
|
||||
<label class="admin__form-field-label" data-bind="attr: {for: uid}
|
||||
">
|
||||
<span translate="label"></span>
|
||||
</label>
|
||||
<!-- /ko -->
|
||||
<div class="admin__action-multiselect-wrap action-select-wrap" tabindex="0" data-bind="
|
||||
attr: {
|
||||
id: uid
|
||||
},
|
||||
css: {
|
||||
_active: listVisible,
|
||||
'admin__action-multiselect-tree': isTree()
|
||||
},
|
||||
event: {
|
||||
focusin: onFocusIn,
|
||||
focusout: onFocusOut,
|
||||
keydown: keydownSwitcher
|
||||
},
|
||||
outerClick: outerClick.bind($data)
|
||||
">
|
||||
<!-- ko ifnot: chipsEnabled -->
|
||||
<div class="action-select admin__action-multiselect" data-role="advanced-select" data-bind="
|
||||
css: {_active: multiselectFocus},
|
||||
click: function(data, event) {
|
||||
toggleListVisible(data, event)
|
||||
}
|
||||
">
|
||||
<div class="admin__action-multiselect-text" data-role="selected-option" data-bind="text: setCaption()">
|
||||
</div>
|
||||
<!-- ko foreach: { data: getSelected(), as: 'option'} -->
|
||||
<input type="hidden" name="category_id" data-bind="
|
||||
attr: {
|
||||
id: 'wk-cat-hide'+value,
|
||||
value: value
|
||||
}
|
||||
">
|
||||
<!-- /ko -->
|
||||
</div>
|
||||
<!-- /ko -->
|
||||
<!-- ko if: chipsEnabled -->
|
||||
<div class="action-select admin__action-multiselect" data-role="advanced-select" data-bind="
|
||||
css: {_active: multiselectFocus},
|
||||
click: function(data, event) {
|
||||
toggleListVisible(data, event)
|
||||
}
|
||||
">
|
||||
<div class="admin__action-multiselect-text" data-bind="
|
||||
visible: !hasData(),
|
||||
i18n: selectedPlaceholders.defaultPlaceholder
|
||||
">
|
||||
</div>
|
||||
<!-- ko foreach: { data: getSelected(), as: 'option'} -->
|
||||
<span class="admin__action-multiselect-crumb">
|
||||
<span data-bind="text: label">
|
||||
</span>
|
||||
<button class="action-close" type="button" data-action="remove-selected-item" tabindex="-1" data-bind="click: $parent.removeSelected.bind($parent, value)
|
||||
">
|
||||
<span class="action-close-text" translate="'Close'"></span>
|
||||
</button>
|
||||
</span>
|
||||
<!-- /ko -->
|
||||
</div>
|
||||
<!-- /ko -->
|
||||
<div class="action-menu" data-bind="css: { _active: listVisible }
|
||||
">
|
||||
<!-- ko if: filterOptions -->
|
||||
<div class="admin__action-multiselect-search-wrap">
|
||||
<input class="admin__control-text admin__action-multiselect-search" data-role="advanced-select-text"
|
||||
type="text" data-bind="
|
||||
event: {
|
||||
keydown: filterOptionsKeydown
|
||||
},
|
||||
attr: {id: uid+2},
|
||||
valueUpdate: 'afterkeydown',
|
||||
value: filterInputValue,
|
||||
hasFocus: filterOptionsFocus
|
||||
">
|
||||
<label class="admin__action-multiselect-search-label" data-action="advanced-select-search" data-bind="attr: {for: uid+2}
|
||||
">
|
||||
</label>
|
||||
<div if="itemsQuantity" data-bind="text: itemsQuantity" class="admin__action-multiselect-search-count">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /ko -->
|
||||
<ul class="admin__action-multiselect-menu-inner _root" data-bind="
|
||||
event: {
|
||||
mousemove: function(data, event){onMousemove($data, event)}
|
||||
}
|
||||
">
|
||||
<!-- ko foreach: { data: options, as: 'option'} -->
|
||||
<li class="admin__action-multiselect-menu-inner-item _root" data-bind="css: { _parent: $data.optgroup }"
|
||||
data-role="option-group">
|
||||
<div class="action-menu-item" data-bind="
|
||||
css: {
|
||||
_selected: $parent.isSelected(option.value),
|
||||
_hover: $parent.isHovered(option, $element),
|
||||
_expended: $parent.getLevelVisibility($data),
|
||||
_unclickable: $parent.isLabelDecoration($data),
|
||||
_last: $parent.addLastElement($data),
|
||||
'_with-checkbox': $parent.showCheckbox
|
||||
},
|
||||
click: function(data, event){
|
||||
$parent.toggleOptionSelected($data, event);
|
||||
},
|
||||
clickBubble: false
|
||||
">
|
||||
<!-- ko if: $data.optgroup && $parent.showOpenLevelsActionIcon-->
|
||||
<div class="admin__action-multiselect-dropdown" data-bind="
|
||||
click: function(event){
|
||||
$parent.openChildLevel($data, $element, event);
|
||||
},
|
||||
clickBubble: false
|
||||
">
|
||||
</div>
|
||||
<!-- /ko-->
|
||||
<!--ko if: $parent.showCheckbox-->
|
||||
<input class="admin__control-checkbox" type="checkbox" tabindex="-1"
|
||||
data-bind="attr: { 'checked': $parent.isSelected(option.value) }">
|
||||
<!-- /ko-->
|
||||
<label class="admin__action-multiselect-label">
|
||||
<span data-bind="text: option.label"></span>
|
||||
<span if="$parent.getPath(option)" class="admin__action-multiselect-item-path"
|
||||
data-bind="text: $parent.getPath(option)"></span>
|
||||
</label>
|
||||
</div>
|
||||
<!-- ko if: $data.optgroup -->
|
||||
<!-- ko template: {name: $parent.optgroupTmpl, data: {root: $parent, current: $data}} -->
|
||||
<!-- /ko -->
|
||||
<!-- /ko-->
|
||||
</li>
|
||||
<!-- /ko -->
|
||||
</ul>
|
||||
<!-- ko if: $data.closeBtn -->
|
||||
<div class="admin__action-multiselect-actions-wrap">
|
||||
<button class="action-default" data-action="close-advanced-select" type="button"
|
||||
data-bind="click: outerClick">
|
||||
<span translate="closeBtnLabel"></span>
|
||||
</button>
|
||||
</div>
|
||||
<!-- /ko -->
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user