#recaptcha-js|delete
.g-recaptcha|delete

head|append = from(/public/plugins/captcha/recaptcha.html|head > *)

form#reset-form .btn-reset|before   = from(/public/plugins/captcha/recaptcha.html|body > .recaptcha-form > *)
form#login-form .btn-login|before   = from(/public/plugins/captcha/recaptcha.html|body > .recaptcha-form > *)
form.login-form .btn-login|before   = from(/public/plugins/captcha/recaptcha.html|body > .recaptcha-form > *)
form#signup-form .btn-signup|before = from(/public/plugins/captcha/recaptcha.html|body > .recaptcha-form > *)

form#comment-form .btn-submit|before  = from(/public/plugins/captcha/recaptcha.html|body > .recaptcha-form > *)
form#review-form .btn-submit|before   = from(/public/plugins/captcha/recaptcha.html|body > .recaptcha-form > *)
form#question-form .btn-submit|before = from(/public/plugins/captcha/recaptcha.html|body > .recaptcha-form > *)

[data-v-component-plugin-contact-form-form] .btn-primary|before = from(/public/plugins/captcha/recaptcha.html|body > .recaptcha-form > *)


//don't show the captcha if page is edited
#recaptcha-js|hide    = $vvveb_is_page_edit
.g-recaptcha|hide    = $vvveb_is_page_edit

.g-recaptcha|data-sitekey =  <?php echo htmlspecialchars(Vvveb\getSetting('captcha', 'site_key', null) ?? '');?>
