astra_apply_unboxed_container( array $content_bg_obj, bool $is_boxed, bool $is_sidebar_boxed, mixed $current_layout )

Applies an unboxed container to the content.


Description


Parameters

$content_bg_obj

(array) (Required) The background object for the content.

$is_boxed

(bool) (Required) Container style is boxed or not.

$is_sidebar_boxed

(bool) (Required) Sidebar style is boxed or not.

$current_layout

(mixed) (Required) The current container layout applied.


Return

(array) $content_bg_obj The updated background object for the content.


Source

File: inc/dynamic-css/content-background.php

function astra_apply_unboxed_container( $content_bg_obj, $is_boxed, $is_sidebar_boxed, $current_layout ) {
	if ( 'plain-container' === $current_layout && ! $is_boxed && $is_sidebar_boxed ) {
		$content_bg_obj = astra_get_option( 'site-layout-outside-bg-obj-responsive' );
	}
	return $content_bg_obj;
}

Changelog

Changelog
Version Description
4.2.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.