This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
@@ -0,0 +1,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="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="editor"/>
<body>
<referenceContainer name="content">
<block class="Mageplaza\Blog\Block\Adminhtml\Author\Edit" name="mageplaza_blog_author_edit"/>
</referenceContainer>
<referenceContainer name="left">
<block class="Mageplaza\Blog\Block\Adminhtml\Author\Edit\Tabs" name="mageplaza_blog_author_tabs">
<block class="Mageplaza\Blog\Block\Adminhtml\Author\Edit\Tab\Author" name="mageplaza_blog_author_edit_tab_author"/>
<block class="Mageplaza\Blog\Block\Adminhtml\Author\Edit\Tab\Post" name="mageplaza_blog_author_edit_tab_post"/>
<action method="addTab">
<argument name="name" xsi:type="string">author</argument>
<argument name="block" xsi:type="string">mageplaza_blog_author_edit_tab_author</argument>
</action>
<action method="addTab">
<argument name="name" xsi:type="string">post</argument>
<argument name="block" xsi:type="string">mageplaza_blog_author_edit_tab_post</argument>
</action>
</block>
</referenceContainer>
</body>
</page>
@@ -0,0 +1,40 @@
<?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="styles"/>
<body>
<referenceBlock name="menu">
<action method="setActive">
<argument name="itemId" xsi:type="string">Mageplaza_Blog::author</argument>
</action>
</referenceBlock>
<referenceBlock name="page.title">
<action method="setTitleClass">
<argument name="class" xsi:type="string">complex</argument>
</action>
</referenceBlock>
<referenceContainer name="content">
<uiComponent name="mageplaza_blog_author_listing"/>
</referenceContainer>
</body>
</page>
@@ -0,0 +1,36 @@
<?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
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<container name="root" label="Root" output="1">
<block class="Mageplaza\Blog\Block\Adminhtml\Author\Edit\Tab\Post" name="author.edit.tab.post"/>
<block class="Magento\Backend\Block\Widget\Grid\Serializer" name="post_grid_serializer">
<arguments>
<argument name="input_names" xsi:type="string">position</argument>
<argument name="grid_block" xsi:type="string">author.edit.tab.post</argument>
<argument name="callback" xsi:type="string">getSelectedPosts</argument>
<argument name="input_element_name" xsi:type="string">posts</argument>
<argument name="reload_param_name" xsi:type="string">author_posts</argument>
</arguments>
</block>
</container>
</layout>
@@ -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 add0 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
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<container name="root" label="Root">
<block class="Mageplaza\Blog\Block\Adminhtml\Author\Edit\Tab\Post" name="author.edit.tab.post"/>
</container>
</layout>
@@ -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="admin-1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="styles"/>
<body>
<referenceContainer name="content">
<uiComponent name="blog_new_category_form"/>
</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="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="editor"/>
<body>
<referenceContainer name="content">
<block class="Mageplaza\Blog\Block\Adminhtml\Category\Edit" name="mageplaza.blog.category.edit" template="category/edit.phtml"/>
</referenceContainer>
<referenceContainer name="left" htmlClass="admin__scope-old" htmlTag="div"/>
<referenceContainer name="left">
<block class="Mageplaza\Blog\Block\Adminhtml\Category\Tree" name="mageplaza.blog.category.tree" template="Magento_Catalog::catalog/category/tree.phtml"/>
</referenceContainer>
</body>
</page>
@@ -0,0 +1,36 @@
<?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
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<container name="root" label="Root" output="1">
<block class="Mageplaza\Blog\Block\Adminhtml\Category\Edit\Tab\Post" name="category.edit.tab.post"/>
<block class="Magento\Backend\Block\Widget\Grid\Serializer" name="post_grid_serializer">
<arguments>
<argument name="input_names" xsi:type="string">position</argument>
<argument name="grid_block" xsi:type="string">category.edit.tab.post</argument>
<argument name="callback" xsi:type="string">getSelectedPosts</argument>
<argument name="input_element_name" xsi:type="string">posts</argument>
<argument name="reload_param_name" xsi:type="string">category_posts</argument>
</arguments>
</block>
</container>
</layout>
@@ -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
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<container name="root" label="Root">
<block class="Mageplaza\Blog\Block\Adminhtml\Category\Edit\Tab\Post" name="category.edit.tab.post"/>
</container>
</layout>
@@ -0,0 +1,39 @@
<?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="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="editor"/>
<body>
<referenceContainer name="content">
<block class="Mageplaza\Blog\Block\Adminhtml\Comment\Edit" name="mageplaza_blog_comment_edit"/>
</referenceContainer>
<referenceContainer name="left">
<block class="Mageplaza\Blog\Block\Adminhtml\Comment\Edit\Tabs" name="mageplaza_blog_comment_tabs">
<block class="Mageplaza\Blog\Block\Adminhtml\Comment\Edit\Tab\Comment" name="mageplaza_blog_comment_edit_tab_comment"/>
<action method="addTab">
<argument name="name" xsi:type="string">comment</argument>
<argument name="block" xsi:type="string">mageplaza_blog_comment_edit_tab_comment</argument>
</action>
</block>
</referenceContainer>
</body>
</page>
@@ -0,0 +1,40 @@
<?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="styles"/>
<body>
<referenceBlock name="menu">
<action method="setActive">
<argument name="itemId" xsi:type="string">Mageplaza_Blog::comment</argument>
</action>
</referenceBlock>
<referenceBlock name="page.title">
<action method="setTitleClass">
<argument name="class" xsi:type="string">complex</argument>
</action>
</referenceBlock>
<referenceContainer name="content">
<uiComponent name="mageplaza_blog_comment_listing"/>
</referenceContainer>
</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="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="editor"/>
<body>
<referenceContainer name="content">
<block class="Mageplaza\Blog\Block\Adminhtml\Post\Edit" name="mageplaza_blog_post_edit"/>
</referenceContainer>
<referenceContainer name="left">
<block class="Mageplaza\Blog\Block\Adminhtml\Post\Edit\Tabs" name="mageplaza_blog_post_tabs">
<block class="Mageplaza\Blog\Block\Adminhtml\Post\Edit\Tab\Post" name="mageplaza_blog_post_edit_tab_post"/>
<block class="Mageplaza\Blog\Block\Adminhtml\Post\Edit\Tab\Product" name="mageplaza_blog_post_edit_tab_product"/>
<action method="addTab">
<argument name="name" xsi:type="string">post</argument>
<argument name="block" xsi:type="string">mageplaza_blog_post_edit_tab_post</argument>
</action>
<action method="addTab">
<argument name="name" xsi:type="string">product</argument>
<argument name="block" xsi:type="string">mageplaza_blog_post_edit_tab_product</argument>
</action>
</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" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="content">
<block class="Mageplaza\Blog\Block\Adminhtml\Import\Edit\Import" template="Mageplaza_Blog::import/form/import.phtml" name="mp.import.form.before" as="mp_form_before"/>
<block class="Mageplaza\Blog\Block\Adminhtml\Import\Edit" name="mageplaza_blog_import_edit"/>
</referenceContainer>
</body>
</page>
@@ -0,0 +1,52 @@
<?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="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="editor"/>
<head>
<css src="Mageplaza_Blog::css/post/edit/post.css"/>
</head>
<body>
<referenceContainer name="content">
<block class="Mageplaza\Blog\Block\Adminhtml\Post\Edit" name="mageplaza_blog_post_edit"/>
</referenceContainer>
<referenceContainer name="left">
<block class="Mageplaza\Blog\Block\Adminhtml\Post\Edit\Tabs" name="mageplaza_blog_post_tabs">
<block class="Mageplaza\Blog\Block\Adminhtml\Post\Edit\Tab\Post" name="mageplaza_blog_post_edit_tab_post"/>
<block class="Mageplaza\Blog\Block\Adminhtml\Post\Edit\Tab\Product" name="mageplaza_blog_post_edit_tab_product"/>
<block class="Mageplaza\Blog\Block\Adminhtml\Post\Edit\Tab\History" name="mageplaza_blog_post_edit_tab_history"/>
<action method="addTab">
<argument name="name" xsi:type="string">post</argument>
<argument name="block" xsi:type="string">mageplaza_blog_post_edit_tab_post</argument>
</action>
<action method="addTab">
<argument name="name" xsi:type="string">product</argument>
<argument name="block" xsi:type="string">mageplaza_blog_post_edit_tab_product</argument>
</action>
<action method="addTab">
<argument name="name" xsi:type="string">history</argument>
<argument name="block" xsi:type="string">mageplaza_blog_post_edit_tab_history</argument>
</action>
</block>
</referenceContainer>
</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
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<container name="root" label="Root" output="1">
<block class="Mageplaza\Blog\Block\Adminhtml\Post\Edit\Tab\History" name="post.edit.tab.history"/>
</container>
</layout>
@@ -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
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<container name="root" label="Root">
<block class="Mageplaza\Blog\Block\Adminhtml\Post\Edit\Tab\History" name="post.edit.tab.history"/>
</container>
</layout>
@@ -0,0 +1,40 @@
<?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="styles"/>
<body>
<referenceBlock name="menu">
<action method="setActive">
<argument name="itemId" xsi:type="string">Mageplaza_Blog::post</argument>
</action>
</referenceBlock>
<referenceBlock name="page.title">
<action method="setTitleClass">
<argument name="class" xsi:type="string">complex</argument>
</action>
</referenceBlock>
<referenceContainer name="content">
<uiComponent name="mageplaza_blog_post_listing"/>
</referenceContainer>
</body>
</page>
@@ -0,0 +1,36 @@
<?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
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<container name="root" label="Root" output="1">
<block class="Mageplaza\Blog\Block\Adminhtml\Post\Edit\Tab\Product" name="post.edit.tab.product"/>
<block class="Magento\Backend\Block\Widget\Grid\Serializer" name="product_grid_serializer">
<arguments>
<argument name="input_names" xsi:type="string">position</argument>
<argument name="grid_block" xsi:type="string">post.edit.tab.product</argument>
<argument name="callback" xsi:type="string">getSelectedProducts</argument>
<argument name="input_element_name" xsi:type="string">products</argument>
<argument name="reload_param_name" xsi:type="string">post_products</argument>
</arguments>
</block>
</container>
</layout>
@@ -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
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<container name="root" label="Root">
<block class="Mageplaza\Blog\Block\Adminhtml\Post\Edit\Tab\Product" name="post.edit.tab.product"/>
</container>
</layout>
@@ -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="admin-1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="styles"/>
<body>
<referenceContainer name="content">
<uiComponent name="blog_new_tag_form"/>
</referenceContainer>
</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="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="editor"/>
<body>
<referenceContainer name="content">
<block class="Mageplaza\Blog\Block\Adminhtml\Tag\Edit" name="mageplaza_blog_tag_edit"/>
</referenceContainer>
<referenceContainer name="left">
<block class="Mageplaza\Blog\Block\Adminhtml\Tag\Edit\Tabs" name="mageplaza_blog_tag_tabs">
<block class="Mageplaza\Blog\Block\Adminhtml\Tag\Edit\Tab\Tag" name="mageplaza_blog_tag_edit_tab_tag"/>
<block class="Mageplaza\Blog\Block\Adminhtml\Tag\Edit\Tab\Post" name="mageplaza_blog_tag_edit_tab_post"/>
<action method="addTab">
<argument name="name" xsi:type="string">tag</argument>
<argument name="block" xsi:type="string">mageplaza_blog_tag_edit_tab_tag</argument>
</action>
<action method="addTab">
<argument name="name" xsi:type="string">post</argument>
<argument name="block" xsi:type="string">mageplaza_blog_tag_edit_tab_post</argument>
</action>
</block>
</referenceContainer>
</body>
</page>
@@ -0,0 +1,40 @@
<?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="styles"/>
<body>
<referenceBlock name="menu">
<action method="setActive">
<argument name="itemId" xsi:type="string">Mageplaza_Blog::tag</argument>
</action>
</referenceBlock>
<referenceBlock name="page.title">
<action method="setTitleClass">
<argument name="class" xsi:type="string">complex</argument>
</action>
</referenceBlock>
<referenceContainer name="content">
<uiComponent name="mageplaza_blog_tag_listing"/>
</referenceContainer>
</body>
</page>
@@ -0,0 +1,36 @@
<?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
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<container name="root" label="Root" output="1">
<block class="Mageplaza\Blog\Block\Adminhtml\Tag\Edit\Tab\Post" name="tag.edit.tab.post"/>
<block class="Magento\Backend\Block\Widget\Grid\Serializer" name="post_grid_serializer">
<arguments>
<argument name="input_names" xsi:type="string">position</argument>
<argument name="grid_block" xsi:type="string">tag.edit.tab.post</argument>
<argument name="callback" xsi:type="string">getSelectedPosts</argument>
<argument name="input_element_name" xsi:type="string">posts</argument>
<argument name="reload_param_name" xsi:type="string">tag_posts</argument>
</arguments>
</block>
</container>
</layout>
@@ -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
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<container name="root" label="Root">
<block class="Mageplaza\Blog\Block\Adminhtml\Tag\Edit\Tab\Post" name="tag.edit.tab.post"/>
</container>
</layout>
@@ -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="admin-1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="styles"/>
<body>
<referenceContainer name="content">
<uiComponent name="blog_new_topic_form"/>
</referenceContainer>
</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="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="editor"/>
<body>
<referenceContainer name="content">
<block class="Mageplaza\Blog\Block\Adminhtml\Topic\Edit" name="mageplaza_blog_topic_edit"/>
</referenceContainer>
<referenceContainer name="left">
<block class="Mageplaza\Blog\Block\Adminhtml\Topic\Edit\Tabs" name="mageplaza_blog_topic_tabs">
<block class="Mageplaza\Blog\Block\Adminhtml\Topic\Edit\Tab\Topic" name="mageplaza_blog_topic_edit_tab_topic"/>
<block class="Mageplaza\Blog\Block\Adminhtml\Topic\Edit\Tab\Post" name="mageplaza_blog_topic_edit_tab_post"/>
<action method="addTab">
<argument name="name" xsi:type="string">topic</argument>
<argument name="block" xsi:type="string">mageplaza_blog_topic_edit_tab_topic</argument>
</action>
<action method="addTab">
<argument name="name" xsi:type="string">post</argument>
<argument name="block" xsi:type="string">mageplaza_blog_topic_edit_tab_post</argument>
</action>
</block>
</referenceContainer>
</body>
</page>
@@ -0,0 +1,40 @@
<?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="styles"/>
<body>
<referenceBlock name="menu">
<action method="setActive">
<argument name="itemId" xsi:type="string">Mageplaza_Blog::topic</argument>
</action>
</referenceBlock>
<referenceBlock name="page.title">
<action method="setTitleClass">
<argument name="class" xsi:type="string">complex</argument>
</action>
</referenceBlock>
<referenceContainer name="content">
<uiComponent name="mageplaza_blog_topic_listing"/>
</referenceContainer>
</body>
</page>
@@ -0,0 +1,36 @@
<?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
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<container name="root" label="Root" output="1">
<block class="Mageplaza\Blog\Block\Adminhtml\Topic\Edit\Tab\Post" name="topic.edit.tab.post"/>
<block class="Magento\Backend\Block\Widget\Grid\Serializer" name="post_grid_serializer">
<arguments>
<argument name="input_names" xsi:type="string">position</argument>
<argument name="grid_block" xsi:type="string">topic.edit.tab.post</argument>
<argument name="callback" xsi:type="string">getSelectedPosts</argument>
<argument name="input_element_name" xsi:type="string">posts</argument>
<argument name="reload_param_name" xsi:type="string">topic_posts</argument>
</arguments>
</block>
</container>
</layout>
@@ -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
*/
-->
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<container name="root" label="Root">
<block class="Mageplaza\Blog\Block\Adminhtml\Topic\Edit\Tab\Post" name="topic.edit.tab.post"/>
</container>
</layout>
+27
View File
@@ -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 = {
map: {
'*': {
categoryForm: 'Mageplaza_Blog/category/form'
}
}
};
@@ -0,0 +1,181 @@
<?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 */
?>
<div id="category-edit-container" class="category-content">
<?= $block->getChildHtml('form') ?>
</div>
<script>
require([
"jquery",
"tinymce<?= /** @noEscape */ $block->getMagentoVersion() ?>",
"loadingPopup",
"mage/backend/floating-header"
], function (jQuery, tinyMCE) {
//<![CDATA[
function categoryReset (url, useAjax) {
if (useAjax) {
var params = {active_tab_id: false};
updateContent(url, params);
} else {
location.href = url;
}
}
/**
* Delete some Category
* This routine get categoryId explicitly, so even if currently selected tree node is out of sync
* with this form, we surely delete same Category in the tree and at backend
*/
function categoryDelete (url) {
if (confirm('<?= $escaper->escapeHtml(__('Are you sure you want to delete this Category?')) ?>')) {
location.href = url;
}
}
/**
* Update Category content area
*/
function updateContent (url, params, refreshTree) {
var node = tree.getNodeById(tree.currentNodeId),
parentNode = node && node.parentNode,
parentId,
redirectUrl;
params = jQuery.extend(params || {}, {
form_key: FORM_KEY
});
if (params.node_name) {
node.setText(params.node_name);
}
(function ($) {
var $categoryContainer = $('#category-edit-container'),
messagesContainer = $('.messages');
messagesContainer.html('');
$.ajax({
url: url + (url.match(new RegExp('\\?')) ? '&isAjax=true' : '?isAjax=true'),
data: params,
context: $('body'),
showLoader: true
}).done(function (data) {
if (data.content) {
var pageActions = $('.page-actions');
for (var i = 0; i < pageActions.length; i++){
if ($(pageActions[i]).data('floatingHeader')) {
$(pageActions[i]).floatingHeader('destroy');
}
}
try {
$('#category-edit-container .wysiwyg-editor').each(function (index, element) {
tinyMCE.execCommand('mceRemoveControl', false, $(element).attr('id'));
});
$categoryContainer.html('');
} catch (e) {
alert(e.message);
}
$categoryContainer.html(data.content).trigger('contentUpdated');
setTimeout(function () {
$('#category-edit-container .wysiwyg-editor').each(function (index, element) {
tinyMCE.execCommand('mceRemoveControl', false, $(element).attr('id'));
tinyMCE.execCommand('mceAddControl', true, $(element).attr('id'));
});
$('.page-actions').floatingHeader({
'title': '.category-edit-title'
});
$('body').trigger('contentUpdated');
try {
if (refreshTree) {
window.refreshTreeArea();
}
} catch (e) {
alert(e.message);
}
}, 25);
}
if (data.messages && data.messages.length > 0) {
messagesContainer.html(data.messages);
}
if (data.toolbar) {
$('[data-ui-id="page-actions-toolbar-content-header"]').replaceWith(data.toolbar)
}
});
})(jQuery);
}
/**
* Refresh tree nodes after saving or deleting a category
*/
function refreshTreeArea (transport) {
var config,
url;
if (tree && window.editingCategoryBreadcrumbs) {
if (tree.nodeForDelete) {
var node = tree.getNodeById(tree.nodeForDelete);
tree.nodeForDelete = false;
if (node) {
// Check maybe tree became somehow not synced with ajax and we're trying to delete unknown node
node.parentNode.removeChild(node);
tree.currentNodeId = false;
}
}
// category created - add its node
else if (tree.addNodeTo) {
var parent = tree.getNodeById(tree.addNodeTo);
tree.addNodeTo = false;
if (parent) {
// Check maybe tree became somehow not synced with ajax and we're trying to add to unknown node
config = editingCategoryBreadcrumbs[editingCategoryBreadcrumbs.length - 1];
window.location.href = tree.buildUrl(config.id);
}
}
// update all affected categories nodes names
for (var i = 0; i < editingCategoryBreadcrumbs.length; i++){
var node = tree.getNodeById(editingCategoryBreadcrumbs[i].id);
if (node) {
node.setText(editingCategoryBreadcrumbs[i].text);
}
}
}
}
function displayLoadingMask () {
jQuery('body').loadingPopup();
}
window.refreshTreeArea = refreshTreeArea;
window.updateContent = updateContent;
window.categoryDelete = categoryDelete;
window.categoryReset = categoryReset;
window.displayLoadingMask = displayLoadingMask;
//]]>
});
</script>
@@ -0,0 +1,188 @@
<?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\Adminhtml\Category\Edit\Form;
use Magento\Framework\Escaper;
/** @var Form $block */
/** @var Escaper $escaper */
$parentId = $block->getParentCategoryId();
$categoryId = $block->getCategoryId();
$blockGrid = $block->getLayout()->getBlock('mageplaza_blog_category_edit_tab_post');
$gridJsObjectName = $blockGrid->getJsObjectName();
?>
<div data-mage-init='{"floatingHeader": {}}' class="page-actions">
<?= $block->getAdditionalButtonsHtml(); ?>
</div>
<?= $block->getTabsHtml() ?>
<iframe name="iframeSave" style="display:none; width:100%;"
src="<?= $escaper->escapeUrl($block->getViewFileUrl('blank.html')) ?>"></iframe>
<form id="category_edit_form" name="category-edit-form"
action="<?= $escaper->escapeUrl($block->getSaveUrl()) ?>" method="post"
enctype="multipart/form-data">
<div class="no-display">
<input type="hidden" name="isIframe" value="1"/>
<input name="form_key" type="hidden" value="<?= /** @noEscape */
$block->getFormKey() ?>"/>
<input type="hidden" name="active_tab_id" id="active_tab_id" value=""/>
<?php if ($parentId !== 0) : ?>
<input type="hidden" name="parent" value="<?= /** @noEscape */
$parentId ?>"/>
<?php endif; ?>
<?php if ($categoryId !== 0) : ?>
<input type="hidden" name="category_id" value="<?= /** @noEscape */
$categoryId ?>"/>
<?php endif; ?>
<input type="hidden" name="selected_products" id="in_category_products" value=""/>
<script type="text/x-magento-init">
{
"*": {
"Magento_Catalog/catalog/category/assign-products": {
"selectedProducts": <?= /** @noEscape */ $block->getPostsJson() ?>,
"gridJsObjectName": <?= '"' . $gridJsObjectName . '"' ?: '{}'; ?>
}
}
}
</script>
</div>
<div id="category_tab_content"></div>
</form>
<div data-id="information-dialog-category" class="messages" style="display: none;">
<div class="message message-notice">
<div><?= $escaper->escapeHtml(__('This operation can take a long time')) ?></div>
</div>
</div>
<script>
require(['jquery', 'jquery/ui', "mage/mage", "mage/translate"], function ($) {
var mageDialog = (function ($) {
var self = {dialogOpened: false, callback: [], needShow: false};
self.callback = {ok: [], cancel: []};
self.createDialog = function () {
var onEvent = function (type, dialog) {
self.callback[type].forEach(function (call) {
call();
});
$(dialog).dialog("close");
};
self.dialog = $('[data-id="information-dialog-category"]').dialog({
autoOpen: false,
modal: true,
dialogClass: 'popup-window',
resizable: false,
width: '75%',
title: $.mage.__('Warning message'),
buttons: [{
text: $.mage.__('Ok'),
'class': 'action-primary',
click: function () {
onEvent('ok', this);
}
}, {
text: $.mage.__('Cancel'),
'class': 'action-close',
click: function () {
onEvent('cancel', this);
}
}],
open: function () {
$(this).closest('.ui-dialog').addClass('ui-dialog-active');
var topMargin = $(this).closest('.ui-dialog').children('.ui-dialog-titlebar').outerHeight() + 30;
$(this).closest('.ui-dialog').css('margin-top', topMargin);
self.dialogOpened = true;
self.callback.ok.push(function () {
self.needShow = false;
});
},
close: function (event, ui) {
$(this).dialog('destroy');
self.dialogOpened = false;
self.callback = {ok: [], cancel: []};
delete self.dialog;
}
});
};
return {
needToShow: function () {
self.needShow = true && !!$('[data-ui-id="tabs-tab-general-information-fieldset-element-hidden-general-id"]').length;
return this;
},
isNeedShow: function () {
return self.needShow;
},
onOk: function (call) {
self.callback.ok.push(call);
return this;
},
onCancel: function (call) {
self.callback.cancel.push(call);
return this;
},
show: function () {
if (self.dialog == undefined) {
self.createDialog();
}
if (self.dialogOpened == false) {
self.dialog.dialog('open');
}
return this;
}
};
})(jQuery);
$(document).on('change', '[data-ui-id="urlkeyrenderer-text-general-url-key"]', function () {
mageDialog.needToShow();
});
$('#category_edit_form')
.mage('categoryForm', {refreshUrl: '<?= /** @noEscape */ $block->getRefreshPathUrl() ?>'})
.mage('validation', {
submitHandler: function (form) {
if (mageDialog.isNeedShow()) {
mageDialog.onOk(function () {
form.submit();
displayLoadingMask();
}).show();
} else {
form.submit();
displayLoadingMask();
}
}
});
});
<?php if ($block->isAjax()
&& ($tabsBlock = $block->getLayout()->getBlock('tabs'))
&& ($_tabsJsObject = $tabsBlock->getJsObjectName())) : ?>
require(["jquery", "mage/backend/tabs"], function ($) {
var activeAnchor = $('#<?= /** @noEscape */ $tabsBlock->getId() ?>').tabs('activeAnchor');
if (activeAnchor.length) {
$('active_tab_id').value = activeAnchor.prop('id');
}
$('active_tab_id').tabsJsObject = $('#<?= /** @noEscape */ $tabsBlock->getId() ?>');
});
<?php endif; ?>
</script>
@@ -0,0 +1,157 @@
<?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\Adminhtml\Import\Edit\Import;
use Magento\Framework\Escaper;
/** @var Import $block */
/** @var Escaper $escaper */
?>
<script>
require(['jquery'], function ($) {
var dataImport = {},
defaultTablePrefix = ['wp_', 'm1_', 'm2_'],
imagePathHint = [
'*Please copy the <b>wp_content/uploads</b> folder to <b>pub/media/wysiwyg/</b> folder for post image content <br>' +
'*Please copy the <b>wp_content/uploads</b> folder to <b>pub/media/mageplaza/blog/post/</b> folder for post image banner <br>',
'*Please copy the <b>media</b> folder to <b>pub/media/</b> folder',
'*Please copy the <b>pub/media/magefan_blog</b> folder to <b>pub/media/mageplaza/blog/post/</b> folder for post image banner '
];
mpBlogImport = {
typeSelector: <?= /** noEscape */ $block->getTypeSelector() ?>,
initImportFieldsSet: function () {
for (var i = 0; i < this.typeSelector.length; i++){
if ($('#import_type').val() === this.typeSelector[i]) {
this.showFieldSet('#' + this.typeSelector[i] + '_fieldset');
dataImport = {
type: this.typeSelector[i],
importName: '#' + this.typeSelector[i] + '_import_name',
dbName: '#' + this.typeSelector[i] + '_db_name',
userName: '#' + this.typeSelector[i] + '_user_name',
pwd: '#' + this.typeSelector[i] + '_db_password',
host: '#' + this.typeSelector[i] + '_db_host',
tablePrefix: '#' + this.typeSelector[i] + '_table_prefix',
behaviourSelector: '#' + this.typeSelector[i] + '_import_behaviour',
expandBehaviourSelector: '#' + this.typeSelector[i] + '_import_behaviour_expand'
};
$(dataImport.tablePrefix).val(defaultTablePrefix[i]);
$("#" + this.typeSelector[i] + "_import_image_path").html(imagePathHint[i]);
$("#" + this.typeSelector[i] + "_db_name").addClass('required-entry');
$("#" + this.typeSelector[i] + "_user_name").addClass('required-entry');
$("#" + this.typeSelector[i] + "_db_host").addClass('required-entry');
} else {
this.hideFieldSet('#' + this.typeSelector[i] + '_fieldset');
$("#" + this.typeSelector[i] + "_db_name").removeClass('required-entry');
$("#" + this.typeSelector[i] + "_user_name").removeClass('required-entry');
$("#" + this.typeSelector[i] + "_db_host").removeClass('required-entry');
}
}
},
initExpandBehaviour: function () {
if ($(dataImport.behaviourSelector).attr("value") === 'update') {
$(dataImport.expandBehaviourSelector).parent().parent().removeClass('hidden');
} else {
$(dataImport.expandBehaviourSelector).parent().parent().addClass('hidden');
}
},
showFieldSet: function (selector) {
$(selector).show();
},
hideFieldSet: function (selector) {
$(selector).hide();
},
initImportCheckConnection: function () {
if ($('#edit_form').valid()) {
$('body').loader('show');
var url = '<?= $escaper->escapeUrl($block->getUrl(
'mageplaza_blog/import/validate',
['form_key' => $block->getFormKey()]
)) ?>';
$.ajax({
url: url,
data: {
type: dataImport.type,
import_name: $(dataImport.importName).val(),
database: $(dataImport.dbName).val(),
user_name: $(dataImport.userName).val(),
password: $(dataImport.pwd).val(),
host: $(dataImport.host).val(),
table_prefix: $(dataImport.tablePrefix).val(),
behaviour: $(dataImport.behaviourSelector).val(),
expand_behaviour: $(dataImport.expandBehaviourSelector).val()
},
cache: false,
success: function (result) {
var messageHtml;
if (result.status === 'false') {
messageHtml = '<?= $block->getMessagesHtml(
'adderror',
'False connection. Please check the credentials and try again!'
) ?>';
$(".message-error").hide();
$(messageHtml).appendTo($(".page-columns"));
$(".message-success").hide();
} else {
messageHtml = '<?= $block->getMessagesHtml(
'addsuccess',
'Connect successfully. To start import process press "Import" button'
. $block->getImportButtonHtml()
) ?>';
$(".message-success").hide();
$(messageHtml).appendTo($(".page-columns"));
$(".message-error").hide();
}
},
complete: function () {
$('body').loader('hide');
}
});
}
},
importAction: function () {
$('body').loader('show');
$.ajax({
url: '<?= $escaper->escapeUrl($block->getUrl(
'mageplaza_blog/import/import',
['form_key' => $block->getFormKey()]
))?>',
cache: false,
success: function (result) {
var statisticMessage = result.statistic;
$(".message-success").hide();
$(".message-error").hide();
$(statisticMessage).appendTo($(".page-columns"));
},
complete: function () {
$('body').loader('hide');
}
});
}
};
});
</script>
@@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* 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
*/
-->
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="provider" xsi:type="string">blog_new_category_form.new_category_form_data_source</item>
<item name="deps" xsi:type="string">blog_new_category_form.new_category_form_data_source</item>
<item name="namespace" xsi:type="string">blog_new_category_form</item>
</item>
<item name="buttons" xsi:type="array">
<item name="save" xsi:type="string">Magento\Catalog\Block\Adminhtml\Product\Edit\Button\CreateCategory</item>
</item>
<item name="template" xsi:type="string">templates/form/collapsible</item>
<item name="config" xsi:type="array">
<item name="ajaxSaveType" xsi:type="string">simple</item>
</item>
</argument>
<dataSource name="new_category_form_data_source">
<argument name="dataProvider" xsi:type="configurableObject">
<argument name="class" xsi:type="string">Mageplaza\Blog\Ui\DataProvider\Blog\Form\NewCategoryDataProvider</argument>
<argument name="name" xsi:type="string">new_category_form_data_source</argument>
<argument name="primaryFieldName" xsi:type="string">entity_id</argument>
<argument name="requestFieldName" xsi:type="string">id</argument>
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="submit_url" xsi:type="url" path="mageplaza_blog/category/save"/>
</item>
</argument>
</argument>
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/form/provider</item>
</item>
</argument>
</dataSource>
<fieldset name="data">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string"/>
<item name="collapsible" xsi:type="boolean">false</item>
</item>
</argument>
<container name="messages">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string"/>
<item name="component" xsi:type="string">Magento_Catalog/js/components/messages</item>
</item>
</argument>
</container>
<field name="name">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string" translate="true">Category Name</item>
<item name="componentType" xsi:type="string">field</item>
<item name="formElement" xsi:type="string">input</item>
<item name="dataScope" xsi:type="string">data.name</item>
<item name="dataType" xsi:type="string">string</item>
<item name="sortOrder" xsi:type="number">10</item>
<item name="required" xsi:type="boolean">true</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
</argument>
</field>
<field name="parent">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">Mageplaza\Blog\Ui\Component\Blog\Form\Categories\Options</item>
<item name="config" xsi:type="array">
<item name="label" xsi:type="string" translate="true">Parent Category</item>
<item name="componentType" xsi:type="string">field</item>
<item name="formElement" xsi:type="string">select</item>
<item name="component" xsi:type="string">Mageplaza_Blog/js/components/new-category</item>
<item name="elementTmpl" xsi:type="string">ui/grid/filters/elements/ui-select</item>
<item name="dataScope" xsi:type="string">data.parent</item>
<item name="filterOptions" xsi:type="boolean">true</item>
<item name="showCheckbox" xsi:type="boolean">false</item>
<item name="disableLabel" xsi:type="boolean">true</item>
<item name="multiple" xsi:type="boolean">false</item>
<item name="levelsVisibility" xsi:type="number">1</item>
<item name="sortOrder" xsi:type="number">20</item>
<!--<item name="required" xsi:type="boolean">true</item>-->
<!--<item name="validation" xsi:type="array">-->
<!--<item name="required-entry" xsi:type="boolean">true</item>-->
<!--</item>-->
<item name="listens" xsi:type="array">
<item name="${ $.namespace }.${ $.namespace }:responseData" xsi:type="string">setParsed</item>
</item>
</item>
</argument>
</field>
</fieldset>
</form>
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* 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
*/
-->
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="provider" xsi:type="string">blog_new_tag_form.new_tag_form_data_source</item>
<item name="deps" xsi:type="string">blog_new_tag_form.new_tag_form_data_source</item>
<item name="namespace" xsi:type="string">blog_new_tag_form</item>
</item>
<item name="buttons" xsi:type="array">
<item name="save" xsi:type="string">Mageplaza\Blog\Block\Adminhtml\Tag\Edit\Button\CreateTag</item>
</item>
<item name="template" xsi:type="string">templates/form/collapsible</item>
<item name="config" xsi:type="array">
<item name="ajaxSaveType" xsi:type="string">simple</item>
</item>
</argument>
<dataSource name="new_tag_form_data_source">
<argument name="dataProvider" xsi:type="configurableObject">
<argument name="class" xsi:type="string">Mageplaza\Blog\Ui\DataProvider\Blog\Form\NewTagDataProvider</argument>
<argument name="name" xsi:type="string">new_tag_form_data_source</argument>
<argument name="primaryFieldName" xsi:type="string">entity_id</argument>
<argument name="requestFieldName" xsi:type="string">id</argument>
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="submit_url" xsi:type="url" path="mageplaza_blog/tag/save"/>
</item>
</argument>
</argument>
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/form/provider</item>
</item>
</argument>
</dataSource>
<fieldset name="data">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string"/>
<item name="collapsible" xsi:type="boolean">false</item>
</item>
</argument>
<container name="messages">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string"/>
<item name="component" xsi:type="string">Magento_Catalog/js/components/messages</item>
</item>
</argument>
</container>
<field name="name">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string" translate="true">Tag Name</item>
<item name="componentType" xsi:type="string">field</item>
<item name="formElement" xsi:type="string">input</item>
<item name="dataScope" xsi:type="string">data.name</item>
<item name="dataType" xsi:type="string">string</item>
<item name="sortOrder" xsi:type="number">10</item>
<item name="required" xsi:type="boolean">true</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
</argument>
</field>
</fieldset>
</form>
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* 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
*/
-->
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="provider" xsi:type="string">blog_new_topic_form.new_topic_form_data_source</item>
<item name="deps" xsi:type="string">blog_new_topic_form.new_topic_form_data_source</item>
<item name="namespace" xsi:type="string">blog_new_topic_form</item>
</item>
<item name="buttons" xsi:type="array">
<item name="save" xsi:type="string">Mageplaza\Blog\Block\Adminhtml\Topic\Edit\Button\CreateTopic</item>
</item>
<item name="template" xsi:type="string">templates/form/collapsible</item>
<item name="config" xsi:type="array">
<item name="ajaxSaveType" xsi:type="string">simple</item>
</item>
</argument>
<dataSource name="new_topic_form_data_source">
<argument name="dataProvider" xsi:type="configurableObject">
<argument name="class" xsi:type="string">Mageplaza\Blog\Ui\DataProvider\Blog\Form\NewTopicDataProvider</argument>
<argument name="name" xsi:type="string">new_topic_form_data_source</argument>
<argument name="primaryFieldName" xsi:type="string">entity_id</argument>
<argument name="requestFieldName" xsi:type="string">id</argument>
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="submit_url" xsi:type="url" path="mageplaza_blog/topic/save"/>
</item>
</argument>
</argument>
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/form/provider</item>
</item>
</argument>
</dataSource>
<fieldset name="data">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string"/>
<item name="collapsible" xsi:type="boolean">false</item>
</item>
</argument>
<container name="messages">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string"/>
<item name="component" xsi:type="string">Magento_Catalog/js/components/messages</item>
</item>
</argument>
</container>
<field name="name">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string" translate="true">Topic Name</item>
<item name="componentType" xsi:type="string">field</item>
<item name="formElement" xsi:type="string">input</item>
<item name="dataScope" xsi:type="string">data.name</item>
<item name="dataType" xsi:type="string">string</item>
<item name="sortOrder" xsi:type="number">10</item>
<item name="required" xsi:type="boolean">true</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
</argument>
</field>
</fieldset>
</form>
@@ -0,0 +1,275 @@
<?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
*/
-->
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="provider" xsi:type="string">mageplaza_blog_author_listing.mageplaza_blog_author_listing_data_source</item>
<item name="deps" xsi:type="string">mageplaza_blog_author_listing.mageplaza_blog_author_listing_data_source</item>
</item>
<item name="spinner" xsi:type="string">mageplaza_blog_author_columns</item>
<item name="buttons" xsi:type="array">
<item name="add" xsi:type="array">
<item name="name" xsi:type="string">add</item>
<item name="label" xsi:type="string" translate="true">Create New Author</item>
<item name="class" xsi:type="string">primary</item>
<item name="url" xsi:type="string">*/author/new</item>
</item>
</item>
</argument>
<dataSource name="mageplaza_blog_author_listing_data_source">
<argument name="dataProvider" xsi:type="configurableObject">
<argument name="class" xsi:type="string">Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider</argument>
<argument name="name" xsi:type="string">mageplaza_blog_author_listing_data_source</argument>
<argument name="primaryFieldName" xsi:type="string">user_id</argument>
<argument name="requestFieldName" xsi:type="string">user_id</argument>
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
<item name="update_url" xsi:type="url" path="mui/index/render"/>
<item name="storageConfig" xsi:type="array">
<item name="indexField" xsi:type="string">user_id</item>
</item>
</item>
</argument>
</argument>
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
</item>
</argument>
</dataSource>
<listingToolbar name="listing_top">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="sticky" xsi:type="boolean">true</item>
</item>
</argument>
<bookmark name="bookmarks"/>
<columnsControls name="columns_controls"/>
<exportButton name="export_button"/>
<filters name="listing_filters"/>
<massaction name="listing_massaction">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/tree-massactions</item>
</item>
</argument>
<action name="delete">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="type" xsi:type="string">delete</item>
<item name="label" xsi:type="string" translate="true">Delete</item>
<item name="url" xsi:type="url" path="mageplaza_blog/author/massDelete"/>
<item name="confirm" xsi:type="array">
<item name="title" xsi:type="string" translate="true">Delete Authors</item>
<item name="message" xsi:type="string" translate="true">Are you sure you wan't to delete selected Authors?</item>
</item>
</item>
</argument>
</action>
<action name="status">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="type" xsi:type="string">status</item>
<item name="label" xsi:type="string" translate="true">Change status</item>
</item>
</argument>
<argument name="actions" xsi:type="array">
<item name="0" xsi:type="array">
<item name="type" xsi:type="string">pending</item>
<item name="label" xsi:type="string" translate="true">Pending</item>
<item name="url" xsi:type="url" path="mageplaza_blog/author/massStatus">
<param name="status">0</param>
</item>
</item>
<item name="1" xsi:type="array">
<item name="type" xsi:type="string">approved</item>
<item name="label" xsi:type="string" translate="true">Approved</item>
<item name="url" xsi:type="url" path="mageplaza_blog/author/massStatus">
<param name="status">1</param>
</item>
</item>
<item name="2" xsi:type="array">
<item name="type" xsi:type="string">disapproved</item>
<item name="label" xsi:type="string" translate="true">Disapproved</item>
<item name="url" xsi:type="url" path="mageplaza_blog/author/massStatus">
<param name="status">2</param>
</item>
</item>
</argument>
</action>
</massaction>
<paging name="listing_paging"/>
</listingToolbar>
<columns name="mageplaza_blog_author_columns">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="editorConfig" xsi:type="array">
<item name="selectProvider" xsi:type="string">
mageplaza_blog_author_listing.mageplaza_blog_author_listing.mageplaza_blog_author_columns.ids
</item>
<item name="enabled" xsi:type="boolean">true</item>
<item name="indexField" xsi:type="string">user_id</item>
<item name="clientConfig" xsi:type="array">
<item name="saveUrl" xsi:type="url" path="mageplaza_blog/author/inlineEdit"/>
<item name="validateBeforeSave" xsi:type="boolean">false</item>
</item>
</item>
<item name="childDefaults" xsi:type="array">
<item name="fieldAction" xsi:type="array">
<item name="provider" xsi:type="string">
mageplaza_blog_author_listing.mageplaza_blog_author_listing.mageplaza_blog_author_columns_editor
</item>
<item name="target" xsi:type="string">startEdit</item>
<item name="params" xsi:type="array">
<item name="0" xsi:type="string">${ $.$data.rowIndex }</item>
<item name="1" xsi:type="boolean">true</item>
</item>
</item>
</item>
</item>
</argument>
<selectionsColumn name="ids">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="resizeEnabled" xsi:type="boolean">false</item>
<item name="resizeDefaultWidth" xsi:type="string">55</item>
<item name="indexField" xsi:type="string">user_id</item>
</item>
</argument>
</selectionsColumn>
<column name="user_id">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">textRange</item>
<item name="sorting" xsi:type="string">asc</item>
<item name="label" xsi:type="string" translate="true">ID</item>
</item>
</argument>
</column>
<column name="name">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">text</item>
<item name="editor" xsi:type="array">
<item name="editorType" xsi:type="string">text</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
<item name="label" xsi:type="string" translate="true">Name</item>
</item>
</argument>
</column>
<column name="status">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">Mageplaza\Blog\Model\Config\Source\AuthorStatus</item>
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">select</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
<item name="label" xsi:type="string" translate="true">Status</item>
<item name="editor" xsi:type="string">select</item>
<item name="dataType" xsi:type="string">select</item>
<item name="editorType" xsi:type="string">select</item>
</item>
</argument>
</column>
<column name="url_key">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">text</item>
<item name="editor" xsi:type="array">
<item name="editorType" xsi:type="string">text</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
<item name="label" xsi:type="string" translate="true">URL Key</item>
</item>
</argument>
</column>
<column name="type">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">Mageplaza\Blog\Model\Config\Source\AuthorType</item>
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">select</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
<item name="label" xsi:type="string" translate="true">Type</item>
<item name="editor" xsi:type="string">select</item>
<item name="dataType" xsi:type="string">select</item>
</item>
</argument>
</column>
<column name="email">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">text</item>
<item name="label" xsi:type="string" translate="true">Email</item>
</item>
</argument>
</column>
<column name="qty_post">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">text</item>
<item name="label" xsi:type="string" translate="true">Qty of Post</item>
</item>
</argument>
</column>
<column name="mp_created_at" class="Magento\Ui\Component\Listing\Columns\Date">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">dateRange</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/date</item>
<item name="dataType" xsi:type="string">date</item>
<item name="label" xsi:type="string" translate="true">Created</item>
<item name="visible" xsi:type="boolean">false</item>
</item>
</argument>
</column>
<column name="mp_updated_at" class="Magento\Ui\Component\Listing\Columns\Date">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">dateRange</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/date</item>
<item name="dataType" xsi:type="string">date</item>
<item name="label" xsi:type="string" translate="true">Modified</item>
<item name="visible" xsi:type="boolean">false</item>
</item>
</argument>
</column>
<actionsColumn name="actions" class="Mageplaza\Blog\Ui\Component\Listing\Column\Actions">
<argument name="data" xsi:type="array">
<item name="action_list" xsi:type="array">
<item name="edit" xsi:type="array">
<item name="label" xsi:type="string" translate="true">Edit</item>
<item name="path" xsi:type="string">mageplaza_blog/author/edit</item>
<item name="params" xsi:type="array">
<item name="id" xsi:type="string">user_id</item>
</item>
</item>
</item>
</argument>
</actionsColumn>
</columns>
</listing>
@@ -0,0 +1,216 @@
<?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
*/
-->
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="provider" xsi:type="string">mageplaza_blog_comment_listing.mageplaza_comment_post_listing_data_source</item>
<item name="deps" xsi:type="string">mageplaza_blog_comment_listing.mageplaza_blog_comment_listing_data_source</item>
</item>
<item name="spinner" xsi:type="string">mageplaza_blog_comment_columns</item>
</argument>
<dataSource name="mageplaza_blog_post_listing_data_source">
<argument name="dataProvider" xsi:type="configurableObject">
<argument name="class" xsi:type="string">Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider</argument>
<argument name="name" xsi:type="string">mageplaza_blog_comment_listing_data_source</argument>
<argument name="primaryFieldName" xsi:type="string">comment_id</argument>
<argument name="requestFieldName" xsi:type="string">comment_id</argument>
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
<item name="update_url" xsi:type="url" path="mui/index/render"/>
<item name="storageConfig" xsi:type="array">
<item name="indexField" xsi:type="string">comment_id</item>
</item>
</item>
</argument>
</argument>
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
</item>
</argument>
</dataSource>
<listingToolbar name="listing_top">
<bookmark name="bookmarks"/>
<columnsControls name="columns_controls"/>
<exportButton name="export_button"/>
<filters name="listing_filters"/>
<massaction name="listing_massaction">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/tree-massactions</item>
</item>
</argument>
<action name="delete">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="type" xsi:type="string">delete</item>
<item name="label" xsi:type="string" translate="true">Delete</item>
<item name="url" xsi:type="url" path="mageplaza_blog/comment/massDelete"/>
<item name="confirm" xsi:type="array">
<item name="title" xsi:type="string" translate="true">Delete Comments</item>
<item name="message" xsi:type="string" translate="true">Are you sure you wan't to delete selected Comments?</item>
</item>
</item>
</argument>
</action>
<action name="status">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="type" xsi:type="string">status</item>
<item name="label" xsi:type="string" translate="true">Change status</item>
</item>
</argument>
<argument name="actions" xsi:type="array">
<item name="0" xsi:type="array">
<item name="type" xsi:type="string">enable</item>
<item name="label" xsi:type="string" translate="true">Approved</item>
<item name="url" xsi:type="url" path="mageplaza_blog/comment/massStatus">
<param name="status">1</param>
</item>
</item>
<item name="1" xsi:type="array">
<item name="type" xsi:type="string">disable</item>
<item name="label" xsi:type="string" translate="true">Spam</item>
<item name="url" xsi:type="url" path="mageplaza_blog/comment/massStatus">
<param name="status">2</param>
</item>
</item>
<item name="2" xsi:type="array">
<item name="type" xsi:type="string">status</item>
<item name="label" xsi:type="string" translate="true">Pending</item>
<item name="url" xsi:type="url" path="mageplaza_blog/comment/massStatus">
<param name="status">3</param>
</item>
</item>
</argument>
</action>
</massaction>
<paging name="listing_paging"/>
</listingToolbar>
<columns name="mageplaza_blog_comment_columns">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="editorConfig" xsi:type="array">
<item name="selectProvider" xsi:type="string">mageplaza_blog_comment_listing.mageplaza_blog_comment_listing.mageplaza_blog_comment_columns.ids</item>
<item name="enabled" xsi:type="boolean">true</item>
<item name="indexField" xsi:type="string">comment_id</item>
<item name="clientConfig" xsi:type="array">
<item name="saveUrl" xsi:type="url" path="mageplaza_blog/comment/inlineEdit"/>
<item name="validateBeforeSave" xsi:type="boolean">false</item>
</item>
</item>
<item name="childDefaults" xsi:type="array">
<item name="fieldAction" xsi:type="array">
<item name="provider" xsi:type="string">mageplaza_blog_comment_listing.mageplaza_blog_comment_listing.mageplaza_blog_comment_columns_editor</item>
<item name="target" xsi:type="string">startEdit</item>
<item name="params" xsi:type="array">
<item name="0" xsi:type="string">${ $.$data.rowIndex }</item>
<item name="1" xsi:type="boolean">true</item>
</item>
</item>
</item>
</item>
</argument>
<selectionsColumn name="ids">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="resizeEnabled" xsi:type="boolean">false</item>
<item name="resizeDefaultWidth" xsi:type="string">55</item>
<item name="indexField" xsi:type="string">comment_id</item>
</item>
</argument>
</selectionsColumn>
<column name="comment_id">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">textRange</item>
<item name="sorting" xsi:type="string">desc</item>
<item name="label" xsi:type="string" translate="true">ID</item>
</item>
</argument>
</column>
<column name="mp_created_at" class="Magento\Ui\Component\Listing\Columns\Date">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">dateRange</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/date</item>
<item name="dataType" xsi:type="string">date</item>
<item name="label" xsi:type="string" translate="true">Created</item>
</item>
</argument>
</column>
<column name="status">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">Mageplaza\Blog\Model\Config\Source\Comments\Status</item>
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">select</item>
<item name="label" xsi:type="string" translate="true">Status</item>
<item name="editor" xsi:type="string">select</item>
<item name="component" xsi:type="string">Mageplaza_Blog/js/grid/columns/select</item>
<item name="dataType" xsi:type="string">select</item>
</item>
</argument>
</column>
<column name="post_name">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">text</item>
<item name="label" xsi:type="string" translate="true">Post</item>
</item>
</argument>
</column>
<column name="user_name">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="bodyTmpl" xsi:type="string">ui/grid/cells/html</item>
<item name="filter" xsi:type="string">text</item>
<item name="label" xsi:type="string" translate="true">Customer</item>
</item>
</argument>
</column>
<column name="content" class="Mageplaza\Blog\Ui\Component\Listing\Columns\CommentContent">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="bodyTmpl" xsi:type="string">ui/grid/cells/html</item>
<item name="label" xsi:type="string" translate="true">Content</item>
<item name="filter" xsi:type="string">text</item>
<item name="sortable" xsi:type="boolean">false</item>
</item>
</argument>
</column>
<actionsColumn name="actions" class="Mageplaza\Blog\Ui\Component\Listing\Column\Actions">
<argument name="data" xsi:type="array">
<item name="action_list" xsi:type="array">
<item name="edit" xsi:type="array">
<item name="label" xsi:type="string" translate="true">Edit</item>
<item name="path" xsi:type="string">mageplaza_blog/comment/edit</item>
<item name="params" xsi:type="array">
<item name="id" xsi:type="string">comment_id</item>
</item>
</item>
</item>
</argument>
</actionsColumn>
</columns>
</listing>
@@ -0,0 +1,274 @@
<?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
*/
-->
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="provider" xsi:type="string">mageplaza_blog_post_listing.mageplaza_blog_post_listing_data_source</item>
<item name="deps" xsi:type="string">mageplaza_blog_post_listing.mageplaza_blog_post_listing_data_source</item>
</item>
<item name="spinner" xsi:type="string">mageplaza_blog_post_columns</item>
<item name="buttons" xsi:type="array">
<item name="add" xsi:type="array">
<item name="name" xsi:type="string">add</item>
<item name="label" xsi:type="string" translate="true">Add New Post</item>
<item name="class" xsi:type="string">primary</item>
<item name="url" xsi:type="string">*/*/new</item>
</item>
</item>
</argument>
<dataSource name="mageplaza_blog_post_listing_data_source">
<argument name="dataProvider" xsi:type="configurableObject">
<argument name="class" xsi:type="string">Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider</argument>
<argument name="name" xsi:type="string">mageplaza_blog_post_listing_data_source</argument>
<argument name="primaryFieldName" xsi:type="string">post_id</argument>
<argument name="requestFieldName" xsi:type="string">post_id</argument>
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
<item name="update_url" xsi:type="url" path="mui/index/render"/>
<item name="storageConfig" xsi:type="array">
<item name="indexField" xsi:type="string">post_id</item>
</item>
</item>
</argument>
</argument>
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
</item>
</argument>
</dataSource>
<listingToolbar name="listing_top">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="sticky" xsi:type="boolean">true</item>
</item>
</argument>
<bookmark name="bookmarks"/>
<columnsControls name="columns_controls"/>
<exportButton name="export_button"/>
<filters name="listing_filters"/>
<massaction name="listing_massaction">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/tree-massactions</item>
</item>
</argument>
<action name="delete">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="type" xsi:type="string">delete</item>
<item name="label" xsi:type="string" translate="true">Delete</item>
<item name="url" xsi:type="url" path="mageplaza_blog/post/massDelete"/>
<item name="confirm" xsi:type="array">
<item name="title" xsi:type="string" translate="true">Delete Posts</item>
<item name="message" xsi:type="string" translate="true">Are you sure you wan't to delete selected Posts?</item>
</item>
</item>
</argument>
</action>
<action name="status">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="type" xsi:type="string">status</item>
<item name="label" xsi:type="string" translate="true">Change status</item>
</item>
</argument>
<argument name="actions" xsi:type="array">
<item name="0" xsi:type="array">
<item name="type" xsi:type="string">pending</item>
<item name="label" xsi:type="string" translate="true">Pending</item>
<item name="url" xsi:type="url" path="mageplaza_blog/post/massStatus">
<param name="status">0</param>
</item>
</item>
<item name="1" xsi:type="array">
<item name="type" xsi:type="string">approved</item>
<item name="label" xsi:type="string" translate="true">Approved</item>
<item name="url" xsi:type="url" path="mageplaza_blog/post/massStatus">
<param name="status">1</param>
</item>
</item>
<item name="2" xsi:type="array">
<item name="type" xsi:type="string">disapproved</item>
<item name="label" xsi:type="string" translate="true">Disapproved</item>
<item name="url" xsi:type="url" path="mageplaza_blog/post/massStatus">
<param name="status">2</param>
</item>
</item>
</argument>
</action>
</massaction>
<paging name="listing_paging"/>
</listingToolbar>
<columns name="mageplaza_blog_post_columns">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="editorConfig" xsi:type="array">
<item name="selectProvider" xsi:type="string">mageplaza_blog_post_listing.mageplaza_blog_post_listing.mageplaza_blog_post_columns.ids</item>
<item name="enabled" xsi:type="boolean">true</item>
<item name="indexField" xsi:type="string">post_id</item>
<item name="clientConfig" xsi:type="array">
<item name="saveUrl" xsi:type="url" path="mageplaza_blog/post/inlineEdit"/>
<item name="validateBeforeSave" xsi:type="boolean">false</item>
</item>
</item>
<item name="childDefaults" xsi:type="array">
<item name="fieldAction" xsi:type="array">
<item name="provider" xsi:type="string">mageplaza_blog_post_listing.mageplaza_blog_post_listing.mageplaza_blog_post_columns_editor</item>
<item name="target" xsi:type="string">startEdit</item>
<item name="params" xsi:type="array">
<item name="0" xsi:type="string">${ $.$data.rowIndex }</item>
<item name="1" xsi:type="boolean">true</item>
</item>
</item>
</item>
</item>
</argument>
<selectionsColumn name="ids">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="resizeEnabled" xsi:type="boolean">false</item>
<item name="resizeDefaultWidth" xsi:type="string">55</item>
<item name="indexField" xsi:type="string">post_id</item>
</item>
</argument>
</selectionsColumn>
<column name="post_id">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">textRange</item>
<item name="sorting" xsi:type="string">asc</item>
<item name="label" xsi:type="string" translate="true">ID</item>
</item>
</argument>
</column>
<column name="name">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">text</item>
<item name="editor" xsi:type="array">
<item name="editorType" xsi:type="string">text</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
<item name="label" xsi:type="string" translate="true">Name</item>
</item>
</argument>
</column>
<column name="enabled">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">Mageplaza\Blog\Model\Config\Source\AuthorStatus</item>
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">select</item>
<item name="label" xsi:type="string" translate="true">Status</item>
<item name="editor" xsi:type="string">select</item>
<item name="component" xsi:type="string">Mageplaza_Blog/js/grid/columns/enable</item>
<item name="dataType" xsi:type="string">select</item>
</item>
</argument>
</column>
<column name="layout">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">Magento\Cms\Model\Page\Source\PageLayout</item>
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">select</item>
<item name="label" xsi:type="string" translate="true">Layout</item>
<item name="editor" xsi:type="string">select</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
<item name="dataType" xsi:type="string">select</item>
</item>
</argument>
</column>
<column name="in_rss">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">Magento\Config\Model\Config\Source\Yesno</item>
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">select</item>
<item name="label" xsi:type="string" translate="true">In RSS</item>
<item name="editor" xsi:type="string">select</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
<item name="dataType" xsi:type="string">select</item>
</item>
</argument>
</column>
<column name="allow_comment">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">Magento\Config\Model\Config\Source\Yesno</item>
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">select</item>
<item name="label" xsi:type="string" translate="true">Allow Comment</item>
<item name="editor" xsi:type="string">select</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
<item name="dataType" xsi:type="string">select</item>
</item>
</argument>
</column>
<column name="created_at" class="Magento\Ui\Component\Listing\Columns\Date">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">dateRange</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/date</item>
<item name="dataType" xsi:type="string">date</item>
<item name="label" xsi:type="string" translate="true">Created</item>
<item name="visible" xsi:type="boolean">false</item>
</item>
</argument>
</column>
<column name="updated_at" class="Magento\Ui\Component\Listing\Columns\Date">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">dateRange</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/date</item>
<item name="dataType" xsi:type="string">date</item>
<item name="label" xsi:type="string" translate="true">Modified</item>
<item name="visible" xsi:type="boolean">false</item>
</item>
</argument>
</column>
<column name="publish_date" class="Magento\Ui\Component\Listing\Columns\Date">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">dateRange</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/date</item>
<item name="dataType" xsi:type="string">date</item>
<item name="label" xsi:type="string" translate="true">Published</item>
</item>
</argument>
</column>
<actionsColumn name="actions" class="Mageplaza\Blog\Ui\Component\Listing\Column\Actions">
<argument name="data" xsi:type="array">
<item name="action_list" xsi:type="array">
<item name="edit" xsi:type="array">
<item name="label" xsi:type="string" translate="true">Edit</item>
<item name="path" xsi:type="string">mageplaza_blog/post/edit</item>
<item name="params" xsi:type="array">
<item name="id" xsi:type="string">post_id</item>
</item>
</item>
</item>
</argument>
</actionsColumn>
</columns>
</listing>
@@ -0,0 +1,220 @@
<?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
*/
-->
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="provider" xsi:type="string">mageplaza_blog_tag_listing.mageplaza_blog_tag_listing_data_source</item>
<item name="deps" xsi:type="string">mageplaza_blog_tag_listing.mageplaza_blog_tag_listing_data_source</item>
</item>
<item name="spinner" xsi:type="string">mageplaza_blog_tag_columns</item>
<item name="buttons" xsi:type="array">
<item name="add" xsi:type="array">
<item name="name" xsi:type="string">add</item>
<item name="label" xsi:type="string" translate="true">Add New Tag</item>
<item name="class" xsi:type="string">primary</item>
<item name="url" xsi:type="string">*/*/new</item>
</item>
</item>
</argument>
<dataSource name="mageplaza_blog_tag_listing_data_source">
<argument name="dataProvider" xsi:type="configurableObject">
<argument name="class" xsi:type="string">Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider</argument>
<argument name="name" xsi:type="string">mageplaza_blog_tag_listing_data_source</argument>
<argument name="primaryFieldName" xsi:type="string">tag_id</argument>
<argument name="requestFieldName" xsi:type="string">tag_id</argument>
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
<item name="update_url" xsi:type="url" path="mui/index/render"/>
<item name="storageConfig" xsi:type="array">
<item name="indexField" xsi:type="string">tag_id</item>
</item>
</item>
</argument>
</argument>
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
</item>
</argument>
</dataSource>
<listingToolbar name="listing_top">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="sticky" xsi:type="boolean">true</item>
</item>
</argument>
<bookmark name="bookmarks"/>
<columnsControls name="columns_controls"/>
<exportButton name="export_button"/>
<filters name="listing_filters"/>
<massaction name="listing_massaction">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/tree-massactions</item>
</item>
</argument>
<action name="delete">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="type" xsi:type="string">delete</item>
<item name="label" xsi:type="string" translate="true">Delete</item>
<item name="url" xsi:type="url" path="mageplaza_blog/tag/massDelete"/>
<item name="confirm" xsi:type="array">
<item name="title" xsi:type="string" translate="true">Delete Tags</item>
<item name="message" xsi:type="string" translate="true">Are you sure you wan't to delete selected Tags?</item>
</item>
</item>
</argument>
</action>
<action name="status">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="type" xsi:type="string">status</item>
<item name="label" xsi:type="string" translate="true">Change status</item>
</item>
</argument>
<argument name="actions" xsi:type="array">
<item name="0" xsi:type="array">
<item name="type" xsi:type="string">enable</item>
<item name="label" xsi:type="string" translate="true">Enable</item>
<item name="url" xsi:type="url" path="mageplaza_blog/tag/massStatus">
<param name="status">1</param>
</item>
</item>
<item name="1" xsi:type="array">
<item name="type" xsi:type="string">disable</item>
<item name="label" xsi:type="string" translate="true">Disable</item>
<item name="url" xsi:type="url" path="mageplaza_blog/tag/massStatus">
<param name="status">0</param>
</item>
</item>
</argument>
</action>
</massaction>
<paging name="listing_paging"/>
</listingToolbar>
<columns name="mageplaza_blog_tag_columns">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="editorConfig" xsi:type="array">
<item name="selectProvider" xsi:type="string">mageplaza_blog_tag_listing.mageplaza_blog_tag_listing.mageplaza_blog_tag_columns.ids</item>
<item name="enabled" xsi:type="boolean">true</item>
<item name="indexField" xsi:type="string">tag_id</item>
<item name="clientConfig" xsi:type="array">
<item name="saveUrl" xsi:type="url" path="mageplaza_blog/tag/inlineEdit"/>
<item name="validateBeforeSave" xsi:type="boolean">false</item>
</item>
</item>
<item name="childDefaults" xsi:type="array">
<item name="fieldAction" xsi:type="array">
<item name="provider" xsi:type="string">mageplaza_blog_tag_listing.mageplaza_blog_tag_listing.mageplaza_blog_tag_columns_editor</item>
<item name="target" xsi:type="string">startEdit</item>
<item name="params" xsi:type="array">
<item name="0" xsi:type="string">${ $.$data.rowIndex }</item>
<item name="1" xsi:type="boolean">true</item>
</item>
</item>
</item>
</item>
</argument>
<selectionsColumn name="ids">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="resizeEnabled" xsi:type="boolean">false</item>
<item name="resizeDefaultWidth" xsi:type="string">55</item>
<item name="indexField" xsi:type="string">tag_id</item>
</item>
</argument>
</selectionsColumn>
<column name="tag_id">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">textRange</item>
<item name="sorting" xsi:type="string">asc</item>
<item name="label" xsi:type="string" translate="true">ID</item>
</item>
</argument>
</column>
<column name="name">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">text</item>
<item name="editor" xsi:type="array">
<item name="editorType" xsi:type="string">text</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
<item name="label" xsi:type="string" translate="true">Name</item>
</item>
</argument>
</column>
<column name="enabled">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">Magento\Config\Model\Config\Source\Enabledisable</item>
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">select</item>
<item name="editor" xsi:type="string">select</item>
<item name="label" xsi:type="string" translate="true">Status</item>
<item name="component" xsi:type="string">Mageplaza_Blog/js/grid/columns/enable</item>
<item name="dataType" xsi:type="string">select</item>
</item>
</argument>
</column>
<column name="created_at" class="Magento\Ui\Component\Listing\Columns\Date">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">dateRange</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/date</item>
<item name="dataType" xsi:type="string">date</item>
<item name="label" xsi:type="string" translate="true">Created</item>
</item>
</argument>
</column>
<column name="updated_at" class="Magento\Ui\Component\Listing\Columns\Date">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">dateRange</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/date</item>
<item name="dataType" xsi:type="string">date</item>
<item name="label" xsi:type="string" translate="true">Modified</item>
<item name="visible" xsi:type="boolean">false</item>
</item>
</argument>
</column>
<actionsColumn name="actions" class="Mageplaza\Blog\Ui\Component\Listing\Column\Actions">
<argument name="data" xsi:type="array">
<item name="action_list" xsi:type="array">
<item name="edit" xsi:type="array">
<item name="label" xsi:type="string" translate="true">Edit</item>
<item name="path" xsi:type="string">mageplaza_blog/tag/edit</item>
<item name="params" xsi:type="array">
<item name="id" xsi:type="string">tag_id</item>
</item>
</item>
</item>
</argument>
</actionsColumn>
</columns>
</listing>
@@ -0,0 +1,221 @@
<?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
*/
-->
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="provider" xsi:type="string">mageplaza_blog_topic_listing.mageplaza_blog_topic_listing_data_source</item>
<item name="deps" xsi:type="string">mageplaza_blog_topic_listing.mageplaza_blog_topic_listing_data_source</item>
</item>
<item name="spinner" xsi:type="string">mageplaza_blog_topic_columns</item>
<item name="buttons" xsi:type="array">
<item name="add" xsi:type="array">
<item name="name" xsi:type="string">add</item>
<item name="label" xsi:type="string" translate="true">Add New Topic</item>
<item name="class" xsi:type="string">primary</item>
<item name="url" xsi:type="string">*/*/new</item>
</item>
</item>
</argument>
<dataSource name="mageplaza_blog_topic_listing_data_source">
<argument name="dataProvider" xsi:type="configurableObject">
<argument name="class" xsi:type="string">Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider</argument>
<argument name="name" xsi:type="string">mageplaza_blog_topic_listing_data_source</argument>
<argument name="primaryFieldName" xsi:type="string">topic_id</argument>
<argument name="requestFieldName" xsi:type="string">topic_id</argument>
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
<item name="update_url" xsi:type="url" path="mui/index/render"/>
<item name="storageConfig" xsi:type="array">
<item name="indexField" xsi:type="string">topic_id</item>
</item>
</item>
</argument>
</argument>
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
</item>
</argument>
</dataSource>
<listingToolbar name="listing_top">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="template" xsi:type="string">ui/grid/toolbar</item>
<item name="stickyTmpl" xsi:type="string">ui/grid/sticky/toolbar</item>
</item>
</argument>
<bookmark name="bookmarks"/>
<columnsControls name="columns_controls"/>
<exportButton name="export_button"/>
<filters name="listing_filters"/>
<massaction name="listing_massaction">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/tree-massactions</item>
</item>
</argument>
<action name="delete">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="type" xsi:type="string">delete</item>
<item name="label" xsi:type="string" translate="true">Delete</item>
<item name="url" xsi:type="url" path="mageplaza_blog/topic/massDelete"/>
<item name="confirm" xsi:type="array">
<item name="title" xsi:type="string" translate="true">Delete Topics</item>
<item name="message" xsi:type="string" translate="true">Are you sure you wan't to delete selected Topics?</item>
</item>
</item>
</argument>
</action>
<action name="status">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="type" xsi:type="string">status</item>
<item name="label" xsi:type="string" translate="true">Change status</item>
</item>
</argument>
<argument name="actions" xsi:type="array">
<item name="0" xsi:type="array">
<item name="type" xsi:type="string">enable</item>
<item name="label" xsi:type="string" translate="true">Enable</item>
<item name="url" xsi:type="url" path="mageplaza_blog/topic/massStatus">
<param name="status">1</param>
</item>
</item>
<item name="1" xsi:type="array">
<item name="type" xsi:type="string">disable</item>
<item name="label" xsi:type="string" translate="true">Disable</item>
<item name="url" xsi:type="url" path="mageplaza_blog/topic/massStatus">
<param name="status">0</param>
</item>
</item>
</argument>
</action>
</massaction>
<paging name="listing_paging"/>
</listingToolbar>
<columns name="mageplaza_blog_topic_columns">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="editorConfig" xsi:type="array">
<item name="selectProvider" xsi:type="string">mageplaza_blog_topic_listing.mageplaza_blog_topic_listing.mageplaza_blog_topic_columns.ids</item>
<item name="enabled" xsi:type="boolean">true</item>
<item name="indexField" xsi:type="string">topic_id</item>
<item name="clientConfig" xsi:type="array">
<item name="saveUrl" xsi:type="url" path="mageplaza_blog/topic/inlineEdit"/>
<item name="validateBeforeSave" xsi:type="boolean">false</item>
</item>
</item>
<item name="childDefaults" xsi:type="array">
<item name="fieldAction" xsi:type="array">
<item name="provider" xsi:type="string">mageplaza_blog_topic_listing.mageplaza_blog_topic_listing.mageplaza_blog_topic_columns_editor</item>
<item name="target" xsi:type="string">startEdit</item>
<item name="params" xsi:type="array">
<item name="0" xsi:type="string">${ $.$data.rowIndex }</item>
<item name="1" xsi:type="boolean">true</item>
</item>
</item>
</item>
</item>
</argument>
<selectionsColumn name="ids">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="resizeEnabled" xsi:type="boolean">false</item>
<item name="resizeDefaultWidth" xsi:type="string">55</item>
<item name="indexField" xsi:type="string">topic_id</item>
</item>
</argument>
</selectionsColumn>
<column name="topic_id">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">textRange</item>
<item name="sorting" xsi:type="string">asc</item>
<item name="label" xsi:type="string" translate="true">ID</item>
</item>
</argument>
</column>
<column name="name">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">text</item>
<item name="editor" xsi:type="array">
<item name="editorType" xsi:type="string">text</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
<item name="label" xsi:type="string" translate="true">Name</item>
</item>
</argument>
</column>
<column name="enabled">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">Magento\Config\Model\Config\Source\Enabledisable</item>
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">select</item>
<item name="editor" xsi:type="string">select</item>
<item name="label" xsi:type="string" translate="true">Status</item>
<item name="component" xsi:type="string">Mageplaza_Blog/js/grid/columns/enable</item>
<item name="dataType" xsi:type="string">select</item>
</item>
</argument>
</column>
<column name="created_at" class="Magento\Ui\Component\Listing\Columns\Date">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">dateRange</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/date</item>
<item name="dataType" xsi:type="string">date</item>
<item name="label" xsi:type="string" translate="true">Created</item>
</item>
</argument>
</column>
<column name="updated_at" class="Magento\Ui\Component\Listing\Columns\Date">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">dateRange</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/date</item>
<item name="dataType" xsi:type="string">date</item>
<item name="label" xsi:type="string" translate="true">Modified</item>
<item name="visible" xsi:type="boolean">false</item>
</item>
</argument>
</column>
<actionsColumn name="actions" class="Mageplaza\Blog\Ui\Component\Listing\Column\Actions">
<argument name="data" xsi:type="array">
<item name="action_list" xsi:type="array">
<item name="edit" xsi:type="array">
<item name="label" xsi:type="string" translate="true">Edit</item>
<item name="path" xsi:type="string">mageplaza_blog/topic/edit</item>
<item name="params" xsi:type="array">
<item name="id" xsi:type="string">topic_id</item>
</item>
</item>
</item>
</argument>
</actionsColumn>
</columns>
</listing>
@@ -0,0 +1,43 @@
/**
* 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 (jQuery) {
var categorySubmit = function () {
var activeTab = $('active_tab_id');
if (activeTab) {
if (activeTab.tabsJsObject && activeTab.tabsJsObject.tabs('activeAnchor')) {
activeTab.value = activeTab.tabsJsObject.tabs('activeAnchor').prop('id');
}
}
// Submit form
jQuery('#category_edit_form').trigger('submit');
};
return function (config, element) {
config = config || {};
jQuery(element).on('click', function (event) {
categorySubmit(config.url, config.ajax);
});
};
});
@@ -0,0 +1,79 @@
/**
* 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
*/
/*jshint jquery:true browser:true*/
/*global Ajax:true alert:true*/
define([
"jquery",
"mage/backend/form",
"jquery/ui",
"prototype"
], function ($) {
"use strict";
$.widget("mage.categoryForm", $.mage.form, {
options: {
categoryIdSelector: 'input[name="category[category_id]"]',
categoryPathSelector: 'input[name="category[path]"]'
},
/**
* Form creation
* @protected
*/
_create: function () {
this._super();
$('body').on('categoryMove.tree', $.proxy(this.refreshPath, this));
},
/**
* Sending ajax to server to refresh field 'category[path]'
* @protected
*/
refreshPath: function () {
var that = this;
if (!this.element.find(this.options.categoryIdSelector).prop('value')) {
return false;
}
$.ajax({
type: 'POST',
url: this.options.refreshUrl,
dataType: 'json',
data: {
form_key: FORM_KEY
}
}).success(function (data) {
that._refreshPathSuccess(data);
});
},
_refreshPathSuccess: function (response) {
if (response.error) {
alert(response.message);
} else {
if (this.element.find(this.options.categoryIdSelector).prop('value') == response.id) {
this.element.find(this.options.categoryPathSelector)
.prop('value', response.path);
}
}
}
});
return $.mage.categoryForm;
});
@@ -0,0 +1,23 @@
/**
* 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-actions {
overflow-x: visible !important;
}
@@ -0,0 +1,35 @@
/**
* 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
*/
.admin__menu #menu-magento-backend-content .item-blog.parent.level-1 > strong:before {
content: '\e900';
font-family: 'Mageplaza Icons';
font-size: 1.5rem;
margin-right: .8rem;
}
[data-role='modal'] ._required>.admin__field-label>label:after {
content: unset !important;
}
#post_grid_table .admin__grid-control .admin__grid-control-value {
display: none;
}
#menu-magento-backend-content .submenu-group-title {
display: block;
}
@@ -0,0 +1,102 @@
/**
* 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([
'underscore',
'Magento_Catalog/js/components/new-category'
], function (_, Category) {
'use strict';
/**
* Processing options list
*
* @param {Array} array - Property array
* @param {String} separator - Level separator
* @param {Array} created - list to add new options
*
* @return {Array} Plain options list
*/
function flattenCollection(array, separator, created) {
var i = 0,
length,
childCollection;
array = _.compact(array);
length = array.length;
created = created || [];
for (i; i < length; i++) {
created.push(array[i]);
if (array[i].hasOwnProperty(separator)) {
childCollection = array[i][separator];
delete array[i][separator];
flattenCollection.call(this, childCollection, separator, created);
}
}
return created;
}
return Category.extend({
/**
* Get path to current option
*
* @param {Object} data - option data
* @returns {String} path
*/
getPath: function (data) {
var pathParts,
createdPath = '';
if (this.renderPath && typeof data.path !== "undefined") {
pathParts = data.path.split('.');
_.each(pathParts, function (curData) {
createdPath = createdPath ? createdPath + ' / ' + curData : curData;
});
return createdPath;
}
},
/**
* Set option to options array.
*
* @param {Object} option
* @param {Array} options
*/
setOption: function (option, options) {
// eslint-disable-next-line radix
var parent = parseInt(option.parent),
copyOptionsTree;
if (_.contains([0, 1], parent)) {
options = options || this.cacheOptions.tree;
options.push(option);
copyOptionsTree = JSON.parse(JSON.stringify(this.cacheOptions.tree));
this.cacheOptions.plain = flattenCollection(copyOptionsTree, this.separator);
this.options(this.cacheOptions.tree);
} else {
this._super(option, options);
}
}
});
});
@@ -0,0 +1,49 @@
/**
* Mageplaza
*
* NOTICE OF LICENSE
*
* This source file is subject to the Mageplaza.com license sliderConfig 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([
'Magento_Ui/js/grid/columns/select'
], function (Column) {
'use strict';
return Column.extend({
defaults: {
bodyTmpl: 'ui/grid/cells/html'
},
getLabel: function (record) {
var label = this._super(record);
if (label !== '') {
switch (record.enabled) {
case '1':
label = '<span class="grid-severity-notice"><span>' + label + '</span></span>';
break;
case '0':
label = '<span class="grid-severity-critical"><span>' + label + '</span></span>';
break;
case '2':
label = '<span class="grid-severity-critical"><span>' + label + '</span></span>';
break;
}
}
return label;
}
});
});
@@ -0,0 +1,49 @@
/**
* Mageplaza
*
* NOTICE OF LICENSE
*
* This source file is subject to the Mageplaza.com license sliderConfig 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([
'Magento_Ui/js/grid/columns/select'
], function (Column) {
'use strict';
return Column.extend({
defaults: {
bodyTmpl: 'ui/grid/cells/html'
},
getLabel: function (record) {
var label = this._super(record);
if (label !== '') {
switch (record.status) {
case '1':
label = '<span class="grid-severity-notice"><span>' + label + '</span></span>';
break;
case '2':
label = '<span class="grid-severity-critical"><span>' + label + '</span></span>';
break;
case '3':
label = '<span class="grid-severity-minor"><span>' + label + '</span></span>';
break;
}
}
return label;
}
});
});
@@ -0,0 +1,97 @@
/**
* 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',
'Magento_Ui/js/modal/modal',
'mage/translate'
], function ($, modal, $t) {
"use strict";
$.widget('mageplaza.mpBlogAuthor', {
options: {
url: ''
},
isloaded: false,
/**
* This method constructs a new widget.
* @private
*/
_create: function () {
this.initCustomerGrid();
this.selectCustomer();
},
/**
* Init popup
* Popup will automatic open
*/
initPopup: function () {
var options = {
type: 'popup',
responsive: true,
innerScroll: true,
title: $t('Select Customer'),
buttons: []
},
customerGridEl = $('#customer-grid');
modal(options, customerGridEl);
customerGridEl.modal('openModal');
},
/**
* Init select customer
*/
selectCustomer: function () {
$('body').delegate('#customer-grid_table tbody tr', 'click', function () {
var first_name = $(this).find('td:nth-child(3)').text().trim(),
last_name = $(this).find('td:nth-child(4)').text().trim();
$("#author_customer_id").val($(this).find('input').val().trim());
$("#author_customer").val(first_name+' '+last_name);
$('#customer-grid').data('mageModal').closeModal();
});
},
/**
* Init customer grid
*/
initCustomerGrid: function () {
var self = this;
$("#author_customer").click(function () {
$.ajax({
method: 'POST',
url: self.options.url,
data: {form_key: window.FORM_KEY},
showLoader: true
}).done(function (response) {
$('#customer-grid').html(response);
self.initPopup();
});
});
}
});
return $.mageplaza.mpBlogAuthor;
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

@@ -0,0 +1 @@
<svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="calendar-times" class="svg-inline--fa fa-calendar-times fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M311.7 374.7l-17 17c-4.7 4.7-12.3 4.7-17 0L224 337.9l-53.7 53.7c-4.7 4.7-12.3 4.7-17 0l-17-17c-4.7-4.7-4.7-12.3 0-17l53.7-53.7-53.7-53.7c-4.7-4.7-4.7-12.3 0-17l17-17c4.7-4.7 12.3-4.7 17 0l53.7 53.7 53.7-53.7c4.7-4.7 12.3-4.7 17 0l17 17c4.7 4.7 4.7 12.3 0 17L257.9 304l53.7 53.7c4.8 4.7 4.8 12.3.1 17zM448 112v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"></path></svg>

After

Width:  |  Height:  |  Size: 813 B

@@ -0,0 +1 @@
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="comments" class="svg-inline--fa fa-comments fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"></path></svg>

After

Width:  |  Height:  |  Size: 735 B

@@ -0,0 +1 @@
<svg height="427pt" viewBox="-40 0 427 427.00131" width="427pt" xmlns="http://www.w3.org/2000/svg"><path d="m232.398438 154.703125c-5.523438 0-10 4.476563-10 10v189c0 5.519531 4.476562 10 10 10 5.523437 0 10-4.480469 10-10v-189c0-5.523437-4.476563-10-10-10zm0 0"/><path d="m114.398438 154.703125c-5.523438 0-10 4.476563-10 10v189c0 5.519531 4.476562 10 10 10 5.523437 0 10-4.480469 10-10v-189c0-5.523437-4.476563-10-10-10zm0 0"/><path d="m28.398438 127.121094v246.378906c0 14.5625 5.339843 28.238281 14.667968 38.050781 9.285156 9.839844 22.207032 15.425781 35.730469 15.449219h189.203125c13.527344-.023438 26.449219-5.609375 35.730469-15.449219 9.328125-9.8125 14.667969-23.488281 14.667969-38.050781v-246.378906c18.542968-4.921875 30.558593-22.835938 28.078124-41.863282-2.484374-19.023437-18.691406-33.253906-37.878906-33.257812h-51.199218v-12.5c.058593-10.511719-4.097657-20.605469-11.539063-28.03125-7.441406-7.421875-17.550781-11.5546875-28.0625-11.46875h-88.796875c-10.511719-.0859375-20.621094 4.046875-28.0625 11.46875-7.441406 7.425781-11.597656 17.519531-11.539062 28.03125v12.5h-51.199219c-19.1875.003906-35.394531 14.234375-37.878907 33.257812-2.480468 19.027344 9.535157 36.941407 28.078126 41.863282zm239.601562 279.878906h-189.203125c-17.097656 0-30.398437-14.6875-30.398437-33.5v-245.5h250v245.5c0 18.8125-13.300782 33.5-30.398438 33.5zm-158.601562-367.5c-.066407-5.207031 1.980468-10.21875 5.675781-13.894531 3.691406-3.675781 8.714843-5.695313 13.925781-5.605469h88.796875c5.210937-.089844 10.234375 1.929688 13.925781 5.605469 3.695313 3.671875 5.742188 8.6875 5.675782 13.894531v12.5h-128zm-71.199219 32.5h270.398437c9.941406 0 18 8.058594 18 18s-8.058594 18-18 18h-270.398437c-9.941407 0-18-8.058594-18-18s8.058593-18 18-18zm0 0"/><path d="m173.398438 154.703125c-5.523438 0-10 4.476563-10 10v189c0 5.519531 4.476562 10 10 10 5.523437 0 10-4.480469 10-10v-189c0-5.523437-4.476563-10-10-10zm0 0"/></svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -0,0 +1 @@
<svg height="440pt" viewBox="-52 0 440 440" width="440pt" xmlns="http://www.w3.org/2000/svg"><path d="m0 104v8h16v-16h-8c-4.417969 0-8 3.582031-8 8zm0 0"/><path d="m0 259.792969h16v16.421875h-16zm0 0"/><path d="m0 226.945312h16v16.421876h-16zm0 0"/><path d="m0 325.480469h16v16.421875h-16zm0 0"/><path d="m0 292.632812h16v16.421876h-16zm0 0"/><path d="m0 194.113281h16v16.414063h-16zm0 0"/><path d="m0 391.160156h16v16.425782h-16zm0 0"/><path d="m0 161.265625h16v16.421875h-16zm0 0"/><path d="m0 358.320312h16v16.414063h-16zm0 0"/><path d="m0 128.425781h16v16.421875h-16zm0 0"/><path d="m0 432c0 4.417969 3.582031 8 8 8h8v-16h-16zm0 0"/><path d="m64 424h16v16h-16zm0 0"/><path d="m96 424h16v16h-16zm0 0"/><path d="m160 424h16v16h-16zm0 0"/><path d="m192 424h16v16h-16zm0 0"/><path d="m128 424h16v16h-16zm0 0"/><path d="m32 424h16v16h-16zm0 0"/><path d="m224 440h8c4.417969 0 8-3.582031 8-8v-8h-16zm0 0"/><path d="m224 400h16v16h-16zm0 0"/><path d="m24 96h16v16h-16zm0 0"/><path d="m335.472656 93.390625c-.074218-.253906-.164062-.503906-.265625-.75-.375-.839844-.890625-1.609375-1.527343-2.273437l-88-88c-.664063-.644532-1.441407-1.164063-2.289063-1.535157-.21875-.097656-.449219-.179687-.679687-.246093-.714844-.257813-1.464844-.410157-2.222657-.449219-.207031-.058594-.335937-.136719-.488281-.136719h-136c-4.417969 0-8 3.582031-8 8v40h-40c-4.417969 0-8 3.582031-8 8v328c0 4.417969 3.582031 8 8 8h224c4.417969 0 8-3.582031 8-8v-40h40c4.417969 0 8-3.582031 8-8v-240c0-.175781-.089844-.320312-.097656-.496094-.046875-.71875-.191406-1.429687-.429688-2.113281zm-87.472656-66.078125 60.6875 60.6875h-60.6875zm24 348.6875h-208v-312h32v272c0 4.417969 3.582031 8 8 8h168zm48-48h-208v-312h120v80c0 4.417969 3.582031 8 8 8h80zm0 0"/><path d="m160 192c0 30.929688 25.070312 56 56 56s56-25.070312 56-56-25.070312-56-56-56c-30.914062.035156-55.964844 25.085938-56 56zm96 0c0 22.089844-17.910156 40-40 40s-40-17.910156-40-40 17.910156-40 40-40c22.082031.027344 39.972656 17.917969 40 40zm0 0"/><path d="m208 168v16h-16v16h16v16h16v-16h16v-16h-16v-16zm0 0"/></svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

@@ -0,0 +1 @@
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="eye" class="svg-inline--fa fa-eye fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"></path></svg>

After

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 680 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 B

@@ -0,0 +1 @@
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="thumbs-up" class="svg-inline--fa fa-thumbs-up fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M104 224H24c-13.255 0-24 10.745-24 24v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V248c0-13.255-10.745-24-24-24zM64 472c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zM384 81.452c0 42.416-25.97 66.208-33.277 94.548h101.723c33.397 0 59.397 27.746 59.553 58.098.084 17.938-7.546 37.249-19.439 49.197l-.11.11c9.836 23.337 8.237 56.037-9.308 79.469 8.681 25.895-.069 57.704-16.382 74.757 4.298 17.598 2.244 32.575-6.148 44.632C440.202 511.587 389.616 512 346.839 512l-2.845-.001c-48.287-.017-87.806-17.598-119.56-31.725-15.957-7.099-36.821-15.887-52.651-16.178-6.54-.12-11.783-5.457-11.783-11.998v-213.77c0-3.2 1.282-6.271 3.558-8.521 39.614-39.144 56.648-80.587 89.117-113.111 14.804-14.832 20.188-37.236 25.393-58.902C282.515 39.293 291.817 0 312 0c24 0 72 8 72 81.452z"></path></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

@@ -0,0 +1 @@
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" class="svg-inline--fa fa-user fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"></path></svg>

After

Width:  |  Height:  |  Size: 484 B

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<g>
<g>
<g>
<path d="M352.459,220c0-11.046-8.954-20-20-20h-206c-11.046,0-20,8.954-20,20s8.954,20,20,20h206
C343.505,240,352.459,231.046,352.459,220z"/>
<path d="M126.459,280c-11.046,0-20,8.954-20,20c0,11.046,8.954,20,20,20H251.57c11.046,0,20-8.954,20-20c0-11.046-8.954-20-20-20
H126.459z"/>
<path d="M173.459,472H106.57c-22.056,0-40-17.944-40-40V80c0-22.056,17.944-40,40-40h245.889c22.056,0,40,17.944,40,40v123
c0,11.046,8.954,20,20,20c11.046,0,20-8.954,20-20V80c0-44.112-35.888-80-80-80H106.57c-44.112,0-80,35.888-80,80v352
c0,44.112,35.888,80,80,80h66.889c11.046,0,20-8.954,20-20C193.459,480.954,184.505,472,173.459,472z"/>
<path d="M467.884,289.572c-23.394-23.394-61.458-23.395-84.837-0.016l-109.803,109.56c-2.332,2.327-4.052,5.193-5.01,8.345
l-23.913,78.725c-2.12,6.98-0.273,14.559,4.821,19.78c3.816,3.911,9,6.034,14.317,6.034c1.779,0,3.575-0.238,5.338-0.727
l80.725-22.361c3.322-0.92,6.35-2.683,8.79-5.119l109.573-109.367C491.279,351.032,491.279,312.968,467.884,289.572z
M333.776,451.768l-40.612,11.25l11.885-39.129l74.089-73.925l28.29,28.29L333.776,451.768z M439.615,346.13l-3.875,3.867
l-28.285-28.285l3.862-3.854c7.798-7.798,20.486-7.798,28.284,0C447.399,325.656,447.399,338.344,439.615,346.13z"/>
<path d="M332.459,120h-206c-11.046,0-20,8.954-20,20s8.954,20,20,20h206c11.046,0,20-8.954,20-20S343.505,120,332.459,120z"/>
</g>
</g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

@@ -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>
+38
View File
@@ -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>
@@ -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>
+27
View File
@@ -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; ?>
@@ -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; ?>

Some files were not shown because too many files have changed in this diff Show More