/** * Main Pootle page builder Photography add on Instance * Ensures only one instance of Storefront_Extension_Boilerplate is loaded or can be loaded. * @since 1.0.0 * @return page_builder_photo_addon_Public 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 = page_builder_photo_addon_Public::instance(); //Adding front end JS and CSS in /assets folder add_action('wp_enqueue_scripts', array($this->public, 'enqueue')); //Add/Modify row html attributes add_filter('pootlepb_row_style_attributes', array($this->public, 'row_attr'), 10, 2); //Checking for slider/gallery setting add_action('pootlepb_render_content_block', array($this->public, 'gallery_or_slider'), 52); }