| 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 |
| 14 |
{ |
| 15 |
/** |
| 16 |
* Admin constructor. |
| 17 |
*/ |
| 18 |
public function __construct() |
| 19 |
{ |
| 20 |
require_once('AvadaFormOptions.class.php'); |
| 21 |
$AFO = new AvadaFormOptions(); |
| 22 |
|
| 23 |
require_once('AvadaFrontend.class.php'); |
| 24 |
$AF = new AvadaFrontend(); |
| 25 |
|
| 26 |
} |
| 27 |
} |
| 28 |
|
| 29 |
add_action('f12_cf7_doubleoptin_ui_after_load_compatibilities', function(){ |
| 30 |
if(function_exists('Avada')) { |
| 31 |
$Controller = new ControllerAvada(); |
| 32 |
} |
| 33 |
}); |
| 34 |
} |