Rajout du module ReCaptcha
This commit is contained in:
55
local/modules/ReCaptcha/ReCaptcha.php
Normal file
55
local/modules/ReCaptcha/ReCaptcha.php
Normal 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,
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user