PluginProbe
Lead Generation Contact Widget & AI Chatbot: Chat Button, Phone Call, Telegram, Email – SiteLeads / trunk
Lead Generation Contact Widget & AI Chatbot: Chat Button, Phone Call, Telegram, Email – SiteLeads vtrunk
1.2.1 1.2.0 1.1.7 trunk 1.0.0 1.1.0 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6
siteleads / lib / Bootstrap.php

Bootstrap.php in Lead Generation Contact Widget & AI Chatbot: Chat Button, Phone Call, Telegram, Email – SiteLeads trunk, at lib/Bootstrap.php

42 lines 857 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace SiteLeads;
4
5 use SiteLeads\Admin\Admin;
6 use SiteLeads\Core\Activation;
7 use SiteLeads\Core\AssetsRegistry;
8 use SiteLeads\Core\CLI;
9 use SiteLeads\Core\NotificationsManager;
10 use SiteLeads\Core\Singleton;
11 use SiteLeads\Features\Features;
12 use SiteLeads\Core\SvgFilter;
13
14
15
16 class Bootstrap {
17 use Singleton;
18
19 protected function __construct() {
20
21 Activation::load();
22 Admin::load();
23 AssetsRegistry::load();
24 SvgFilter::load();
25 Features::load();
26 NotificationsManager::load();
27 CLI::load();
28
29 // Load Pro version if exists.
30 $skip_pro_loaded = defined( 'SITELEADS_SKIP_PRO_LOADED' ) && SITELEADS_SKIP_PRO_LOADED;
31 if ( file_exists( SITELEADS_ROOT_DIR . 'pro/bootstrap.php' ) && ! $skip_pro_loaded ) {
32 require_once SITELEADS_ROOT_DIR . 'pro/bootstrap.php';
33 }
34 }
35
36
37 public static function load() {
38
39 return self::getInstance();
40 }
41 }
42