embedpress
Last commit date
EmbedPress
8 years ago
assets
8 years ago
languages
8 years ago
vendor
8 years ago
CONTRIBUTING.md
8 years ago
PROVIDERS.md
8 years ago
autoloader.php
8 years ago
embedpress.php
8 years ago
includes.php
8 years ago
index.html
9 years ago
providers.php
8 years ago
readme.txt
8 years ago
includes.php
78 lines
| 1 | <?php |
| 2 | defined('ABSPATH') or die("No direct script access allowed."); |
| 3 | |
| 4 | /** |
| 5 | * File responsible for defining basic general constants used by the plugin. |
| 6 | * |
| 7 | * @package EmbedPress |
| 8 | * @author EmbedPress <help@embedpress.com> |
| 9 | * @copyright Copyright (C) 2018 EmbedPress. All rights reserved. |
| 10 | * @license GPLv2 or later |
| 11 | * @since 1.0.0 |
| 12 | */ |
| 13 | |
| 14 | |
| 15 | if (!defined('EMBEDPRESS')) { |
| 16 | define('EMBEDPRESS', "EmbedPress"); |
| 17 | } |
| 18 | |
| 19 | if (!defined('EMBEDPRESS_PLG_NAME')) { |
| 20 | define('EMBEDPRESS_PLG_NAME', 'embedpress'); |
| 21 | } |
| 22 | |
| 23 | if (!defined('EMBEDPRESS_PLG_VERSION')) { |
| 24 | define('EMBEDPRESS_PLG_VERSION', "2.1.3"); |
| 25 | } |
| 26 | |
| 27 | if (!defined('EMBEDPRESS_ROOT')) { |
| 28 | define('EMBEDPRESS_ROOT', dirname(__FILE__)); |
| 29 | } |
| 30 | |
| 31 | if (!defined('EMBEDPRESS_PATH_BASE')) { |
| 32 | define('EMBEDPRESS_PATH_BASE', plugin_dir_path(__FILE__)); |
| 33 | } |
| 34 | |
| 35 | if (!defined('EMBEDPRESS_PATH_CORE')) { |
| 36 | define('EMBEDPRESS_PATH_CORE', EMBEDPRESS_PATH_BASE ."EmbedPress/"); |
| 37 | } |
| 38 | |
| 39 | if (!defined('EMBEDPRESS_URL_ASSETS')) { |
| 40 | define('EMBEDPRESS_URL_ASSETS', plugins_url(EMBEDPRESS_PLG_NAME) ."/assets/"); |
| 41 | } |
| 42 | |
| 43 | if (!defined('EMBEDPRESS_NAMESPACE')) { |
| 44 | define('EMBEDPRESS_NAMESPACE', "\\EmbedPress"); |
| 45 | } |
| 46 | |
| 47 | if (!defined('EMBEDPRESS_AUTOLOADER_NAME')) { |
| 48 | define('EMBEDPRESS_AUTOLOADER_NAME', "AutoLoader"); |
| 49 | } |
| 50 | |
| 51 | if (!defined('EMBEDPRESS_SHORTCODE')) { |
| 52 | define('EMBEDPRESS_SHORTCODE', "embed"); |
| 53 | } |
| 54 | |
| 55 | if (!defined('EMBEDPRESS_LICENSES_API_HOST')) { |
| 56 | define('EMBEDPRESS_LICENSES_API_HOST', "embedpress.com"); |
| 57 | } |
| 58 | |
| 59 | if (!defined('EMBEDPRESS_LICENSES_API_URL')) { |
| 60 | define('EMBEDPRESS_LICENSES_API_URL', "https://embedpress.com"); |
| 61 | } |
| 62 | |
| 63 | if (!defined('EMBEDPRESS_LICENSES_MORE_INFO_URL')) { |
| 64 | define('EMBEDPRESS_LICENSES_MORE_INFO_URL', "https://embedpress.com/docs/activate-license"); |
| 65 | } |
| 66 | |
| 67 | if (file_exists(__DIR__ . '/vendor/autoload.php')) { |
| 68 | require_once __DIR__ . '/vendor/autoload.php'; |
| 69 | } |
| 70 | |
| 71 | // Includes the EDD integration library |
| 72 | require_once __DIR__ . '/vendor/publishpress/wordpress-edd-license-integration/src/includes.php'; |
| 73 | |
| 74 | // Run the plugin autoload script |
| 75 | if (!defined('EMBEDPRESS_IS_LOADED')) { |
| 76 | require_once EMBEDPRESS_PATH_BASE ."autoloader.php"; |
| 77 | } |
| 78 |