public static function instance() { if (empty(self::$instance)) { self::$instance = new self(); } return self::$instance; }
/** * Load the shortcodes * * @since 2.0.0 */ public function __construct() { // Get the necessary shortcode files $this->get_shortcode_files(); add_shortcode('gb_clear', array(GingerBeard_Clear::instance(), 'shortcode_build')); add_shortcode('genesis_column', array(GingerBeard_Columns::instance(), 'shortcode_build')); add_shortcode('genesis_featured_page', array(GingerBeard_Featured_Page::instance(), 'shortcode_build')); add_shortcode('genesis_featured_post', array(GingerBeard_Featured_Post::instance(), 'shortcode_build')); add_shortcode('genesis_user_profile', array(GingerBeard_User_Profile::instance(), 'shortcode_build')); add_filter('the_content', array($this, 'remove_empty_tags')); }