/** * Main pootle page builder blog customizer Instance * Ensures only one instance of Storefront_Extension_Boilerplate is loaded or can be loaded. * @since 1.0.0 * @return pootle_page_builder_blog_customizer instance */ public static function instance() { if (null == self::$_instance) { self::$_instance = new self(); } return self::$_instance; }
/** * Initiates public class and adds public hooks * @since 1.0.0 */ private function _public() { //Instantiating public class $this->public = pootle_page_builder_blog_customizer_Public::instance(); //Adding front end JS and CSS in /assets folder add_action('wp_enqueue_scripts', array($this->public, 'enqueue')); //Content Portfolio container add_action('pootlepb_render_content_block', array($this->public, 'show_posts'), 52); }