Astra_Addon_Update::v_1_4_0_beta_4()

All Headers (Above Header, Primary menu and Below Header) options made responsive.


Description

All the existing value are moved inside the array All the Mobile Header Colors options are moved into the responsive option for tablet.


Source

File: classes/class-astra-addon-update.php

		public static function v_1_4_0_beta_4() {

			$astra_options = get_option( 'astra-settings', array() );
			/**
			* All Header , Above Header, Below Header Primary Header colors updated options values
			*/
				$headers_colors_options = array(

					'header-bg-obj-responsive'             => array(
						'desktop' => array(
							'background-color'      => isset( $astra_options['header-bg-obj']['background-color'] ) ? $astra_options['header-bg-obj']['background-color'] : '',
							'background-image'      => isset( $astra_options['header-bg-obj']['background-image'] ) ? $astra_options['header-bg-obj']['background-image'] : '',
							'background-repeat'     => isset( $astra_options['header-bg-obj']['background-repeat'] ) ? $astra_options['header-bg-obj']['background-repeat'] : 'no-repeat',
							'background-position'   => isset( $astra_options['header-bg-obj']['background-position'] ) ? $astra_options['header-bg-obj']['background-position'] : 'center center',
							'background-size'       => isset( $astra_options['header-bg-obj']['background-size'] ) ? $astra_options['header-bg-obj']['background-size'] : 'cover',
							'background-attachment' => isset( $astra_options['header-bg-obj']['background-attachment'] ) ? $astra_options['header-bg-obj']['background-attachment'] : 'scroll',
						),
						'tablet'  => array(
							'background-color'      => isset( $astra_options['mobile-header-bg-obj']['background-color'] ) ? $astra_options['mobile-header-bg-obj']['background-color'] : '',
							'background-image'      => isset( $astra_options['mobile-header-bg-obj']['background-image'] ) ? $astra_options['mobile-header-bg-obj']['background-image'] : '',
							'background-repeat'     => isset( $astra_options['mobile-header-bg-obj']['background-repeat'] ) ? $astra_options['mobile-header-bg-obj']['background-repeat'] : 'no-repeat',
							'background-position'   => isset( $astra_options['mobile-header-bg-obj']['background-position'] ) ? $astra_options['mobile-header-bg-obj']['background-position'] : 'center center',
							'background-size'       => isset( $astra_options['mobile-header-bg-obj']['background-size'] ) ? $astra_options['mobile-header-bg-obj']['background-size'] : 'cover',
							'background-attachment' => isset( $astra_options['mobile-header-bg-obj']['background-attachment'] ) ? $astra_options['mobile-header-bg-obj']['background-attachment'] : 'scroll',
						),
						'mobile'  => array(
							'background-color'      => '',
							'background-image'      => '',
							'background-repeat'     => 'no-repeat',
							'background-position'   => 'center center',
							'background-size'       => 'cover',
							'background-attachment' => 'scroll',
						),
					),

					'above-header-bg-obj-responsive'       => array(
						'desktop' => array(
							'background-color'      => isset( $astra_options['above-header-bg-obj']['background-color'] ) ? $astra_options['above-header-bg-obj']['background-color'] : '',
							'background-image'      => isset( $astra_options['above-header-bg-obj']['background-image'] ) ? $astra_options['above-header-bg-obj']['background-image'] : '',
							'background-repeat'     => isset( $astra_options['above-header-bg-obj']['background-repeat'] ) ? $astra_options['above-header-bg-obj']['background-repeat'] : 'no-repeat',
							'background-position'   => isset( $astra_options['above-header-bg-obj']['background-position'] ) ? $astra_options['above-header-bg-obj']['background-position'] : 'center center',
							'background-size'       => isset( $astra_options['above-header-bg-obj']['background-size'] ) ? $astra_options['above-header-bg-obj']['background-size'] : 'cover',
							'background-attachment' => isset( $astra_options['above-header-bg-obj']['background-attachment'] ) ? $astra_options['above-header-bg-obj']['background-attachment'] : 'scroll',
						),
						'tablet'  => array(
							'background-color'      => isset( $astra_options['mobile-above-header-bg-obj']['background-color'] ) ? $astra_options['mobile-above-header-bg-obj']['background-color'] : '',
							'background-image'      => isset( $astra_options['mobile-above-header-bg-obj']['background-image'] ) ? $astra_options['mobile-above-header-bg-obj']['background-image'] : '',
							'background-repeat'     => isset( $astra_options['mobile-above-header-bg-obj']['background-repeat'] ) ? $astra_options['mobile-above-header-bg-obj']['background-repeat'] : 'no-repeat',
							'background-position'   => isset( $astra_options['mobile-above-header-bg-obj']['background-position'] ) ? $astra_options['mobile-above-header-bg-obj']['background-position'] : 'center center',
							'background-size'       => isset( $astra_options['mobile-above-header-bg-obj']['background-size'] ) ? $astra_options['mobile-above-header-bg-obj']['background-size'] : 'cover',
							'background-attachment' => isset( $astra_options['mobile-above-header-bg-obj']['background-attachment'] ) ? $astra_options['mobile-above-header-bg-obj']['background-attachment'] : 'scroll',
						),
						'mobile'  => array(
							'background-color'      => '',
							'background-image'      => '',
							'background-repeat'     => 'no-repeat',
							'background-position'   => 'center center',
							'background-size'       => 'cover',
							'background-attachment' => 'scroll',
						),
					),

					'below-header-bg-obj-responsive'       => array(
						'desktop' => array(
							'background-color'      => isset( $astra_options['below-header-bg-obj']['background-color'] ) ? $astra_options['below-header-bg-obj']['background-color'] : '#414042',
							'background-image'      => isset( $astra_options['below-header-bg-obj']['background-image'] ) ? $astra_options['below-header-bg-obj']['background-image'] : '',
							'background-repeat'     => isset( $astra_options['below-header-bg-obj']['background-repeat'] ) ? $astra_options['below-header-bg-obj']['background-repeat'] : 'no-repeat',
							'background-position'   => isset( $astra_options['below-header-bg-obj']['background-position'] ) ? $astra_options['below-header-bg-obj']['background-position'] : 'center center',
							'background-size'       => isset( $astra_options['below-header-bg-obj']['background-size'] ) ? $astra_options['below-header-bg-obj']['background-size'] : 'cover',
							'background-attachment' => isset( $astra_options['below-header-bg-obj']['background-attachment'] ) ? $astra_options['below-header-bg-obj']['background-attachment'] : 'scroll',
						),
						'tablet'  => array(
							'background-color'      => isset( $astra_options['mobile-below-header-bg-obj']['background-color'] ) ? $astra_options['mobile-below-header-bg-obj']['background-color'] : '',
							'background-image'      => isset( $astra_options['mobile-below-header-bg-obj']['background-image'] ) ? $astra_options['mobile-below-header-bg-obj']['background-image'] : '',
							'background-repeat'     => isset( $astra_options['mobile-below-header-bg-obj']['background-repeat'] ) ? $astra_options['mobile-below-header-bg-obj']['background-repeat'] : 'no-repeat',
							'background-position'   => isset( $astra_options['mobile-below-header-bg-obj']['background-position'] ) ? $astra_options['mobile-below-header-bg-obj']['background-position'] : 'center center',
							'background-size'       => isset( $astra_options['mobile-below-header-bg-obj']['background-size'] ) ? $astra_options['mobile-below-header-bg-obj']['background-size'] : 'cover',
							'background-attachment' => isset( $astra_options['mobile-below-header-bg-obj']['background-attachment'] ) ? $astra_options['mobile-below-header-bg-obj']['background-attachment'] : 'scroll',
						),
						'mobile'  => array(
							'background-color'      => '',
							'background-image'      => '',
							'background-repeat'     => 'no-repeat',
							'background-position'   => 'center center',
							'background-size'       => 'cover',
							'background-attachment' => 'scroll',
						),
					),

					'primary-menu-bg-color-responsive'     => array(
						'desktop' => isset( $astra_options['primary-menu-bg-color'] ) ? $astra_options['primary-menu-bg-color'] : '',
						'tablet'  => isset( $astra_options['mobile-header-menu-bg-color'] ) ? $astra_options['mobile-header-menu-bg-color'] : '',
						'mobile'  => '',
					),

					'primary-menu-color-responsive'        => array(
						'desktop' => isset( $astra_options['primary-menu-color'] ) ? $astra_options['primary-menu-color'] : '',
						'tablet'  => isset( $astra_options['mobile-header-menu-color'] ) ? $astra_options['mobile-header-menu-color'] : '',
						'mobile'  => '',
					),

					'primary-menu-h-bg-color-responsive'   => array(
						'desktop' => isset( $astra_options['primary-menu-h-bg-color'] ) ? $astra_options['primary-menu-h-bg-color'] : '',
						'tablet'  => isset( $astra_options['mobile-header-menu-h-bg-color'] ) ? $astra_options['mobile-header-menu-h-bg-color'] : '',
						'mobile'  => '',
					),

					'primary-menu-h-color-responsive'      => array(
						'desktop' => isset( $astra_options['primary-menu-h-color'] ) ? $astra_options['primary-menu-h-color'] : '',
						'tablet'  => isset( $astra_options['mobile-header-menu-h-color'] ) ? $astra_options['mobile-header-menu-h-color'] : '',
						'mobile'  => '',
					),

					'primary-menu-a-bg-color-responsive'   => array(
						'desktop' => isset( $astra_options['primary-menu-a-bg-color'] ) ? $astra_options['primary-menu-a-bg-color'] : '',
						'tablet'  => isset( $astra_options['mobile-header-menu-a-bg-color'] ) ? $astra_options['mobile-header-menu-a-bg-color'] : '',
						'mobile'  => '',
					),

					'primary-menu-a-color-responsive'      => array(
						'desktop' => isset( $astra_options['primary-menu-a-color'] ) ? $astra_options['primary-menu-a-color'] : '',
						'tablet'  => isset( $astra_options['mobile-header-menu-a-color'] ) ? $astra_options['mobile-header-menu-a-color'] : '',
						'mobile'  => '',
					),

					'primary-submenu-bg-color-responsive'  => array(
						'desktop' => isset( $astra_options['primary-submenu-bg-color'] ) ? $astra_options['primary-submenu-bg-color'] : '',
						'tablet'  => isset( $astra_options['mobile-header-submenu-bg-color'] ) ? $astra_options['mobile-header-submenu-bg-color'] : '',
						'mobile'  => '',
					),

					'primary-submenu-color-responsive'     => array(
						'desktop' => isset( $astra_options['primary-submenu-color'] ) ? $astra_options['primary-submenu-color'] : '',
						'tablet'  => isset( $astra_options['mobile-header-submenu-color'] ) ? $astra_options['mobile-header-submenu-color'] : '',
						'mobile'  => '',
					),

					'primary-submenu-h-bg-color-responsive' => array(
						'desktop' => isset( $astra_options['primary-submenu-h-bg-color'] ) ? $astra_options['primary-submenu-h-bg-color'] : '',
						'tablet'  => isset( $astra_options['mobile-header-submenu-h-bg-color'] ) ? $astra_options['mobile-header-submenu-h-bg-color'] : '',
						'mobile'  => '',
					),

					'primary-submenu-h-color-responsive'   => array(
						'desktop' => isset( $astra_options['primary-submenu-h-color'] ) ? $astra_options['primary-submenu-h-color'] : '',
						'tablet'  => isset( $astra_options['mobile-header-submenu-h-color'] ) ? $astra_options['mobile-header-submenu-h-color'] : '',
						'mobile'  => '',
					),

					'primary-submenu-a-bg-color-responsive' => array(
						'desktop' => isset( $astra_options['primary-submenu-a-bg-color'] ) ? $astra_options['primary-submenu-a-bg-color'] : '',
						'tablet'  => isset( $astra_options['mobile-header-submenu-a-bg-color'] ) ? $astra_options['mobile-header-submenu-a-bg-color'] : '',
						'mobile'  => '',
					),

					'primary-submenu-a-color-responsive'   => array(
						'desktop' => isset( $astra_options['primary-submenu-a-color'] ) ? $astra_options['primary-submenu-a-color'] : '',
						'tablet'  => isset( $astra_options['mobile-header-submenu-a-color'] ) ? $astra_options['mobile-header-submenu-a-color'] : '',
						'mobile'  => '',
					),

					'above-header-text-color-responsive'   => array(
						'desktop' => isset( $astra_options['above-header-text-color'] ) ? $astra_options['above-header-text-color'] : '',
						'tablet'  => isset( $astra_options['mobile-above-header-t-l-color'] ) ? $astra_options['mobile-above-header-t-l-color'] : '',
						'mobile'  => '',
					),

					'above-header-link-color-responsive'   => array(
						'desktop' => isset( $astra_options['above-header-link-color'] ) ? $astra_options['above-header-link-color'] : '',
						'tablet'  => isset( $astra_options['mobile-above-header-t-l-color'] ) ? $astra_options['mobile-above-header-t-l-color'] : '',
						'mobile'  => '',
					),

					'above-header-link-h-color-responsive' => array(
						'desktop' => isset( $astra_options['above-header-link-h-color'] ) ? $astra_options['above-header-link-h-color'] : '',
						'tablet'  => isset( $astra_options['mobile-above-header-t-l-hover-color'] ) ? $astra_options['mobile-above-header-t-l-hover-color'] : '',
						'mobile'  => '',
					),

					'above-header-menu-bg-color'           => array(
						'desktop' => '',
						'tablet'  => isset( $astra_options['mobile-above-header-menu-bg-color'] ) ? $astra_options['mobile-above-header-menu-bg-color'] : '',
						'mobile'  => '',
					),

					'above-header-menu-color-responsive'   => array(
						'desktop' => isset( $astra_options['above-header-menu-color'] ) ? $astra_options['above-header-menu-color'] : '',
						'tablet'  => isset( $astra_options['mobile-above-header-menu-color'] ) ? $astra_options['mobile-above-header-menu-color'] : '',
						'mobile'  => '',
					),

					'above-header-menu-h-color-responsive' => array(
						'desktop' => isset( $astra_options['above-header-menu-h-color'] ) ? $astra_options['above-header-menu-h-color'] : '',
						'tablet'  => isset( $astra_options['mobile-above-header-menu-h-color'] ) ? $astra_options['mobile-above-header-menu-h-color'] : '',
						'mobile'  => '',
					),

					'above-header-menu-h-bg-color-responsive' => array(
						'desktop' => isset( $astra_options['above-header-menu-h-bg-color'] ) ? $astra_options['above-header-menu-h-bg-color'] : '',
						'tablet'  => isset( $astra_options['mobile-above-header-menu-h-bg-color'] ) ? $astra_options['mobile-above-header-menu-h-bg-color'] : '',
						'mobile'  => '',
					),

					'above-header-menu-active-color-responsive' => array(
						'desktop' => isset( $astra_options['above-header-menu-active-color'] ) ? $astra_options['above-header-menu-active-color'] : '',
						'tablet'  => isset( $astra_options['mobile-above-header-menu-a-color'] ) ? $astra_options['mobile-above-header-menu-a-color'] : '',
						'mobile'  => '',
					),

					'above-header-menu-active-bg-color-responsive' => array(
						'desktop' => isset( $astra_options['above-header-menu-active-bg-color'] ) ? $astra_options['above-header-menu-active-bg-color'] : '',
						'tablet'  => isset( $astra_options['mobile-above-header-menu-a-bg-color'] ) ? $astra_options['mobile-above-header-menu-a-bg-color'] : '',
						'mobile'  => '',
					),

					'above-header-submenu-text-color-responsive' => array(
						'desktop' => isset( $astra_options['above-header-submenu-text-color'] ) ? $astra_options['above-header-submenu-text-color'] : '',
						'tablet'  => isset( $astra_options['mobile-above-header-submenu-color'] ) ? $astra_options['mobile-above-header-submenu-color'] : '',
						'mobile'  => '',
					),

					'above-header-submenu-bg-color-responsive' => array(
						'desktop' => isset( $astra_options['above-header-submenu-bg-color'] ) ? $astra_options['above-header-submenu-bg-color'] : '',
						'tablet'  => isset( $astra_options['mobile-above-header-submenu-bg-color'] ) ? $astra_options['mobile-above-header-submenu-bg-color'] : '',
						'mobile'  => '',
					),

					'above-header-submenu-hover-color-responsive' => array(
						'desktop' => isset( $astra_options['above-header-submenu-hover-color'] ) ? $astra_options['above-header-submenu-hover-color'] : '',
						'tablet'  => isset( $astra_options['mobile-above-header-submenu-h-color'] ) ? $astra_options['mobile-above-header-submenu-h-color'] : '',
						'mobile'  => '',
					),

					'above-header-submenu-bg-hover-color-responsive' => array(
						'desktop' => isset( $astra_options['above-header-submenu-bg-hover-color'] ) ? $astra_options['above-header-submenu-bg-hover-color'] : '',
						'tablet'  => isset( $astra_options['mobile-above-header-submenu-h-bg-color'] ) ? $astra_options['mobile-above-header-submenu-h-bg-color'] : '',
						'mobile'  => '',
					),

					'above-header-submenu-active-color-responsive' => array(
						'desktop' => isset( $astra_options['above-header-submenu-active-color'] ) ? $astra_options['above-header-submenu-active-color'] : '',
						'tablet'  => isset( $astra_options['mobile-above-header-submenu-a-color'] ) ? $astra_options['mobile-above-header-submenu-a-color'] : '',
						'mobile'  => '',
					),

					'above-header-submenu-active-bg-color-responsive' => array(
						'desktop' => isset( $astra_options['above-header-submenu-active-bg-color'] ) ? $astra_options['above-header-submenu-active-bg-color'] : '',
						'tablet'  => isset( $astra_options['mobile-above-header-submenu-a-bg-color'] ) ? $astra_options['mobile-above-header-submenu-a-bg-color'] : '',
						'mobile'  => '',
					),

					'below-header-text-color-responsive'   => array(
						'desktop' => isset( $astra_options['below-header-text-color'] ) ? $astra_options['below-header-text-color'] : '#ffffff',
						'tablet'  => isset( $astra_options['mobile-below-header-t-l-color'] ) ? $astra_options['mobile-below-header-t-l-color'] : '',
						'mobile'  => '',
					),

					'below-header-link-hover-color-responsive' => array(
						'desktop' => isset( $astra_options['below-header-link-hover-color'] ) ? $astra_options['below-header-link-hover-color'] : '#ffffff',
						'tablet'  => isset( $astra_options['mobile-below-header-t-l-hover-color'] ) ? $astra_options['mobile-below-header-t-l-hover-color'] : '',
						'mobile'  => '',
					),

					'below-header-link-color-responsive'   => array(
						'desktop' => isset( $astra_options['below-header-link-color'] ) ? $astra_options['below-header-link-color'] : '#ffffff',
						'tablet'  => isset( $astra_options['mobile-below-header-t-l-color'] ) ? $astra_options['mobile-below-header-t-l-color'] : '',
						'mobile'  => '',
					),

					'below-header-menu-text-color-responsive' => array(
						'desktop' => isset( $astra_options['below-header-menu-text-color'] ) ? $astra_options['below-header-menu-text-color'] : '#ffffff',
						'tablet'  => isset( $astra_options['mobile-below-header-menu-color'] ) ? $astra_options['mobile-below-header-menu-color'] : '',
						'mobile'  => '',
					),

					'below-header-menu-text-hover-color-responsive' => array(
						'desktop' => isset( $astra_options['below-header-menu-text-hover-color'] ) ? $astra_options['below-header-menu-text-hover-color'] : '#ffffff',
						'tablet'  => isset( $astra_options['mobile-below-header-menu-h-color'] ) ? $astra_options['mobile-below-header-menu-h-color'] : '',
						'mobile'  => '',
					),

					'below-header-menu-bg-hover-color-responsive' => array(
						'desktop' => isset( $astra_options['below-header-menu-bg-hover-color'] ) ? $astra_options['below-header-menu-bg-hover-color'] : '#575757',
						'tablet'  => isset( $astra_options['mobile-below-header-menu-h-bg-color'] ) ? $astra_options['mobile-below-header-menu-h-bg-color'] : '',
						'mobile'  => '',
					),

					'below-header-current-menu-text-color-responsive' => array(
						'desktop' => isset( $astra_options['below-header-current-menu-text-color'] ) ? $astra_options['below-header-current-menu-text-color'] : '#ffffff',
						'tablet'  => isset( $astra_options['mobile-below-header-menu-a-color'] ) ? $astra_options['mobile-below-header-menu-a-color'] : '',
						'mobile'  => '',
					),

					'below-header-current-menu-bg-color-responsive' => array(
						'desktop' => isset( $astra_options['below-header-current-menu-bg-color'] ) ? $astra_options['below-header-current-menu-bg-color'] : '#575757',
						'tablet'  => isset( $astra_options['mobile-below-header-menu-a-bg-color'] ) ? $astra_options['mobile-below-header-menu-a-bg-color'] : '',
						'mobile'  => '',
					),

					'below-header-submenu-text-color-responsive' => array(
						'desktop' => isset( $astra_options['below-header-submenu-text-color'] ) ? $astra_options['below-header-submenu-text-color'] : '',
						'tablet'  => isset( $astra_options['mobile-below-header-submenu-color'] ) ? $astra_options['mobile-below-header-submenu-color'] : '',
						'mobile'  => '',
					),

					'below-header-submenu-bg-color-responsive' => array(
						'desktop' => isset( $astra_options['below-header-submenu-bg-color'] ) ? $astra_options['below-header-submenu-bg-color'] : '',
						'tablet'  => isset( $astra_options['mobile-below-header-submenu-bg-color'] ) ? $astra_options['mobile-below-header-submenu-bg-color'] : '',
						'mobile'  => '',
					),

					'below-header-submenu-hover-color-responsive' => array(
						'desktop' => isset( $astra_options['below-header-submenu-hover-color'] ) ? $astra_options['below-header-submenu-hover-color'] : '',
						'tablet'  => isset( $astra_options['mobile-below-header-submenu-h-color'] ) ? $astra_options['mobile-below-header-submenu-h-color'] : '',
						'mobile'  => '',
					),

					'below-header-submenu-bg-hover-color-responsive' => array(
						'desktop' => isset( $astra_options['below-header-submenu-bg-hover-color'] ) ? $astra_options['below-header-submenu-bg-hover-color'] : '',
						'tablet'  => isset( $astra_options['mobile-below-header-submenu-h-bg-color'] ) ? $astra_options['mobile-below-header-submenu-h-bg-color'] : '',
						'mobile'  => '',
					),

					'below-header-submenu-active-color-responsive' => array(
						'desktop' => isset( $astra_options['below-header-submenu-active-color'] ) ? $astra_options['below-header-submenu-active-color'] : '',
						'tablet'  => isset( $astra_options['mobile-below-header-submenu-a-color'] ) ? $astra_options['mobile-below-header-submenu-a-color'] : '',
						'mobile'  => '',
					),

					'below-header-submenu-active-bg-color-responsive' => array(
						'desktop' => isset( $astra_options['below-header-submenu-active-bg-color'] ) ? $astra_options['below-header-submenu-active-bg-color'] : '',
						'tablet'  => isset( $astra_options['mobile-below-header-submenu-a-bg-color'] ) ? $astra_options['mobile-below-header-submenu-a-bg-color'] : '',
						'mobile'  => '',
					),
				);

				// Merge customizer options with old options.
				$astra_options = wp_parse_args( $headers_colors_options, $astra_options );

				// Unset all color options which is no longer used.
				$mobile_color_options = array(
					'mobile-header-bg-obj',
					'mobile-above-header-bg-obj',
					'mobile-below-header-bg-obj',

					'mobile-header-menu-bg-color',
					'mobile-header-menu-color',
					'mobile-header-menu-h-bg-color',
					'mobile-header-menu-h-color',
					'mobile-header-menu-a-bg-color',
					'mobile-header-menu-a-color',
					'mobile-header-submenu-bg-color',
					'mobile-header-submenu-color',
					'mobile-header-submenu-h-bg-color',
					'mobile-header-submenu-h-color',
					'mobile-header-submenu-a-bg-color',
					'mobile-header-submenu-a-color',

					'mobile-above-header-t-l-color',
					'mobile-above-header-t-l-color',
					'mobile-above-header-t-l-hover-color',
					'mobile-above-header-menu-bg-color',
					'mobile-above-header-menu-color',
					'mobile-above-header-menu-h-color',
					'mobile-above-header-menu-h-bg-color',
					'mobile-above-header-menu-a-color',
					'mobile-above-header-menu-a-bg-color',
					'mobile-above-header-submenu-color',
					'mobile-above-header-submenu-bg-color',
					'mobile-above-header-submenu-h-color',
					'mobile-above-header-submenu-h-bg-color',
					'mobile-above-header-submenu-a-color',
					'mobile-above-header-submenu-a-bg-color',

					'mobile-below-header-t-l-color',
					'mobile-below-header-t-l-hover-color',
					'mobile-below-header-t-l-color',
					'mobile-below-header-menu-bg-color',
					'mobile-below-header-menu-color',
					'mobile-below-header-menu-h-color',
					'mobile-below-header-menu-h-bg-color',
					'mobile-below-header-menu-a-color',
					'mobile-below-header-menu-a-bg-color',
					'mobile-below-header-submenu-color',
					'mobile-below-header-submenu-bg-color',
					'mobile-below-header-submenu-h-color',
					'mobile-below-header-submenu-h-bg-color',
					'mobile-below-header-submenu-a-color',
					'mobile-below-header-submenu-a-bg-color',
				);
				foreach ( $mobile_color_options as $key => $value ) {
					if ( array_key_exists( $value, $astra_options ) ) {
						unset( $astra_options[ $value ] );
					}
				}

				$sticky_logo = ( isset( $astra_options['sticky-header-logo'] ) && '' !== $astra_options['sticky-header-logo'] ) ? $astra_options['sticky-header-logo'] : false;

				$sticky_rt_logo = ( isset( $astra_options['sticky-header-retina-logo'] ) && '' !== $astra_options['sticky-header-retina-logo'] ) ? $astra_options['sticky-header-retina-logo'] : false;

				$transparent_logo = ( isset( $astra_options['transparent-header-logo'] ) && '' !== $astra_options['transparent-header-logo'] ) ? $astra_options['transparent-header-logo'] : false;

				$transparent_rt_logo = ( isset( $astra_options['transparent-header-retina-logo'] ) && '' !== $astra_options['transparent-header-retina-logo'] ) ? $astra_options['transparent-header-retina-logo'] : false;

				if ( '' != $sticky_logo || '' != $sticky_rt_logo ) {
					$astra_options['different-sticky-logo'] = '1';
				}

				if ( '' != $transparent_rt_logo || '' != $transparent_logo ) {
					$astra_options['different-transparent-logo'] = '1';
				}

				update_option( 'astra-settings', $astra_options );
		}

Changelog

Changelog
Version Description
1.4.0-beta.4 Introduced.

User Contributed Notes

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