<?php
/* Smarty version 4.5.2, created on 2024-04-15 10:10:48
  from '/Users/nikolaimv/Sites/admin.panel.11.loc/themes/template-ru/init/script-recaptcha.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_661cb6d866b8a3_42313486',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'f488ac2933c381a3fff0fd5789231c93c8c26937' => 
    array (
      0 => '/Users/nikolaimv/Sites/admin.panel.11.loc/themes/template-ru/init/script-recaptcha.tpl',
      1 => 1710944937,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_661cb6d866b8a3_42313486 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['config']->value['allow_recaptcha'] == 2) {
echo '<script'; ?>
 type="text/javascript" src="https://www.google.com/recaptcha/api.js?hl=<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['website_language'], ENT_QUOTES, 'UTF-8', true);?>
"><?php echo '</script'; ?>
><?php } elseif ($_smarty_tpl->tpl_vars['config']->value['allow_recaptcha'] == 3) {
echo '<script'; ?>
 type="text/javascript">function getRecaptcha() {grecaptcha.ready(function() {grecaptcha.execute("<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['recaptcha_public_key'], ENT_QUOTES, 'UTF-8', true);?>
").then(function (token) {$("input[name='recaptcha_token']").val(token);})})}getRecaptcha();<?php echo '</script'; ?>
><?php }
}
}
