<?xml version="1.0"?>
<!--
/**
* @author Amasty Team
* @copyright Copyright (c) 2022 Amasty (https://www.amasty.com)
* @package Magento 1 Base Package
*/-->
<config>
    <tabs>
        <amasty translate="label" module="ambase">
            <label><![CDATA[<div style="position: absolute;"><img id="amasty_block" src="" alt="" border="0" /></div>&nbsp;<script>
            var n = SKIN_URL.indexOf("adminhtml");
            $('amasty_block').src = SKIN_URL.substring(0, n) + "adminhtml/default/default/images/ambase/amasty.png";
            </script>]]></label>
            <sort_order>400</sort_order>
        </amasty>
    </tabs>
    <sections>
        <amstore>
            <label><![CDATA[Extensions Store]]></label>
            <tab>amasty</tab>
            <class>amasty-store-tab</class>
            <frontend_type>text</frontend_type>
            <sort_order>100</sort_order>
            <show_in_default>1</show_in_default>
            <show_in_website>1</show_in_website>
            <show_in_store>1</show_in_store>
            <groups>
                <extensions translate="label">
                    <label>Amasty Extensions Store</label>
                    <frontend_type>text</frontend_type>
                    <frontend_model>ambase/store</frontend_model>
                    <sort_order>999</sort_order>
                    <show_in_default>1</show_in_default>
                    <show_in_website>1</show_in_website>
                    <show_in_store>1</show_in_store>
                </extensions>
            </groups>
        </amstore>
        <ambase translate="label" module="ambase">
            <label><![CDATA[Extensions &amp; Notifications]]></label>
            <tab>amasty</tab>
            <class>amasty-extensions-tab</class>
            <frontend_type>text</frontend_type>
            <sort_order>110</sort_order>
            <show_in_default>1</show_in_default>
            <show_in_website>1</show_in_website>
            <show_in_store>1</show_in_store>
            <groups>
                <feed>
                    <label>Notifications</label>
                    <frontend_type>text</frontend_type>
                    <sort_order>10</sort_order>
                    <show_in_default>1</show_in_default>
                    <show_in_website>1</show_in_website>
                    <show_in_store>1</show_in_store>
                    <fields>
                        <frequency translate="label">
                            <label>Update Frequency</label>
                            <frontend_type>select</frontend_type>
                            <source_model>ambase/source_frequency</source_model>
                            <sort_order>10</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>1</show_in_store>
                        </frequency>
                        <type translate="label">
                            <label>I want to Receive Notifications about:</label>
                            <frontend_type>multiselect</frontend_type>
                            <source_model>ambase/source_type</source_model>
                            <backend_model>ambase/config_backend_unsubscribe</backend_model>
                            <sort_order>20</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>1</show_in_store>
                        </type>
                    </fields>
                </feed>
                <extensions translate="label">
                    <label>Installed Extensions</label>
                    <frontend_type>text</frontend_type>
                    <frontend_model>ambase/extensions</frontend_model>
                    <sort_order>20</sort_order>
                    <show_in_default>1</show_in_default>
                    <show_in_website>1</show_in_website>
                    <show_in_store>1</show_in_store>
                </extensions>
                <conflicts translate="label">
                    <label><![CDATA[Troubleshooter<script>
                        function ambaseShow(url){
                            new Ajax.Request(url, {
                                onSuccess: function(response) {
                                    $("ambase_conflicts_container").update(response.transport.response)
                                }
                            });
                        }
                    </script>]]></label>
                    <frontend_type>text</frontend_type>
                    <frontend_model>ambase/conflicts</frontend_model>
                    <sort_order>200</sort_order>
                    <show_in_default>1</show_in_default>
                    <show_in_website>1</show_in_website>
                    <show_in_store>1</show_in_store>
                </conflicts>
            </groups>
        </ambase>
    </sections>
</config>
