PluginProbe
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents / 2.2.1
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents v2.2.1
4.6.5 4.6.4 4.6.3 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 All 189 releases
← All changes | includes.php +39 -27 1.4.22.2.1 View file →
@@ -4,66 +4,78 @@
4 4 /**
5 5 * File responsible for defining basic general constants used by the plugin.
6 6 *
7 7 * @package EmbedPress
8 - * @author PressShack <help@pressshack.com>
9 - * @copyright Copyright (C) 2016 Open Source Training, LLC. All rights reserved.
8 + * @author EmbedPress <help@embedpress.com>
9 + * @copyright Copyright (C) 2018 EmbedPress. All rights reserved.
10 10 * @license GPLv2 or later
11 11 * @since 1.0.0
12 12 */
13 13
14 -if (!defined('EMBEDPRESS')) {
14 +
15 +if ( ! defined('EMBEDPRESS')) {
15 16 define('EMBEDPRESS', "EmbedPress");
16 17 }
17 18
18 -if (!defined('EMBEDPRESS_PLG_NAME')) {
19 - define('EMBEDPRESS_PLG_NAME', strtolower(EMBEDPRESS));
19 +if ( ! defined('EMBEDPRESS_PLG_NAME')) {
20 + define('EMBEDPRESS_PLG_NAME', 'embedpress');
20 21 }
21 22
22 -if (!defined('EMBEDPRESS_PLG_VERSION')) {
23 - define('EMBEDPRESS_PLG_VERSION', "1.4.2");
23 +if ( ! defined('EMBEDPRESS_VERSION')) {
24 + define('EMBEDPRESS_VERSION', "2.2.1");
25 + /**
26 + * @deprecated 2.2.0
27 + */
28 + define('EMBEDPRESS_PLG_VERSION', EMBEDPRESS_VERSION);
24 29 }
25 30
26 -if (!defined('EMBEDPRESS_PATH_BASE')) {
27 - define('EMBEDPRESS_PATH_BASE', plugin_dir_path(__FILE__));
31 +if ( ! defined('EMBEDPRESS_ROOT')) {
32 + define('EMBEDPRESS_ROOT', dirname(__FILE__));
28 33 }
29 34
30 -if (!defined('EMBEDPRESS_PATH_CORE')) {
31 - define('EMBEDPRESS_PATH_CORE', EMBEDPRESS_PATH_BASE ."EmbedPress/");
35 +if ( ! defined('EMBEDPRESS_PATH_BASE')) {
36 + define('EMBEDPRESS_PATH_BASE', plugin_dir_path(__FILE__));
32 37 }
33 38
34 -if (!defined('EMBEDPRESS_PATH_LIBRARIES')) {
35 - define('EMBEDPRESS_PATH_LIBRARIES', EMBEDPRESS_PATH_BASE ."library/");
39 +if ( ! defined('EMBEDPRESS_PATH_CORE')) {
40 + define('EMBEDPRESS_PATH_CORE', EMBEDPRESS_PATH_BASE . "EmbedPress/");
36 41 }
37 42
38 -if (!defined('EMBEDPRESS_URL_ASSETS')) {
39 - define('EMBEDPRESS_URL_ASSETS', plugins_url(EMBEDPRESS_PLG_NAME) ."/assets/");
43 +if ( ! defined('EMBEDPRESS_URL_ASSETS')) {
44 + define('EMBEDPRESS_URL_ASSETS', plugins_url(EMBEDPRESS_PLG_NAME) . "/assets/");
40 45 }
41 46
42 -if (!defined('EMBEDPRESS_NAMESPACE')) {
47 +if ( ! defined('EMBEDPRESS_NAMESPACE')) {
43 48 define('EMBEDPRESS_NAMESPACE', "\\EmbedPress");
44 49 }
45 50
46 -if (!defined('EMBEDPRESS_AUTOLOADER_NAME')) {
51 +if ( ! defined('EMBEDPRESS_AUTOLOADER_NAME')) {
47 52 define('EMBEDPRESS_AUTOLOADER_NAME', "AutoLoader");
48 53 }
49 54
50 -if (!defined('EMBEDPRESS_SHORTCODE')) {
55 +if ( ! defined('EMBEDPRESS_SHORTCODE')) {
51 56 define('EMBEDPRESS_SHORTCODE', "embed");
52 57 }
53 58
54 -if (!defined('EMBEDPRESS_LICENSES_API_HOST')) {
55 - define('EMBEDPRESS_LICENSES_API_HOST', "pressshack.staging.wpengine.com");
59 +if ( ! defined('EMBEDPRESS_LICENSES_API_HOST')) {
60 + define('EMBEDPRESS_LICENSES_API_HOST', "embedpress.com");
56 61 }
57 62
58 -if (!defined('EMBEDPRESS_LICENSES_API_URL')) {
59 - define('EMBEDPRESS_LICENSES_API_URL', "http://pressshack.staging.wpengine.com");
63 +if ( ! defined('EMBEDPRESS_LICENSES_API_URL')) {
64 + define('EMBEDPRESS_LICENSES_API_URL', "https://embedpress.com");
60 65 }
61 66
62 -if (!defined('EMBEDPRESS_LICENSES_MORE_INFO_URL')) {
63 - define('EMBEDPRESS_LICENSES_MORE_INFO_URL', "https://pressshack.com/embedpress/docs/activate-license");
67 +if ( ! defined('EMBEDPRESS_LICENSES_MORE_INFO_URL')) {
68 + define('EMBEDPRESS_LICENSES_MORE_INFO_URL', "https://embedpress.com/docs/activate-license");
64 69 }
65 70
66 -// Run libraries's autoload script
67 -require_once EMBEDPRESS_PATH_LIBRARIES ."autoload.php";
71 +if (file_exists(__DIR__ . '/vendor/autoload.php')) {
72 + require_once __DIR__ . '/vendor/autoload.php';
73 +}
74 +
75 +// Includes the EDD integration library
76 +require_once __DIR__ . '/vendor/publishpress/wordpress-edd-license-integration/src/includes.php';
77 +
68 78 // Run the plugin autoload script
69 -require_once EMBEDPRESS_PATH_BASE ."autoloader.php";
79 +if ( ! defined('EMBEDPRESS_IS_LOADED')) {
80 + require_once EMBEDPRESS_PATH_BASE . "autoloader.php";
81 +}