<?xml version="1.0" encoding="utf-8"?>
<config>
	<fieldset name="component" addfieldpath="/administrator/components/com_sppagebuilder/models/fields/">

		<field name="production_mode"
			type="radio"
			class="btn-group btn-group-yesno"
			default="0"
			label="COM_SPPAGEBUILDER_PRODUCTION_MODE"
			description="COM_SPPAGEBUILDER_PRODUCTION_MODE_DESC">
			<option value="1">JYES</option>
			<option value="0">JNO</option>
		</field>

		<field name="resetcss"
			type="resetcss"
			label="COM_SPPAGEBUILDER_RESET_CSS"
			description="COM_SPPAGEBUILDER_RESET_CSS_DESC"
			showon="production_mode:1" />

		<!-- start pro feature -->
		<!-- attch this comment for pro feature -->
		<field name="gmap_api"
			type="text"
			label="COM_SPPAGEBUILDER_ADDON_GMAP_APIKEY"
			description="COM_SPPAGEBUILDER_ADDON_GMAP_APIKEY_DESC" />
		<field name="separato-1" type="spacer" hr="true" />
		<field name="ig_token"
			type="igtoken"
			label="Instagram Access Token"
			description="Access token" />
		<!-- end pro feature -->

		<field name="separato-2" type="spacer" hr="true" />

		<field name="fontawesome"
			type="radio"
			class="btn-group btn-group-yesno"
			default="1"
			label="COM_SPPAGEBUILDER_LOAD_FONTAWESOME"
			description="COM_SPPAGEBUILDER_LOAD_FONTAWESOME_DESC">
			<option value="1">JYES</option>
			<option value="0">JNO</option>
		</field>

		<field name="disable_google_fonts"
			type="radio"
			class="btn-group btn-group-yesno"
			default="0"
			label="COM_SPPAGEBUILDER_LOAD_GOOGLE_FONTS"
			description="COM_SPPAGEBUILDER_LOAD_GOOGLE_FONTS_DESC">
			<option value="1">JYES</option>
			<option value="0">JNO</option>
		</field>

		<!-- start pro feature -->
		<!-- attch this comment for pro feature -->
		<field name="lazyloadimg"
			type="radio"
			class="btn-group btn-group-yesno"
			default="0"
			label="COM_SPPAGEBUILDER_LAZY_IMG"
			description="COM_SPPAGEBUILDER_LAZY_IMG_DESC">
			<option value="1">JYES</option>
			<option value="0">JNO</option>
		</field>
		<field name="lazyplaceholder"
			type="text"
			default="/components/com_sppagebuilder/assets/images/lazyloading-placeholder.svg"
			label="COM_SPPAGEBUILDER_LAZY_IMG_PLACEHOLDER"
			description="COM_SPPAGEBUILDER_LAZY_IMG_PLACEHOLDER_DESC" 
			showon="lazyloadimg:1" />
		<!-- end pro feature -->

		<field name="disableanimatecss"
			type="radio"
			class="btn-group btn-group-yesno"
			default="0"
			label="COM_SPPAGEBUILDER_DISABLE_ANIMATE_CSS"
			description="COM_SPPAGEBUILDER_DISABLE_ANIMATE_CSS_DESC">
			<option value="1">JYES</option>
			<option value="0">JNO</option>
		</field>

		<field name="disablecss"
			type="radio"
			class="btn-group btn-group-yesno"
			default="0"
			label="COM_SPPAGEBUILDER_DISABLE_CSS"
			description="COM_SPPAGEBUILDER_DISABLE_CSS_DESC">
			<option value="1">JYES</option>
			<option value="0">JNO</option>
		</field>

		<!-- start pro feature -->
		<!-- attch this comment for pro feature -->
		<field name="disable_og"
			type="radio"
			class="btn-group btn-group-yesno"
			default="0"
			label="COM_SPPAGEBUILDER_DISABLE_OG"
			description="COM_SPPAGEBUILDER_DISABLE_OG_DESC">
			<option value="1">JYES</option>
			<option value="0">JNO</option>
		</field>

		<field name="fb_app_id"
			type="text"
			label="COM_SPPAGEBUILDER_ADDON_FACEBOOK_APP_ID"
			description="COM_SPPAGEBUILDER_ADDON_FACEBOOK_APP_ID_DESC" 
			showon="disable_og:0" />

		<field name="disable_tc"
			type="radio"
			class="btn-group btn-group-yesno"
			default="0"
			label="COM_SPPAGEBUILDER_DISABLE_TC"
			description="COM_SPPAGEBUILDER_DISABLE_TC_DESC">
			<option value="1">JYES</option>
			<option value="0">JNO</option>
		</field>	
		<!-- end pro feature -->

	</fieldset>

	<!-- start pro feature -->
	<!-- attch this comment for pro feature -->
	<fieldset name="licenseupdate">
		<field
			name="joomshaper_email"
			type="email"
			label="COM_SPPAGEBUILDER_JOOMSHAPER_EMAIL"
			description="COM_SPPAGEBUILDER_JOOMSHAPER_EMAIL_DESC" />

		<field
			name="joomshaper_license_key"
			type="password"
			label="COM_SPPAGEBUILDER_JOOMSHAPER_LICENSE_KEY"
			description="COM_SPPAGEBUILDER_JOOMSHAPER_LICENSE_KEY_DESC" />
	</fieldset>
	<!-- end pro feature -->

	<fieldset
		name="permissions"
		label="JCONFIG_PERMISSIONS_LABEL"
		description="JCONFIG_PERMISSIONS_DESC"
		>

		<field
			name="rules"
			type="rules"
			label="JCONFIG_PERMISSIONS_LABEL"
			filter="rules"
			validate="rules"
			component="com_sppagebuilder"
			section="component" />
	</fieldset>
</config>
