<?xml version="1.0"?>
<!--
/**
 * Venustheme
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Venustheme.com license that is
 * available through the world-wide-web at this URL:
 * http://www.venustheme.com/license-agreement.html
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade this extension to newer
 * version in the future.
 *
 * @category   Venustheme
 * @package    Ves_Megamenu
 * @copyright  Copyright (c) 2017 Venustheme (http://www.venustheme.com/)
 * @license    http://www.venustheme.com/LICENSE-1.0.html
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
	<system>
		<tab id="vesalltab" translate="label" sortOrder="400">
			<label>Venustheme.com</label>
		</tab>
		<section id="vesmegamenu" translate="label" type="text" showInDefault="1" showInWebsite="1" showInStore="1">
			<class>separator-top</class>
			<label>Mega Menu</label>
			<tab>vesalltab</tab>
			<resource>Ves_Megamenu::config_megamenu</resource>
			<group id="general_settings" translate="label" type="text" sortOrder="0" showInDefault="1" showInWebsite="1" showInStore="1">
				<label>General Settings</label>
				<field id="enable_backup" translate="label comment" type="select" sortOrder="0" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
					<label>Enable Auto Backup Tool</label>
					<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
					<comment><![CDATA[Allow backup a menu version after save menu]]></comment>
				</field>
				<field id="backup_version" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
					<label>Number Backup Version</label>
					<depends><field id="enable_backup">1</field></depends>
					<validate>validate-number</validate>
				</field>
				<field id="custom_css" translate="label comment" type="textarea" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
					<label>Custom CSS</label>
				</field>
				<field id="enable_cache" translate="label comment" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
					<label>Enable Cache</label>
					<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
					<comment><![CDATA[Allow Cache The Generated Megamenu Html Into Database.]]></comment>
				</field>
				<field id="enable_cache_file" translate="label comment" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
					<label>Enable Cache File</label>
					<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
					<comment><![CDATA[Allow Cache The Generated Megamenu Html Into Cache File.]]></comment>
					<depends><field id="enable_cache">1</field></depends>
				</field>
				<field id="cache_time" translate="label comment" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
					<label>Caching Time (Lifetime for caching file)</label>
					<depends><field id="enable_cache_file">1</field></depends>
					<comment><![CDATA[Empty to set cache forever.]]></comment>
				</field>
				<field id="enable_check_mobile" translate="label comment" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
					<label>Enable Check Mobile Device When Generate Menu On Frontend</label>
					<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
					<comment><![CDATA[Enable/Disable To Check Mobile Device When Generate Menu HTML On Frontend.]]></comment>
				</field>
				<field id="enable_mobile_menu" translate="label comment" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
					<label>Use Different Mobile Menu Structure</label>
					<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
					<comment><![CDATA[Enable/Disable mobile menu code hidden on desktop, and desktop menu will hidden on mobile view. Disable the option to reduce DOM tags.]]></comment>
				</field>
                <field id="enable_admin_ajax" translate="label comment" type="select" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
                    <label>Enable Admin Ajax Load Catalog Categories</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment><![CDATA[Allow load list catalog categories via ajax when edit menu on backend. If the site have larger catalog categories, you should enable the option.]]></comment>
                </field>
                <field id="number_of_category_search" translate="label comment" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
                    <label>Number of Categories when searching</label>
                    <depends><field id="enable_admin_ajax">1</field></depends>
                    <comment><![CDATA[Number of Categories will be shown when you search.]]></comment>
                    <validate>validate-number</validate>
                </field>
			</group>
		</section>
	</system>
</config>
