name = esc_html__( 'Post Format UI', 'powerkit' ); $this->desc = null; $this->slug = 'post_format_ui'; $this->type = 'default'; $this->category = 'basic'; $this->priority = 0; $this->public = false; $this->enabled = true; } /** * Initialize module */ public function initialize() { /* Load the required dependencies for this module */ add_action( 'init', array( $this, 'deferred_init' ) ); } /** * Initialize based on theme customization */ public function deferred_init() { if ( get_theme_support( 'powerkit-post-format-ui' ) ) { // Helpers Functions for the module. require_once dirname( __FILE__ ) . '/helpers/helper-powerkit-post-format-ui.php'; // Admin and public area. require_once dirname( __FILE__ ) . '/admin/class-powerkit-post-format-ui-admin.php'; new Powerkit_Post_Format_UI_Admin( $this->slug ); } } } new Powerkit_Post_Format_UI(); }