<?php
// Don't load directly
if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}


/**
 * Plugin Engine Admin Class
 *
 *
 */
class Pngx__Admin__Main {

	/*
	* Admin Construct
	*/
	public function __construct() {

		//Check to flush permalinks
		add_action( 'init', array( 'Pngx__Admin__Fields', 'flush_permalinks' ) );

		// Setup Ajax Methods for Editor
		new Pngx__Admin__Ajax();

		//Setup Admin
		add_action( 'admin_init', array( $this, 'admin_init' ) );

	}

	/**
	 * Admin Init
	 */
	public function admin_init() {

		//Register Admin Assets
		add_action( 'admin_enqueue_scripts', pngx_callback( 'admin.assets', 'register_assets' ), 0 );

		add_action( 'admin_enqueue_scripts',  pngx_callback( 'admin.assets', 'register_plugin_list_assets' ), 0 );

	} //end admin_init

}