<?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>
        <section id="weltpixel_custom_footer" translate="label" type="text" sortOrder="135" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Custom Footer</label>
            <tab>weltpixel</tab>
            <resource>WeltPixel_CustomFooter::CustomFooterSettings</resource>
            <group id="general_module_information" translate="label" type="text" sortOrder="0" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Custom Footer</label>
                <attribute type="expanded">1</attribute>
                <fieldset_css>weltpixel-module-information-header active</fieldset_css>
                <field id="separator_product_dimensions" translate="button_label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <frontend_model>WeltPixel\Backend\Block\Adminhtml\System\Config\ModuleInformation</frontend_model>
                    <button_label>WeltPixel_CustomFooter</button_label>
                </field>
            </group>
            <group id="prefooter" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>PreFooter Settings</label>
                <field id="enable" translate="label comment tooltip" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enable</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment><![CDATA[ Enable PreFooter section.<br/>
                    <strong style="color:red;">Important:</strong> Make sure that the pre-footer static blocks are enabled and assigned to the proper store views. ]]>
                    </comment>
                    <tooltip>Displays PreFooter section before the footer. Go to Content -> Blocks, the find and edit the block with identifier name "weltpixel_pre-footer".</tooltip>
                </field>
                <field id="background_color" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Background Color</label>
                    <validate>color {required:false, hash:true}</validate>
                    <comment>Set Background color of PreFooter section. Example: #f4f4f4</comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="text_color" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Text Color</label>
                    <validate>color {required:false, hash:true}</validate>
                    <comment>Set Text color from PreFooter section. Example: #303030</comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="icon_color" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Icon Color</label>
                    <validate>color {required:false, hash:true}</validate>
                    <comment>Set Icons color from PreFooter section. Example: #aaa</comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
            </group>
            <group id="footer" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Footer Settings</label>
                <field id="enable" translate="label comment tooltip" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enable</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment>Make sure the static blocks are enabled and assigned to the proper store views.</comment>
                </field>
                <field id="version" translate="label comment tooltip" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Footer Version</label>
                    <source_model>WeltPixel\CustomFooter\Model\Config\Source\FooterVersion</source_model>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                    <comment><![CDATA[ Select Footer version.<br/>
                    Check all available versions on <a href="https://pearl.weltpixel.com" target="_blank" >pearl.weltpixel.com</a> demo store ]]>
                    </comment>
                    <tooltip>Edit footer in Content -> Blocks. Find the block with identifier name "weltpixel_footer_v[x]", where x is the footer version.</tooltip>
                </field>
                <field id="background_color" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Background Color</label>
                    <validate>color {required:false, hash:true}</validate>
                    <comment>Set Background color for selected footer.</comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="text_color" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Text Color</label>
                    <validate>color {required:false, hash:true}</validate>
                    <comment>Set Text color for selected footer.</comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="icon_color" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Icon Color</label>
                    <validate>color {required:false, hash:true}</validate>
                    <comment>Set Icons color for selected footer.</comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
            </group>
            <group id="copyright" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Copyright Settings</label>
                <field id="enable" translate="label comment" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enable</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment>Display/hide the copyright section from bottom of pages. Edit the copyright content in Content -> Configuration -> Desired store view Edit -> Footer -> Copyright</comment>
                </field>
            </group>
        </section>
    </system>
</config>
