@@ 121-130 (lines=10) @@ | ||
118 | * @access private |
|
119 | * @return void |
|
120 | */ |
|
121 | private function _define_caffeinated_constants() |
|
122 | { |
|
123 | if (! defined('EE_CORE_CAF_ADMIN')) { |
|
124 | define('EE_CORE_CAF_ADMIN', EE_PLUGIN_DIR_PATH . 'caffeinated/admin/'); |
|
125 | define('EE_CORE_CAF_ADMIN_URL', EE_PLUGIN_DIR_URL . 'caffeinated/admin/'); |
|
126 | define('EE_CORE_CAF_ADMIN_NEW', EE_CORE_CAF_ADMIN . 'new/'); |
|
127 | define('EE_CORE_CAF_ADMIN_EXTEND', EE_CORE_CAF_ADMIN . 'extend/'); |
|
128 | define('EE_CORE_CAF_ADMIN_EXTEND_URL', EE_CORE_CAF_ADMIN_URL . 'extend/'); |
|
129 | define('EE_CORE_CAF_ADMIN_HOOKS', EE_CORE_CAF_ADMIN . 'hooks/'); |
|
130 | } |
|
131 | } |
|
132 | ||
133 |
@@ 104-112 (lines=9) @@ | ||
101 | * |
|
102 | * @return void |
|
103 | */ |
|
104 | private function _define_all_constants() |
|
105 | { |
|
106 | if (! defined('EE_ADMIN_URL')) { |
|
107 | define('EE_ADMIN_URL', EE_PLUGIN_DIR_URL . 'core/admin/'); |
|
108 | define('EE_ADMIN_PAGES_URL', EE_PLUGIN_DIR_URL . 'admin_pages/'); |
|
109 | define('EE_ADMIN_TEMPLATE', EE_ADMIN . 'templates' . DS); |
|
110 | define('WP_ADMIN_PATH', ABSPATH . 'wp-admin/'); |
|
111 | define('WP_AJAX_URL', admin_url('admin-ajax.php')); |
|
112 | } |
|
113 | } |
|
114 | ||
115 |