| @@ -9,8 +9,11 @@ | ||
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | namespace Templately; |
| 12 | 12 | |
| 13 | +use Templately\Admin\API\Settings as APISettings; | |
| 14 | +use Templately\Admin\Settings; | |
| 15 | +use Templately\API\AIContent; | |
| 13 | 16 | use Templately\API\Conditions; |
| 14 | 17 | use Templately\API\ThemeBuilderApi; |
| 15 | 18 | use Templately\Builder\ThemeBuilder; |
| 16 | 19 | use Templately\Core\Importer\FullSiteImport; |
| @@ -29,19 +32,22 @@ | ||
| 29 | 32 | use Templately\API\MyClouds; |
| 30 | 33 | use Templately\API\WorkSpaces; |
| 31 | 34 | use Templately\API\Categories; |
| 32 | 35 | use Templately\API\Dependencies; |
| 36 | +use Templately\API\DeveloperSettings; | |
| 33 | 37 | use Templately\API\TemplateTypes; |
| 34 | 38 | use Templately\API\SavedTemplates; |
| 35 | 39 | use Templately\Core\Maintenance; |
| 36 | 40 | use Templately\Core\Migrator; |
| 41 | +use Templately\Core\Developer; | |
| 37 | 42 | use Templately\Core\Platform\Gutenberg; |
| 38 | 43 | use Templately\Core\Platform\Elementor; |
| 39 | 44 | |
| 40 | 45 | final class Plugin extends Base { |
| 41 | - public $version = '3.0.6'; | |
| 46 | + public $version = '3.4.1'; | |
| 42 | 47 | |
| 43 | 48 | public $admin; |
| 49 | + public $settings; | |
| 44 | 50 | /** |
| 45 | 51 | * Enqueue class responsible for assets |
| 46 | 52 | * @var Enqueue |
| 47 | 53 | */ |
| @@ -52,8 +58,13 @@ | ||
| 52 | 58 | */ |
| 53 | 59 | public $theme_builder; |
| 54 | 60 | |
| 55 | 61 | /** |
| 62 | + * @var Developer | |
| 63 | + */ | |
| 64 | + public $developer; | |
| 65 | + | |
| 66 | + /** | |
| 56 | 67 | * Plugin constructor. |
| 57 | 68 | * Initializing Templately plugin. |
| 58 | 69 | * |
| 59 | 70 | * @access private |
| @@ -65,9 +76,11 @@ | ||
| 65 | 76 | Maintenance::init(); |
| 66 | 77 | |
| 67 | 78 | $this->assets = Enqueue::get_instance( TEMPLATELY_URL, TEMPLATELY_PATH, $this->version ); |
| 68 | 79 | $this->admin = Admin::get_instance(); |
| 80 | + $this->settings = Settings::get_instance(); | |
| 69 | 81 | $this->theme_builder = ThemeBuilder::get_instance(); |
| 82 | + $this->developer = Developer::get_instance(); | |
| 70 | 83 | |
| 71 | 84 | add_action( 'plugins_loaded', [ $this, 'plugins_loaded' ] ); |
| 72 | 85 | add_action( 'rest_api_init', [ $this, 'register_routes' ] ); |
| 73 | 86 | /** |
| @@ -73,8 +86,9 @@ | ||
| 73 | 86 | /** |
| 74 | 87 | * Initialize. |
| 75 | 88 | */ |
| 76 | 89 | do_action( 'templately_init' ); |
| 90 | + | |
| 77 | 91 | } |
| 78 | 92 | |
| 79 | 93 | /** |
| 80 | 94 | * Cloning is forbidden. |
| @@ -134,8 +148,9 @@ | ||
| 134 | 148 | Dependencies::get_instance(); |
| 135 | 149 | Tags::get_instance(); |
| 136 | 150 | ThemeBuilderApi::get_instance(); |
| 137 | 151 | |
| 152 | + AIContent::get_instance(); | |
| 138 | 153 | Items::get_instance(); |
| 139 | 154 | SavedTemplates::get_instance(); |
| 140 | 155 | |
| 141 | 156 | Login::get_instance(); |
| @@ -143,8 +158,11 @@ | ||
| 143 | 158 | Import::get_instance(); |
| 144 | 159 | Profile::get_instance(); |
| 145 | 160 | MyClouds::get_instance(); |
| 146 | 161 | WorkSpaces::get_instance(); |
| 162 | + | |
| 163 | + APISettings::get_instance(); | |
| 164 | + DeveloperSettings::get_instance(); | |
| 147 | 165 | } |
| 148 | 166 | |
| 149 | 167 | /** |
| 150 | 168 | * Register all REST API endpoints |