beans_get_default_layout

Get the default layout.

beans_get_default_layout( )

Return: (string) The defautl layout.

Source

function beans_get_default_layout() {

	$default_layout = beans_has_widget_area( 'sidebar_primary' ) ? 'c_sp' : 'c';

	/**
	 * Filter the default layout id.
	 *
	 * The default id is set to "c_sp" (content with sidebar primary). If the sidebar primary is deregistered, it fallback
	 * to "c" (content only).
	 *
	 * @since 1.0.0
	 *
	 * @param string $layout The default layout id.
	 */
	return apply_filters( 'beans_default_layout', $default_layout );

}