Astra_Addon_Update::v_1_2_0_beta_4()

Update Sticky Header & Transparent Header Logo width options of older version than 1.2.0-beta.4.


Description

Responsive Sticky & Transparent Header Logo Width


Source

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

		public static function v_1_2_0_beta_4() {

			$astra_options = get_option( 'astra-settings', array() );
			// Trasnparent Header value to reponsive width option.
			if ( isset( $astra_options['transparent-header-logo-width'] ) && ! is_array( $astra_options['transparent-header-logo-width'] ) ) {
				$astra_options['transparent-header-logo-width'] = array(
					'desktop' => $astra_options['transparent-header-logo-width'],
					'tablet'  => '',
					'mobile'  => '',
				);
			}
			// Trasnparent Header value to reponsive width option.
			if ( isset( $astra_options['sticky-header-logo-width'] ) && ! is_array( $astra_options['sticky-header-logo-width'] ) ) {
				$astra_options['sticky-header-logo-width'] = array(
					'desktop' => $astra_options['sticky-header-logo-width'],
					'tablet'  => '',
					'mobile'  => '',
				);
			}

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

Changelog

Changelog
Version Description
1.2.0-beta.4 Introduced.

User Contributed Notes

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