/** * Main Pootle page builder Photography add on Instance * Ensures only one instance of Storefront_Extension_Boilerplate is loaded or can be loaded. * @return page_builder_photo_addon instance * @since 1.0.0 */ public static function instance() { if (null == self::$_instance) { self::$_instance = new self(); } return self::$_instance; }
/** * Initiates admin class and adds admin hooks * @since 1.0.0 */ private function _admin() { //Instantiating admin class $this->admin = page_builder_photo_addon_Admin::instance(); //Content block panel tabs add_filter('pootlepb_content_block_tabs', array($this->admin, 'content_block_tabs')); add_filter('pootlepb_le_content_block_tabs', array($this->admin, 'content_block_tabs')); //Content block panel fields add_filter('pootlepb_content_block_fields', array($this->admin, 'content_block_fields')); //Enqueue admin JS and CSS add_action('pootlepb_enqueue_admin_scripts', array($this->admin, 'enqueue')); //Render image source add_action('pootlepb_content_block_custom_field_slider_source', array($this->admin, 'source_field_render'), 7, 2); }