| @@ -1,27 +1,39 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -namespace RadiusTheme\SB\Modules\QuickView; | |
| 4 | - | |
| 5 | -// Do not allow directly accessing this file. | |
| 6 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 7 | - exit( 'This script cannot be accessed directly.' ); | |
| 8 | -} | |
| 9 | - | |
| 10 | -use RadiusTheme\SB\Modules\Compare\CompareInstaller; | |
| 11 | -use RadiusTheme\SB\Traits\SingletonTrait; | |
| 12 | - | |
| 13 | -final class QuickView { | |
| 14 | - | |
| 15 | - /** | |
| 16 | - * @var array | |
| 17 | - */ | |
| 18 | - public $settings = []; | |
| 19 | - | |
| 20 | - use SingletonTrait; | |
| 21 | - | |
| 22 | - function __construct() { | |
| 23 | - QuickViewFrontEnd::instance(); | |
| 24 | - | |
| 25 | - do_action( 'rtsb/module/quick_view/loaded' ); | |
| 26 | - } | |
| 27 | -} | |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace RadiusTheme\SB\Modules\QuickView; | |
| 4 | + | |
| 5 | +// Do not allow directly accessing this file. | |
| 6 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 7 | + exit( 'This script cannot be accessed directly.' ); | |
| 8 | +} | |
| 9 | + | |
| 10 | +use RadiusTheme\SB\Modules\Compare\CompareInstaller; | |
| 11 | +use RadiusTheme\SB\Traits\SingletonTrait; | |
| 12 | + | |
| 13 | +final class QuickView { | |
| 14 | + | |
| 15 | + /** | |
| 16 | + * @var array | |
| 17 | + */ | |
| 18 | + public $settings = []; | |
| 19 | + | |
| 20 | + //protected $module_id = 'quick_view'; | |
| 21 | + | |
| 22 | + use SingletonTrait; | |
| 23 | + | |
| 24 | + function __construct() { | |
| 25 | + | |
| 26 | + QuickViewFrontEnd::instance(); | |
| 27 | + | |
| 28 | + do_action( 'rtsb/module/quick_view/loaded' ); | |
| 29 | + } | |
| 30 | + | |
| 31 | + /** | |
| 32 | + * Do stuff upon plugin activation | |
| 33 | + * | |
| 34 | + * @return void | |
| 35 | + */ | |
| 36 | + public function activate() { | |
| 37 | + ( new CompareInstaller() )->run(); | |
| 38 | + } | |
| 39 | +} | |