init
This commit is contained in:
+44
@@ -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>
|
||||
+40
@@ -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>
|
||||
+36
@@ -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>
|
||||
+27
@@ -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>
|
||||
+30
@@ -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>
|
||||
+34
@@ -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>
|
||||
+36
@@ -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>
|
||||
+27
@@ -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>
|
||||
+39
@@ -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>
|
||||
+40
@@ -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>
|
||||
+44
@@ -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>
|
||||
+30
@@ -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>
|
||||
+27
@@ -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>
|
||||
+27
@@ -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>
|
||||
+40
@@ -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>
|
||||
+36
@@ -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>
|
||||
+27
@@ -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>
|
||||
+30
@@ -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>
|
||||
+27
@@ -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>
|
||||
+30
@@ -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>
|
||||
+44
@@ -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>
|
||||
+40
@@ -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>
|
||||
+36
@@ -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>
|
||||
+27
@@ -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>
|
||||
@@ -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>
|
||||
+114
@@ -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>
|
||||
+88
@@ -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>
|
||||
+275
@@ -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>
|
||||
+216
@@ -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>
|
||||
+274
@@ -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>
|
||||
+220
@@ -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>
|
||||
+221
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user