public function getCurrentSidebarId( $default = 'default-sidebar', $meta_key = '_app_custom_sidebar' ) {
		$post_id = $this->getSidebarPostId();
		$sidebar = $default;

		if ( $post_id ) {
			$sidebar = get_post_meta( $post_id, $meta_key, true );
		}

		if ( empty( $sidebar ) ) {
			$sidebar = $default;
		}

		return $sidebar;
	}
public function getCurrentSidebarId( $default = 'default-sidebar', $meta_key = '_app_custom_sidebar' ) {
		$post_id = $this->getSidebarPostId();
		$sidebar = $default;

		if ( $post_id ) {
			$sidebar = get_post_meta( $post_id, $meta_key, true );
		}

		if ( empty( $sidebar ) ) {
			$sidebar = $default;
		}

		return $sidebar;
	}
public function getCurrentSidebarId ( $ default = 'default-sidebar' , $ meta_key = '_app_custom_sidebar' ) { $ post_id = $ this -> getSidebarPostId ( ) ; $ sidebar = $ default ; if ( $ post_id ) { $ sidebar = get_post_meta ( $ post_id , $ meta_key , true ) ; } if ( empty ( $ sidebar ) ) { $ sidebar = $ default ; } return $ sidebar ; }
Get the current sidebar id.

@param  string $default Default sidebar to use if a custom one is not specified.
@param  string $meta_key Meta key to check for a custom sidebar id.
@return string
Get the current sidebar id .