<?xml version="1.0" encoding="UTF-8"?> <widgets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Widget:etc/widget.xsd"> <widget id="nicolasbejean_categorywidget" class="NicolasBejean\CategoryWidget\Block\Widget\CategoryWidget"> <label translate="true">widget_label</label> <description translate="true">widget_description</description> <parameters> <parameter name="widget_title" xsi:type="text" visible="true" sort_order="1"> <label translate="true">widget_title</label> </parameter> <parameter name="widget_content" xsi:type="text" visible="true" sort_order="2"> <label translate="true">widget_content</label> </parameter> <parameter name="category_selection" xsi:type="multiselect" visible="true" sort_order="3" source_model="NicolasBejean\CategoryWidget\Model\Config\Source\CategoryList"> <label translate="true">category_selection</label> <description translate="true">category_selection_description</description> </parameter> <parameter name="category_image_width" xsi:type="text" visible="true" sort_order="4"> <label translate="true">category_image_width</label> <description translate="true">category_image_width_description</description> </parameter> <parameter name="category_image_height" xsi:type="text" visible="true" sort_order="5"> <label translate="true">category_image_height</label> <description translate="true">category_image_height_description</description> </parameter> <parameter name="template" xsi:type="select" required="true" visible="true" sort_order="6"> <label translate="true">template</label> <options> <option name="img_background" value="widget/category_widget_img_background.phtml" selected="true"> <label translate="true">default_template</label> </option> <option name="default" value="widget/category_widget.phtml"> <label translate="true">other_template</label> </option> </options> </parameter> </parameters> </widget> <widget id="nicolasbejean_new_categorywidget" class="NicolasBejean\CategoryWidget\Block\Widget\CategoryWidgetNew"> <label translate="true">Widget: Category Widget --- NEW</label> <description translate="true">Category Widget Description</description> <parameters> <parameter name="template_type" xsi:type="text" visible="true" sort_order="5"> <label translate="true">Template type</label> <description translate="true">Default: collection | Choice: collection, slider | Or Create Yours</description> </parameter> <parameter name="active_title" xsi:type="select" visible="true" sort_order="10"> <label translate="true">Activate title?</label> <options> <option name="active_title_no" value="false"> <label translate="true">No</label> </option> <option name="active_title_yes" value="true"> <label translate="true">Yes</label> </option> </options> </parameter> <parameter name="title" xsi:type="text" visible="true" sort_order="20"> <label translate="true">Widget Title</label> <depends> <parameter name="active_title" value="true"/> </depends> </parameter> <parameter name="title_tag" xsi:type="select" visible="true" sort_order="30"> <label translate="true">Title Tag</label> <depends> <parameter name="active_title" value="true"/> </depends> <options> <option name="title_tag_h1" value="h1"> <label translate="true">H1</label> </option> <option name="title_tag_h2" value="h2" selected="true"> <label translate="true">H2</label> </option> <option name="title_tag_h3" value="h3"> <label translate="true">H3</label> </option> <option name="title_tag_h4" value="h4"> <label translate="true">H4</label> </option> <option name="title_tag_h5" value="h5"> <label translate="true">H5</label> </option> <option name="title_tag_h6" value="h6"> <label translate="true">H6</label> </option> </options> </parameter> <parameter name="active_title_element" xsi:type="select" visible="true" sort_order="35"> <label translate="true">Activate title element?</label> <options> <option name="active_title_element_no" value="false"> <label translate="true">No</label> </option> <option name="active_title_element_yes" value="true"> <label translate="true">Yes</label> </option> </options> </parameter> <parameter name="title_element_tag" xsi:type="select" visible="true" sort_order="40"> <label translate="true">Title Tag</label> <depends> <parameter name="active_title_element" value="true"/> </depends> <options> <option name="title_element_tag_h1" value="h1"> <label translate="true">H1</label> </option> <option name="title_element_tag_h2" value="h2" selected="true"> <label translate="true">H2</label> </option> <option name="title_element_tag_h3" value="h3"> <label translate="true">H3</label> </option> <option name="title_element_tag_h4" value="h4"> <label translate="true">H4</label> </option> <option name="title_element_tag_h5" value="h5"> <label translate="true">H5</label> </option> <option name="title_element_tag_h6" value="h6"> <label translate="true">H6</label> </option> </options> </parameter> <parameter name="active_content_top" xsi:type="select" visible="true" sort_order="50"> <label translate="true">Activate content top?</label> <options> <option name="active_content_top_no" value="false"> <label translate="true">No</label> </option> <option name="active_content_top_yes" value="true"> <label translate="true">Yes</label> </option> </options> </parameter> <parameter name="content_top" xsi:type="text" visible="true" sort_order="51"> <label translate="true">Content Top</label> <depends> <parameter name="active_content_top" value="true"/> </depends> </parameter> <parameter name="active_content_bottom" xsi:type="select" visible="true" sort_order="55"> <label translate="true">Activate content bottom?</label> <options> <option name="active_content_bottom_no" value="false"> <label translate="true">No</label> </option> <option name="active_content_bottom_yes" value="true"> <label translate="true">Yes</label> </option> </options> </parameter> <parameter name="content_bottom" xsi:type="text" visible="true" sort_order="56"> <label translate="true">Content Bottom</label> <depends> <parameter name="active_content_bottom" value="true"/> </depends> </parameter> <parameter name="id" xsi:type="block" visible="true" required="true" sort_order="70"> <label translate="true">Category Widget</label> <block class="NicolasBejean\CategoryWidget\Block\Adminhtml\CategoryWidget\Widget\Chooser"> <data> <item name="button" xsi:type="array"> <item name="open" xsi:type="string" translate="true">Select Category Widget...</item> </item> </data> </block> </parameter> <parameter name="width" xsi:type="text" visible="true" sort_order="80"> <label translate="true">Image width</label> <description translate="true">Numbers in px - Default: 1920</description> </parameter> <parameter name="height" xsi:type="text" visible="true" sort_order="90"> <label translate="true">Image height</label> <description translate="true">Numbers in px - Default: 1080</description> </parameter> <parameter name="quality" xsi:type="text" visible="true" sort_order="100"> <label translate="true">Compression</label> <description translate="true">Number in % - Default: 60</description> </parameter> <parameter name="css_classes" xsi:type="text" visible="true" sort_order="130"> <label translate="true">Extra CSS Classes</label> </parameter> <parameter name="extra_css" xsi:type="text" visible="true" sort_order="140"> <label translate="true">Extra CSS Style</label> </parameter> <parameter name="data" xsi:type="text" visible="true" sort_order="150"> <label translate="true">Data-binding</label> </parameter> <parameter name="active_image_wrapper" xsi:type="select" visible="true" sort_order="160"> <label translate="true">Active image wrapper?</label> <options> <option name="active_image_wrapper_no" value="false"> <label translate="true">No</label> </option> <option name="active_image_wrapper_yes" value="true"> <label translate="true">Yes</label> </option> </options> </parameter> <parameter name="wrapper_css_classes" xsi:type="text" visible="true" sort_order="170"> <label translate="true">Wrapper CSS Classes</label> <depends> <parameter name="active_image_wrapper" value="true"/> </depends> </parameter> <parameter name="active_link" xsi:type="select" visible="true" sort_order="180"> <label translate="true">Add a link?</label> <options> <option name="link_no" value="false"> <label translate="true">No</label> </option> <option name="link_yes" value="true"> <label translate="true">Yes</label> </option> </options> </parameter> <parameter name="link" xsi:type="text" visible="true" sort_order="190"> <label translate="true">Href</label> <depends> <parameter name="active_link" value="true"/> </depends> </parameter> <parameter name="link_target" xsi:type="select" visible="true" sort_order="200"> <label translate="true">Target link</label> <depends> <parameter name="active_link" value="true"/> </depends> <options> <option name="link_target_blank" value="_blank"> <label translate="true">_blank</label> </option> <option name="link_target_self" value="_self"> <label translate="true">_self</label> </option> <option name="link_target_parent" value="_parent"> <label translate="true">_parent</label> </option> <option name="link_target_top" value="_top"> <label translate="true">_top</label> </option> </options> </parameter> <parameter name="link_content" xsi:type="text" visible="true" sort_order="210"> <label translate="true">Content</label> <depends> <parameter name="active_link" value="true"/> </depends> </parameter> </parameters> </widget> </widgets>