| 1 |
<?php |
| 2 |
|
| 3 |
namespace AgeGate\Integration; |
| 4 |
|
| 5 |
use AgeGate\Common\Settings; |
| 6 |
use AgeGate\Common\Integration; |
| 7 |
|
| 8 |
class Customizer extends Integration |
| 9 |
{ |
| 10 |
public function exists() |
| 11 |
{ |
| 12 |
return is_customize_preview(); |
| 13 |
} |
| 14 |
|
| 15 |
public function init() |
| 16 |
{ |
| 17 |
if ($this->exists()) { |
| 18 |
$settings = Settings::getInstance(); |
| 19 |
$settings->set('isBuilder', true); |
| 20 |
// $settings->isBuilder = true; |
| 21 |
} |
| 22 |
} |
| 23 |
} |
| 24 |
|