Intégration du module ReCaptcha

This commit is contained in:
2019-12-01 17:29:32 +01:00
parent a7d28b3b14
commit 7415fa590b
23 changed files with 706 additions and 1 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,
],
];
}
}