plugin.tx_recaptcha {
	# look at https://www.google.com/recaptcha/admin to register a key for your server
	public_key = {$plugin.tx_recaptcha.public_key}
	public_key.wrap = <div class="g-recaptcha" data-sitekey="|"></div>

	# look at https://www.google.com/recaptcha/admin to register a key for your server
	private_key = {$plugin.tx_recaptcha.private_key}

	api_server = {$plugin.tx_recaptcha.api_server}
	verify_server = {$plugin.tx_recaptcha.verify_server}

	tabindex = {$plugin.tx_recaptcha.tabindex}
	lang = {$plugin.tx_recaptcha.lang}

	enforceCaptcha = {$plugin.tx_recaptcha.enforceCaptcha}
}

# register recaptcha as captcha for sf_register
plugin.tx_sfregister.settings.captcha.recaptcha = Evoweb\Recaptcha\Adapter\SfRegisterAdapter

# add settings for EXT:form
plugin.tx_form.settings.yamlConfigurations.1974 = EXT:recaptcha/Configuration/Yaml/BaseSetup.yaml


page.includeJSFooterlibs.recaptcha = {$plugin.tx_recaptcha.api_server}
page.includeJSFooterlibs.recaptcha.external = 1

# only included if invisible captch should be rendered
[globalString LIT:1={$plugin.tx_recaptcha.include_invisible_recaptcha_callback}]
page.jsInline.recaptcha = TEXT
page.jsInline.recaptcha.value (

	function onContactformCaptchaSubmit() {
		document.getElementById('contactform').submit();
		return false;
	}

)
[end]