���� JFIF    �� �        "" $(4,$&1'-=-157:::#+?D?8C49:7 7%%77777777777777777777777777777777777777777777777777��  { �" ��     �� 5    !1AQa"q�2��BR��#b�������  ��  ��   ? ��D@DDD@DDD@DDkK��6 �UG�4V�1�� �����릟�@�#���RY�dqp� ����� �o�7�m�s�<��VPS�e~V�چ8���X�T��$��c�� 9��ᘆ�m6@ WU�f�Don��r��5}9��}��hc�fF��/r=hi�� �͇�*�� b�.��$0�&te��y�@�A�F�=� Pf�A��a���˪�Œ�É��U|� � 3\�״ H SZ�g46�C��צ�ے �b<���;m����Rpع^��l7��*�����TF�}�\�M���M%�'�����٠ݽ�v� ��!-�����?�N!La��A+[`#���M����'�~oR�?��v^)��=��h����A��X�.���˃����^Ə��ܯsO"B�c>; �e�4��5�k��/CB��.  �J?��;�҈�������������������~�<�VZ�ꭼ2/)Í”jC���ע�V�G�!���!�F������\�� Kj�R�oc�h���:Þ I��1"2�q×°8��Р@ז���_C0�ր��A��lQ��@纼�!7��F�� �]�sZ B�62r�v�z~�K�7�c��5�.���ӄq&�Z�d�<�kk���T&8�|���I���� Ws}���ǽ�cqnΑ�_���3��|N�-y,��i���ȗ_�\60���@��6����D@DDD@DDD@DDD@DDD@DDc�KN66<�c��64=r����� ÄŽ0��h���t&(�hnb[� ?��^��\��â|�,�/h�\��R��5�? �0�!צ܉-����G����٬��Q�zA���1�����V��� �:R���`�$��ik��H����D4�����#dk����� h�}����7���w%�������*o8wG�LycuT�.���ܯ7��I��u^���)��/c�,s�Nq�ۺ�;�ך�YH2���.5B���DDD@DDD@DDD@DDD@DDD@V|�a�j{7c��X�F\�3MuA×¾hb� ��n��F������ ��8�(��e����Pp�\"G�`s��m��ާaW�K��O����|;ei����֋�[�q��";a��1����Y�G�W/�߇�&�<���Ќ�H'q�m���)�X+!���=�m�ۚ丷~6a^X�)���,�>#&6G���Y��{����"" """ """ """ """ ""��at\/�a�8 �yp%�lhl�n����)���i�t��B�������������?��modskinlienminh.com - WSOX ENC PK!&p footer-row.phpnu[=' ) ) { $astra_footer_row = wp_parse_args( $args, array( 'row' => '' ) ); $astra_footer_row = isset( $astra_footer_row['row'] ) ? $astra_footer_row['row'] : ''; } if ( Astra_Builder_Helper::is_footer_row_empty( $astra_footer_row ) ) { $astra_footer_row_option = ( 'above' === $astra_footer_row ) ? 'hba' : ( ( 'below' === $astra_footer_row ) ? 'hbb' : 'hb' ); $astra_footer_columns = astra_get_option( $astra_footer_row_option . '-footer-column' ); $astra_footer_layout = astra_get_option( $astra_footer_row_option . '-footer-layout' ); $astra_row_stack_layout = astra_get_option( $astra_footer_row_option . '-stack' ); $astra_row_desk_layout = ( isset( $astra_footer_layout['desktop'] ) ) ? $astra_footer_layout['desktop'] : 'full'; $astra_tab_layout = ( isset( $astra_footer_layout['tablet'] ) ) ? $astra_footer_layout['tablet'] : 'full'; $astra_mob_layout = ( isset( $astra_footer_layout['mobile'] ) ) ? $astra_footer_layout['mobile'] : 'full'; $astra_desk_stack_layout = ( isset( $astra_row_stack_layout['desktop'] ) ) ? $astra_row_stack_layout['desktop'] : 'stack'; $astra_tab_stack_layout = ( isset( $astra_row_stack_layout['tablet'] ) ) ? $astra_row_stack_layout['tablet'] : 'stack'; $astra_mob_stack_layout = ( isset( $astra_row_stack_layout['mobile'] ) ) ? $astra_row_stack_layout['mobile'] : 'stack'; $astra_footer_row_classes = array( 'site-' . esc_attr( $astra_footer_row ) . '-footer-wrap', 'ast-builder-grid-row-container', 'site-footer-focus-item', 'ast-builder-grid-row-' . esc_attr( $astra_row_desk_layout ), 'ast-builder-grid-row-tablet-' . esc_attr( $astra_tab_layout ), 'ast-builder-grid-row-mobile-' . esc_attr( $astra_mob_layout ), 'ast-footer-row-' . esc_attr( $astra_desk_stack_layout ), 'ast-footer-row-tablet-' . esc_attr( $astra_tab_stack_layout ), 'ast-footer-row-mobile-' . esc_attr( $astra_mob_stack_layout ), ); ?> PK!*class-astra-builder-base-configuration.phpnu[PK!desktop-builder-layout.phpnu[
PK!Xclass-astra-builder-loader.phpnu[ 'ast-advanced-hook-location', 'exclusion' => 'ast-advanced-hook-exclusion', 'users' => 'ast-advanced-hook-users', ); $result = Astra_Target_Rules_Fields::get_instance()->get_posts_by_conditions( ASTRA_ADVANCED_HOOKS_POST_TYPE, $option ); $header_counter = 0; $footer_counter = 0; $layout_404_counter = 0; foreach ( $result as $post_id => $post_data ) { $post_type = get_post_type(); if ( ASTRA_ADVANCED_HOOKS_POST_TYPE !== $post_type ) { $layout = get_post_meta( $post_id, 'ast-advanced-hook-layout', false ); if ( isset( $layout[0] ) && '404-page' == $layout[0] && 0 == $layout_404_counter ) { $layout_404_settings = get_post_meta( $post_id, 'ast-404-page', true ); if ( isset( $layout_404_settings['disable_header'] ) && 'enabled' == $layout_404_settings['disable_header'] ) { remove_action( 'astra_header', array( Astra_Builder_Header::get_instance(), 'header_builder_markup' ) ); } if ( isset( $layout_404_settings['disable_footer'] ) && 'enabled' == $layout_404_settings['disable_footer'] ) { remove_action( 'astra_footer', array( Astra_Builder_Footer::get_instance(), 'footer_markup' ) ); } $layout_404_counter ++; } elseif ( isset( $layout[0] ) && 'header' == $layout[0] && 0 == $header_counter ) { // Remove default site's header. remove_action( 'astra_header', array( Astra_Builder_Header::get_instance(), 'header_builder_markup' ) ); $header_counter++; } elseif ( isset( $layout[0] ) && 'footer' == $layout[0] && 0 == $footer_counter ) { // Remove default site's footer. remove_action( 'astra_footer', array( Astra_Builder_Footer::get_instance(), 'footer_markup' ) ); $footer_counter++; } } } } } /** * Prepare if class 'Astra_Builder_Loader' exist. * Kicking this off by calling 'get_instance()' method */ Astra_Builder_Loader::get_instance(); } if ( ! function_exists( 'astra_builder' ) ) { /** * Get global class. * * @return object */ function astra_builder() { return Astra_Builder_Loader::get_instance(); } } PK!"09/class-astra-wpfooter-schema.phpnu[schema_enabled() ) { return false; } add_filter( 'astra_attr_footer', array( $this, 'wpfooter_Schema' ) ); } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function wpfooter_Schema( $attr ) { $attr['itemtype'] = 'https://schema.org/WPFooter'; $attr['itemscope'] = 'itemscope'; $attr['itemid'] = '#colophon'; return $attr; } /** * Enabled schema * * @since 2.1.3 */ protected function schema_enabled() { return apply_filters( 'astra_wpfooter_schema_enabled', parent::schema_enabled() ); } } new Astra_WPFooter_Schema(); PK!}D©"09/class-astra-starter-content.phpnu[post_type ) { update_post_meta( $post_ID, 'site-content-layout', 'plain-container' ); update_post_meta( $post_ID, 'theme-transparent-header-meta', 'enabled' ); update_post_meta( $post_ID, 'site-sidebar-layout', 'no-sidebar' ); update_post_meta( $post_ID, 'site-post-title', 'disabled' ); } } /** * Get customizer json * * @since 4.0.0 * @return mixed value. */ public function get_customizer_json() { try { $request = wp_remote_get( ASTRA_THEME_URI . 'inc/compatibility/starter-content/astra-settings-export.json' ); } catch ( Exception $ex ) { $request = null; } if ( is_wp_error( $request ) ) { return false; // Bail early. } // @codingStandardsIgnoreStart /** * @psalm-suppress PossiblyNullReference * @psalm-suppress UndefinedMethod * @psalm-suppress PossiblyNullArrayAccess * @psalm-suppress PossiblyNullArgument * @psalm-suppress InvalidScalarArgument */ return json_decode( $request['body'], 1 ); // @codingStandardsIgnoreEnd } /** * Save Astra customizer settings into database. * * @since 4.0.0 */ public function save_astra_settings() { $settings = self::get_customizer_json(); // Delete existing dynamic CSS cache. delete_option( 'astra-settings' ); if ( ! empty( $settings['customizer-settings'] ) ) { foreach ( $settings['customizer-settings'] as $option => $value ) { update_option( $option, $value ); } } } /** * Load default astra settings. * * @since 4.0.0 * @param mixed $defaults defaults. * @return mixed value. */ public function theme_defaults( $defaults ) { $json = ''; $settings = self::get_customizer_json(); if ( ! empty( $settings['customizer-settings'] ) ) { $json = $settings['customizer-settings']['astra-settings']; } return $json ? $json : $defaults; } /** * Load default color palettes. * * @since 4.0.0 * @param mixed $defaults defaults. * @return mixed value. */ public function theme_color_palettes_defaults( $defaults ) { $json = ''; $settings = self::get_customizer_json(); if ( ! empty( $settings['customizer-settings'] ) ) { $json = $settings['customizer-settings']['astra-color-palettes']; } return $json ? $json : $defaults; } /** * Return starter content definition. * * @return mixed|void * @since 4.0.0 */ public function get() { $nav_items_header = array( 'home' => array( 'type' => 'post_type', 'object' => 'page', 'object_id' => '{{' . self::HOME_SLUG . '}}', ), 'about' => array( 'title' => __( 'Services', 'astra' ), 'type' => 'custom', 'url' => '{{' . self::SERVICES_SLUG . '}}', ), 'services' => array( 'title' => __( 'About', 'astra' ), 'type' => 'custom', 'url' => '{{' . self::ABOUT_SLUG . '}}', ), 'reviews' => array( 'title' => __( 'Reviews', 'astra' ), 'type' => 'custom', 'url' => '{{' . self::REVIEWS_SLUG . '}}', ), 'faq' => array( 'title' => __( 'Why Us', 'astra' ), 'type' => 'custom', 'url' => '{{' . self::WHY_US_SLUG . '}}', ), 'contact' => array( 'title' => __( 'Contact', 'astra' ), 'type' => 'custom', 'url' => '{{' . self::CONTACT_SLUG . '}}', ), ); $content = array( 'attachments' => array( 'logo' => array( 'post_title' => _x( 'Logo', 'Theme starter content', 'astra' ), 'file' => 'inc/assets/images/starter-content/logo.png', ), ), 'theme_mods' => array( 'custom_logo' => '{{logo}}', ), 'nav_menus' => array( 'primary' => array( 'name' => esc_html__( 'Primary', 'astra' ), 'items' => $nav_items_header, ), 'mobile_menu' => array( 'name' => esc_html__( 'Primary', 'astra' ), 'items' => $nav_items_header, ), ), 'options' => array( 'page_on_front' => '{{' . self::HOME_SLUG . '}}', 'show_on_front' => 'page', ), 'posts' => array( self::HOME_SLUG => require ASTRA_THEME_DIR . 'inc/compatibility/starter-content/home.php', // PHPCS:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound ), ); return apply_filters( 'astra_starter_content', $content ); } } PK!C)09/class-astra-site-navigation-schema.phpnu[schema_enabled() ) { return false; } add_filter( 'astra_attr_site-navigation', array( $this, 'site_navigation_schema' ) ); } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function site_navigation_schema( $attr ) { $attr['itemtype'] = 'https://schema.org/SiteNavigationElement'; $attr['itemscope'] = 'itemscope'; return $attr; } /** * Enabled schema * * @since 2.1.3 */ protected function schema_enabled() { return apply_filters( 'astra_site_navigation_schema_enabled', parent::schema_enabled() ); } } new Astra_Site_Navigation_Schema(); PK!ğ#09/class-astra-wpsidebar-schema.phpnu[schema_enabled() ) { return false; } add_filter( 'astra_attr_sidebar', array( $this, 'wpsidebar_Schema' ) ); } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function wpsidebar_Schema( $attr ) { $attr['itemtype'] = 'https://schema.org/WPSideBar'; $attr['itemscope'] = 'itemscope'; return $attr; } /** * Enabled schema * * @since 2.1.3 */ protected function schema_enabled() { return apply_filters( 'astra_wpsidebar_schema_enabled', parent::schema_enabled() ); } } new Astra_WPSideBar_Schema(); PK!-v v 09/class-astra-person-schema.phpnu[schema_enabled() ) { return false; } add_filter( 'astra_attr_post-meta-author', array( $this, 'person_Schema' ) ); add_filter( 'astra_attr_author-name', array( $this, 'author_name_schema_itemprop' ) ); add_filter( 'astra_attr_author-url', array( $this, 'author_url_schema_itemprop' ) ); add_filter( 'astra_attr_author-name-info', array( $this, 'author_name_info_schema_itemprop' ) ); add_filter( 'astra_attr_author-url-info', array( $this, 'author_info_url_schema_itemprop' ) ); add_filter( 'astra_attr_author-item-info', array( $this, 'author_item_schema_itemprop' ) ); add_filter( 'astra_attr_author-desc-info', array( $this, 'author_desc_schema_itemprop' ) ); } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function person_Schema( $attr ) { $attr['itemtype'] = 'https://schema.org/Person'; $attr['itemscope'] = 'itemscope'; $attr['itemprop'] = 'author'; $attr['class'] = 'posted-by vcard author'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function author_name_schema_itemprop( $attr ) { $attr['itemprop'] = 'name'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function author_name_info_schema_itemprop( $attr ) { $attr['itemprop'] = 'name'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function author_url_schema_itemprop( $attr ) { $attr['itemprop'] = 'url'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function author_info_url_schema_itemprop( $attr ) { $attr['itemprop'] = 'url'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function author_desc_schema_itemprop( $attr ) { $attr['itemprop'] = 'description'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function author_item_schema_itemprop( $attr ) { $attr['itemprop'] = 'author'; return $attr; } /** * Enabled schema * * @since 2.1.3 */ protected function schema_enabled() { return apply_filters( 'astra_person_schema_enabled', parent::schema_enabled() ); } } new Astra_Person_Schema(); PK!>r%: : class-astra-builder-admin.phpnu[=' ) ) { $astra_header_component_args = wp_parse_args( $args, array( 'type' => '', 'device' => '', ) ); $astra_header_component_slug = isset( $astra_header_component_args['type'] ) ? $astra_header_component_args['type'] : ''; } $astra_active_device = isset( $astra_header_component_args['device'] ) ? $astra_header_component_args['device'] : ''; switch ( $astra_header_component_slug ) { case 'logo': ?>
PK!JVuuclass-astra-builder-helper.phpnu[ 'ast_selected_tab', 'value' => 'general', ), ); /** * Config context general tab config. * * @var string[][] */ public static $general_tab_config = array( 'setting' => 'ast_selected_tab', 'value' => 'general', ); /** * Config context design tab. * * @var string[][] */ public static $design_tab = array( array( 'setting' => 'ast_selected_tab', 'value' => 'design', ), ); /** * Config context design tab. * * @var string[][] */ public static $design_tab_config = array( 'setting' => 'ast_selected_tab', 'value' => 'design', ); /** * Config Tablet device context. * * @var string[][] */ public static $tablet_device = array( array( 'setting' => 'ast_selected_device', 'operator' => 'in', 'value' => array( 'tablet' ), ), ); /** * Config Mobile device context. * * @var string[][] */ public static $mobile_device = array( array( 'setting' => 'ast_selected_device', 'operator' => 'in', 'value' => array( 'mobile' ), ), ); /** * Config Mobile device context. * * @var string[][] */ public static $responsive_devices = array( array( 'setting' => 'ast_selected_device', 'operator' => 'in', 'value' => array( 'tablet', 'mobile' ), ), ); /** * Config Mobile device context. * * @var string[][] */ public static $responsive_general_tab = array( array( 'setting' => 'ast_selected_tab', 'value' => 'general', ), array( 'setting' => 'ast_selected_device', 'operator' => 'in', 'value' => array( 'tablet', 'mobile' ), ), ); /** * Config Desktop device context. * * @var string[][] */ public static $desktop_general_tab = array( array( 'setting' => 'ast_selected_tab', 'value' => 'general', ), array( 'setting' => 'ast_selected_device', 'operator' => '==', 'value' => 'desktop', ), ); /** * Default responsive spacing control value. * * @var string[][] */ public static $default_responsive_spacing = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); /** * Default button responsive spacing control value. * * @var string[][] */ public static $default_button_responsive_spacing = array( 'desktop' => array( 'top' => '12', 'right' => '20', 'bottom' => '12', 'left' => '20', ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); /** * Config Tablet device context. * * @var string[][] */ public static $tablet_general_tab = array( array( 'setting' => 'ast_selected_tab', 'value' => 'general', ), array( 'setting' => 'ast_selected_device', 'operator' => '==', 'value' => 'tablet', ), ); /** * Config Mobile device context. * * @var string[][] */ public static $mobile_general_tab = array( array( 'setting' => 'ast_selected_tab', 'value' => 'general', ), array( 'setting' => 'ast_selected_device', 'operator' => '==', 'value' => 'mobile', ), ); /** * No. Of. Component Limit. * * @var int */ public static $component_limit = 10; /** * No. Of. Component count array. * * @var int */ public static $component_count_array = array(); /** * No. Of. Footer Widgets. * * @var int */ public static $num_of_footer_widgets; /** * No. Of. Footer HTML. * * @var int */ public static $num_of_footer_html; /** * No. Of. Header Widgets. * * @var int */ public static $num_of_header_widgets; /** * No. Of. Header Menu. * * @var int */ public static $num_of_header_menu; /** * No. Of. Header Buttons. * * @var int */ public static $num_of_header_button; /** * No. Of. Footer Buttons. * * @var int */ public static $num_of_footer_button; /** * No. Of. Header HTML. * * @var int */ public static $num_of_header_html; /** * No. Of. Footer Columns. * * @var int */ public static $num_of_footer_columns; /** * No. Of. Header Social Icons. * * @var int */ public static $num_of_header_social_icons; /** * No. Of. Footer Social Icons. * * @var int */ public static $num_of_footer_social_icons; /** * No. Of. Header Dividers. * * @since 3.0.0 * @var int */ public static $num_of_header_divider; /** * No. Of. Footer Dividers. * * @since 3.0.0 * @var int */ public static $num_of_footer_divider; /** * Check if migrated to new HFB. * * @var int|bool */ public static $is_header_footer_builder_active; /** * Footer Row layout * * @var array */ public static $footer_row_layouts; /** * Header Desktop Items * * @var array */ public static $header_desktop_items = null; /** * Footer Desktop Items * * @var array */ public static $footer_desktop_items = null; /** * Header Mobile Items * * @var array */ public static $header_mobile_items = null; /** * Member Variable * * @var instance */ public static $loaded_grid = null; /** * Member Variable * * @var instance */ private static $instance = null; /** * Member Variable * * @var grid_size_mapping */ public static $grid_size_mapping = array( '6-equal' => 'repeat( 6, 1fr )', '5-equal' => 'repeat( 5, 1fr )', '4-equal' => 'repeat( 4, 1fr )', '4-lheavy' => '2fr 1fr 1fr 1fr', '4-rheavy' => '1fr 1fr 1fr 2fr', '3-equal' => 'repeat( 3, 1fr )', '3-lheavy' => '2fr 1fr 1fr', '3-rheavy' => '1fr 1fr 2fr', '3-cheavy' => '1fr 2fr 1fr', '3-cwide' => '1fr 3fr 1fr', '3-firstrow' => '1fr 1fr', '3-lastrow' => '1fr 1fr', '2-equal' => 'repeat( 2, 1fr )', '2-lheavy' => '2fr 1fr', '2-rheavy' => '1fr 2fr', '2-full' => '2fr', 'full' => '1fr', ); /** * Initiator */ public static function get_instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { self::$component_count_array = self::get_component_count(); self::$num_of_header_button = defined( 'ASTRA_EXT_VER' ) ? self::$component_count_array['header-button'] : 1; self::$num_of_footer_button = defined( 'ASTRA_EXT_VER' ) ? self::$component_count_array['footer-button'] : 0; self::$num_of_header_html = defined( 'ASTRA_EXT_VER' ) ? self::$component_count_array['header-html'] : 2; self::$num_of_footer_html = defined( 'ASTRA_EXT_VER' ) ? self::$component_count_array['footer-html'] : 2; self::$num_of_header_menu = defined( 'ASTRA_EXT_VER' ) ? self::$component_count_array['header-menu'] : 2; self::$num_of_header_widgets = defined( 'ASTRA_EXT_VER' ) ? self::$component_count_array['header-widget'] : 2; self::$num_of_footer_widgets = defined( 'ASTRA_EXT_VER' ) ? self::$component_count_array['footer-widget'] : 4; self::$num_of_header_social_icons = defined( 'ASTRA_EXT_VER' ) ? self::$component_count_array['header-social-icons'] : 1; self::$num_of_footer_social_icons = defined( 'ASTRA_EXT_VER' ) ? self::$component_count_array['footer-social-icons'] : 1; // Divider. self::$num_of_header_divider = defined( 'ASTRA_EXT_VER' ) ? self::$component_count_array['header-divider'] : 0; self::$num_of_footer_divider = defined( 'ASTRA_EXT_VER' ) ? self::$component_count_array['footer-divider'] : 0; self::$num_of_footer_columns = defined( 'ASTRA_EXT_VER' ) ? apply_filters( 'astra_footer_column_count', 6 ) : 6; self::$footer_row_layouts = apply_filters( 'astra_footer_row_layout', array( 'desktop' => array( '6' => array( '6-equal' => array( 'icon' => 'sixcol', ), ), '5' => array( '5-equal' => array( 'icon' => 'fivecol', ), ), '4' => array( '4-equal' => array( 'icon' => 'fourcol', ), '4-lheavy' => array( 'icon' => 'lfourforty', ), '4-rheavy' => array( 'icon' => 'rfourforty', ), ), '3' => array( '3-equal' => array( 'icon' => 'threecol', ), '3-lheavy' => array( 'icon' => 'lefthalf', ), '3-rheavy' => array( 'icon' => 'righthalf', ), '3-cheavy' => array( 'icon' => 'centerhalf', ), '3-cwide' => array( 'icon' => 'widecenter', ), ), '2' => array( '2-equal' => array( 'icon' => 'twocol', ), '2-lheavy' => array( 'icon' => 'twoleftgolden', ), '2-rheavy' => array( 'icon' => 'tworightgolden', ), ), '1' => array( 'full' => array( 'icon' => 'row', ), ), ), 'tablet' => array( '6' => array( '6-equal' => array( 'tooltip' => __( 'Equal Width Columns', 'astra' ), 'icon' => 'sixcol', ), 'full' => array( 'tooltip' => __( 'Collapse to Rows', 'astra' ), 'icon' => 'collapserowsix', ), ), '5' => array( '5-equal' => array( 'tooltip' => __( 'Equal Width Columns', 'astra' ), 'icon' => 'fivecol', ), 'full' => array( 'tooltip' => __( 'Collapse to Rows', 'astra' ), 'icon' => 'collapserowfive', ), ), '4' => array( '4-equal' => array( 'tooltip' => __( 'Equal Width Columns', 'astra' ), 'icon' => 'fourcol', ), '2-equal' => array( 'tooltip' => __( 'Two Column Grid', 'astra' ), 'icon' => 'grid', ), 'full' => array( 'tooltip' => __( 'Collapse to Rows', 'astra' ), 'icon' => 'collapserowfour', ), ), '3' => array( '3-equal' => array( 'tooltip' => __( 'Equal Width Columns', 'astra' ), 'icon' => 'threecol', ), '3-lheavy' => array( 'tooltip' => __( 'Left Heavy 50/25/25', 'astra' ), 'icon' => 'lefthalf', ), '3-rheavy' => array( 'tooltip' => __( 'Right Heavy 25/25/50', 'astra' ), 'icon' => 'righthalf', ), '3-cheavy' => array( 'tooltip' => __( 'Center Heavy 25/50/25', 'astra' ), 'icon' => 'centerhalf', ), '3-cwide' => array( 'tooltip' => __( 'Wide Center 20/60/20', 'astra' ), 'icon' => 'widecenter', ), '3-firstrow' => array( 'tooltip' => __( 'First Row, Next Columns 100 - 50/50', 'astra' ), 'icon' => 'firstrow', ), '3-lastrow' => array( 'tooltip' => __( 'Last Row, Previous Columns 50/50 - 100', 'astra' ), 'icon' => 'lastrow', ), 'full' => array( 'tooltip' => __( 'Collapse to Rows', 'astra' ), 'icon' => 'collapserowthree', ), ), '2' => array( '2-equal' => array( 'tooltip' => __( 'Equal Width Columns', 'astra' ), 'icon' => 'twocol', ), '2-lheavy' => array( 'tooltip' => __( 'Left Heavy 66/33', 'astra' ), 'icon' => 'twoleftgolden', ), '2-rheavy' => array( 'tooltip' => __( 'Right Heavy 33/66', 'astra' ), 'icon' => 'tworightgolden', ), 'full' => array( 'tooltip' => __( 'Collapse to Rows', 'astra' ), 'icon' => 'collapserow', ), ), '1' => array( 'full' => array( 'tooltip' => __( 'Single Row', 'astra' ), 'icon' => 'row', ), ), ), 'mobile' => array( '6' => array( '6-equal' => array( 'tooltip' => __( 'Equal Width Columns', 'astra' ), 'icon' => 'sixcol', ), 'full' => array( 'tooltip' => __( 'Collapse to Rows', 'astra' ), 'icon' => 'collapserowsix', ), ), '5' => array( '5-equal' => array( 'tooltip' => __( 'Equal Width Columns', 'astra' ), 'icon' => 'fivecol', ), 'full' => array( 'tooltip' => __( 'Collapse to Rows', 'astra' ), 'icon' => 'collapserowfive', ), ), '4' => array( '4-equal' => array( 'icon' => 'fourcol', ), '2-equal' => array( 'icon' => 'grid', ), 'full' => array( 'icon' => 'collapserowfour', ), ), '3' => array( '3-equal' => array( 'icon' => 'threecol', ), '3-lheavy' => array( 'icon' => 'lefthalf', ), '3-rheavy' => array( 'icon' => 'righthalf', ), '3-cheavy' => array( 'icon' => 'centerhalf', ), '3-cwide' => array( 'icon' => 'widecenter', ), '3-firstrow' => array( 'icon' => 'firstrow', ), '3-lastrow' => array( 'icon' => 'lastrow', ), 'full' => array( 'icon' => 'collapserowthree', ), ), '2' => array( '2-equal' => array( 'icon' => 'twocol', ), '2-lheavy' => array( 'icon' => 'twoleftgolden', ), '2-rheavy' => array( 'icon' => 'tworightgolden', ), 'full' => array( 'icon' => 'collapserow', ), ), '1' => array( 'full' => array( 'icon' => 'row', ), ), ), 'responsive' => true, ) ); self::$header_desktop_items = apply_filters( 'astra_header_desktop_items', array( 'logo' => array( 'name' => __( 'Site Title & Logo', 'astra' ), 'icon' => 'admin-appearance', 'section' => 'title_tagline', 'delete' => false, ), 'search' => array( 'name' => __( 'Search', 'astra' ), 'icon' => 'search', 'section' => 'section-header-search', 'delete' => false, ), 'account' => array( 'name' => __( 'Account', 'astra' ), 'icon' => 'admin-users', 'section' => 'section-header-account', 'delete' => false, ), ) ); self::$footer_desktop_items = apply_filters( 'astra_footer_desktop_items', array( 'copyright' => array( 'name' => 'Copyright', 'icon' => 'nametag', 'section' => 'section-footer-copyright', 'delete' => false, ), 'menu' => array( 'name' => 'Footer Menu', 'icon' => 'menu', 'section' => 'section-footer-menu', 'delete' => false, ), ) ); if ( class_exists( 'Astra_Woocommerce' ) ) { $woo_cart_name = class_exists( 'Easy_Digital_Downloads' ) ? __( 'Woo Cart', 'astra' ) : __( 'Cart', 'astra' ); self::$header_desktop_items['woo-cart'] = array( 'name' => $woo_cart_name, 'icon' => 'cart', 'section' => 'section-header-woo-cart', ); } if ( class_exists( 'Easy_Digital_Downloads' ) ) { $edd_cart_name = class_exists( 'Astra_Woocommerce' ) ? __( 'EDD Cart', 'astra' ) : __( 'Cart', 'astra' ); self::$header_desktop_items['edd-cart'] = array( 'name' => $edd_cart_name, 'icon' => 'cart', 'section' => 'section-header-edd-cart', ); } self::$header_mobile_items = apply_filters( 'astra_header_mobile_items', array( 'logo' => array( 'name' => __( 'Site Title & Logo', 'astra' ), 'icon' => 'admin-appearance', 'section' => 'title_tagline', ), 'search' => array( 'name' => __( 'Search', 'astra' ), 'icon' => 'search', 'section' => 'section-header-search', ), 'mobile-trigger' => array( 'name' => __( 'Toggle Button', 'astra' ), 'icon' => 'menu-alt', 'section' => 'section-header-mobile-trigger', ), 'mobile-menu' => array( 'name' => __( 'Off-Canvas Menu', 'astra' ), 'icon' => 'menu-alt', 'section' => 'section-header-mobile-menu', ), 'account' => array( 'name' => __( 'Account', 'astra' ), 'icon' => 'admin-users', 'section' => 'section-header-account', ), ) ); if ( class_exists( 'Astra_Woocommerce' ) ) { self::$header_mobile_items['woo-cart'] = array( 'name' => $woo_cart_name, 'icon' => 'cart', 'section' => 'section-header-woo-cart', ); } if ( class_exists( 'Easy_Digital_Downloads' ) ) { self::$header_mobile_items['edd-cart'] = array( 'name' => $edd_cart_name, 'icon' => 'cart', 'section' => 'section-header-edd-cart', ); } self::$is_header_footer_builder_active = self::is_header_footer_builder_active(); add_filter( 'astra_addon_list', array( $this, 'deprecate_old_header_and_footer' ) ); } /** * Get count of all components. * * @since 3.0.0 * * @return int Number of all components. */ public static function get_component_count() { $component_keys_count = array( 'header-button' => 2, 'footer-button' => 2, 'header-html' => 2, 'footer-html' => 2, 'header-menu' => 2, 'header-widget' => 4, 'footer-widget' => 4, 'header-social-icons' => 1, 'footer-social-icons' => 1, 'header-divider' => 0, 'footer-divider' => 0, 'removed-items' => array(), ); $component_keys_count = array_merge( $component_keys_count, apply_filters( 'astra_builder_elements_count', $component_keys_count ) ); $skip_it_keys = array( 'removed-items', 'flag' ); foreach ( $component_keys_count as $component_type => $component_count ) { if ( in_array( $component_type, $skip_it_keys, true ) ) { continue; } $component_keys_count[ $component_type ] = min( $component_count, self::$component_limit ); } return $component_keys_count; } /** * Deprecate Header Sections, Mobile Headers, Footer Widgets for new users and migrated users. * * @since 3.0.0 * @param array $args The arguments as per the filter. * @return array $args Updated arguments as per the filter. */ public function deprecate_old_header_and_footer( $args ) { if ( self::$is_header_footer_builder_active ) { unset( $args['mobile-header'] ); unset( $args['header-sections'] ); unset( $args['advanced-footer'] ); } return $args; } /** * For existing users, do not load the wide/full width image CSS by default. * * @since 3.0.0 * @return boolean false if it is an existing user , true if not. */ public static function is_header_footer_builder_active() { $astra_settings = get_option( ASTRA_THEME_SETTINGS ); $is_header_footer_builder = isset( $astra_settings['is-header-footer-builder'] ) ? (bool) $astra_settings['is-header-footer-builder'] : true; return apply_filters( 'astra_is_header_footer_builder_active', $is_header_footer_builder ); } /** * Check if Migrated to new Astra Builder. */ public static function is_new_user() { return astra_get_option( 'header-footer-builder-notice', true ); } /** * Adds a check to see if the side columns should run. * * @param string $row the name of the row. */ public static function has_mobile_side_columns( $row = 'primary' ) { $mobile_sides = false; $elements = astra_get_option( 'header-mobile-items' ); if ( isset( $elements ) && isset( $elements[ $row ] ) ) { if ( ( isset( $elements[ $row ][ $row . '_left' ] ) && is_array( $elements[ $row ][ $row . '_left' ] ) && ! empty( $elements[ $row ][ $row . '_left' ] ) ) || ( isset( $elements[ $row ][ $row . '_left_center' ] ) && is_array( $elements[ $row ][ $row . '_left_center' ] ) && ! empty( $elements[ $row ][ $row . '_left_center' ] ) ) || ( isset( $elements[ $row ][ $row . '_right_center' ] ) && is_array( $elements[ $row ][ $row . '_right_center' ] ) && ! empty( $elements[ $row ][ $row . '_right_center' ] ) ) || ( isset( $elements[ $row ][ $row . '_right' ] ) && is_array( $elements[ $row ][ $row . '_right' ] ) && ! empty( $elements[ $row ][ $row . '_right' ] ) ) ) { $mobile_sides = true; } } return $mobile_sides; } /** * Adds a check to see if the center column should run. * * @param string $row the name of the row. */ public static function has_mobile_center_column( $row = 'primary' ) { $mobile_center = false; $elements = astra_get_option( 'header-mobile-items' ); if ( isset( $elements ) && isset( $elements[ $row ] ) && isset( $elements[ $row ][ $row . '_center' ] ) && is_array( $elements[ $row ][ $row . '_center' ] ) && ! empty( $elements[ $row ][ $row . '_center' ] ) ) { $mobile_center = true; } return $mobile_center; } /** * Adds support to render header columns. * * @param string $row the name of the row. * @param string $column the name of the column. * @param string $header the name of the header. * @param string $builder the name of the builder. */ public static function render_builder_markup( $row = 'primary', $column = 'left', $header = 'desktop', $builder = 'header' ) { $elements = astra_get_option( $builder . '-' . $header . '-items' ); if ( isset( $elements ) && isset( $elements[ $row ] ) && isset( $elements[ $row ][ $row . '_' . $column ] ) && is_array( $elements[ $row ][ $row . '_' . $column ] ) && ! empty( $elements[ $row ][ $row . '_' . $column ] ) ) { foreach ( $elements[ $row ][ $row . '_' . $column ] as $key => $item ) { if ( astra_wp_version_compare( '5.4.99', '>=' ) ) { get_template_part( 'template-parts/' . $builder . '/builder/components', '', array( 'type' => $item, 'device' => $header, ) ); } else { set_query_var( 'type', $item ); get_template_part( 'template-parts/' . $builder . '/builder/components' ); } } } } /** * Adds support to render Mobile Popup Markup. */ public static function render_mobile_popup_markup() { if ( ! self::is_component_loaded( 'mobile-trigger', 'header' ) && ! is_customize_preview() ) { return; } $off_canvas_slide = astra_get_option( 'off-canvas-slide' ); $mobile_header_type = astra_get_option( 'mobile-header-type' ); $content_alignment = astra_get_option( 'header-offcanvas-content-alignment' ); $side_class = 'content-align-' . $content_alignment . ' '; if ( $mobile_header_type ) { if ( 'off-canvas' === $mobile_header_type ) { if ( $off_canvas_slide ) { if ( 'left' === $off_canvas_slide ) { $side_class .= 'ast-mobile-popup-left'; } else { $side_class .= 'ast-mobile-popup-right'; } } } else { $side_class .= 'ast-mobile-popup-full-width'; } } ?>
$row_grids ) { $components = array(); if ( ! empty( $row_grids ) ) { foreach ( $row_grids as $row => $grid ) { if ( ! in_array( $row, array( 'below', 'above', 'primary', 'popup' ) ) ) { continue; } if ( ! is_array( $grid ) ) { continue; } $result = array_values( $grid ); if ( is_array( $result ) ) { $loaded_component = call_user_func_array( 'array_merge', $result ); $components[] = is_array( $loaded_component ) ? $loaded_component : array(); } } } $loaded_components[ $grid_row ] = call_user_func_array( 'array_merge', $components ); } } if ( ! empty( $loaded_components ) ) { // For both devices(mobile & desktop). $loaded_components['header_both'] = array_merge( $loaded_components['header_desktop'], $loaded_components['header_mobile'] ); // For All device and builder type. $all_components = call_user_func_array( 'array_merge', array_values( $loaded_components ) ); $loaded_components['all'] = array_unique( $all_components ); } self::$loaded_grid = $loaded_components; } $loaded_components = self::$loaded_grid; if ( 'all' === $builder_type && ! empty( $loaded_components['all'] ) ) { $is_loaded = in_array( $component_id, $loaded_components['all'], true ); } else { $is_loaded = in_array( $component_id, $loaded_components[ $builder_type . '_' . $device ], true ); } return $is_loaded || is_customize_preview(); } /** * For existing users, do not apply dynamic CSS chages. * * @since 3.3.0 * @return boolean true if it is an existing user , false if not. */ public static function apply_flex_based_css() { $astra_settings = get_option( ASTRA_THEME_SETTINGS ); $astra_settings['is-flex-based-css'] = isset( $astra_settings['is-flex-based-css'] ) ? $astra_settings['is-flex-based-css'] : true; return apply_filters( 'astra_apply_flex_based_css', $astra_settings['is-flex-based-css'] ); } } /** * Prepare if class 'Astra_Builder_Helper' exist. * Kicking this off by calling 'get_instance()' method */ Astra_Builder_Helper::get_instance(); PK!_WWclass-astra-builder-options.phpnu[ array( 'popup_content' => array( 'mobile-menu' ) ), 'above' => array( 'above_left' => array(), 'above_left_center' => array(), 'above_center' => array(), 'above_right_center' => array(), 'above_right' => array(), ), 'primary' => array( 'primary_left' => array( 'logo' ), 'primary_left_center' => array(), 'primary_center' => array(), 'primary_right_center' => array(), 'primary_right' => array( 'menu-1' ), ), 'below' => array( 'below_left' => array(), 'below_left_center' => array(), 'below_center' => array(), 'below_right_center' => array(), 'below_right' => array(), ), ); /** * Header Builder - Mobile Defaults. */ $defaults['header-mobile-items'] = array( 'popup' => array( 'popup_content' => array( 'mobile-menu' ) ), 'above' => array( 'above_left' => array(), 'above_center' => array(), 'above_right' => array(), ), 'primary' => array( 'primary_left' => array( 'logo' ), 'primary_center' => array(), 'primary_right' => array( 'mobile-trigger' ), ), 'below' => array( 'below_left' => array(), 'below_center' => array(), 'below_right' => array(), ), ); /** * Primary Header Defaults. */ $defaults['hb-header-main-layout-width'] = 'content'; $defaults['hb-header-height'] = array( 'desktop' => ( false === astra_check_is_structural_setup() ) ? 70 : 80, 'tablet' => '', 'mobile' => '', ); $defaults['hb-stack'] = array( 'desktop' => 'stack', 'tablet' => 'stack', 'mobile' => 'stack', ); $defaults['hb-header-main-sep'] = 1; $defaults['hb-header-main-sep-color'] = '#eaeaea'; $defaults['hb-header-main-menu-align'] = 'inline'; $defaults['hb-header-bg-obj-responsive'] = array( 'desktop' => array( 'background-color' => '#ffffff', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), ); $defaults['hb-header-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '1.5', 'right' => '', 'bottom' => '1.5', 'left' => '', ), 'mobile' => array( 'top' => '1', 'right' => '', 'bottom' => '1', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'em', 'mobile-unit' => 'em', ); /** * Above Header Defaults. */ $defaults['hba-header-layout'] = 'above-header-layout-1'; $defaults['hba-header-height'] = array( 'desktop' => 50, 'tablet' => '', 'mobile' => '', ); $defaults['hba-stack'] = array( 'desktop' => 'stack', 'tablet' => 'stack', 'mobile' => 'stack', ); $defaults['hba-header-separator'] = 1; $defaults['hba-header-bottom-border-color'] = '#eaeaea'; $defaults['hba-header-bg-obj-responsive'] = array( 'desktop' => array( 'background-color' => '#ffffff', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), ); $defaults['hba-header-text-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['hba-header-link-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['hba-header-link-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['hba-header-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '0', 'right' => '', 'bottom' => '0', 'left' => '', ), 'mobile' => array( 'top' => '0.5', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'em', ); /** * Logo defaults. */ $defaults['ast-header-responsive-logo-width'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); /** * Below Header Defaults. */ $defaults['hbb-header-layout'] = 'below-header-layout-1'; $defaults['hbb-header-height'] = array( 'desktop' => 60, 'tablet' => '', 'mobile' => '', ); $defaults['hbb-stack'] = array( 'desktop' => 'stack', 'tablet' => 'stack', 'mobile' => 'stack', ); $defaults['hbb-header-separator'] = 1; $defaults['hbb-header-bottom-border-color'] = '#eaeaea'; $defaults['hbb-header-bg-obj-responsive'] = array( 'desktop' => array( 'background-color' => '#eeeeee', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), ); $defaults['hbb-header-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '1', 'right' => '', 'bottom' => '1', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'em', 'mobile-unit' => 'px', ); $margin_defaults = array( 'section-footer-builder-layout-padding', 'section-footer-builder-layout-margin', 'section-above-header-builder-padding', 'section-above-header-builder-margin', 'section-below-header-builder-padding', 'section-below-header-builder-margin', 'section-header-mobile-trigger-margin', 'section-primary-header-builder-padding', 'section-primary-header-builder-margin', 'title_tagline-margin', 'section-header-search-margin', 'header-account-margin', 'header-mobile-menu-menu-spacing', 'section-header-mobile-menu-margin', 'section-above-footer-builder-padding', 'section-above-footer-builder-margin', 'section-below-footer-builder-margin', 'section-footer-copyright-margin', 'section-footer-menu-margin', 'section-primary-footer-builder-padding', 'section-primary-footer-builder-margin', 'section-header-woo-cart-padding', 'section-header-woo-cart-margin', ); foreach ( $margin_defaults as $margin_default ) { $defaults[ $margin_default ] = Astra_Builder_Helper::$default_responsive_spacing; } for ( $index = 1; $index <= Astra_Builder_Helper::$component_limit; $index++ ) { $defaults = astra_prepare_button_defaults( $defaults, absint( $index ) ); $defaults = astra_prepare_html_defaults( $defaults, absint( $index ) ); $defaults = astra_prepare_social_icon_defaults( $defaults, absint( $index ) ); $defaults = astra_prepare_widget_defaults( $defaults, absint( $index ) ); $defaults = astra_prepare_menu_defaults( $defaults, absint( $index ) ); $defaults = astra_prepare_divider_defaults( $defaults, absint( $index ) ); } /** * Header Types - Defaults */ $defaults['transparent-header-main-sep'] = ( false === astra_get_transparent_header_default_value() ) ? '' : 0; $defaults['transparent-header-main-sep-color'] = ''; /** * Header > Sticky Defaults. */ $defaults['sticky-header-on-devices'] = 'desktop'; $defaults['sticky-header-style'] = 'none'; /** * Footer Builder - Desktop Defaults. */ $defaults['footer-desktop-items'] = array( 'above' => array( 'above_1' => array(), 'above_2' => array(), 'above_3' => array(), 'above_4' => array(), 'above_5' => array(), ), 'primary' => array( 'primary_1' => array(), 'primary_2' => array(), 'primary_3' => array(), 'primary_4' => array(), 'primary_5' => array(), ), 'below' => array( 'below_1' => array( 'copyright' ), 'below_2' => array(), 'below_3' => array(), 'below_4' => array(), 'below_5' => array(), ), ); /** * Above Footer Defaults. */ $defaults['hba-footer-height'] = 60; $defaults['hba-footer-column'] = '2'; $defaults['hba-footer-layout'] = array( 'desktop' => '2-equal', 'tablet' => '2-equal', 'mobile' => 'full', ); /** * Footer - Defaults */ $defaults['hba-footer-bg-obj-responsive'] = array( 'desktop' => array( 'background-color' => '#eeeeee', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), ); $defaults['hbb-footer-bg-obj-responsive'] = array( 'desktop' => array( 'background-color' => $apply_new_default_color_typo_values ? 'var(--ast-global-color-5)' : '#eeeeee', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), ); $defaults['hb-footer-bg-obj-responsive'] = array( 'desktop' => array( 'background-color' => '#f9f9f9', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), ); $defaults['hbb-footer-top-border-color'] = $apply_new_default_color_typo_values ? 'var(--ast-global-color-6)' : ''; $defaults['hbb-footer-separator'] = $apply_new_default_color_typo_values ? 1 : ''; /** * Header Margin defaults. */ $defaults['section-header-builder-layout-margin'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); /** * Below Footer Defaults. */ $defaults['hbb-footer-height'] = 80; $defaults['hbb-footer-column'] = '1'; $defaults['hbb-footer-layout'] = array( 'desktop' => 'full', 'tablet' => 'full', 'mobile' => 'full', ); $defaults['hba-footer-layout-width'] = 'content'; $defaults['hb-footer-layout-width'] = 'content'; $defaults['hbb-footer-layout-width'] = 'content'; $defaults['hba-footer-vertical-alignment'] = 'flex-start'; $defaults['hb-footer-vertical-alignment'] = 'flex-start'; $defaults['hbb-footer-vertical-alignment'] = 'flex-start'; $defaults['footer-bg-obj-responsive'] = array( 'desktop' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), ); /** * Primary Footer Defaults. */ $defaults['hb-footer-column'] = '3'; $defaults['hb-footer-separator'] = 1; $defaults['hb-footer-bottom-border-color'] = '#e6e6e6'; $defaults['hb-footer-layout'] = array( 'desktop' => '3-equal', 'tablet' => '3-equal', 'mobile' => 'full', ); $defaults['hb-footer-main-sep'] = 1; $defaults['hb-footer-main-sep-color'] = '#e6e6e6'; /** * Footer Copyright. */ $defaults['footer-copyright-editor'] = 'Copyright [copyright] [current_year] [site_title] | Powered by [theme_author]'; $defaults['footer-copyright-color'] = $apply_new_default_color_typo_values ? 'var(--ast-global-color-3)' : ''; $defaults['line-height-section-footer-copyright'] = 2; $defaults['footer-copyright-alignment'] = array( 'desktop' => 'center', 'tablet' => 'center', 'mobile' => 'center', ); $defaults['font-size-section-footer-copyright'] = array( 'desktop' => $apply_new_default_color_typo_values ? 16 : '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['font-weight-section-footer-copyright'] = 'inherit'; $defaults['font-family-section-footer-copyright'] = 'inherit'; $defaults['font-extras-section-footer-copyright'] = array( 'line-height' => ! isset( $astra_options['font-extras-section-footer-copyright'] ) && isset( $astra_options['line-height-section-footer-copyright'] ) ? $astra_options['line-height-section-footer-copyright'] : '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => ! isset( $astra_options['font-extras-section-footer-copyright'] ) && isset( $astra_options['text-transform-section-footer-copyright'] ) ? $astra_options['text-transform-section-footer-copyright'] : '', 'text-decoration' => '', ); $defaults['footer-menu-alignment'] = array( 'desktop' => 'center', 'tablet' => 'center', 'mobile' => 'center', ); /** * Footer Below Padding. */ $defaults['section-below-footer-builder-padding'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); /** * Search. */ $defaults['header-search-icon-space'] = array( 'desktop' => 18, 'tablet' => 18, 'mobile' => 18, ); $defaults['header-search-icon-color'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); /** * Transparent Header > Component Configs */ $defaults['transparent-header-social-icons-color'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['transparent-header-social-icons-h-color'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['transparent-header-social-icons-bg-color'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['transparent-header-social-icons-bg-h-color'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['transparent-header-html-text-color'] = ''; $defaults['transparent-header-html-link-color'] = ''; $defaults['transparent-header-html-link-h-color'] = ''; $defaults['transparent-header-widget-title-color'] = ''; $defaults['transparent-header-widget-content-color'] = ''; $defaults['transparent-header-widget-link-color'] = ''; $defaults['transparent-header-widget-link-h-color'] = ''; $defaults['transparent-header-button-text-color'] = ''; $defaults['transparent-header-button-text-h-color'] = ''; $defaults['transparent-header-button-bg-color'] = ''; $defaults['transparent-header-button-bg-h-color'] = ''; /** * Off-Canvas defaults. */ $defaults['off-canvas-layout'] = 'side-panel'; $defaults['off-canvas-slide'] = 'right'; $defaults['header-builder-menu-toggle-target'] = 'icon'; $defaults['header-offcanvas-content-alignment'] = 'flex-start'; $defaults['off-canvas-background'] = array( 'background-color' => '#ffffff', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ); $defaults['off-canvas-close-color'] = '#3a3a3a'; $defaults['mobile-header-type'] = 'dropdown'; $defaults['off-canvas-inner-spacing'] = ''; $defaults['footer-menu-layout'] = array( 'desktop' => 'horizontal', 'tablet' => 'vertical', 'mobile' => 'vertical', ); $defaults['footer-menu-bg-obj-responsive'] = array( 'desktop' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), ); $defaults['footer-menu-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['footer-menu-h-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['footer-menu-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['footer-menu-a-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['footer-menu-a-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['footer-menu-font-size'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['footer-menu-font-weight'] = 'inherit'; $defaults['footer-menu-font-family'] = 'inherit'; $defaults['footer-menu-font-extras'] = array( 'line-height' => ! isset( $astra_options['footer-menu-font-extras'] ) && isset( $astra_options['footer-menu-line-height'] ) ? $astra_options['footer-menu-line-height'] : '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => ! isset( $astra_options['footer-menu-font-extras'] ) && isset( $astra_options['footer-menu-text-transform'] ) ? $astra_options['footer-menu-text-transform'] : '', 'text-decoration' => '', ); $defaults['footer-main-menu-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '0', 'right' => '20', 'bottom' => '0', 'left' => '20', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); // Mobile Trigger defaults. $defaults['header-trigger-icon'] = 'menu'; $defaults['mobile-header-toggle-icon-size'] = 20; $defaults['mobile-header-toggle-btn-style'] = 'minimal'; $defaults['mobile-header-toggle-btn-border-size'] = array( 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1, ); $defaults['mobile-header-toggle-border-radius'] = 2; $mobile_header_toggle_border_radius_fields = ! isset( $astra_options['mobile-header-toggle-border-radius-fields'] ) && isset( $astra_options['mobile-header-toggle-border-radius'] ) ? $astra_options['mobile-header-toggle-border-radius'] : ''; $defaults['mobile-header-toggle-border-radius-fields'] = array( 'desktop' => array( 'top' => $mobile_header_toggle_border_radius_fields, 'right' => $mobile_header_toggle_border_radius_fields, 'bottom' => $mobile_header_toggle_border_radius_fields, 'left' => $mobile_header_toggle_border_radius_fields, ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); /** * Mobile trigger - Label Typography. */ $defaults['mobile-header-label-font-family'] = 'inherit'; $defaults['mobile-header-label-font-weight'] = 'inherit'; $defaults['mobile-header-label-text-transform'] = ''; $defaults['mobile-header-label-line-height'] = ''; $defaults['mobile-header-label-font-size'] = ''; /** * Global Color Palette. */ $defaults['global-color-palette'] = $apply_new_default_color_typo_values ? array( 'palette' => array( '#046bd2', '#045cb4', '#1e293b', '#334155', '#f9fafb', '#FFFFFF', '#e2e8f0', '#cbd5e1', '#94a3b8', ), ) : array( 'palette' => array( '#0170B9', '#3a3a3a', '#3a3a3a', '#4B4F58', '#F5F5F5', '#FFFFFF', '#E5E5E5', '#424242', '#000000', ), ); /** * Mobile Menu */ // Specify all the default values for Menu from here. $defaults['header-mobile-menu-bg-color'] = ''; $defaults['header-mobile-menu-color'] = ''; $defaults['header-mobile-menu-h-bg-color'] = ''; $defaults['header-mobile-menu-h-color'] = ''; $defaults['header-mobile-menu-a-bg-color'] = ''; $defaults['header-mobile-menu-a-color'] = ''; $defaults['header-mobile-menu-bg-obj-responsive'] = array( 'desktop' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => $apply_new_default_color_typo_values ? 'var(--ast-global-color-5)' : '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), ); $defaults['header-mobile-menu-color-responsive'] = array( 'desktop' => $apply_new_default_color_typo_values ? 'var(--ast-global-color-3)' : '', 'tablet' => $apply_new_default_color_typo_values ? 'var(--ast-global-color-3)' : '', 'mobile' => '', ); $defaults['header-mobile-menu-h-color-responsive'] = array( 'desktop' => $apply_new_default_color_typo_values ? 'var(--ast-global-color-1)' : '', 'tablet' => $apply_new_default_color_typo_values ? 'var(--ast-global-color-1)' : '', 'mobile' => '', ); $defaults['header-mobile-menu-a-color-responsive'] = array( 'desktop' => $apply_new_default_color_typo_values ? 'var(--ast-global-color-1)' : '', 'tablet' => $apply_new_default_color_typo_values ? 'var(--ast-global-color-1)' : '', 'mobile' => '', ); $defaults['header-mobile-menu-h-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => $apply_new_default_color_typo_values ? 'var(--ast-global-color-4)' : '', 'mobile' => '', ); $defaults['header-mobile-menu-a-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => $apply_new_default_color_typo_values ? 'var(--ast-global-color-4)' : '', 'mobile' => '', ); $defaults['header-mobile-menu-submenu-container-animation'] = 'fade'; /** * Submenu */ $defaults['header-mobile-menu-submenu-item-border'] = false; $defaults['header-mobile-menu-submenu-item-b-size'] = '1'; $defaults['header-mobile-menu-submenu-item-b-color'] = '#eaeaea'; $defaults['header-mobile-menu-submenu-border'] = array( 'top' => 2, 'bottom' => 0, 'left' => 0, 'right' => 0, ); /** * Menu - Typography. */ $defaults['header-mobile-menu-font-size'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['font-extras-header-mobile-menu'] = array( 'line-height' => ! isset( $astra_options['font-extras-header-mobile-menu'] ) && isset( $astra_options['header-mobile-menu-line-height'] ) ? $astra_options['header-mobile-menu-line-height'] : '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => ! isset( $astra_options['font-extras-header-mobile-menu'] ) && isset( $astra_options['header-mobile-menu-text-transform'] ) ? $astra_options['header-mobile-menu-text-transform'] : '', 'text-decoration' => '', ); /** * Woo-Cart. */ $defaults['woo-header-cart-click-action'] = 'default'; $defaults['woo-slide-in-cart-width'] = array( 'desktop' => 35, 'tablet' => '', 'mobile' => '', 'desktop-unit' => '%', 'tablet-unit' => '%', 'mobile-unit' => '%', ); $defaults['woo-header-cart-icon-total-label-position'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['header-woo-cart-icon-size'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['woo-header-cart-icon'] = 'default'; $defaults['woo-header-cart-icon-style'] = 'outline'; $defaults['woo-desktop-cart-flyout-direction'] = 'right'; $defaults['header-woo-cart-icon-color'] = ''; $defaults['transparent-header-woo-cart-icon-color'] = ''; $defaults['header-woo-cart-icon-hover-color'] = ''; $defaults['woo-header-cart-border-width'] = 2; $woo_header_cart_border_radius = ! isset( $astra_options['woo-header-cart-icon-radius-fields'] ) && isset( $astra_options['woo-header-cart-icon-radius'] ) ? $astra_options['woo-header-cart-icon-radius'] : ''; $defaults['woo-header-cart-icon-radius-fields'] = array( 'desktop' => array( 'top' => $woo_header_cart_border_radius, 'right' => $woo_header_cart_border_radius, 'bottom' => $woo_header_cart_border_radius, 'left' => $woo_header_cart_border_radius, ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['woo-header-cart-badge-display'] = true; // Woo Cart - Dynamic label default value. $defaults['woo-header-cart-label-display'] = ''; // Cart tray > General Color styles. $defaults['header-woo-cart-text-color'] = ''; $defaults['header-woo-cart-link-color'] = ''; $defaults['header-woo-cart-background-color'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['header-woo-cart-background-hover-color'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['header-woo-cart-separator-color'] = ''; $defaults['header-woo-cart-link-hover-color'] = ''; // Cart tray > Cart Button styles. $defaults['header-woo-cart-btn-text-color'] = ''; $defaults['header-woo-cart-btn-background-color'] = ''; $defaults['header-woo-cart-btn-text-hover-color'] = ''; $defaults['header-woo-cart-btn-bg-hover-color'] = ''; // Cart tray > Checkout Button styles. $defaults['header-woo-checkout-btn-text-color'] = ''; $defaults['header-woo-checkout-btn-background-color'] = ''; $defaults['header-woo-checkout-btn-text-hover-color'] = ''; $defaults['header-woo-checkout-btn-bg-hover-color'] = ''; /** * EDD-Cart. */ $defaults['edd-header-cart-icon-style'] = 'outline'; $defaults['edd-header-cart-icon-color'] = ''; $defaults['edd-header-cart-icon-radius'] = 3; $defaults['transparent-header-edd-cart-icon-color'] = ''; $defaults['edd-header-cart-total-display'] = true; $defaults['edd-header-cart-title-display'] = true; // Cart tray > General Color styles. $defaults['header-edd-cart-text-color'] = ''; $defaults['header-edd-cart-link-color'] = ''; $defaults['header-edd-cart-background-color'] = ''; $defaults['header-edd-cart-separator-color'] = ''; // Cart tray > Checkout Button styles. $defaults['header-edd-checkout-btn-text-color'] = ''; $defaults['header-edd-checkout-btn-background-color'] = ''; $defaults['header-edd-checkout-btn-text-hover-color'] = ''; $defaults['header-edd-checkout-btn-bg-hover-color'] = ''; /** * Account element. */ $defaults['header-account-type'] = 'default'; $defaults['header-account-login-style'] = 'icon'; $defaults['header-account-action-type'] = 'link'; $defaults['header-account-link-type'] = 'default'; $defaults['header-account-logout-style'] = 'icon'; $defaults['header-account-logged-out-text'] = __( 'Log In', 'astra' ); $defaults['header-account-logged-in-text'] = __( 'My Account', 'astra' ); $defaults['header-account-logout-action'] = 'link'; $defaults['header-account-image-width'] = array( 'desktop' => '40', 'tablet' => '', 'mobile' => '', ); $defaults['header-account-icon-size'] = array( 'desktop' => 18, 'tablet' => 18, 'mobile' => 18, ); $defaults['header-account-icon-color'] = ''; $defaults['header-account-login-link'] = array( 'url' => '', 'new_tab' => false, 'link_rel' => '', ); $defaults['header-account-logout-link'] = array( 'url' => esc_url( wp_login_url() ), 'new_tab' => false, 'link_rel' => '', ); $defaults['font-size-section-header-account'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['header-account-type-text-color'] = ''; $defaults['header-account-woo-menu'] = false; $defaults['cloned-component-track'] = Astra_Builder_Helper::$component_count_array; return $defaults; } /** * Prepare Divider Defaults. * * @param array $defaults defaults. * @param integer $index index. */ function astra_prepare_divider_defaults( $defaults, $index ) { $defaults[ 'section-hb-divider-' . $index . '-margin' ] = Astra_Builder_Helper::$default_responsive_spacing; $defaults[ 'section-fb-divider-' . $index . '-margin' ] = Astra_Builder_Helper::$default_responsive_spacing; return $defaults; } /** * Prepare Button Defaults. * * @param array $defaults defaults. * @param integer $index index. */ function astra_prepare_button_defaults( $defaults, $index ) { /** * Update Astra default color and typography values. To not update directly on existing users site, added backwards. * * @since 4.0.0 */ $apply_new_default_color_typo_values = Astra_Dynamic_CSS::astra_check_default_color_typo(); $astra_options = Astra_Theme_Options::get_astra_options(); $_prefix = 'button' . $index; $defaults[ 'header-' . $_prefix . '-text' ] = __( 'Button', 'astra' ); $defaults[ 'header-' . $_prefix . '-link-option' ] = array( 'url' => apply_filters( 'astra_site_url', 'https://www.wpastra.com' ), 'new_tab' => false, 'link_rel' => '', ); $defaults[ 'header-' . $_prefix . '-font-family' ] = 'inherit'; $defaults[ 'header-' . $_prefix . '-font-weight' ] = 'inherit'; $defaults[ 'header-' . $_prefix . '-font-extras' ] = array( 'line-height' => ! isset( $astra_options[ 'header-' . $_prefix . '-font-extras' ] ) && isset( $astra_options[ 'header-' . $_prefix . '-line-height' ] ) ? $astra_options[ 'header-' . $_prefix . '-line-height' ] : '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => ! isset( $astra_options[ 'header-' . $_prefix . '-font-extras' ] ) && isset( $astra_options[ 'header-' . $_prefix . '-text-transform' ] ) ? $astra_options[ 'header-' . $_prefix . '-text-transform' ] : '', 'text-decoration' => '', ); $defaults[ 'header-' . $_prefix . '-font-size' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'header-' . $_prefix . '-text-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-' . $_prefix . '-back-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-' . $_prefix . '-text-h-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-' . $_prefix . '-back-h-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-' . $_prefix . '-padding' ] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'header-' . $_prefix . '-border-size' ] = array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ); $defaults[ 'header-' . $_prefix . '-border-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $header_button_border_radius_fields = ! isset( $astra_options[ 'header-' . $_prefix . '-border-radius-fields' ] ) && isset( $astra_options[ 'header-' . $_prefix . '-border-radius' ] ) ? $astra_options[ 'header-' . $_prefix . '-border-radius' ] : ''; $defaults[ 'header-' . $_prefix . '-border-radius-fields' ] = array( 'desktop' => array( 'top' => $header_button_border_radius_fields, 'right' => $header_button_border_radius_fields, 'bottom' => $header_button_border_radius_fields, 'left' => $header_button_border_radius_fields, ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'header-' . $_prefix . '-border-radius' ] = ''; $defaults[ 'section-hb-button-' . $index . '-padding' ] = $apply_new_default_color_typo_values ? Astra_Builder_Helper::$default_button_responsive_spacing : Astra_Builder_Helper::$default_responsive_spacing; $defaults[ 'section-hb-button-' . $index . '-margin' ] = Astra_Builder_Helper::$default_responsive_spacing; $defaults[ 'sticky-header-button' . $index . '-padding' ] = Astra_Builder_Helper::$default_responsive_spacing; $_prefix = 'button' . $index; $defaults[ 'footer-' . $_prefix . '-text' ] = __( 'Button', 'astra' ); $defaults[ 'footer-' . $_prefix . '-link-option' ] = array( 'url' => apply_filters( 'astra_site_url', 'https://www.wpastra.com' ), 'new_tab' => false, 'link_rel' => '', ); $defaults[ 'footer-' . $_prefix . '-font-family' ] = 'inherit'; $defaults[ 'footer-' . $_prefix . '-font-weight' ] = 'inherit'; $defaults[ 'footer-' . $_prefix . '-text-transform' ] = ''; $defaults[ 'footer-' . $_prefix . '-line-height' ] = ''; $defaults[ 'footer-' . $_prefix . '-font-size' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'footer-' . $_prefix . '-text-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'footer-' . $_prefix . '-back-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'footer-' . $_prefix . '-text-h-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'footer-' . $_prefix . '-back-h-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'footer-' . $_prefix . '-padding' ] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'footer-' . $_prefix . '-border-size' ] = array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ); $defaults[ 'footer-' . $_prefix . '-border-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $footer_button_border_radius_fields = ! isset( $astra_options[ 'footer-' . $_prefix . '-border-radius-fields' ] ) && isset( $astra_options[ 'footer-' . $_prefix . '-border-radius' ] ) ? $astra_options[ 'footer-' . $_prefix . '-border-radius' ] : ''; $defaults[ 'footer-' . $_prefix . '-border-radius-fields' ] = array( 'desktop' => array( 'top' => $footer_button_border_radius_fields, 'right' => $footer_button_border_radius_fields, 'bottom' => $footer_button_border_radius_fields, 'left' => $footer_button_border_radius_fields, ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'footer-button-' . $index . '-alignment' ] = array( 'desktop' => 'center', 'tablet' => 'center', 'mobile' => 'center', ); $defaults[ 'section-fb-button-' . $index . '-padding' ] = Astra_Builder_Helper::$default_responsive_spacing; $defaults[ 'section-fb-button-' . $index . '-margin' ] = Astra_Builder_Helper::$default_responsive_spacing; return $defaults; } /** * Prepare HTML Defaults. * * @param array $defaults defaults. * @param integer $index index. */ function astra_prepare_html_defaults( $defaults, $index ) { $astra_options = Astra_Theme_Options::get_astra_options(); $_section = 'section-hb-html-' . $index; $defaults[ 'header-html-' . $index ] = __( 'Insert HTML text here.', 'astra' ); $defaults[ 'header-html-' . $index . 'color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-html-' . $index . 'link-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-html-' . $index . 'link-h-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'font-size-' . $_section ] = array( 'desktop' => 15, 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'font-weight-' . $_section ] = 'inherit'; $defaults[ 'font-family-' . $_section ] = 'inherit'; $defaults[ 'font-extras-' . $_section ] = array( 'line-height' => ! isset( $astra_options[ 'font-extras-' . $_section ] ) && isset( $astra_options[ 'line-height-' . $_section ] ) ? $astra_options[ 'line-height-' . $_section ] : '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => ! isset( $astra_options[ 'font-extras-' . $_section ] ) && isset( $astra_options[ 'text-transform-' . $_section ] ) ? $astra_options[ 'text-transform-' . $_section ] : '', 'text-decoration' => '', ); $defaults[ 'section-hb-html-' . $index . '-margin' ] = Astra_Builder_Helper::$default_responsive_spacing; $_section = 'section-fb-html-' . $index; $defaults[ 'footer-html-' . $index ] = __( 'Insert HTML text here.', 'astra' ); $defaults[ 'footer-html-' . $index . 'color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'footer-html-' . $index . 'link-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'footer-html-' . $index . 'link-h-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'font-size-' . $_section ] = array( 'desktop' => 15, 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'footer-html-' . $index . '-alignment' ] = array( 'desktop' => 'center', 'tablet' => 'center', 'mobile' => 'center', ); $defaults[ 'font-size-' . $_section ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'font-weight-' . $_section ] = 'inherit'; $defaults[ 'font-family-' . $_section ] = 'inherit'; $defaults[ 'font-extras-' . $_section ] = array( 'line-height' => ! isset( $astra_options[ 'font-extras-' . $_section ] ) && isset( $astra_options[ 'line-height-' . $_section ] ) ? $astra_options[ 'line-height-' . $_section ] : '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => ! isset( $astra_options[ 'font-extras-' . $_section ] ) && isset( $astra_options[ 'text-transform-' . $_section ] ) ? $astra_options[ 'text-transform-' . $_section ] : '', 'text-decoration' => '', ); $defaults[ 'section-fb-html-' . $index . '-margin' ] = Astra_Builder_Helper::$default_responsive_spacing; return $defaults; } /** * Prepare Social Icon Defaults. * * @param array $defaults defaults. * @param integer $index index. */ function astra_prepare_social_icon_defaults( $defaults, $index ) { $astra_options = Astra_Theme_Options::get_astra_options(); $defaults[ 'header-social-' . $index . '-space' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-social-' . $index . '-bg-space' ] = ''; $defaults[ 'header-social-' . $index . '-size' ] = array( 'desktop' => 18, 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-social-' . $index . '-radius-fields' ] = array( 'desktop' => array( 'top' => ! isset( $astra_options[ 'header-social-' . $index . '-radius' ] ) ? '' : $astra_options[ 'header-social-' . $index . '-radius' ], 'right' => ! isset( $astra_options[ 'header-social-' . $index . '-radius' ] ) ? '' : $astra_options[ 'header-social-' . $index . '-radius' ], 'bottom' => ! isset( $astra_options[ 'header-social-' . $index . '-radius' ] ) ? '' : $astra_options[ 'header-social-' . $index . '-radius' ], 'left' => ! isset( $astra_options[ 'header-social-' . $index . '-radius' ] ) ? '' : $astra_options[ 'header-social-' . $index . '-radius' ], ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'header-social-' . $index . '-color' ] = ''; $defaults[ 'header-social-' . $index . '-h-color' ] = ''; $defaults[ 'header-social-' . $index . '-bg-color' ] = ''; $defaults[ 'header-social-' . $index . '-bg-h-color' ] = ''; $defaults[ 'header-social-' . $index . '-label-toggle' ] = false; $defaults[ 'header-social-' . $index . '-color-type' ] = 'custom'; $defaults[ 'font-size-section-hb-social-icons-' . $index ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'header-social-icons-' . $index ] = array( 'items' => array( array( 'id' => 'facebook', 'enabled' => true, 'source' => 'icon', 'url' => '', 'color' => '#557dbc', 'background' => 'transparent', 'icon' => 'facebook', 'label' => 'Facebook', ), array( 'id' => 'twitter', 'enabled' => true, 'source' => 'icon', 'url' => '', 'color' => '#7acdee', 'background' => 'transparent', 'icon' => 'twitter', 'label' => 'Twitter', ), array( 'id' => 'instagram', 'enabled' => true, 'source' => 'icon', 'url' => '', 'color' => '#8a3ab9', 'background' => 'transparent', 'icon' => 'instagram', 'label' => 'Instagram', ), ), ); $defaults[ 'section-hb-social-icons-' . $index . '-margin' ] = Astra_Builder_Helper::$default_responsive_spacing; $defaults[ 'footer-social-' . $index . '-space' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'footer-social-' . $index . '-bg-space' ] = ''; $defaults[ 'footer-social-' . $index . '-size' ] = array( 'desktop' => 18, 'tablet' => '', 'mobile' => '', ); $defaults[ 'footer-social-' . $index . '-radius' ] = ''; $defaults[ 'footer-social-' . $index . '-color' ] = ''; $defaults[ 'footer-social-' . $index . '-h-color' ] = ''; $defaults[ 'footer-social-' . $index . '-bg-color' ] = ''; $defaults[ 'footer-social-' . $index . '-bg-h-color' ] = ''; $defaults[ 'footer-social-' . $index . '-label-toggle' ] = false; $defaults[ 'footer-social-' . $index . '-color-type' ] = 'custom'; $defaults[ 'font-size-section-fb-social-icons-' . $index ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'footer-social-icons-' . $index ] = array( 'items' => array( array( 'id' => 'facebook', 'enabled' => true, 'source' => 'icon', 'url' => '', 'color' => '#557dbc', 'background' => 'transparent', 'icon' => 'facebook', 'label' => 'Facebook', ), array( 'id' => 'twitter', 'enabled' => true, 'source' => 'icon', 'url' => '', 'color' => '#7acdee', 'background' => 'transparent', 'icon' => 'twitter', 'label' => 'Twitter', ), array( 'id' => 'instagram', 'enabled' => true, 'source' => 'icon', 'url' => '', 'color' => '#8a3ab9', 'background' => 'transparent', 'icon' => 'instagram', 'label' => 'Instagram', ), ), ); $defaults[ 'footer-social-' . $index . '-alignment' ] = array( 'desktop' => 'center', 'tablet' => 'center', 'mobile' => 'center', ); $defaults[ 'section-fb-social-icons-' . $index . '-margin' ] = Astra_Builder_Helper::$default_responsive_spacing; return $defaults; } /** * Prepare Widget Defaults. * * @param array $defaults defaults. * @param integer $index index. */ function astra_prepare_widget_defaults( $defaults, $index ) { $astra_options = Astra_Theme_Options::get_astra_options(); $apply_new_default_color_typo_values = Astra_Dynamic_CSS::astra_check_default_color_typo(); // Widget Header defaults. // Colors. $defaults[ 'header-widget-' . $index . '-title-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-widget-' . $index . '-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-widget-' . $index . '-link-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-widget-' . $index . '-link-h-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Title Typography. $defaults[ 'header-widget-' . $index . '-font-family' ] = 'inherit'; $defaults[ 'header-widget-' . $index . '-font-weight' ] = 'inherit'; $defaults[ 'header-widget-' . $index . '-font-size' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'header-widget-' . $index . '-font-extras' ] = array( 'line-height' => ! isset( $astra_options[ 'header-widget-' . $index . '-font-extras' ] ) && isset( $astra_options[ 'header-widget-' . $index . '-line-height' ] ) ? $astra_options[ 'header-widget-' . $index . '-line-height' ] : '', 'line-height-unit' => 'em', 'letter-spacing' => ! isset( $astra_options[ 'header-widget-' . $index . '-font-extras' ] ) && isset( $astra_options[ 'header-widget-' . $index . '-letter-spacing' ] ) ? $astra_options[ 'header-widget-' . $index . '-letter-spacing' ] : '', 'letter-spacing-unit' => 'px', 'text-transform' => ! isset( $astra_options[ 'header-widget-' . $index . '-font-extras' ] ) && isset( $astra_options[ 'header-widget-' . $index . '-text-transform' ] ) ? $astra_options[ 'header-widget-' . $index . '-text-transform' ] : '', 'text-decoration' => '', ); // Content Typography. $defaults[ 'header-widget-' . $index . '-content-font-family' ] = 'inherit'; $defaults[ 'header-widget-' . $index . '-content-font-weight' ] = 'inherit'; $defaults[ 'header-widget-' . $index . '-content-font-size' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'header-widget-' . $index . '-content-font-extras' ] = array( 'line-height' => ! isset( $astra_options[ 'header-widget-' . $index . '-content-font-extras' ] ) && isset( $astra_options[ 'header-widget-' . $index . '-content-line-height' ] ) ? $astra_options[ 'header-widget-' . $index . '-content-line-height' ] : '', 'line-height-unit' => 'em', 'letter-spacing' => ! isset( $astra_options[ 'header-widget-' . $index . '-content-font-extras' ] ) && isset( $astra_options[ 'header-widget-' . $index . '-content-letter-spacing' ] ) ? $astra_options[ 'header-widget-' . $index . '-content-letter-spacing' ] : '', 'letter-spacing-unit' => 'px', 'text-transform' => ! isset( $astra_options[ 'header-widget-' . $index . '-content-font-extras' ] ) && isset( $astra_options[ 'header-widget-' . $index . '-content-transform' ] ) ? $astra_options[ 'header-widget-' . $index . '-content-transform' ] : '', 'text-decoration' => '', ); $defaults[ 'sidebar-widgets-header-widget-' . $index . '-margin' ] = Astra_Builder_Helper::$default_responsive_spacing; // Widget Footer defaults. // Colors. $defaults[ 'footer-widget-' . $index . '-title-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'footer-widget-' . $index . '-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'footer-widget-' . $index . '-link-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'footer-widget-' . $index . '-link-h-color' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Title Typography. $defaults[ 'footer-widget-' . $index . '-font-family' ] = 'inherit'; $defaults[ 'footer-widget-' . $index . '-font-weight' ] = 'inherit'; $defaults[ 'footer-widget-' . $index . '-text-transform' ] = ''; $defaults[ 'footer-widget-' . $index . '-line-height' ] = ''; $defaults[ 'footer-widget-' . $index . '-font-size' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); // Content Typography. $defaults[ 'footer-widget-' . $index . '-content-font-family' ] = 'inherit'; $defaults[ 'footer-widget-' . $index . '-content-font-weight' ] = 'inherit'; $defaults[ 'footer-widget-' . $index . '-content-font-extras' ] = array( 'line-height' => ! isset( $astra_options[ 'footer-widget-' . $index . '-content-font-extras' ] ) && isset( $astra_options[ 'footer-widget-' . $index . '-content-line-height' ] ) ? $astra_options[ 'footer-widget-' . $index . '-content-line-height' ] : '', 'line-height-unit' => 'em', 'letter-spacing' => ! isset( $astra_options[ 'footer-widget-' . $index . '-content-font-extras' ] ) && isset( $astra_options[ 'footer-widget-' . $index . '-content-letter-spacing' ] ) ? $astra_options[ 'footer-widget-' . $index . '-content-letter-spacing' ] : '', 'letter-spacing-unit' => 'px', 'text-transform' => ! isset( $astra_options[ 'footer-widget-' . $index . '-content-font-extras' ] ) && isset( $astra_options[ 'footer-widget-' . $index . '-content-transform' ] ) ? $astra_options[ 'footer-widget-' . $index . '-content-transform' ] : '', 'text-decoration' => '', ); $defaults[ 'footer-widget-' . $index . '-content-font-size' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'footer-widget-alignment-' . $index ] = array( 'desktop' => 'left', 'tablet' => $apply_new_default_color_typo_values ? '' : 'center', 'mobile' => $apply_new_default_color_typo_values ? '' : 'center', ); $defaults[ 'sidebar-widgets-footer-widget-' . $index . '-margin' ] = Astra_Builder_Helper::$default_responsive_spacing; return $defaults; } /** * Prepare menu Defaults. * * @param array $defaults defaults. * @param integer $index index. */ function astra_prepare_menu_defaults( $defaults, $index ) { /** * Update Astra default color and typography values. To not update directly on existing users site, added backwards. * * @since 4.0.0 */ $apply_new_default_color_typo_values = Astra_Dynamic_CSS::astra_check_default_color_typo(); $astra_options = Astra_Theme_Options::get_astra_options(); $_prefix = 'menu' . $index; // Specify all the default values for Menu from here. $defaults[ 'header-' . $_prefix . '-bg-color' ] = ''; $defaults[ 'header-' . $_prefix . '-color' ] = ''; $defaults[ 'header-' . $_prefix . '-h-bg-color' ] = ''; $defaults[ 'header-' . $_prefix . '-h-color' ] = ''; $defaults[ 'header-' . $_prefix . '-a-bg-color' ] = ''; $defaults[ 'header-' . $_prefix . '-a-color' ] = ''; $defaults[ 'header-' . $_prefix . '-bg-obj-responsive' ] = array( 'desktop' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-gradient' => '', ), ); $defaults[ 'header-' . $_prefix . '-color-responsive' ] = array( 'desktop' => $apply_new_default_color_typo_values ? 'var(--ast-global-color-3)' : '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-' . $_prefix . '-h-bg-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-' . $_prefix . '-h-color-responsive' ] = array( 'desktop' => $apply_new_default_color_typo_values ? 'var(--ast-global-color-1)' : '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-' . $_prefix . '-a-bg-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-' . $_prefix . '-a-color-responsive' ] = array( 'desktop' => $apply_new_default_color_typo_values ? 'var(--ast-global-color-1)' : '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'header-' . $_prefix . '-menu-hover-animation' ] = ''; $defaults[ 'header-' . $_prefix . '-submenu-container-animation' ] = ''; $defaults[ 'section-hb-menu-' . $index . '-margin' ] = Astra_Builder_Helper::$default_responsive_spacing; $defaults[ 'header-menu' . $index . '-menu-spacing' ] = Astra_Builder_Helper::$default_responsive_spacing; /** * Submenu */ $defaults[ 'header-' . $_prefix . '-submenu-item-border' ] = false; $defaults[ 'header-' . $_prefix . '-submenu-item-b-size' ] = '1'; $defaults[ 'header-' . $_prefix . '-submenu-item-b-color' ] = '#eaeaea'; $header_button_submenu_border_radius_fields = ! isset( $astra_options[ 'header-' . $_prefix . '-submenu-border-radius-fields' ] ) && isset( $astra_options[ 'header-' . $_prefix . '-submenu-border-radius' ] ) ? $astra_options[ 'header-' . $_prefix . '-submenu-border-radius' ] : ''; $defaults[ 'header-' . $_prefix . '-submenu-border-radius-fields' ] = array( 'desktop' => array( 'top' => $header_button_submenu_border_radius_fields, 'right' => $header_button_submenu_border_radius_fields, 'bottom' => $header_button_submenu_border_radius_fields, 'left' => $header_button_submenu_border_radius_fields, ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'header-' . $_prefix . '-submenu-top-offset' ] = ''; $defaults[ 'header-' . $_prefix . '-submenu-width' ] = ''; $defaults[ 'header-' . $_prefix . '-submenu-border' ] = array( 'top' => 2, 'bottom' => 0, 'left' => 0, 'right' => 0, ); /** * Menu Stack on Mobile. */ $defaults[ 'header-' . $_prefix . '-menu-stack-on-mobile' ] = true; /** * Menu - Typography. */ $defaults[ 'header-' . $_prefix . '-font-size' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults[ 'header-' . $_prefix . '-font-weight' ] = 'inherit'; $defaults[ 'header-' . $_prefix . '-font-family' ] = 'inherit'; $defaults[ 'header-' . $_prefix . '-font-extras' ] = array( 'line-height' => ! isset( $astra_options[ 'header-' . $_prefix . '-font-extras' ] ) && isset( $astra_options[ 'header-' . $_prefix . '-line-height' ] ) ? $astra_options[ 'header-' . $_prefix . '-line-height' ] : '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-