| 1 |
<?php |
| 2 |
|
| 3 |
define('RABBITLOADER_PLUG_DIR', plugin_dir_path(__FILE__)); |
| 4 |
define('RABBITLOADER_CACHE_DIR', WP_CONTENT_DIR . DIRECTORY_SEPARATOR . "rabbitloader"); |
| 5 |
define('RABBITLOADER_PLUG_URL', plugin_dir_url(__FILE__)); |
| 6 |
define('RABBITLOADER_PLUG_VERSION', '3.1.0'); |
| 7 |
define('RABBITLOADER_TEXT_DOMAIN', 'rabbit-loader'); |
| 8 |
define('RABBITLOADER_PLUG_ENV', 'PROD'); |
| 9 |
if (!defined('JSON_INVALID_UTF8_IGNORE')) { |
| 10 |
define('JSON_INVALID_UTF8_IGNORE', 0); //@since PHP 7.2 |
| 11 |
} |
| 12 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/core/core.php'); |
| 13 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/core/util.php'); |
| 14 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/core/integrations.php'); |
| 15 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/rl_can_url.php'); |
| 16 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/public.php'); |
| 17 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/util_wp.php'); |
| 18 |
|
| 19 |
if (is_admin()) { |
| 20 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/ad_ad.php'); |
| 21 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/admin.php'); |
| 22 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/conflicts.php'); |
| 23 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/tab_init.php'); |
| 24 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/tab_home.php'); |
| 25 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/tab_urls.php'); |
| 26 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/tab_usage.php'); |
| 27 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/tab_help.php'); |
| 28 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/tab_settings.php'); |
| 29 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/tab_exclusions.php'); |
| 30 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/tab_log.php'); |
| 31 |
include_once(RABBITLOADER_PLUG_DIR . 'inc/tab_css.php'); |
| 32 |
} |
| 33 |
|
| 34 |
RabbitLoader_21_Public::addActions(); |
| 35 |
|