<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
        <tab id="ave" translate="label" sortOrder="10">
            <label>Averun</label>
        </tab>
        <section id="ave_reviewimages" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
            <class>separator-top</class>
            <label>Review Images</label>
            <tab>ave</tab>
            <resource>Averun_ReviewImages::config</resource>
            <group id="general" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>General settings</label>
                <field id="image_width" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
                    <label>Image Width, px</label>
                    <frontend_class>validate-digits</frontend_class>
                    <comment>Enter width for images on review list block. Default value: 500px</comment>
                </field>
                <field id="image_height" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
                    <label>Image Height, px</label>
                    <frontend_class>validate-digits</frontend_class>
                    <comment>Enter height for images on review list block. Default value: 500px</comment>
                </field>
                <field id="image_thumbnail_width" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
                    <label>Thumbnail Image Width, px</label>
                    <frontend_class>validate-digits</frontend_class>
                    <comment>Enter width for thumbnail images on review list block. Default value: 80px</comment>
                </field>
                <field id="image_thumbnail_height" translate="label comment" type="text" sortOrder="40" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
                    <label>Thumbnail Image Height, px</label>
                    <frontend_class>validate-digits</frontend_class>
                    <comment>Enter height for thumbnail images on review list block. Default value: 50px</comment>
                </field>
                <field id="video_enable" translate="label" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
                    <label>Show video on frontend</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="video_width" translate="label comment" type="text" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
                    <label>Video Width, px</label>
                    <frontend_class>validate-digits</frontend_class>
                    <comment>Enter width for video on review list block. Default value: 720px</comment>
                    <depends>
                        <field id="video_enable">1</field>
                    </depends>
                </field>
                <field id="video_height" translate="label comment" type="text" sortOrder="70" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
                    <label>Video Height, px</label>
                    <frontend_class>validate-digits</frontend_class>
                    <comment>Enter height for video on review list block. Default value: 480px</comment>
                    <depends>
                        <field id="video_enable">1</field>
                    </depends>
                </field>
                <field id="video_fullscreen_enable" translate="label" type="select" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
                    <label>Enable fullscreen button in video on frontend</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <depends>
                        <field id="video_enable">1</field>
                    </depends>
                </field>
            </group>
        </section>
    </system>
</config>