<?xml version="1.0" ?>
<!--
/**
 * Hyvä Themes - https://hyva.io
 * Copyright © Hyvä Themes. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
        <tab id="hyva_themes" sortOrder="999" translate="label">
            <label>Hyva Themes</label>
        </tab>
        <section id="hyva_theme_fallback" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10"
                 translate="label">
            <label>Theme Fallback</label>
            <tab>hyva_themes</tab>
            <resource>Hyva_ThemeFallback::config_hyva_themeFallback</resource>
            <group id="general" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10" translate="label">
                <label>General Settings</label>
                <field id="enable" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10"
                       translate="label,comment" type="select">
                    <label>Enable</label>
                    <comment>Flush page cache after changing this value to apply changes.</comment>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="theme_full_path" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="20"
                       translate="label,comment" type="select">
                    <label>Theme full path</label>
                    <comment>Default: 'Magento Luma'.</comment>
                    <source_model>Hyva\ThemeFallback\Model\Config\Source\ThemeList</source_model>
                </field>
                <field id="list_part_of_url" showInDefault="1" showInWebsite="1" showInStore="1" sortOrder="30"
                       translate="label,comment">
                    <label>Apply fallback to requests containing</label>
                    <comment>
                        <![CDATA[For example, to use the Luma checkout, configure<br/>- checkout/index<br/>- paypal/express/review<br/>- paypal/express/saveShippingMethod]]></comment>
                    <frontend_model>Hyva\ThemeFallback\Block\Adminhtml\Form\Field\Url</frontend_model>
                    <backend_model>Magento\Config\Model\Config\Backend\Serialized\ArraySerialized</backend_model>
                </field>
            </group>
        </section>
    </system>
</config>
