forked from SuperPWA/super-progressive-web-apps
-
Notifications
You must be signed in to change notification settings - Fork 1
/
loader.php
39 lines (33 loc) · 1.72 KB
/
loader.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* Loads the plugin files
*
* @since 1.0
*/
// Exit if accessed directly
if ( ! defined('ABSPATH') ) exit;
// Load admin
require_once( SUPERPWA_PATH_ABS . 'admin/basic-setup.php' );
require_once( SUPERPWA_PATH_ABS . 'admin/admin-ui-setup.php' );
require_once( SUPERPWA_PATH_ABS . 'admin/admin-ui-render-settings.php' );
require_once( SUPERPWA_PATH_ABS . 'admin/admin-ui-render-addons.php' );
require_once( SUPERPWA_PATH_ABS . 'admin/admin-ui-render-upgrade.php' );
require_once( SUPERPWA_PATH_ABS . 'admin/mb-helper-function.php' );
// 3rd party compatibility
require_once( SUPERPWA_PATH_ABS . '3rd-party/onesignal.php' );
require_once( SUPERPWA_PATH_ABS . '3rd-party/yandex.php' );
require_once( SUPERPWA_PATH_ABS . '3rd-party/amp.php' );
require_once( SUPERPWA_PATH_ABS . '3rd-party/wonderpush.php' );
// Load functions
require_once( SUPERPWA_PATH_ABS . 'functions/common.php' );
require_once( SUPERPWA_PATH_ABS . 'functions/filesystem.php' );
require_once( SUPERPWA_PATH_ABS . 'functions/multisite.php' );
// Public folder
require_once( SUPERPWA_PATH_ABS . 'public/manifest.php' );
require_once( SUPERPWA_PATH_ABS . 'public/sw.php' );
require_once( SUPERPWA_PATH_ABS . 'public/amphtml.php' );
// Load bundled add-ons
if ( superpwa_addons_status( 'utm_tracking' ) == 'active' ) require_once( SUPERPWA_PATH_ABS . 'addons/utm-tracking.php' );
if ( superpwa_addons_status( 'apple_touch_icons' ) == 'active' ) require_once( SUPERPWA_PATH_ABS . 'addons/apple-touch-icons.php' );
if ( superpwa_addons_status( 'caching_strategies' ) == 'active' ) require_once( SUPERPWA_PATH_ABS . 'addons/caching-strategies.php' );
if ( superpwa_addons_status( 'pull_to_refresh' ) == 'active' ) require_once( SUPERPWA_PATH_ABS . 'addons/pull-to-refresh.php' );