Astra_Theme_Update::v_1_5_0_beta_4()
Added Submenu Border options into theme from Addon
Description
Return
(void)
Source
File: inc/theme-update/class-astra-theme-update.php
public static function v_1_5_0_beta_4() { $border_disabled_values = array( 'top' => '0', 'bottom' => '0', 'left' => '0', 'right' => '0', ); $inside_border_disabled_values = array( 'bottom' => '0', ); $border_enabled_values = array( 'top' => '1', 'bottom' => '1', 'left' => '1', 'right' => '1', ); $inside_border_enabled_values = array( 'bottom' => '1', ); $theme_options = get_option( 'astra-settings' ); $submenu_border = isset( $theme_options['primary-submenu-border'] ) ? $theme_options['primary-submenu-border'] : true; // Primary Header. if ( $submenu_border ) { $theme_options['primary-submenu-border'] = $border_enabled_values; $theme_options['primary-submenu-item-border'] = $inside_border_enabled_values; } else { $theme_options['primary-submenu-border'] = $border_disabled_values; $theme_options['primary-submenu-item-border'] = $inside_border_disabled_values; } update_option( 'astra-settings', $theme_options ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.5.0-beta.4 | Introduced. |