| 1 |
<?php |
| 2 |
|
| 3 |
namespace forge12\contactform7\CF7DoubleOptIn { |
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* Class AvadaOptIn |
| 10 |
* |
| 11 |
* @package forge12\contactform7\CF7OptIn |
| 12 |
*/ |
| 13 |
class ControllerAvada extends BaseController { |
| 14 |
/** |
| 15 |
* Admin constructor. |
| 16 |
*/ |
| 17 |
public function on_init() { |
| 18 |
$this->get_logger()->debug( 'Avada integration on_init started', [ |
| 19 |
'plugin' => 'double-opt-in', |
| 20 |
'class' => __CLASS__, |
| 21 |
'method' => __METHOD__, |
| 22 |
] ); |
| 23 |
|
| 24 |
require_once( 'AvadaFormOptions.class.php' ); |
| 25 |
$AFO = new AvadaFormOptions( $this->get_logger() ); |
| 26 |
$this->get_logger()->debug( 'AvadaFormOptions initialized', [ |
| 27 |
'plugin' => 'double-opt-in', |
| 28 |
] ); |
| 29 |
|
| 30 |
require_once( 'AvadaFrontend.class.php' ); |
| 31 |
$AF = new AvadaFrontend( $this->get_logger() ); |
| 32 |
$this->get_logger()->debug( 'AvadaFrontend initialized', [ |
| 33 |
'plugin' => 'double-opt-in', |
| 34 |
] ); |
| 35 |
} |
| 36 |
|
| 37 |
} |
| 38 |
} |