init
This commit is contained in:
Executable
+61
@@ -0,0 +1,61 @@
|
||||
<?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
|
||||
*/
|
||||
-->
|
||||
<widgets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Widget:etc/widget.xsd">
|
||||
<widget id="mageplaza_blog_posts" class="Mageplaza\Blog\Block\Widget\Posts">
|
||||
<label>Mageplaza Blog</label>
|
||||
<description>Mageplaza Blog Widget</description>
|
||||
<parameters>
|
||||
<parameter name="title" xsi:type="text" required="false" visible="true">
|
||||
<label>Title</label>
|
||||
</parameter>
|
||||
<parameter name="post_count" xsi:type="block" required="true" visible="true">
|
||||
<label>Numbers of Posts Display</label>
|
||||
<block class="Mageplaza\Blog\Block\Adminhtml\Widget\Number"/>
|
||||
</parameter>
|
||||
<parameter name="show_type" xsi:type="select" required="false" visible="true"
|
||||
source_model="Mageplaza\Blog\Model\Config\Source\WidgetShowType">
|
||||
<label>Show Type</label>
|
||||
</parameter>
|
||||
<parameter name="category_id" xsi:type="select" required="true" visible="true"
|
||||
source_model="Mageplaza\Blog\Model\Config\Source\WidgetCategory">
|
||||
<label>Category</label>
|
||||
<depends>
|
||||
<parameter name="show_type" value="category"/>
|
||||
</depends>
|
||||
</parameter>
|
||||
<parameter name="template" xsi:type="select" required="true" visible="true">
|
||||
<label>Template</label>
|
||||
<options>
|
||||
<option name="posts" value="Mageplaza_Blog::widget/posts.phtml" selected="true">
|
||||
<label>Default Posts Template</label>
|
||||
</option>
|
||||
</options>
|
||||
</parameter>
|
||||
</parameters>
|
||||
<containers>
|
||||
<container name="content">
|
||||
<template name="posts" value="posts"/>
|
||||
</container>
|
||||
</containers>
|
||||
</widget>
|
||||
</widgets>
|
||||
Reference in New Issue
Block a user