/** * Creates or returns an instance of this class. * * @since 2.3.0 * * @return Theme_Blvd_Sidebars_API A single instance of this class. */ public static function get_instance() { if (self::$instance == null) { self::$instance = new self(); } return self::$instance; }
/** * Display sidebar of widgets. * * Whether we're in a traditional fixed sidebar or a * collapsible widget area like ad space, for example, * this function will output the widgets for that * widget area using WordPress's dynamic_sidebar function. * * @since 2.0.0 * * @param string $location the location for the sidebar */ function themeblvd_display_sidebar($location) { $api = Theme_Blvd_Sidebars_API::get_instance(); $api->display($location); }