Astra_Addon_Update::v_1_6_1()

Change the Above Header and Below Header submenu option to be checkbpx rather than border selection.


Description

Apply the submenu border color to the submenu item border color for Above and Below Header.


Return

(void)


Source

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

		public static function v_1_6_1() {
			$theme_options                    = get_option( 'astra-settings', array() );
			$above_header_submenu_otem_border = isset( $theme_options['above-header-submenu-item-border'] ) ? $theme_options['above-header-submenu-item-border'] : array();
			$below_header_submenu_otem_border = isset( $theme_options['below-header-submenu-item-border'] ) ? $theme_options['below-header-submenu-item-border'] : array();

			if ( ( is_array( $above_header_submenu_otem_border ) && '0' != $above_header_submenu_otem_border['bottom'] ) ) {
				$theme_options['above-header-submenu-item-border'] = 1;
			} else {
				$theme_options['above-header-submenu-item-border'] = 0;
			}

			if ( ( is_array( $below_header_submenu_otem_border ) && '0' != $below_header_submenu_otem_border['bottom'] ) ) {
				$theme_options['below-header-submenu-item-border'] = 1;
			} else {
				$theme_options['below-header-submenu-item-border'] = 0;
			}

			if ( isset( $theme_options['above-header-submenu-border-color'] ) && ! empty( $theme_options['above-header-submenu-border-color'] ) ) {
				$theme_options['above-header-submenu-item-b-color'] = $theme_options['above-header-submenu-border-color'];
			}

			if ( isset( $theme_options['below-header-submenu-border-color'] ) && ! empty( $theme_options['below-header-submenu-border-color'] ) ) {
				$theme_options['below-header-submenu-item-b-color'] = $theme_options['below-header-submenu-border-color'];
			}

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

User Contributed Notes

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