Astra_Builder_Widget_Controller::display_sidebar( bool $active, object $section )

Display sidebar as section.


Description


Parameters

$active

(bool) (Required) ios active.

$section

(object) (Required) section.


Return

(bool)


Source

File: inc/builder/controllers/class-astra-builder-widget-controller.php

		public function display_sidebar( $active, $section ) {

			if ( false === Astra_Builder_Helper::$is_header_footer_builder_active ) {
				return $active;
			}

			if ( strpos( $section->id, 'widgets-footer-widget-' ) || strpos( $section->id, 'widgets-header-widget-' ) ) {
				$active = true;
			}

			return $active;
		}

User Contributed Notes

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