Module ReCaptcha + nouveau template Front avant ajout du Hook Captcha

This commit is contained in:
2020-05-13 19:21:46 +02:00
parent 04a53140c2
commit b09c531cad
711 changed files with 74327 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
namespace ReCaptcha;
use Thelia\Core\Template\TemplateDefinition;
use Thelia\Module\BaseModule;
class ReCaptcha extends BaseModule
{
/** @var string */
const DOMAIN_NAME = 'recaptcha';
/*
* You may now override BaseModuleInterface methods, such as:
* install, destroy, preActivation, postActivation, preDeactivation, postDeactivation
*
* Have fun !
*/
public function getHooks()
{
return [
[
"type" => TemplateDefinition::FRONT_OFFICE,
"code" => "recaptcha.js",
"title" => [
"en_US" => "reCaptcha js",
"fr_FR" => "Js pour recaptcha",
],
"block" => false,
"active" => true,
],
[
"type" => TemplateDefinition::FRONT_OFFICE,
"code" => "recaptcha.check",
"title" => [
"en_US" => "reCaptcha check hook",
"fr_FR" => "reCaptcha check hook",
],
"block" => false,
"active" => true,
],
];
}
}