| 1 |
<?php |
| 2 |
use Imagify\ThirdParty\NGG; |
| 3 |
|
| 4 |
defined( 'ABSPATH' ) || die( "Cheatin' uh?" ); |
| 5 |
|
| 6 |
if ( ! class_exists( 'C_NextGEN_Bootstrap' ) ) { |
| 7 |
return; |
| 8 |
} |
| 9 |
|
| 10 |
class_alias( '\\Imagify\\ThirdParty\\NGG\\Main', '\\Imagify_NGG' ); |
| 11 |
class_alias( '\\Imagify\\ThirdParty\\NGG\\DB', '\\Imagify_NGG_DB' ); |
| 12 |
class_alias( '\\Imagify\\ThirdParty\\NGG\\NGGStorage', '\\Imagify_NGG_Storage' ); |
| 13 |
|
| 14 |
require IMAGIFY_PATH . 'inc/3rd-party/nextgen-gallery/inc/functions/admin-stats.php'; |
| 15 |
require IMAGIFY_PATH . 'inc/3rd-party/nextgen-gallery/inc/functions/attachments.php'; |
| 16 |
require IMAGIFY_PATH . 'inc/3rd-party/nextgen-gallery/inc/functions/common.php'; |
| 17 |
require IMAGIFY_PATH . 'inc/3rd-party/nextgen-gallery/inc/common/attachments.php'; |
| 18 |
|
| 19 |
NGG\Main::get_instance()->init(); |
| 20 |
NGG\DB::get_instance()->init(); |
| 21 |
|
| 22 |
if ( is_admin() ) { |
| 23 |
require IMAGIFY_PATH . 'inc/3rd-party/nextgen-gallery/inc/admin/enqueue.php'; |
| 24 |
require IMAGIFY_PATH . 'inc/3rd-party/nextgen-gallery/inc/admin/menu.php'; |
| 25 |
require IMAGIFY_PATH . 'inc/3rd-party/nextgen-gallery/inc/admin/gallery.php'; |
| 26 |
require IMAGIFY_PATH . 'inc/3rd-party/nextgen-gallery/inc/admin/bulk.php'; |
| 27 |
} |
| 28 |
|