#js&&****&……PKEmZ`B extras.phpnu[ array( 'max-width' => '100%', 'padding-left' => '35px', 'padding-right' => '35px', ), ); $padding_below_breakpoint = array( '#masthead .ast-container, .ast-header-breadcrumb .ast-container' => array( 'padding-left' => '20px', 'padding-right' => '20px', ), ); /* Parse CSS from array()*/ $dynamic_css .= astra_parse_css( $genral_global_responsive ); $dynamic_css .= astra_parse_css( $padding_below_breakpoint, '', $header_break_point ); // trim white space for faster page loading. $dynamic_css .= Astra_Enqueue_Scripts::trim_css( $dynamic_css ); return $dynamic_css; } } add_filter( 'astra_dynamic_theme_css', 'astra_header_breakpoint_style' ); /** * Function to filter comment form arguments */ if ( ! function_exists( 'astra_404_page_layout' ) ) { /** * Function filter comment form arguments * * @since 1.0.0 * @param array $layout Comment form arguments. * @return array */ function astra_404_page_layout( $layout ) { if ( is_404() ) { $layout = 'no-sidebar'; } return apply_filters( 'astra_404_page_layout', $layout ); } } add_filter( 'astra_page_layout', 'astra_404_page_layout', 10, 1 ); /** * Function to check logo component present in which Header section. */ if ( ! function_exists( 'astra_is_logo_in_section' ) ) { /** * Function filter comment form arguments * * @since 4.8.0 * @param array $section Logo header. * @return array */ // Function to check if logo is present in a given section function astra_is_logo_in_section( $section ) { foreach ( $section as $components ) { if ( in_array( 'logo', $components ) ) { /** @psalm-suppress InvalidReturnStatement */ return true; } } /** @psalm-suppress FalsableReturnStatement */ return false; } } /** * Return current content layout. */ if ( ! function_exists( 'astra_get_content_layout' ) ) { /** * Return current content layout. * * @since 1.0.0 * @return mixed content layout. */ function astra_get_content_layout() { if ( is_singular() ) { // Old meta layout migration to new layout. $old_meta_content_layout = astra_get_option_meta( 'site-content-layout', '', true ); if ( $old_meta_content_layout ) { $content_layout = astra_toggle_layout( 'ast-site-content-layout', 'meta', false, $old_meta_content_layout ); } else { $content_layout = astra_get_option_meta( 'ast-site-content-layout', '', true ); // If post meta value is present, apply new layout option. if ( $content_layout ) { $content_layout = astra_toggle_layout( 'ast-site-content-layout', 'meta', false ); } } if ( empty( $content_layout ) ) { $post_type = strval( get_post_type() ); $content_layout = astra_toggle_layout( 'single-' . $post_type . '-ast-content-layout', 'single', false ); if ( 'default' == $content_layout || empty( $content_layout ) ) { // Get the GLOBAL content layout value. // NOTE: Here not used `true` in the below function call. $content_layout = astra_toggle_layout( 'ast-site-content-layout', 'global', false ); } } } else { $content_layout = ''; $post_type = astra_get_post_type(); $content_layout = astra_toggle_layout( 'archive-' . $post_type . '-ast-content-layout', 'archive', false ); if ( is_search() ) { $search_content_layout = astra_get_option( 'ast-search-content-layout', 'default' ); $content_layout_key = 'default' !== $search_content_layout ? 'ast-search-content-layout' : 'archive-post-ast-content-layout'; $content_layout = astra_toggle_layout( $content_layout_key, 'archive', false ); } if ( 'default' == $content_layout || empty( $content_layout ) ) { // Get the GLOBAL content layout value. // NOTE: Here not used `true` in the below function call. $content_layout = astra_toggle_layout( 'ast-site-content-layout', 'global', false ); } } return apply_filters( 'astra_get_content_layout', $content_layout ); } } /** * Return current content layout as per new layout selection. * * @since 4.2.0 * @param mixed $new_content_option The new content layout option. * @param mixed $level The level of the layout. * @param mixed $post_id The id to fetch post meta. * @param mixed $old_meta The old content layout option for migration cases. * @return mixed content layout. */ function astra_toggle_layout( $new_content_option, $level, $post_id = false, $old_meta = false ) { // Dynamic layout option for meta case. $dynamic_layout_option = 'meta' === $level ? astra_get_option_meta( $new_content_option, '', true ) : astra_get_option( $new_content_option, 'post' === strval( get_post_type() ) ? 'narrow-width-container' : 'default' ); $current_layout = ''; // Get meta value by ID if specified. if ( $post_id ) { $dynamic_layout_option = get_post_meta( $post_id, $new_content_option, true ); } // Meta layout migrations. $meta_key = astra_get_option_meta( 'astra-migrate-meta-layouts', '', true ); $migrated_user = ( ! Astra_Dynamic_CSS::astra_fullwidth_sidebar_support() ); $third_party_meta_page = astra_third_party_archive_meta( 'site-content-layout' ); if ( 'meta' === $level && $migrated_user ) { if ( false !== $third_party_meta_page ) { $old_meta = $third_party_meta_page; $meta_key = astra_third_party_archive_meta( 'astra-migrate-meta-layouts' ); } if ( $old_meta && 'set' !== $meta_key ) { $dynamic_layout_option = astra_migrate_meta_layout( $old_meta ); } } switch ( $dynamic_layout_option ) { case 'normal-width-container': $current_layout = 'plain-container'; break; case 'narrow-width-container': $current_layout = 'narrow-container'; // Exclude narrow layout for third party cases. if ( astra_with_third_party() && ( ! $migrated_user ) ) { $current_layout = 'plain-container'; } break; case 'full-width-container': $current_layout = 'page-builder'; break; default: if ( 'meta' === $level && ! $migrated_user && 'set' !== $meta_key && $old_meta ) { $current_layout = $old_meta; } else { $current_layout = $dynamic_layout_option; } break; } return $current_layout; } /** * Migrate old meta layout to new layout. * * @since 4.2.0 * @param mixed $meta_layout Meta Layout. * @return mixed new layout. */ function astra_migrate_meta_layout( $meta_layout ) { $new_layout = ''; switch ( $meta_layout ) { case 'boxed-container': $new_layout = 'normal-width-container'; break; case 'content-boxed-container': $new_layout = 'normal-width-container'; break; case 'plain-container': $new_layout = 'normal-width-container'; break; case 'page-builder': $new_layout = 'full-width-container'; break; case 'narrow-container': $new_layout = 'narrow-width-container'; break; default: $new_layout = 'default'; break; } return $new_layout; } /** * Function to check if it is Internet Explorer */ if ( ! function_exists( 'astra_check_is_ie' ) ) : /** * Function to check if it is Internet Explorer. * * @return true | false boolean */ function astra_check_is_ie() { $is_ie = false; if ( ! empty( $_SERVER['HTTP_USER_AGENT'] ) ) { $ua = htmlentities( sanitize_text_field( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ), ENT_QUOTES, 'UTF-8' ); // phpcs:ignore WordPressVIPMinimum.Variables.RestrictedVariables.cache_constraints___SERVER__HTTP_USER_AGENT__ -- Need to check if its ie. if ( strpos( $ua, 'Trident/7.0' ) !== false ) { $is_ie = true; } } return apply_filters( 'astra_check_is_ie', $is_ie ); } endif; /** * Replace header logo. */ if ( ! function_exists( 'astra_replace_header_logo' ) ) : /** * Replace header logo. * * @param array $image Size. * @param int $attachment_id Image id. * @param sting $size Size name. * @param string $icon Icon. * * @return array Size of image */ function astra_replace_header_logo( $image, $attachment_id, $size, $icon ) { $custom_logo_id = get_theme_mod( 'custom_logo' ); if ( ! is_customize_preview() && $custom_logo_id == $attachment_id && 'full' == $size ) { $data = wp_get_attachment_image_src( $attachment_id, 'ast-logo-size' ); if ( false != $data ) { $image = $data; } } return apply_filters( 'astra_replace_header_logo', $image ); } endif; if ( ! function_exists( 'astra_strposa' ) ) : /** * Strpos over an array. * * @since 1.2.4 * @param String $haystack The string to search in. * @param Array $needles Array of needles to be passed to strpos(). * @param integer $offset If specified, search will start this number of characters counted from the beginning of the string. If the offset is negative, the search will start this number of characters counted from the end of the string. * * @return bool True if haystack if part of any of the $needles. */ function astra_strposa( $haystack, $needles, $offset = 0 ) { if ( ! is_array( $needles ) ) { $needles = array( $needles ); } foreach ( $needles as $query ) { if ( strpos( $haystack, $query, $offset ) !== false ) { // stop on first true result. return true; } } return false; } endif; if ( ! function_exists( 'astra_get_prop' ) ) : /** * Get a specific property of an array without needing to check if that property exists. * * Provide a default value if you want to return a specific value if the property is not set. * * @since 1.2.7 * @link https://www.gravityforms.com/ * * @param array $array Array from which the property's value should be retrieved. * @param string $prop Name of the property to be retrieved. * @param string $default Optional. Value that should be returned if the property is not set or empty. Defaults to null. * * @return string|mixed The value */ function astra_get_prop( $array, $prop, $default = null ) { if ( ! is_array( $array ) && ! ( is_object( $array ) && $array instanceof ArrayAccess ) ) { return $default; } if ( ( isset( $array[ $prop ] ) && false === $array[ $prop ] ) ) { return false; } if ( isset( $array[ $prop ] ) ) { $value = $array[ $prop ]; } else { $value = ''; } return empty( $value ) && null !== $default ? $default : $value; } endif; /** * Build list of attributes into a string and apply contextual filter on string. * * The contextual filter is of the form `astra_attr_{context}_output`. * * @since 1.6.2 * @credits - Genesis Theme By StudioPress. * * @param string $context The context, to build filter name. * @param array $attributes Optional. Extra attributes to merge with defaults. * @param array $args Optional. Custom data to pass to filter. * @return string String of HTML attributes and values. */ function astra_attr( $context, $attributes = array(), $args = array() ) { return Astra_Attr::get_instance()->astra_attr( $context, $attributes, $args ); } /** * Get the theme author details * * @since 3.1.0 * @return array Return theme author URL and name. */ function astra_get_theme_author_details() { $theme_author = apply_filters( 'astra_theme_author', array( 'theme_name' => esc_html__( 'Astra WordPress Theme', 'astra' ), 'theme_author_url' => ASTRA_WEBSITE_BASE_URL, ) ); return $theme_author; } /** * Add dropdown icon if menu item has children. * * @since 3.3.0 * * @param string $title The menu item title. * @param WP_Post $item All of our menu item data. * @param stdClass $args All of our menu item args. * @param int $depth Depth of menu item. * @return string The menu item. */ function astra_dropdown_icon_to_menu_link( $title, $item, $args, $depth ) { $role = 'application'; $icon = ''; /** * These menus are not overriden by the 'Astra_Custom_Nav_Walker' class present in Addon - Nav Menu module. * * Hence skipping these menus from getting overriden by blank SVG Icons and adding the icons from theme. * * @since 3.3.0 */ $astra_menu_locations = array( 'ast-hf-menu-1', // Builder - Primary menu. 'ast-hf-menu-2', // Builder - Secondary menu. 'ast-hf-menu-3', 'ast-hf-menu-4', 'ast-hf-menu-5', 'ast-hf-menu-6', 'ast-hf-menu-7', 'ast-hf-menu-8', 'ast-hf-menu-9', 'ast-hf-menu-10', // Cloned builder menus. 'ast-hf-mobile-menu', // Builder - Mobile Menu. 'ast-desktop-toggle-menu', // Builder - Toggle for Desktop Menu. 'ast-hf-account-menu', // Builder - Login Account Menu. 'primary-menu', // Old header - Primary Menu. 'above_header-menu', // Old header - Above Menu. 'below_header-menu', // Old header - Below Menu. ); $load_svg_menu_icons = false; if ( defined( 'ASTRA_EXT_VER' ) ) { // Check whether Astra Pro is active + Nav menu addon is deactivate + menu registered by Astra only. if ( ! Astra_Ext_Extension::is_active( 'nav-menu' ) && isset( $args->menu_id ) && in_array( $args->menu_id, $astra_menu_locations ) ) { $load_svg_menu_icons = true; } } else { // Check menu registered by Astra only. if ( isset( $args->menu_id ) && in_array( $args->menu_id, $astra_menu_locations ) ) { $load_svg_menu_icons = true; } } if ( $load_svg_menu_icons || ( defined( 'ASTRA_EXT_VER' ) && ! Astra_Ext_Extension::is_active( 'nav-menu' ) ) ) { // Assign icons to only those menu which are registered by Astra. $icon = Astra_Icons::get_icons( 'arrow' ); } // Dropdown svg arrow for submenu for non Astra registered menu's $is_nav_menu_extension_inactive = defined( 'ASTRA_EXT_VER' ) && ! Astra_Ext_Extension::is_active( 'nav-menu' ); $special_menu_ids = array( 'ast-hf-menu-3', 'ast-hf-menu-4', 'ast-hf-menu-5', 'ast-hf-menu-6', 'ast-hf-menu-7', 'ast-hf-menu-8', 'ast-hf-menu-9', 'ast-hf-menu-10', 'ast-hf-menu-3-sticky', 'ast-hf-menu-4-sticky', 'ast-hf-menu-5-sticky', 'ast-hf-menu-6-sticky', 'ast-hf-menu-7-sticky', 'ast-hf-menu-8-sticky', 'ast-hf-menu-9-sticky', 'ast-hf-menu-10-sticky', 'ast-hf-account-menu', ); $is_special_menu = isset( $args->menu_id ) && in_array( $args->menu_id, $special_menu_ids ); if ( $is_nav_menu_extension_inactive || $is_special_menu ) { $icon = Astra_Icons::get_icons( 'arrow' ); } $astra_arrow_icon = ''; // Render arrow icon for special menu appearance or on pro deactivation or nav menu extension deactivation. if ( $is_special_menu || $is_nav_menu_extension_inactive || ! defined( 'ASTRA_EXT_VER' ) ) { $custom_tabindex = true === Astra_Builder_Helper::$is_header_footer_builder_active ? 'tabindex="0"' : ''; $astra_arrow_icon = ''; } foreach ( $item->classes as $value ) { if ( 'menu-item-has-children' === $value ) { $title = $title . $astra_arrow_icon; } } if ( 0 < $depth ) { $title = $icon . $title; } return $title; } if ( Astra_Icons::is_svg_icons() ) { add_filter( 'nav_menu_item_title', 'astra_dropdown_icon_to_menu_link', 10, 4 ); } /** * Is theme existing header footer configs enable. * * @since 3.0.0 * * @return boolean true/false. */ function astra_existing_header_footer_configs() { return apply_filters( 'astra_existing_header_footer_configs', true ); } /** * Get Spacing value * * @param array $value Responsive spacing value with unit. * @param string $operation + | - | * | /. * @param string $from Perform operation from the value. * @param string $from_unit Perform operation from the value of unit. * * @since 3.0.0 * @return mixed */ function astra_calculate_spacing( $value, $operation = '', $from = '', $from_unit = '' ) { $css = ''; if ( ! empty( $value ) ) { $css = $value; if ( ! empty( $operation ) && ! empty( $from ) ) { if ( ! empty( $from_unit ) ) { $css = 'calc( ' . $value . ' ' . $operation . ' ' . $from . $from_unit . ' )'; } if ( '*' === $operation || '/' === $operation ) { $css = 'calc( ' . $value . ' ' . $operation . ' ' . $from . ' )'; } } } return $css; } /** * Generate HTML Open markup * * @param string $context unique markup key. * @param array $args { * Contains markup arguments. * @type array attrs Initial attributes to apply to `open` markup. * @type bool echo Flag indicating whether to echo or return the resultant string. * } * @since 3.3.0 * @return mixed */ function astra_markup_open( $context, $args = array() ) { $defaults = array( 'open' => '', 'attrs' => array(), 'echo' => true, 'content' => '', ); $args = wp_parse_args( $args, $defaults ); if ( $context ) { $args = apply_filters( "astra_markup_{$context}_open", $args ); $open_tag = $args['open'] ? sprintf( $args['open'], astra_attr( $context, $args['attrs'] ) ) : ''; if ( $args['echo'] ) { echo $open_tag; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } else { return $open_tag; } } return false; } /** * Generate HTML close markup * * @param string $context unique markup key. * @param array $args { * Contains markup arguments. * @type string close Closing HTML markup. * @type array attrs Initial attributes to apply to `open` markup. * @type bool echo Flag indicating whether to echo or return the resultant string. * } * @since 3.3.0 * @return mixed */ function astra_markup_close( $context, $args = array() ) { $defaults = array( 'close' => '', 'attrs' => array(), 'echo' => true, ); $args = wp_parse_args( $args, $defaults ); if ( $context ) { $args = apply_filters( "astra_markup_{$context}_close", $args ); $close_tag = $args['close']; if ( $args['echo'] ) { echo $close_tag; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } else { return $close_tag; } } return false; } /** * Provision to update display rules for visibility of Related Posts section in Astra. * * @since 3.4.0 * @return bool */ function astra_target_rules_for_related_posts() { $allow_related_posts = false; $supported_post_type = apply_filters( 'astra_related_posts_supported_post_types', 'post' ); if ( astra_get_option( 'enable-related-posts' ) && is_singular( $supported_post_type ) ) { $allow_related_posts = true; } return apply_filters( 'astra_showcase_related_posts', $allow_related_posts ); } /** * Check if elementor plugin is active on the site. * * @since 3.7.0 * @return bool */ function astra_is_elemetor_active() { return class_exists( '\Elementor\Plugin' ); } /** * Check the Astra addon version. * For major update and frequently we used version_compare, added a function for this for easy maintenance. * * @param string $version Astra addon version. * @param string $compare Compare symbols. * @since 3.9.2 */ function astra_addon_check_version( $version, $compare ) { return defined( 'ASTRA_EXT_VER' ) && version_compare( ASTRA_EXT_VER, $version, $compare ); } /** * Get a stylesheet URL for a webfont. * * @since 3.6.0 * * @param string $url The URL of the remote webfont. * @param string $format The font-format. If you need to support IE, change this to "woff". * * @return string Returns the CSS. */ function astra_get_webfont_url( $url, $format = 'woff2' ) { // Check if already Google font URL present or not. Basically avoiding 'Astra_WebFont_Loader' class rendering. /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $astra_font_url = astra_get_option( 'astra_font_url', false ); if ( $astra_font_url ) { return json_decode( $astra_font_url ); } // Now create font URL if its not present. $font = astra_webfont_loader_instance( $url ); $font->set_font_format( $format ); return $font->get_url(); } /** * Get the file preloads. * * @param string $url The URL of the remote webfont. * @param string $format The font-format. If you need to support IE, change this to "woff". */ function astra_load_preload_local_fonts( $url, $format = 'woff2' ) { // Check if cached font files data preset present or not. Basically avoiding 'Astra_WebFont_Loader' class rendering. $astra_local_font_files = get_site_option( 'astra_local_font_files', false ); if ( is_array( $astra_local_font_files ) && ! empty( $astra_local_font_files ) ) { $font_format = apply_filters( 'astra_local_google_fonts_format', $format ); foreach ( $astra_local_font_files as $key => $local_font ) { if ( $local_font ) { echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Preparing HTML link tag. } } return; } // Now preload font data after processing it, as we didn't get stored data. $font = astra_webfont_loader_instance( $url ); $font->set_font_format( $format ); $font->preload_local_fonts(); } /** * Set flag to manage backward compatibility for v3.5.0 earlier users for the transparent header border bottom default value changed. * * @since 3.6.0 */ function astra_get_transparent_header_default_value() { $astra_settings = astra_get_options(); return apply_filters( 'astra_transparent_header_default_border', isset( $astra_settings['transparent-header-default-border'] ) ? $astra_settings['transparent-header-default-border'] : true ); } /** * Check compatibility for content background and typography options. * * @since 3.7.0 */ function astra_has_gcp_typo_preset_compatibility() { if ( defined( 'ASTRA_EXT_VER' ) && version_compare( ASTRA_EXT_VER, '3.6.0', '<' ) ) { return false; } return true; } /** * Check whether user is existing or new to apply the updated default values for button padding & support GB button paddings with global button padding options. * * @since 3.6.3 * @return string */ function astra_button_default_padding_updated() { $astra_settings = astra_get_options(); return apply_filters( 'astra_update_button_padding_defaults', isset( $astra_settings['btn-default-padding-updated'] ) ? $astra_settings['btn-default-padding-updated'] : true ); } /** * Check whether user is existing or new to apply the updated default values for secondary button padding. * * @since 4.5.2 * @return string */ function astra_scndry_btn_default_padding() { $astra_settings = astra_get_options(); return apply_filters( 'astra_update_secondary_button_padding_defaults', isset( $astra_settings['scndry-btn-default-padding'] ) ? $astra_settings['scndry-btn-default-padding'] : true ); } /** * Check is WordPress version is greater than or equal to beta 5.8 version. * * @since 3.6.5 * @return boolean */ function astra_has_widgets_block_editor() { if ( ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '10.6.2', '>' ) ) || version_compare( get_bloginfo( 'version' ), '5.8-alpha', '>=' ) ) { return true; } return false; } /** * Check whether user is exising or new to override the default margin space added to Elementor-TOC widget. * * @since 3.6.7 * @return boolean */ function astra_can_remove_elementor_toc_margin_space() { $astra_settings = astra_get_options(); return apply_filters( 'astra_remove_elementor_toc_margin', isset( $astra_settings['remove-elementor-toc-margin-css'] ) ? false : true ); } /** * Check whether user is exising or new to override the hr tag styling for elementor * * @since 4.3.0 * @return boolean */ function astra_can_add_styling_for_hr() { $astra_settings = astra_get_options(); return apply_filters( 'astra_highlight_elementor_hr_tag', isset( $astra_settings['add-styling-for-hr'] ) ? false : true ); } /** * This will check if user is new and apply global color format. This is to manage backward compatibility for colors. * * @since 3.7.0 * @return boolean false if it is an existing user, true for new user. */ function astra_has_global_color_format_support() { $astra_settings = astra_get_options(); return apply_filters( 'astra_apply_global_color_format_support', isset( $astra_settings['support-global-color-format'] ) ? false : true ); } /** * Get Global Color Palettes * * @return array color palettes array. * @since 3.7.0 */ function astra_get_palette_colors() { return get_option( 'astra-color-palettes', apply_filters( 'astra_global_color_palette', Astra_Global_Palette::get_default_color_palette() ) ); } /** * Get typography presets data. * * @return array Typography Presets data array. * @since 3.7.0 */ function astra_get_typography_presets() { return get_option( 'astra-typography-presets', '' ); } /** * Clear Astra + Astra Pro assets cache. * * @since 3.6.9 * @return void */ function astra_clear_theme_addon_asset_cache() { astra_clear_all_assets_cache(); } add_action( 'astra_theme_update_after', 'astra_clear_theme_addon_asset_cache', 10 ); /** * Check if Theme Global Colors need to be disable in Elementor global color settings. * * @since 3.7.4 * @return bool */ function astra_maybe_disable_global_color_in_elementor() { return apply_filters( 'astra_disable_global_colors_in_elementor', false ); } /** * Check is Elementor Pro version is greater than or equal to beta 3.5 version. * * @since 3.7.5 * @return boolean */ function astra_check_elementor_pro_3_5_version() { if ( defined( 'ELEMENTOR_PRO_VERSION' ) && version_compare( ELEMENTOR_PRO_VERSION, '3.5', '>=' ) ) { return true; } return false; } /** * Should Content BG settings apply to Fullwidth Contained/Stretched layout or not? * * Do not apply content background to fullwidth layouts in following cases - * 1. For backward compatibility. * 2. When site layout is Max-width. * 3. When site layout is Padded. * * @since 3.7.8 * @return boolean */ function astra_apply_content_background_fullwidth_layouts() { $astra_site_layout = astra_get_option( 'site-layout' ); $astra_apply_content_background = astra_get_option( 'apply-content-background-fullwidth-layouts', true ); return ( $astra_apply_content_background && 'ast-box-layout' !== $astra_site_layout && 'ast-padded-layout' !== $astra_site_layout ); } /** * Search Component static CSS. * * @return string * @since 3.5.0 */ function astra_search_static_css() { $search_css = ' .main-header-bar .main-header-bar-navigation .ast-search-icon { display: block; z-index: 4; position: relative; } .ast-search-icon .ast-icon { z-index: 4; } .ast-search-icon { z-index: 4; position: relative; line-height: normal; } .main-header-bar .ast-search-menu-icon .search-form { background-color: #ffffff; } .ast-search-menu-icon.ast-dropdown-active.slide-search .search-form { visibility: visible; opacity: 1; } .ast-search-menu-icon .search-form { border: 1px solid #e7e7e7; line-height: normal; padding: 0 3em 0 0; border-radius: 2px; display: inline-block; -webkit-backface-visibility: hidden; backface-visibility: hidden; position: relative; color: inherit; background-color: #fff; } .ast-search-menu-icon .astra-search-icon { -js-display: flex; display: flex; line-height: normal; } .ast-search-menu-icon .astra-search-icon:focus { outline: none; } .ast-search-menu-icon .search-field { border: none; background-color: transparent; transition: all .3s; border-radius: inherit; color: inherit; font-size: inherit; width: 0; color: #757575; } .ast-search-menu-icon .search-submit { display: none; background: none; border: none; font-size: 1.3em; color: #757575; } .ast-search-menu-icon.ast-dropdown-active { visibility: visible; opacity: 1; position: relative; } .ast-search-menu-icon.ast-dropdown-active .search-field, .ast-dropdown-active.ast-search-menu-icon.slide-search input.search-field { width: 235px; } .ast-header-search .ast-search-menu-icon.slide-search .search-form, .ast-header-search .ast-search-menu-icon.ast-inline-search .search-form { -js-display: flex; display: flex; align-items: center; }'; if ( is_rtl() ) { $search_css .= ' .ast-search-menu-icon.ast-inline-search .search-field { width : 100%; padding : 0.60em; padding-left : 5.5em; transition: all 0.2s; } .site-header-section-left .ast-search-menu-icon.slide-search .search-form { padding-right: 2em; padding-left: unset; right: -1em; left: unset; } .site-header-section-left .ast-search-menu-icon.slide-search .search-form .search-field { margin-left: unset; } .ast-search-menu-icon.slide-search .search-form { -webkit-backface-visibility: visible; backface-visibility: visible; visibility: hidden; opacity: 0; transition: all .2s; position: absolute; z-index: 3; left: -1em; top: 50%; transform: translateY(-50%); }'; } else { $search_css .= ' .ast-search-menu-icon.ast-inline-search .search-field { width : 100%; padding : 0.60em; padding-right : 5.5em; transition: all 0.2s; } .site-header-section-left .ast-search-menu-icon.slide-search .search-form { padding-left: 2em; padding-right: unset; left: -1em; right: unset; } .site-header-section-left .ast-search-menu-icon.slide-search .search-form .search-field { margin-right: unset; } .ast-search-menu-icon.slide-search .search-form { -webkit-backface-visibility: visible; backface-visibility: visible; visibility: hidden; opacity: 0; transition: all .2s; position: absolute; z-index: 3; right: -1em; top: 50%; transform: translateY(-50%); }'; } return Astra_Enqueue_Scripts::trim_css( $search_css ); } /** * Showcase "Upgrade to Pro" notices for Astra & here is the filter work as central control to enable/disable those notices from customizer, meta settings, admin area, pro post types pages. * * @since 3.9.4 * @return bool */ function astra_showcase_upgrade_notices() { return ( ! defined( 'ASTRA_EXT_VER' ) && astra_get_option( 'ast-disable-upgrade-notices', true ) ) ? true : false; } /** * Function which will return CSS for font-extras control. * It includes - line-height, letter-spacing, text-decoration, font-style. * * @param array $config contains extra font settings. * @param string $setting basis on this setting will return. * @param mixed $unit Unit. * * @since 4.0.0 */ function astra_get_font_extras( $config, $setting, $unit = false ) { $css = isset( $config[ $setting ] ) ? $config[ $setting ] : ''; if ( $unit && $css ) { $unit_val = isset( $config[ $unit ] ) ? $config[ $unit ] : ''; $unit_val = 'line-height-unit' === $unit ? apply_filters( 'astra_font_line_height_unit', $unit_val ) : $unit_val; $css .= $unit_val; } return $css; } /** * Function which will return CSS array for font specific props for further parsing CSS. * It includes - font-family, font-weight, font-size, line-height, text-transform, letter-spacing, text-decoration, color (optional). * * @param string $font_family Font family. * @param string $font_weight Font weight. * @param array $font_size Font size. * @param string $font_extras contains all font controls. * @param string $color In most of cases color is also added, so included optional param here. * @return array array of build CSS font settings. * * @since 4.0.0 */ function astra_get_font_array_css( $font_family, $font_weight, $font_size, $font_extras, $color = '' ) { $font_extras_ast_option = astra_get_option( $font_extras, array( 'line-height' => '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => '', 'text-decoration' => '', ) ); return array( 'color' => esc_attr( $color ), 'font-family' => astra_get_css_value( $font_family, 'font' ), 'font-weight' => astra_get_css_value( $font_weight, 'font' ), 'font-size' => ! empty( $font_size ) ? astra_responsive_font( $font_size, 'desktop' ) : '', 'line-height' => astra_get_font_extras( $font_extras_ast_option, 'line-height', 'line-height-unit' ), 'text-transform' => astra_get_font_extras( $font_extras_ast_option, 'text-transform' ), 'letter-spacing' => astra_get_font_extras( $font_extras_ast_option, 'letter-spacing', 'letter-spacing-unit' ), 'text-decoration' => astra_get_font_extras( $font_extras_ast_option, 'text-decoration' ), ); } /** * Return the array of site's available image size. * * @param boolean $add_custom Add custom image size. * @since 4.4.0 * @return array */ function astra_get_site_image_sizes( $add_custom = false ) { $image_sizes = array( 'thumbnail' => esc_html__( 'Thumbnail', 'astra' ), 'medium' => esc_html__( 'Medium', 'astra' ), 'medium_large' => esc_html__( 'Medium Large', 'astra' ), 'large' => esc_html__( 'Large', 'astra' ), 'full' => esc_html__( 'Full Size', 'astra' ), ); // Gets the available intermediate image size names on site. $all_sizes = get_intermediate_image_sizes(); // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.get_intermediate_image_sizes_get_intermediate_image_sizes -- Required for image sizes to work. $refactored_sizes = array( 'full' => esc_html__( 'Full Size', 'astra' ), ); foreach ( $all_sizes as $size ) { if ( isset( $image_sizes[ $size ] ) ) { $refactored_sizes[ $size ] = $image_sizes[ $size ]; } else { $refactored_sizes[ $size ] = $size; } } /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( $add_custom && defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'blog-pro' ) ) { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $refactored_sizes['custom'] = esc_html__( 'Custom', 'astra' ); } return $refactored_sizes; } /** * Return the aspect-ratio for dynamic image. * * @param string $aspect_ratio_type Aspect ratio type. * @param string $predefined_scale Predefined scale. * @param string $custom_scale_width Custom scale width. * @param string $custom_scale_height Custom scale height. * * @since 4.4.0 * @return string */ function astra_get_dynamic_image_aspect_ratio( $aspect_ratio_type, $predefined_scale, $custom_scale_width, $custom_scale_height ) { switch ( $aspect_ratio_type ) { case 'predefined': return $predefined_scale; case 'custom': return absint( $custom_scale_width ) . '/' . absint( $custom_scale_height ); } return ''; } /** * Getting site active language & compatible with other plugins. * * @since 4.4.0 * @return string */ function astra_get_current_language_slug() { $lang = ''; if ( function_exists( 'pll_current_language' ) ) { $lang = pll_current_language(); } return apply_filters( 'astra_addon_site_current_language', $lang ); } /** * Function which will return the supported post types from core. * * Further processing includes: * 1. Dynamic customizer * 2. Live Search * * @since 4.4.0 * @return array */ function astra_get_queried_post_types() { $queried_post_types = array_keys( get_post_types( apply_filters( 'astra_dynamic_get_post_types_query_args', array( 'public' => true, '_builtin' => false, ) ) ) ); $queried_post_types = array_diff( $queried_post_types, array( 'astra-advanced-hook', 'astra_adv_header', 'elementor_library', 'brizy_template', 'course', 'lesson', 'llms_membership', 'tutor_quiz', 'tutor_assignments', 'testimonial', 'frm_display', 'mec_esb', 'mec-events', 'sfwd-assignment', 'sfwd-essays', 'sfwd-transactions', 'sfwd-certificates', 'sfwd-quiz', 'e-landing-page', ) ); $queried_post_types[] = 'post'; $queried_post_types[] = 'page'; return $queried_post_types; } /** * Get Global Color Palette's presets * * @return array color presets array. * @since 4.5.0 */ function astra_get_palette_presets() { $color_palette_reorganize = Astra_Dynamic_CSS::astra_4_8_0_compatibility(); return array( 'preset_1' => array( '#0067FF', '#005EE9', '#0F172A', '#364151', $color_palette_reorganize ? '#FFFFFF' : '#E7F6FF', $color_palette_reorganize ? '#E7F6FF' : '#FFFFFF', $color_palette_reorganize ? '#070614' : '#D1DAE5', $color_palette_reorganize ? '#D1DAE5' : '#070614', '#222222', ), 'preset_2' => array( '#6528F7', '#5511F8', '#0F172A', '#454F5E', $color_palette_reorganize ? '#FFFFFF' : '#F2F0FE', $color_palette_reorganize ? '#F2F0FE' : '#FFFFFF', $color_palette_reorganize ? '#0D0614' : '#D8D8F5', $color_palette_reorganize ? '#D8D8F5' : '#0D0614', '#222222', ), 'preset_3' => array( '#DD183B', '#CC1939', '#0F172A', '#3A3A3A', $color_palette_reorganize ? '#FFFFFF' : '#FFEDE6', $color_palette_reorganize ? '#FFEDE6' : '#FFFFFF', $color_palette_reorganize ? '#140609' : '#FFD1BF', $color_palette_reorganize ? '#FFD1BF' : '#140609', '#222222', ), 'preset_4' => array( '#54B435', '#379237', '#0F172A', '#2F3B40', $color_palette_reorganize ? '#FFFFFF' : '#EDFBE2', $color_palette_reorganize ? '#EDFBE2' : '#FFFFFF', $color_palette_reorganize ? '#0C1406' : '#D5EAD8', $color_palette_reorganize ? '#D5EAD8' : '#0C1406', '#222222', ), 'preset_5' => array( '#DCA54A', '#D09A40', '#0F172A', '#4A4A4A', $color_palette_reorganize ? '#FFFFFF' : '#FAF5E5', $color_palette_reorganize ? '#FAF5E5' : '#FFFFFF', $color_palette_reorganize ? '#141004' : '#F0E6C5', $color_palette_reorganize ? '#F0E6C5' : '#141004', '#222222', ), 'preset_6' => array( '#FB5FAB', '#EA559D', '#0F172A', '#454F5E', $color_palette_reorganize ? '#FFFFFF' : '#FCEEF5', $color_palette_reorganize ? '#FCEEF5' : '#FFFFFF', $color_palette_reorganize ? '#140610' : '#FAD8E9', $color_palette_reorganize ? '#FAD8E9' : '#140610', '#222222', ), 'preset_7' => array( '#1B9C85', '#178E79', '#0F172A', '#454F5E', $color_palette_reorganize ? '#FFFFFF' : '#EDF6EE', $color_palette_reorganize ? '#EDF6EE' : '#FFFFFF', $color_palette_reorganize ? '#06140C' : '#D4F3D7', $color_palette_reorganize ? '#D4F3D7' : '#06140C', '#222222', ), 'preset_8' => array( '#FD9800', '#E98C00', '#0F172A', '#454F5E', $color_palette_reorganize ? '#FFFFFF' : '#FEF9E1', $color_palette_reorganize ? '#FEF9E1' : '#FFFFFF', $color_palette_reorganize ? '#141006' : '#F9F0C8', $color_palette_reorganize ? '#F9F0C8' : '#141006', '#222222', ), 'preset_9' => array( '#FF6210', '#F15808', '#1C0D0A', '#353535', $color_palette_reorganize ? '#FFFFFF' : '#FEF1E4', $color_palette_reorganize ? '#FEF1E4' : '#FFFFFF', $color_palette_reorganize ? '#140B06' : '#E5D7D1', $color_palette_reorganize ? '#E5D7D1' : '#140B06', '#222222', ), 'preset_10' => array( '#737880', '#65696F', '#151616', '#393C40', $color_palette_reorganize ? '#FFFFFF' : '#F6F6F6', $color_palette_reorganize ? '#F6F6F6' : '#FFFFFF', $color_palette_reorganize ? '#232529' : '#F1F0F0', $color_palette_reorganize ? '#F1F0F0' : '#232529', '#222222', ), ); } /** * Get Astra blog layout design. * Search / Blog. * * @return string $blog_layout. * @since 4.6.0 */ function astra_get_blog_layout() { return ( is_search() && '' !== astra_get_option( 'ast-search-results-style' ) ) ? astra_get_option( 'ast-search-results-style' ) : astra_get_option( 'blog-layout' ); } /** * Get Astra blog posts per page count. * Search / Blog. * * @return int $blog_layout. * @since 4.6.0 */ function astra_get_blog_posts_per_page() { return ( is_search() && astra_get_option( 'ast-search-results-per-page' ) ) ? astra_get_option( 'ast-search-results-per-page' ) : astra_get_option( 'blog-post-per-page' ); } /** * Get the remote WP-Astra docs data. * * @since 4.6.0 */ function astra_remote_docs_data() { $astra_docs_instance = astra_docs_loader_instance( ASTRA_WEBSITE_BASE_URL . '/wp-json/powerful-docs/v1/get-docs', 'astra-docs' ); return json_decode( $astra_docs_instance->get_remote_data() ); } /** * Post types for live search. * * @since 4.4.0 */ function astra_customizer_live_search_posttypes() { $supported_post_types = array(); if ( is_customize_preview() ) { $supported_post_types = astra_get_queried_post_types(); } return apply_filters( 'astra_live_search_posttypes', $supported_post_types ); } /** * Get formatted live search post types. * * @since 4.4.0 * @return array */ function astra_customizer_search_post_types_choices() { $all_post_types = astra_customizer_live_search_posttypes(); $post_type_choices = array(); foreach ( $all_post_types as $post_type ) { $post_type_object = get_post_type_object( $post_type ); /** @psalm-suppress PossiblyNullPropertyFetch */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $post_type_choices[ $post_type ] = ! empty( $post_type_object->labels->name ) ? $post_type_object->labels->name : $post_type; /** @psalm-suppress PossiblyNullPropertyFetch */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort } return $post_type_choices; } /** * Adding backward compatibility fag to manage EDD featured image by default state. * * @since 4.7.0 * @return bool */ function astra_enable_edd_featured_image_defaults() { $astra_settings = astra_get_options(); return apply_filters( 'astra_enable_edd_featured_image_defaults', isset( $astra_settings['can-update-edd-featured-image-default'] ) ? false : true ); } PKGmZ3 widgets.phpnu[ $tag ) { if ( get_queried_object_id() === (int) $tags_data[ $key ]['id'] ) { $tags_data[ $key ]['class'] = $tags_data[ $key ]['class'] . ' current-item'; } } } return apply_filters( 'astra_filter_widget_tag_cloud', $tags_data ); } add_filter( 'wp_generate_tag_cloud_data', 'astra_filter_widget_tag_cloud' ); endif; /** * Register widget area. */ if ( ! function_exists( 'astra_widgets_init' ) ) : /** * Register widget area. * * @see https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function astra_widgets_init() { $default_args = array( 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ); /** * Register Main Sidebar */ register_sidebar( apply_filters( 'astra_widgets_init', array( 'name' => esc_html__( 'Main Sidebar', 'astra' ), 'id' => 'sidebar-1', ) + $default_args ) ); /** * Register Header Widgets area */ register_sidebar( apply_filters( 'astra_header_widgets_init', array( 'name' => esc_html__( 'Header', 'astra' ), 'id' => 'header-widget', ) + $default_args ) ); /** * Register Footer Bar Widgets area */ register_sidebar( apply_filters( 'astra_footer_1_widgets_init', array( 'name' => esc_html__( 'Footer Bar Section 1', 'astra' ), 'id' => 'footer-widget-1', ) + $default_args ) ); register_sidebar( apply_filters( 'astra_footer_2_widgets_init', array( 'name' => esc_html__( 'Footer Bar Section 2', 'astra' ), 'id' => 'footer-widget-2', ) + $default_args ) ); /** * Register Footer Widgets area */ $default_args['before_widget'] = '
'; $default_args['after_widget'] = '
'; register_sidebar( apply_filters( 'astra_advanced_footer_widget_1_args', array( 'name' => esc_html__( 'Footer Widget Area 1', 'astra' ), 'id' => 'advanced-footer-widget-1', ) + $default_args ) ); register_sidebar( apply_filters( 'astra_advanced_footer_widget_2_args', array( 'name' => esc_html__( 'Footer Widget Area 2', 'astra' ), 'id' => 'advanced-footer-widget-2', ) + $default_args ) ); register_sidebar( apply_filters( 'astra_advanced_footer_widget_3_args', array( 'name' => esc_html__( 'Footer Widget Area 3', 'astra' ), 'id' => 'advanced-footer-widget-3', ) + $default_args ) ); register_sidebar( apply_filters( 'astra_advanced_footer_widget_4_args', array( 'name' => esc_html__( 'Footer Widget Area 4', 'astra' ), 'id' => 'advanced-footer-widget-4', ) + $default_args ) ); } add_action( 'widgets_init', 'astra_widgets_init' ); endif; PKJmZ6U-*-*5theme-update/class-astra-theme-background-updater.phpnu[ array( 'astra_theme_background_updater_4_0_0', ), '4.0.2' => array( 'astra_theme_background_updater_4_0_2', ), '4.1.0' => array( 'astra_theme_background_updater_4_1_0', ), '4.1.4' => array( 'astra_theme_background_updater_4_1_4', ), '4.1.6' => array( 'astra_theme_background_updater_4_1_6', ), '4.1.7' => array( 'astra_theme_background_updater_4_1_7', ), '4.2.0' => array( 'astra_theme_background_updater_4_2_0', ), '4.2.2' => array( 'astra_theme_background_updater_4_2_2', ), '4.4.0' => array( 'astra_theme_background_updater_4_4_0', ), '4.5.0' => array( 'astra_theme_background_updater_4_5_0', ), '4.5.2' => array( 'astra_theme_background_updater_4_5_2', ), '4.6.0' => array( 'astra_theme_background_updater_4_6_0', ), '4.6.2' => array( 'astra_theme_background_updater_4_6_2', ), '4.6.4' => array( 'astra_theme_background_updater_4_6_4', ), '4.6.5' => array( 'astra_theme_background_updater_4_6_5', ), '4.6.6' => array( 'astra_theme_background_updater_4_6_6', ), '4.6.11' => array( 'astra_theme_background_updater_4_6_11', ), '4.6.12' => array( 'astra_theme_background_updater_4_6_12', ), '4.6.14' => array( 'astra_theme_background_updater_4_6_14', ), '4.7.0' => array( 'astra_theme_background_updater_4_7_0', ), '4.7.1' => array( 'astra_theme_background_updater_4_7_1', ), '4.8.0' => array( 'astra_theme_background_updater_4_8_0', ), '4.8.2' => array( 'astra_theme_background_updater_4_8_2', ), '4.8.4' => array( 'astra_theme_background_updater_4_8_4', ), '4.8.7' => array( 'astra_theme_background_updater_4_8_7', ), '4.8.9' => array( 'astra_theme_background_updater_4_8_9', ), '4.8.10' => array( 'astra_theme_background_updater_4_8_10', ), ); /** * Constructor */ public function __construct() { // Theme Updates. if ( is_admin() ) { add_action( 'admin_init', array( $this, 'install_actions' ) ); } else { add_action( 'wp', array( $this, 'install_actions' ) ); } // Core Helpers - Batch Processing. require_once ASTRA_THEME_DIR . 'inc/lib/batch-processing/class-astra-wp-async-request.php';// phpcs:ignore: WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound require_once ASTRA_THEME_DIR . 'inc/lib/batch-processing/class-astra-wp-background-process.php';// phpcs:ignore: WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound require_once ASTRA_THEME_DIR . 'inc/theme-update/class-astra-theme-wp-background-process.php';// phpcs:ignore: WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound self::$background_updater = new Astra_Theme_WP_Background_Process(); } /** * Check Cron Status * * Gets the current cron status by performing a test spawn. Cached for one hour when all is well. * * @since 2.3.0 * * @return bool true if there is a problem spawning a call to WP-Cron system, else false. */ public function test_cron() { global $wp_version; if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) { return true; } if ( defined( 'ALTERNATE_WP_CRON' ) && ALTERNATE_WP_CRON ) { return true; } $cached_status = get_transient( 'astra-theme-cron-test-ok' ); if ( $cached_status ) { return false; } $sslverify = version_compare( $wp_version, 4.0, '<' ); $doing_wp_cron = sprintf( '%.22F', microtime( true ) ); $cron_request = apply_filters( 'cron_request', // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound array( 'url' => site_url( 'wp-cron.php?doing_wp_cron=' . $doing_wp_cron ), 'args' => array( 'timeout' => 3, 'blocking' => true, 'sslverify' => apply_filters( 'https_local_ssl_verify', $sslverify ), // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound ), ) ); $result = wp_remote_post( $cron_request['url'], $cron_request['args'] ); if ( wp_remote_retrieve_response_code( $result ) >= 300 ) { return true; } set_transient( 'astra-theme-cron-test-ok', 1, 3600 ); return false; } /** * Install actions when a update button is clicked within the admin area. * * This function is hooked into admin_init to affect admin and wp to affect the frontend. */ public function install_actions() { do_action( 'astra_update_initiated', self::$background_updater ); if ( true === $this->is_new_install() ) { self::update_db_version(); return; } $fallback = $this->test_cron(); $db_migrated = $this->check_if_data_migrated(); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $is_queue_running = astra_get_option( 'is_theme_queue_running', false ); $fallback = ( $db_migrated ) ? $db_migrated : $fallback; if ( $this->needs_db_update() && ! $is_queue_running ) { $this->update( $fallback ); } else { if ( ! $is_queue_running ) { self::update_db_version(); } } } /** * Is this a brand new theme install? * * @since 2.1.3 * @return boolean */ public function is_new_install() { // Get auto saved version number. /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $saved_version = astra_get_option( 'theme-auto-version', false ); if ( false === $saved_version ) { return true; } return false; } /** * Is a DB update needed? * * @since 2.1.3 * @return boolean */ private function needs_db_update() { $current_theme_version = astra_get_option( 'theme-auto-version', null ); $updates = $this->get_db_update_callbacks(); if ( empty( $updates ) ) { return false; } $versions = array_keys( $updates ); $latest = $versions[ count( $versions ) - 1 ]; return ! is_null( $current_theme_version ) && version_compare( $current_theme_version, $latest, '<' ); } /** * Get list of DB update callbacks. * * @since 2.1.3 * @return array */ public function get_db_update_callbacks() { return self::$db_updates; } /** * Check if database is migrated * * @since 2.3.1 * * @return true If the database migration should not be run through CRON. */ public function check_if_data_migrated() { $fallback = false; $is_db_version_updated = $this->is_db_version_updated(); /** @psalm-suppress DocblockTypeContradiction */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( ! $is_db_version_updated ) { $db_migrated = get_transient( 'astra-theme-db-migrated' ); if ( ! $db_migrated ) { $db_migrated = array(); } array_push( $db_migrated, $is_db_version_updated ); set_transient( 'astra-theme-db-migrated', $db_migrated, 3600 ); $db_migrate_count = count( $db_migrated ); if ( $db_migrate_count >= 5 ) { astra_delete_option( 'is_theme_queue_running' ); $fallback = true; } } return $fallback; } /** * Checks if astra addon version is updated in the database * * @since 2.3.1 * * @return true if astra addon version is updated. */ public function is_db_version_updated() { // Get auto saved version number. /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $saved_version = astra_get_option( 'theme-auto-version', false ); return version_compare( $saved_version, ASTRA_THEME_VERSION, '=' ); } /** * Push all needed DB updates to the queue for processing. * * @param bool $fallback Fallback migration. * * @return void */ private function update( $fallback ) { $current_db_version = astra_get_option( 'theme-auto-version' ); if ( count( $this->get_db_update_callbacks() ) > 0 ) { foreach ( $this->get_db_update_callbacks() as $version => $update_callbacks ) { if ( version_compare( $current_db_version, $version, '<' ) ) { foreach ( $update_callbacks as $update_callback ) { if ( $fallback ) { call_user_func( $update_callback ); } else { self::$background_updater->push_to_queue( $update_callback ); } } } } if ( $fallback ) { self::update_db_version(); } else { astra_update_option( 'is_theme_queue_running', true ); self::$background_updater->push_to_queue( 'update_db_version' ); } } else { self::$background_updater->push_to_queue( 'update_db_version' ); } self::$background_updater->save()->dispatch(); } /** * Update DB version to current. * * @param string|null $version New Astra theme version or null. */ public static function update_db_version( $version = null ) { do_action( 'astra_theme_update_before' ); // Get auto saved version number. /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $saved_version = astra_get_option( 'theme-auto-version', false ); if ( false === $saved_version ) { $saved_version = ASTRA_THEME_VERSION; // Update auto saved version number. astra_update_option( 'theme-auto-version', ASTRA_THEME_VERSION ); } // If equals then return. if ( version_compare( $saved_version, ASTRA_THEME_VERSION, '=' ) ) { astra_update_option( 'is_theme_queue_running', false ); return; } // Not have stored? if ( empty( $saved_version ) ) { // Get old version. $theme_version = get_option( '_astra_auto_version', ASTRA_THEME_VERSION ); // Remove option. delete_option( '_astra_auto_version' ); } else { // Get latest version. $theme_version = ASTRA_THEME_VERSION; } // Update auto saved version number. astra_update_option( 'theme-auto-version', $theme_version ); astra_update_option( 'is_theme_queue_running', false ); // Update variables. Astra_Theme_Options::refresh(); delete_transient( 'astra-addon-db-migrated' ); do_action( 'astra_theme_update_after' ); } } } /** * Kicking this off by creating a new instance */ new Astra_Theme_Background_Updater(); PKLmZ-'theme-update/astra-update-functions.phpnu[refresh_assets( 'astra' ); // Clear Astra Addon's static and dynamic CSS asset cache. $astra_addon_cache_base_instance = new Astra_Cache_Base( 'astra-addon' ); $astra_addon_cache_base_instance->refresh_assets( 'astra-addon' ); } /** * 4.0.0 backward handling part. * * 1. Migrate existing setting & do required onboarding for new admin dashboard v4.0.0 app. * 2. Migrating Post Structure & Meta options in title area meta parts. * * @since 4.0.0 * @return void */ function astra_theme_background_updater_4_0_0() { // Dynamic customizer migration starts here. $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['dynamic-blog-layouts'] ) && ! isset( $theme_options['theme-dynamic-customizer-support'] ) ) { $theme_options['dynamic-blog-layouts'] = false; $theme_options['theme-dynamic-customizer-support'] = true; $post_types = Astra_Posts_Structure_Loader::get_supported_post_types(); // Archive summary box compatibility. $archive_title_font_size = array( 'desktop' => isset( $theme_options['font-size-archive-summary-title']['desktop'] ) ? $theme_options['font-size-archive-summary-title']['desktop'] : 40, 'tablet' => isset( $theme_options['font-size-archive-summary-title']['tablet'] ) ? $theme_options['font-size-archive-summary-title']['tablet'] : '', 'mobile' => isset( $theme_options['font-size-archive-summary-title']['mobile'] ) ? $theme_options['font-size-archive-summary-title']['mobile'] : '', 'desktop-unit' => isset( $theme_options['font-size-archive-summary-title']['desktop-unit'] ) ? $theme_options['font-size-archive-summary-title']['desktop-unit'] : 'px', 'tablet-unit' => isset( $theme_options['font-size-archive-summary-title']['tablet-unit'] ) ? $theme_options['font-size-archive-summary-title']['tablet-unit'] : 'px', 'mobile-unit' => isset( $theme_options['font-size-archive-summary-title']['mobile-unit'] ) ? $theme_options['font-size-archive-summary-title']['mobile-unit'] : 'px', ); $single_title_font_size = array( 'desktop' => isset( $theme_options['font-size-entry-title']['desktop'] ) ? $theme_options['font-size-entry-title']['desktop'] : '', 'tablet' => isset( $theme_options['font-size-entry-title']['tablet'] ) ? $theme_options['font-size-entry-title']['tablet'] : '', 'mobile' => isset( $theme_options['font-size-entry-title']['mobile'] ) ? $theme_options['font-size-entry-title']['mobile'] : '', 'desktop-unit' => isset( $theme_options['font-size-entry-title']['desktop-unit'] ) ? $theme_options['font-size-entry-title']['desktop-unit'] : 'px', 'tablet-unit' => isset( $theme_options['font-size-entry-title']['tablet-unit'] ) ? $theme_options['font-size-entry-title']['tablet-unit'] : 'px', 'mobile-unit' => isset( $theme_options['font-size-entry-title']['mobile-unit'] ) ? $theme_options['font-size-entry-title']['mobile-unit'] : 'px', ); $archive_summary_box_bg = array( 'desktop' => array( 'background-color' => ! empty( $theme_options['archive-summary-box-bg-color'] ) ? $theme_options['archive-summary-box-bg-color'] : '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', ), 'tablet' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', ), 'mobile' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', ), ); // Single post structure. foreach ( $post_types as $index => $post_type ) { /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $single_post_structure = isset( $theme_options['blog-single-post-structure'] ) ? $theme_options['blog-single-post-structure'] : array( 'single-image', 'single-title-meta' ); /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $migrated_post_structure = array(); if ( ! empty( $single_post_structure ) ) { /** @psalm-suppress PossiblyInvalidIterator */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort foreach ( $single_post_structure as $key ) { /** @psalm-suppress PossiblyInvalidIterator */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( 'single-title-meta' === $key ) { $migrated_post_structure[] = 'ast-dynamic-single-' . esc_attr( $post_type ) . '-title'; if ( 'post' === $post_type ) { $migrated_post_structure[] = 'ast-dynamic-single-' . esc_attr( $post_type ) . '-meta'; } } if ( 'single-image' === $key ) { $migrated_post_structure[] = 'ast-dynamic-single-' . esc_attr( $post_type ) . '-image'; } } $theme_options[ 'ast-dynamic-single-' . esc_attr( $post_type ) . '-structure' ] = $migrated_post_structure; } // Single post meta. /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $single_post_meta = isset( $theme_options['blog-single-meta'] ) ? $theme_options['blog-single-meta'] : array( 'comments', 'category', 'author' ); /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $migrated_post_metadata = array(); if ( ! empty( $single_post_meta ) ) { $tax_counter = 0; $tax_slug = 'ast-dynamic-single-' . esc_attr( $post_type ) . '-taxonomy'; /** @psalm-suppress PossiblyInvalidIterator */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort foreach ( $single_post_meta as $key ) { /** @psalm-suppress PossiblyInvalidIterator */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort switch ( $key ) { case 'author': $migrated_post_metadata[] = 'author'; break; case 'date': $migrated_post_metadata[] = 'date'; break; case 'comments': $migrated_post_metadata[] = 'comments'; break; case 'category': if ( 'post' === $post_type ) { $migrated_post_metadata[] = $tax_slug; $theme_options[ $tax_slug ] = 'category'; $tax_counter = ++$tax_counter; $tax_slug = 'ast-dynamic-single-' . esc_attr( $post_type ) . '-taxonomy-' . $tax_counter; } break; case 'tag': if ( 'post' === $post_type ) { $migrated_post_metadata[] = $tax_slug; $theme_options[ $tax_slug ] = 'post_tag'; $tax_counter = ++$tax_counter; $tax_slug = 'ast-dynamic-single-' . esc_attr( $post_type ) . '-taxonomy-' . $tax_counter; } break; default: break; } } $theme_options[ 'ast-dynamic-single-' . esc_attr( $post_type ) . '-metadata' ] = $migrated_post_metadata; } // Archive layout compatibilities. $archive_banner_layout = ( class_exists( 'WooCommerce' ) && 'product' === $post_type ) ? false : true; // Setting WooCommerce archive option disabled as WC already added their header content on archive. $theme_options[ 'ast-archive-' . esc_attr( $post_type ) . '-title' ] = $archive_banner_layout; // Single layout compatibilities. $single_banner_layout = ( class_exists( 'WooCommerce' ) && 'product' === $post_type ) ? false : true; // Setting WC single option disabled as there is no any header set from default WooCommerce. $theme_options[ 'ast-single-' . esc_attr( $post_type ) . '-title' ] = $single_banner_layout; // BG color support. $theme_options[ 'ast-dynamic-archive-' . esc_attr( $post_type ) . '-banner-image-type' ] = ! empty( $theme_options['archive-summary-box-bg-color'] ) ? 'custom' : 'none'; $theme_options[ 'ast-dynamic-archive-' . esc_attr( $post_type ) . '-banner-custom-bg' ] = $archive_summary_box_bg; // Archive title font support. /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $theme_options[ 'ast-dynamic-archive-' . esc_attr( $post_type ) . '-title-font-family' ] = ! empty( $theme_options['font-family-archive-summary-title'] ) ? $theme_options['font-family-archive-summary-title'] : ''; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $theme_options[ 'ast-dynamic-archive-' . esc_attr( $post_type ) . '-title-font-size' ] = $archive_title_font_size; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $theme_options[ 'ast-dynamic-archive-' . esc_attr( $post_type ) . '-title-font-weight' ] = ! empty( $theme_options['font-weight-archive-summary-title'] ) ? $theme_options['font-weight-archive-summary-title'] : ''; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $archive_dynamic_line_height = ! empty( $theme_options['line-height-archive-summary-title'] ) ? $theme_options['line-height-archive-summary-title'] : ''; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $archive_dynamic_text_transform = ! empty( $theme_options['text-transform-archive-summary-title'] ) ? $theme_options['text-transform-archive-summary-title'] : ''; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $theme_options[ 'ast-dynamic-archive-' . esc_attr( $post_type ) . '-title-font-extras' ] = array( 'line-height' => $archive_dynamic_line_height, 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => $archive_dynamic_text_transform, 'text-decoration' => '', ); // Archive title colors support. /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $theme_options[ 'ast-dynamic-archive-' . esc_attr( $post_type ) . '-banner-title-color' ] = ! empty( $theme_options['archive-summary-box-title-color'] ) ? $theme_options['archive-summary-box-title-color'] : ''; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $theme_options[ 'ast-dynamic-archive-' . esc_attr( $post_type ) . '-banner-text-color' ] = ! empty( $theme_options['archive-summary-box-text-color'] ) ? $theme_options['archive-summary-box-text-color'] : ''; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort // Single title colors support. /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $theme_options[ 'ast-dynamic-single-' . esc_attr( $post_type ) . '-banner-title-color' ] = ! empty( $theme_options['entry-title-color'] ) ? $theme_options['entry-title-color'] : ''; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort // Single title font support. /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $theme_options[ 'ast-dynamic-single-' . esc_attr( $post_type ) . '-title-font-family' ] = ! empty( $theme_options['font-family-entry-title'] ) ? $theme_options['font-family-entry-title'] : ''; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $theme_options[ 'ast-dynamic-single-' . esc_attr( $post_type ) . '-title-font-size' ] = $single_title_font_size; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $theme_options[ 'ast-dynamic-single-' . esc_attr( $post_type ) . '-title-font-weight' ] = ! empty( $theme_options['font-weight-entry-title'] ) ? $theme_options['font-weight-entry-title'] : ''; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $single_dynamic_line_height = ! empty( $theme_options['line-height-entry-title'] ) ? $theme_options['line-height-entry-title'] : ''; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $single_dynamic_text_transform = ! empty( $theme_options['text-transform-entry-title'] ) ? $theme_options['text-transform-entry-title'] : ''; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $theme_options[ 'ast-dynamic-single-' . esc_attr( $post_type ) . '-title-font-extras' ] = array( 'line-height' => $single_dynamic_line_height, 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => $single_dynamic_text_transform, 'text-decoration' => '', ); } // Set page specific structure, as page only has featured image at top & title beneath to it, hardcoded writing it here. $theme_options['ast-dynamic-single-page-structure'] = array( 'ast-dynamic-single-page-image', 'ast-dynamic-single-page-title' ); // EDD content layout & sidebar layout migration in new dynamic option. $theme_options['archive-download-content-layout'] = isset( $theme_options['edd-archive-product-layout'] ) ? $theme_options['edd-archive-product-layout'] : 'default'; $theme_options['archive-download-sidebar-layout'] = isset( $theme_options['edd-sidebar-layout'] ) ? $theme_options['edd-sidebar-layout'] : 'no-sidebar'; $theme_options['single-download-content-layout'] = isset( $theme_options['edd-single-product-layout'] ) ? $theme_options['edd-single-product-layout'] : 'default'; $theme_options['single-download-sidebar-layout'] = isset( $theme_options['edd-single-product-sidebar-layout'] ) ? $theme_options['edd-single-product-sidebar-layout'] : 'default'; update_option( 'astra-settings', $theme_options ); } // Admin backward handling starts here. $admin_dashboard_settings = get_option( 'astra_admin_settings', array() ); if ( ! isset( $admin_dashboard_settings['theme-setup-admin-migrated'] ) ) { if ( ! isset( $admin_dashboard_settings['self_hosted_gfonts'] ) ) { $admin_dashboard_settings['self_hosted_gfonts'] = isset( $theme_options['load-google-fonts-locally'] ) ? $theme_options['load-google-fonts-locally'] : false; } if ( ! isset( $admin_dashboard_settings['preload_local_fonts'] ) ) { $admin_dashboard_settings['preload_local_fonts'] = isset( $theme_options['preload-local-fonts'] ) ? $theme_options['preload-local-fonts'] : false; } // Consider admin part from theme side migrated. $admin_dashboard_settings['theme-setup-admin-migrated'] = true; update_option( 'astra_admin_settings', $admin_dashboard_settings ); } // Check if existing user and disable smooth scroll-to-id. if ( ! isset( $theme_options['enable-scroll-to-id'] ) ) { $theme_options['enable-scroll-to-id'] = false; update_option( 'astra-settings', $theme_options ); } // Check if existing user and disable scroll to top if disabled from pro addons list. $scroll_to_top_visibility = false; /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'scroll-to-top' ) ) { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $scroll_to_top_visibility = true; } if ( ! isset( $theme_options['scroll-to-top-enable'] ) ) { $theme_options['scroll-to-top-enable'] = $scroll_to_top_visibility; update_option( 'astra-settings', $theme_options ); } // Default colors & typography flag. if ( ! isset( $theme_options['update-default-color-typo'] ) ) { $theme_options['update-default-color-typo'] = false; update_option( 'astra-settings', $theme_options ); } // Block editor experience improvements compatibility flag. if ( ! isset( $theme_options['v4-block-editor-compat'] ) ) { $theme_options['v4-block-editor-compat'] = false; update_option( 'astra-settings', $theme_options ); } } /** * 4.0.2 backward handling part. * * 1. Read Time option backwards handling for old users. * * @since 4.0.2 * @return void */ function astra_theme_background_updater_4_0_2() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['v4-0-2-update-migration'] ) && isset( $theme_options['blog-single-meta'] ) && in_array( 'read-time', $theme_options['blog-single-meta'] ) ) { if ( isset( $theme_options['ast-dynamic-single-post-metadata'] ) && ! in_array( 'read-time', $theme_options['ast-dynamic-single-post-metadata'] ) ) { $theme_options['ast-dynamic-single-post-metadata'][] = 'read-time'; $theme_options['v4-0-2-update-migration'] = true; update_option( 'astra-settings', $theme_options ); } } } /** * Handle backward compatibility on version 4.1.0 * * @since 4.1.0 * @return void */ function astra_theme_background_updater_4_1_0() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['v4-1-0-update-migration'] ) ) { $theme_options['v4-1-0-update-migration'] = true; $current_payment_list = array(); $old_payment_list = isset( $theme_options['single-product-payment-list']['items'] ) ? $theme_options['single-product-payment-list']['items'] : array(); $visa_payment = isset( $theme_options['single-product-payment-visa'] ) ? $theme_options['single-product-payment-visa'] : ''; $mastercard_payment = isset( $theme_options['single-product-payment-mastercard'] ) ? $theme_options['single-product-payment-mastercard'] : ''; $discover_payment = isset( $theme_options['single-product-payment-discover'] ) ? $theme_options['single-product-payment-discover'] : ''; $paypal_payment = isset( $theme_options['single-product-payment-paypal'] ) ? $theme_options['single-product-payment-paypal'] : ''; $apple_pay_payment = isset( $theme_options['single-product-payment-apple-pay'] ) ? $theme_options['single-product-payment-apple-pay'] : ''; false !== $visa_payment ? array_push( $current_payment_list, array( 'id' => 'item-100', 'enabled' => true, 'source' => 'icon', 'icon' => 'cc-visa', 'image' => '', 'label' => __( 'Visa', 'astra' ), ) ) : ''; false !== $mastercard_payment ? array_push( $current_payment_list, array( 'id' => 'item-101', 'enabled' => true, 'source' => 'icon', 'icon' => 'cc-mastercard', 'image' => '', 'label' => __( 'Mastercard', 'astra' ), ) ) : ''; false !== $mastercard_payment ? array_push( $current_payment_list, array( 'id' => 'item-102', 'enabled' => true, 'source' => 'icon', 'icon' => 'cc-amex', 'image' => '', 'label' => __( 'Amex', 'astra' ), ) ) : ''; false !== $discover_payment ? array_push( $current_payment_list, array( 'id' => 'item-103', 'enabled' => true, 'source' => 'icon', 'icon' => 'cc-discover', 'image' => '', 'label' => __( 'Discover', 'astra' ), ) ) : ''; $paypal_payment ? array_push( $current_payment_list, array( 'id' => 'item-104', 'enabled' => true, 'source' => 'icon', 'icon' => 'cc-paypal', 'image' => '', 'label' => __( 'Paypal', 'astra' ), ) ) : ''; $apple_pay_payment ? array_push( $current_payment_list, array( 'id' => 'item-105', 'enabled' => true, 'source' => 'icon', 'icon' => 'cc-apple-pay', 'image' => '', 'label' => __( 'Apple Pay', 'astra' ), ) ) : ''; if ( $current_payment_list ) { $theme_options['single-product-payment-list'] = array( 'items' => array_merge( $current_payment_list, $old_payment_list ), ); update_option( 'astra-settings', $theme_options ); } if ( ! isset( $theme_options['woo_support_global_settings'] ) ) { $theme_options['woo_support_global_settings'] = true; update_option( 'astra-settings', $theme_options ); } if ( isset( $theme_options['theme-dynamic-customizer-support'] ) ) { $post_types = Astra_Posts_Structure_Loader::get_supported_post_types(); foreach ( $post_types as $index => $post_type ) { $theme_options[ 'ast-dynamic-single-' . esc_attr( $post_type ) . '-title-font-extras' ]['text-transform'] = ''; } update_option( 'astra-settings', $theme_options ); } } } /** * 4.1.4 backward handling cases. * * 1. Migrating users to combined color overlay option to new dedicated overlay options. * * @since 4.1.4 * @return void */ function astra_theme_background_updater_4_1_4() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['v4-1-4-update-migration'] ) ) { $ast_bg_control_options = array( 'off-canvas-background', 'footer-adv-bg-obj', 'footer-bg-obj', ); foreach ( $ast_bg_control_options as $key => $bg_option ) { if ( isset( $theme_options[ $bg_option ] ) && ! isset( $theme_options[ $bg_option ]['overlay-type'] ) ) { $bg_type = isset( $theme_options[ $bg_option ]['background-type'] ) ? $theme_options[ $bg_option ]['background-type'] : ''; $theme_options[ $bg_option ]['overlay-type'] = 'none'; $theme_options[ $bg_option ]['overlay-color'] = ''; $theme_options[ $bg_option ]['overlay-opacity'] = ''; $theme_options[ $bg_option ]['overlay-gradient'] = ''; if ( 'image' === $bg_type ) { $bg_img = isset( $theme_options[ $bg_option ]['background-image'] ) ? $theme_options[ $bg_option ]['background-image'] : ''; $bg_color = isset( $theme_options[ $bg_option ]['background-color'] ) ? $theme_options[ $bg_option ]['background-color'] : ''; if ( '' !== $bg_img && '' !== $bg_color && ( ! is_numeric( strpos( $bg_color, 'linear-gradient' ) ) && ! is_numeric( strpos( $bg_color, 'radial-gradient' ) ) ) ) { $theme_options[ $bg_option ]['overlay-type'] = 'classic'; $theme_options[ $bg_option ]['overlay-color'] = $bg_color; $theme_options[ $bg_option ]['overlay-opacity'] = ''; $theme_options[ $bg_option ]['overlay-gradient'] = ''; } } } } $ast_resp_bg_control_options = array( 'hba-footer-bg-obj-responsive', 'hbb-footer-bg-obj-responsive', 'footer-bg-obj-responsive', 'footer-menu-bg-obj-responsive', 'hb-footer-bg-obj-responsive', 'hba-header-bg-obj-responsive', 'hbb-header-bg-obj-responsive', 'hb-header-bg-obj-responsive', 'header-mobile-menu-bg-obj-responsive', 'site-layout-outside-bg-obj-responsive', 'content-bg-obj-responsive', ); $post_types = Astra_Posts_Structure_Loader::get_supported_post_types(); foreach ( $post_types as $index => $post_type ) { $ast_resp_bg_control_options[] = 'ast-dynamic-archive-' . esc_attr( $post_type ) . '-banner-custom-bg'; $ast_resp_bg_control_options[] = 'ast-dynamic-single-' . esc_attr( $post_type ) . '-banner-background'; } $component_limit = defined( 'ASTRA_EXT_VER' ) ? Astra_Builder_Helper::$component_limit : Astra_Builder_Helper::$num_of_header_menu; for ( $index = 1; $index <= $component_limit; $index++ ) { $_prefix = 'menu' . $index; $ast_resp_bg_control_options[] = 'header-' . $_prefix . '-bg-obj-responsive'; } foreach ( $ast_resp_bg_control_options as $key => $resp_bg_option ) { // Desktop version. /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( isset( $theme_options[ $resp_bg_option ]['desktop'] ) && is_array( $theme_options[ $resp_bg_option ]['desktop'] ) && ! isset( $theme_options[ $resp_bg_option ]['desktop']['overlay-type'] ) ) { // @codingStandardsIgnoreStart $desk_bg_type = isset( $theme_options[ $resp_bg_option ]['desktop']['background-type'] ) ? $theme_options[ $resp_bg_option ]['desktop']['background-type'] : ''; // @codingStandardsIgnoreEnd $theme_options[ $resp_bg_option ]['desktop']['overlay-type'] = ''; $theme_options[ $resp_bg_option ]['desktop']['overlay-color'] = ''; $theme_options[ $resp_bg_option ]['desktop']['overlay-opacity'] = ''; $theme_options[ $resp_bg_option ]['desktop']['overlay-gradient'] = ''; if ( 'image' === $desk_bg_type ) { $bg_img = isset( $theme_options[ $resp_bg_option ]['desktop']['background-image'] ) ? $theme_options[ $resp_bg_option ]['desktop']['background-image'] : ''; $bg_color = isset( $theme_options[ $resp_bg_option ]['desktop']['background-color'] ) ? $theme_options[ $resp_bg_option ]['desktop']['background-color'] : ''; if ( '' !== $bg_img && '' !== $bg_color && ( ! is_numeric( strpos( $bg_color, 'linear-gradient' ) ) && ! is_numeric( strpos( $bg_color, 'radial-gradient' ) ) ) ) { $theme_options[ $resp_bg_option ]['desktop']['overlay-type'] = 'classic'; $theme_options[ $resp_bg_option ]['desktop']['overlay-color'] = $bg_color; $theme_options[ $resp_bg_option ]['desktop']['overlay-opacity'] = ''; $theme_options[ $resp_bg_option ]['desktop']['overlay-gradient'] = ''; } } } // Tablet version. /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( isset( $theme_options[ $resp_bg_option ]['tablet'] ) && is_array( $theme_options[ $resp_bg_option ]['tablet'] ) && ! isset( $theme_options[ $resp_bg_option ]['tablet']['overlay-type'] ) ) { // @codingStandardsIgnoreStart $tablet_bg_type = isset( $theme_options[ $resp_bg_option ]['tablet']['background-type'] ) ? $theme_options[ $resp_bg_option ]['tablet']['background-type'] : ''; // @codingStandardsIgnoreEnd $theme_options[ $resp_bg_option ]['tablet']['overlay-type'] = ''; $theme_options[ $resp_bg_option ]['tablet']['overlay-color'] = ''; $theme_options[ $resp_bg_option ]['tablet']['overlay-opacity'] = ''; $theme_options[ $resp_bg_option ]['tablet']['overlay-gradient'] = ''; if ( 'image' === $tablet_bg_type ) { $bg_img = isset( $theme_options[ $resp_bg_option ]['tablet']['background-image'] ) ? $theme_options[ $resp_bg_option ]['tablet']['background-image'] : ''; $bg_color = isset( $theme_options[ $resp_bg_option ]['tablet']['background-color'] ) ? $theme_options[ $resp_bg_option ]['tablet']['background-color'] : ''; if ( '' !== $bg_img && '' !== $bg_color && ( ! is_numeric( strpos( $bg_color, 'linear-gradient' ) ) && ! is_numeric( strpos( $bg_color, 'radial-gradient' ) ) ) ) { $theme_options[ $resp_bg_option ]['tablet']['overlay-type'] = 'classic'; $theme_options[ $resp_bg_option ]['tablet']['overlay-color'] = $bg_color; $theme_options[ $resp_bg_option ]['tablet']['overlay-opacity'] = ''; $theme_options[ $resp_bg_option ]['tablet']['overlay-gradient'] = ''; } } } // Mobile version. /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( isset( $theme_options[ $resp_bg_option ]['mobile'] ) && is_array( $theme_options[ $resp_bg_option ]['mobile'] ) && ! isset( $theme_options[ $resp_bg_option ]['mobile']['overlay-type'] ) ) { // @codingStandardsIgnoreStart $mobile_bg_type = isset( $theme_options[ $resp_bg_option ]['mobile']['background-type'] ) ? $theme_options[ $resp_bg_option ]['mobile']['background-type'] : ''; // @codingStandardsIgnoreEnd $theme_options[ $resp_bg_option ]['mobile']['overlay-type'] = ''; $theme_options[ $resp_bg_option ]['mobile']['overlay-color'] = ''; $theme_options[ $resp_bg_option ]['mobile']['overlay-opacity'] = ''; $theme_options[ $resp_bg_option ]['mobile']['overlay-gradient'] = ''; if ( 'image' === $mobile_bg_type ) { $bg_img = isset( $theme_options[ $resp_bg_option ]['mobile']['background-image'] ) ? $theme_options[ $resp_bg_option ]['mobile']['background-image'] : ''; $bg_color = isset( $theme_options[ $resp_bg_option ]['mobile']['background-color'] ) ? $theme_options[ $resp_bg_option ]['mobile']['background-color'] : ''; if ( '' !== $bg_img && '' !== $bg_color && ( ! is_numeric( strpos( $bg_color, 'linear-gradient' ) ) && ! is_numeric( strpos( $bg_color, 'radial-gradient' ) ) ) ) { $theme_options[ $resp_bg_option ]['mobile']['overlay-type'] = 'classic'; $theme_options[ $resp_bg_option ]['mobile']['overlay-color'] = $bg_color; $theme_options[ $resp_bg_option ]['mobile']['overlay-opacity'] = ''; $theme_options[ $resp_bg_option ]['mobile']['overlay-gradient'] = ''; } } } } $theme_options['v4-1-4-update-migration'] = true; update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility on version 4.1.6 * * @since 4.1.6 * @return void */ function astra_theme_background_updater_4_1_6() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['list-block-vertical-spacing'] ) ) { $theme_options['list-block-vertical-spacing'] = false; update_option( 'astra-settings', $theme_options ); } } /** * Set flag to avoid direct reflections on live site & to maintain backward compatibility for existing users. * * @since 4.1.7 * @return void */ function astra_theme_background_updater_4_1_7() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['add-hr-styling-css'] ) ) { $theme_options['add-hr-styling-css'] = false; update_option( 'astra-settings', $theme_options ); } if ( ! isset( $theme_options['astra-site-svg-logo-equal-height'] ) ) { $theme_options['astra-site-svg-logo-equal-height'] = false; update_option( 'astra-settings', $theme_options ); } } /** * Migrating users to new container layout options * * @since 4.2.0 * @return void */ function astra_theme_background_updater_4_2_0() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['v4-2-0-update-migration'] ) ) { $post_types = Astra_Posts_Structure_Loader::get_supported_post_types(); $theme_options = get_option( 'astra-settings' ); $blog_types = array( 'single', 'archive' ); $third_party_layouts = array( 'woocommerce', 'edd', 'lifterlms', 'lifterlms-course-lesson', 'learndash' ); // Global. if ( isset( $theme_options['site-content-layout'] ) ) { $theme_options = astra_apply_layout_migration( 'site-content-layout', 'ast-site-content-layout', 'site-content-style', 'site-sidebar-style', $theme_options ); } // Single, archive. foreach ( $blog_types as $index => $blog_type ) { foreach ( $post_types as $index => $post_type ) { $old_layout = $blog_type . '-' . esc_attr( $post_type ) . '-content-layout'; $new_layout = $blog_type . '-' . esc_attr( $post_type ) . '-ast-content-layout'; $content_style = $blog_type . '-' . esc_attr( $post_type ) . '-content-style'; $sidebar_style = $blog_type . '-' . esc_attr( $post_type ) . '-sidebar-style'; if ( isset( $theme_options[ $old_layout ] ) ) { $theme_options = astra_apply_layout_migration( $old_layout, $new_layout, $content_style, $sidebar_style, $theme_options ); } } } // Third party existing layout migrations to new layout options. foreach ( $third_party_layouts as $index => $layout ) { $old_layout = $layout . '-content-layout'; $new_layout = $layout . '-ast-content-layout'; $content_style = $layout . '-content-style'; $sidebar_style = $layout . '-sidebar-style'; if ( isset( $theme_options[ $old_layout ] ) ) { if ( 'lifterlms' === $layout ) { // Lifterlms course/lesson sidebar style migration case. $theme_options = astra_apply_layout_migration( $old_layout, $new_layout, $content_style, 'lifterlms-course-lesson-sidebar-style', $theme_options ); } $theme_options = astra_apply_layout_migration( $old_layout, $new_layout, $content_style, $sidebar_style, $theme_options ); } } if ( ! isset( $theme_options['fullwidth_sidebar_support'] ) ) { $theme_options['fullwidth_sidebar_support'] = false; } $theme_options['v4-2-0-update-migration'] = true; update_option( 'astra-settings', $theme_options ); } } /** * Handle migration from old to new layouts. * * Migration cases for old users, old layouts -> new layouts. * * @since 4.2.0 * @param mixed $old_layout old_layout. * @param mixed $new_layout new_layout. * @param mixed $content_style content_style. * @param mixed $sidebar_style sidebar_style. * @param array $theme_options theme_options. * @return array $theme_options The updated theme options. */ function astra_apply_layout_migration( $old_layout, $new_layout, $content_style, $sidebar_style, $theme_options ) { switch ( astra_get_option( $old_layout ) ) { case 'boxed-container': $theme_options[ $new_layout ] = 'normal-width-container'; $theme_options[ $content_style ] = 'boxed'; $theme_options[ $sidebar_style ] = 'boxed'; break; case 'content-boxed-container': $theme_options[ $new_layout ] = 'normal-width-container'; $theme_options[ $content_style ] = 'boxed'; $theme_options[ $sidebar_style ] = 'unboxed'; break; case 'plain-container': $theme_options[ $new_layout ] = 'normal-width-container'; $theme_options[ $content_style ] = 'unboxed'; $theme_options[ $sidebar_style ] = 'unboxed'; break; case 'page-builder': $theme_options[ $new_layout ] = 'full-width-container'; $theme_options[ $content_style ] = 'unboxed'; $theme_options[ $sidebar_style ] = 'unboxed'; break; case 'narrow-container': $theme_options[ $new_layout ] = 'narrow-width-container'; $theme_options[ $content_style ] = 'unboxed'; $theme_options[ $sidebar_style ] = 'unboxed'; break; default: $theme_options[ $new_layout ] = 'default'; $theme_options[ $content_style ] = 'default'; $theme_options[ $sidebar_style ] = 'default'; break; } return $theme_options; } /** * Handle backward compatibility on version 4.2.2 * * @since 4.2.2 * @return void */ function astra_theme_background_updater_4_2_2() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['v4-2-2-core-form-btns-styling'] ) ) { $theme_options['v4-2-2-core-form-btns-styling'] = false; update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility on version 4.6.0 * * @since 4.4.0 * @return void */ function astra_theme_background_updater_4_4_0() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['v4-4-0-backward-option'] ) ) { $theme_options['v4-4-0-backward-option'] = false; // Migrate primary button outline styles to secondary buttons. if ( isset( $theme_options['font-family-button'] ) ) { $theme_options['secondary-font-family-button'] = $theme_options['font-family-button']; } if ( isset( $theme_options['font-size-button'] ) ) { $theme_options['secondary-font-size-button'] = $theme_options['font-size-button']; } if ( isset( $theme_options['font-weight-button'] ) ) { $theme_options['secondary-font-weight-button'] = $theme_options['font-weight-button']; } if ( isset( $theme_options['font-extras-button'] ) ) { $theme_options['secondary-font-extras-button'] = $theme_options['font-extras-button']; } if ( isset( $theme_options['button-bg-color'] ) ) { $theme_options['secondary-button-bg-color'] = $theme_options['button-bg-color']; } if ( isset( $theme_options['button-bg-h-color'] ) ) { $theme_options['secondary-button-bg-h-color'] = $theme_options['button-bg-h-color']; } if ( isset( $theme_options['theme-button-border-group-border-color'] ) ) { $theme_options['secondary-theme-button-border-group-border-color'] = $theme_options['theme-button-border-group-border-color']; } if ( isset( $theme_options['theme-button-border-group-border-h-color'] ) ) { $theme_options['secondary-theme-button-border-group-border-h-color'] = $theme_options['theme-button-border-group-border-h-color']; } if ( isset( $theme_options['button-radius-fields'] ) ) { $theme_options['secondary-button-radius-fields'] = $theme_options['button-radius-fields']; } // Single - Article Featured Image visibility migration. $post_types = Astra_Posts_Structure_Loader::get_supported_post_types(); foreach ( $post_types as $index => $post_type ) { $theme_options[ 'ast-dynamic-single-' . esc_attr( $post_type ) . '-article-featured-image-position-layout-1' ] = 'none'; $theme_options[ 'ast-dynamic-single-' . esc_attr( $post_type ) . '-article-featured-image-position-layout-2' ] = 'none'; $theme_options[ 'ast-dynamic-single-' . esc_attr( $post_type ) . '-article-featured-image-ratio-type' ] = 'default'; } update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility on version 4.5.0. * * @since 4.5.0 * @return void */ function astra_theme_background_updater_4_5_0() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['v4-5-0-backward-option'] ) ) { $theme_options['v4-5-0-backward-option'] = false; $palette_options = get_option( 'astra-color-palettes', Astra_Global_Palette::get_default_color_palette() ); if ( ! isset( $palette_options['presets'] ) ) { $palette_options['presets'] = astra_get_palette_presets(); update_option( 'astra-color-palettes', $palette_options ); } update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility on version 4.5.2. * * @since 4.5.2 * @return void */ function astra_theme_background_updater_4_5_2() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['scndry-btn-default-padding'] ) ) { $theme_options['scndry-btn-default-padding'] = false; update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility on version 4.6.0 * * @since 4.6.0 * @return void */ function astra_theme_background_updater_4_6_0() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['v4-6-0-backward-option'] ) ) { $theme_options['v4-6-0-backward-option'] = false; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $blog_post_structure = isset( $theme_options['blog-post-structure'] ) ? $theme_options['blog-post-structure'] : array( 'image', 'title-meta' ); /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $migrated_post_structure = array(); if ( ! empty( $blog_post_structure ) ) { /** @psalm-suppress PossiblyInvalidIterator */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort foreach ( $blog_post_structure as $key ) { /** @psalm-suppress PossiblyInvalidIterator */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( 'title-meta' === $key ) { $migrated_post_structure[] = 'title'; $migrated_post_structure[] = 'title-meta'; } if ( 'image' === $key ) { $migrated_post_structure[] = 'image'; } } $migrated_post_structure[] = 'excerpt'; $migrated_post_structure[] = 'read-more'; $theme_options['blog-post-structure'] = $migrated_post_structure; } if ( defined( 'ASTRA_EXT_VER' ) ) { $theme_options['ast-sub-section-author-box-border-width'] = isset( $theme_options['author-box-border-width'] ) ? $theme_options['author-box-border-width'] : array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ); $theme_options['ast-sub-section-author-box-border-radius'] = isset( $theme_options['author-box-border-radius'] ) ? $theme_options['author-box-border-radius'] : array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ); $theme_options['ast-sub-section-author-box-border-color'] = isset( $theme_options['author-box-border-color'] ) ? $theme_options['author-box-border-color'] : ''; if ( isset( $theme_options['single-post-inside-spacing'] ) ) { $theme_options['ast-sub-section-author-box-padding'] = $theme_options['single-post-inside-spacing']; } if ( isset( $theme_options['font-family-post-meta'] ) ) { $theme_options['font-family-post-read-more'] = $theme_options['font-family-post-meta']; } if ( isset( $theme_options['font-extras-post-meta'] ) ) { $theme_options['font-extras-post-read-more'] = $theme_options['font-extras-post-meta']; } } if ( isset( $theme_options['single-post-inside-spacing'] ) ) { $theme_options['ast-sub-section-related-posts-padding'] = $theme_options['single-post-inside-spacing']; } $theme_options['single-content-images-shadow'] = false; $theme_options['ast-font-style-update'] = false; update_option( 'astra-settings', $theme_options ); } $docs_legacy_data = get_option( 'astra_docs_data', array() ); if ( ! empty( $docs_legacy_data ) ) { delete_option( 'astra_docs_data' ); } } /** * Handle backward compatibility on version 4.6.2. * * @since 4.6.2 * @return void */ function astra_theme_background_updater_4_6_2() { $theme_options = get_option( 'astra-settings', array() ); // Unset "featured image" for pages structure. if ( ! isset( $theme_options['v4-6-2-backward-option'] ) ) { $theme_options['v4-6-2-backward-option'] = false; $page_banner_layout = isset( $theme_options['ast-dynamic-single-page-layout'] ) ? $theme_options['ast-dynamic-single-page-layout'] : 'layout-1'; $page_structure = isset( $theme_options['ast-dynamic-single-page-structure'] ) ? $theme_options['ast-dynamic-single-page-structure'] : array( 'ast-dynamic-single-page-image', 'ast-dynamic-single-page-title' ); $layout_1_image_position = isset( $theme_options['ast-dynamic-single-page-article-featured-image-position-layout-1'] ) ? $theme_options['ast-dynamic-single-page-article-featured-image-position-layout-1'] : 'behind'; $migrated_page_structure = array(); if ( 'layout-1' === $page_banner_layout && 'none' === $layout_1_image_position && ! empty( $page_structure ) ) { foreach ( $page_structure as $key ) { if ( 'ast-dynamic-single-page-image' !== $key ) { $migrated_page_structure[] = $key; } } $theme_options['ast-dynamic-single-page-structure'] = $migrated_page_structure; } update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility on version 4.6.4. * * @since 4.6.4 * @return void */ function astra_theme_background_updater_4_6_4() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['btn-stylings-upgrade'] ) ) { $theme_options['btn-stylings-upgrade'] = false; update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility for Elementor Pro heading's margin. * * @since 4.6.5 * @return void */ function astra_theme_background_updater_4_6_5() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['elementor-headings-style'] ) ) { $theme_options['elementor-headings-style'] = defined( 'ELEMENTOR_PRO_VERSION' ) ? true : false; update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility for Elementor Loop block post div container padding. * * @since 4.6.6 * @return void */ function astra_theme_background_updater_4_6_6() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['elementor-container-padding-style'] ) ) { $theme_options['elementor-container-padding-style'] = defined( 'ELEMENTOR_PRO_VERSION' ) ? true : false; update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility for Starter template library preview line height cases. * * @since 4.6.11 * @return void */ function astra_theme_background_updater_4_6_11() { $theme_options = get_option( 'astra-settings', array() ); if ( isset( $theme_options['global-headings-line-height-update'] ) ) { return; } $headers_fonts = array( 'h1' => '1.4', 'h2' => '1.3', 'h3' => '1.3', 'h4' => '1.2', 'h5' => '1.2', 'h6' => '1.25', ); foreach ( $headers_fonts as $header_tag => $header_font_value ) { if ( empty( $theme_options[ 'font-extras-' . $header_tag ]['line-height'] ) ) { $theme_options[ 'font-extras-' . $header_tag ]['line-height'] = $header_font_value; if ( empty( $theme_options[ 'font-extras-' . $header_tag ]['line-height-unit'] ) ) { $theme_options[ 'font-extras-' . $header_tag ]['line-height-unit'] = 'em'; } } } $theme_options['global-headings-line-height-update'] = true; update_option( 'astra-settings', $theme_options ); } /** * Handle backward compatibility for heading `clear:both` css in single posts and pages. * * @since 4.6.12 * @return void */ function astra_theme_background_updater_4_6_12() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['single_posts_pages_heading_clear_none'] ) ) { $theme_options['single_posts_pages_heading_clear_none'] = false; update_option( 'astra-settings', $theme_options ); } if ( ! isset( $theme_options['elementor-btn-styling'] ) ) { $theme_options['elementor-btn-styling'] = defined( 'ELEMENTOR_VERSION' ) ? true : false; update_option( 'astra-settings', $theme_options ); } if ( ! isset( $theme_options['remove_single_posts_navigation_mobile_device_padding'] ) ) { $theme_options['remove_single_posts_navigation_mobile_device_padding'] = true; update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility for following pointers. * * 1. unit less line-height support. * 2. H5 font size case. * * @since 4.6.14 * @return void */ function astra_theme_background_updater_4_6_14() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['enable-4-6-14-compatibility'] ) ) { $theme_options['enable-4-6-14-compatibility'] = false; update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility for following cases. * * 1. Making edd default option enable by default. * 2. Handle backward compatibility for Heading font size fix. * * @since 4.7.0 * @return void */ function astra_theme_background_updater_4_7_0() { $theme_options = get_option( 'astra-settings', array() ); if ( class_exists( 'Easy_Digital_Downloads' ) && ! isset( $theme_options['can-update-edd-featured-image-default'] ) ) { $theme_options['can-update-edd-featured-image-default'] = false; update_option( 'astra-settings', $theme_options ); } if ( ! isset( $theme_options['heading-widget-font-size'] ) ) { $theme_options['heading-widget-font-size'] = false; update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility for version 4.7.1 * * @since 4.7.1 * @return void */ function astra_theme_background_updater_4_7_1() { $theme_options = get_option( 'astra-settings', array() ); // Setting same background color for above and below transparent headers as on transparent primary header. if ( isset( $theme_options['transparent-header-bg-color-responsive'] ) ) { if ( ! isset( $theme_options['hba-transparent-header-bg-color-responsive'] ) ) { $theme_options['hba-transparent-header-bg-color-responsive'] = $theme_options['transparent-header-bg-color-responsive']; } if ( ! isset( $theme_options['hbb-transparent-header-bg-color-responsive'] ) ) { $theme_options['hbb-transparent-header-bg-color-responsive'] = $theme_options['transparent-header-bg-color-responsive']; } update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility Spectra Heading max-width with Astra when fullwidth layout is selected. * * @since 4.8.0 * @return void */ function astra_theme_background_updater_4_8_0() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['enable-4-8-0-compatibility'] ) ) { $theme_options['enable-4-8-0-compatibility'] = false; update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility Single post outside spacing issue. * * @since 4.8.2 * @return void */ function astra_theme_background_updater_4_8_2() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['v4-8-2-backward-option'] ) ) { $theme_options['v4-8-2-backward-option'] = false; update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility for Spectra container margin left and right. * Handle backward compatibility for Heading font size px to em conversion cases. * * @since 4.8.4 * @return void */ function astra_theme_background_updater_4_8_4() { $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['enable-4-8-4-compatibility'] ) ) { $theme_options['enable-4-8-4-compatibility'] = false; update_option( 'astra-settings', $theme_options ); } if ( ! isset( $theme_options['astra-heading-font-size-compatibility'] ) ) { $theme_options['astra-heading-font-size-compatibility'] = false; update_option( 'astra-settings', $theme_options ); } } /** * Set key to show NPS survey popup immediately for old user. * * @since 4.8.7 * @return void */ function astra_theme_background_updater_4_8_7() { // Bail early if the starter template is being imported. if ( get_option( 'astra_sites_import_started' ) === 'yes' ) { return; } update_option( 'astra_nps_show', true ); } /** * Handle backward compatibility on version 4.8.9. * 1. Reorganizing color palettes. * * @since 4.8.9 * @return void */ function astra_theme_background_updater_4_8_9() { // Bail early if the starter template is being imported. if ( get_option( 'astra_sites_import_started' ) === 'yes' || astra_get_option( 'new-color-labels' ) ) { astra_update_option( 'new-color-labels', true ); } $theme_options = get_option( 'astra-settings', array() ); if ( ! isset( $theme_options['enable-4-8-9-compatibility'] ) ) { $theme_options['enable-4-8-9-compatibility'] = false; update_option( 'astra-settings', $theme_options ); } // Enable off canvas move body option for existing users. if ( ! isset( $theme_options['off-canvas-move-body'] ) ) { $theme_options['off-canvas-move-body'] = true; update_option( 'astra-settings', $theme_options ); } } /** * Handle backward compatibility on version 4.8.10. * * @since 4.8.10 * @return void */ function astra_theme_background_updater_4_8_10() { $theme_options = get_option( 'astra-settings', array() ); /** * Enable star rating compatibility for existing users, excluding template import scenarios. */ if ( get_option( 'astra_sites_import_started' ) !== 'yes' ) { $theme_options['star-rating-comp'] = false; update_option( 'astra-settings', $theme_options ); } } PKOmZ[..0theme-update/astra-builder-migration-updater.phpnu[ $theme_options, 'used_elements' => $used_elements, 'widget_options' => $widget_options, ); /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $options = astra_primary_header_builder_migration( $options['theme_options'], $options['used_elements'], $options['widget_options'] ); /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $options = astra_below_header_builder_migration( $options['theme_options'], $options['used_elements'], $options['widget_options'] ); /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $options = astra_above_header_builder_migration( $options['theme_options'], $options['used_elements'], $options['widget_options'] ); /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $options = astra_footer_builder_migration( $options['theme_options'], $options['used_elements'], $options['widget_options'] ); /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $options = astra_footer_widgets_migration( $options['theme_options'], $options['used_elements'], $options['widget_options'] ); /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $options = astra_primary_menu_builder_migration( $options['theme_options'], $options['used_elements'], $options['widget_options'] ); /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $options = astra_sticky_header_builder_migration( $options['theme_options'], $options['used_elements'], $options['widget_options'] ); /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $theme_options = $options['theme_options']; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $widget_options = $options['widget_options']; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $theme_options['v3-option-migration'] = true; update_option( 'astra-settings', $theme_options ); update_option( 'sidebars_widgets', $widget_options ); } /** * Header Footer builder - Migration of Primary Header. * * @since 3.0.0 * @param array $theme_options Theme options. * @param array $used_elements Used Elements array. * @param array $widget_options Widget options. * @return array */ function astra_primary_header_builder_migration( $theme_options, $used_elements, $widget_options ) { /** * Primary Header. */ // Header : Primary Header - Layout. $primary_header_layout = ( isset( $theme_options['header-layouts'] ) ) ? $theme_options['header-layouts'] : ''; // Header : Primary Header - Last Menu Item. $last_menu_item = ( isset( $theme_options['header-main-rt-section'] ) ) ? $theme_options['header-main-rt-section'] : ''; $last_menu_item_mobile_flag = ( isset( $theme_options['hide-custom-menu-mobile'] ) ) ? $theme_options['hide-custom-menu-mobile'] : ''; $last_menu_item_mobile_outside = ( isset( $theme_options['header-display-outside-menu'] ) ) ? $theme_options['header-display-outside-menu'] : ''; $new_menu_item = ''; $theme_options['mobile-header-type'] = 'dropdown'; if ( isset( $theme_options['mobile-menu-style'] ) ) { switch ( $theme_options['mobile-menu-style'] ) { case 'flyout': $theme_options['mobile-header-type'] = 'off-canvas'; if ( isset( $theme_options['flyout-mobile-menu-alignment'] ) ) { $theme_options['off-canvas-slide'] = $theme_options['flyout-mobile-menu-alignment']; } break; case 'fullscreen': $theme_options['mobile-header-type'] = 'full-width'; break; case 'default': default: $theme_options['mobile-header-type'] = 'dropdown'; break; } } switch ( $last_menu_item ) { case 'search': $new_menu_item = 'search'; if ( isset( $theme_options['header-main-rt-section-search-box-type'] ) ) { $theme_options['header-search-box-type'] = $theme_options['header-main-rt-section-search-box-type']; } break; case 'button': $new_menu_item = 'button-1'; if ( isset( $theme_options['header-main-rt-section-button-text'] ) ) { $theme_options['header-button1-text'] = $theme_options['header-main-rt-section-button-text']; } if ( isset( $theme_options['header-main-rt-section-button-link-option'] ) ) { $theme_options['header-button1-link-option'] = $theme_options['header-main-rt-section-button-link-option']; } if ( isset( $theme_options['header-main-rt-section-button-text-color'] ) ) { $theme_options['header-button1-text-color'] = array( 'desktop' => $theme_options['header-main-rt-section-button-text-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['header-main-rt-section-button-back-color'] ) ) { $theme_options['header-button1-back-color'] = array( 'desktop' => $theme_options['header-main-rt-section-button-back-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['header-main-rt-section-button-text-h-color'] ) ) { $theme_options['header-button1-text-h-color'] = array( 'desktop' => $theme_options['header-main-rt-section-button-text-h-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['header-main-rt-section-button-back-h-color'] ) ) { $theme_options['header-button1-back-h-color'] = array( 'desktop' => $theme_options['header-main-rt-section-button-back-h-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['header-main-rt-section-button-border-size'] ) ) { $theme_options['header-button1-border-size'] = $theme_options['header-main-rt-section-button-border-size']; } if ( isset( $theme_options['header-main-rt-section-button-border-color'] ) ) { $theme_options['header-button1-border-color'] = array( 'desktop' => $theme_options['header-main-rt-section-button-border-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['header-main-rt-section-button-border-h-color'] ) ) { $theme_options['header-button1-border-h-color'] = array( 'desktop' => $theme_options['header-main-rt-section-button-border-h-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['header-main-rt-section-button-border-radius'] ) ) { $theme_options['header-button1-border-radius'] = $theme_options['header-main-rt-section-button-border-radius']; } if ( isset( $theme_options['primary-header-button-font-family'] ) ) { $theme_options['header-button1-font-family'] = $theme_options['primary-header-button-font-family']; } if ( isset( $theme_options['primary-header-button-font-size'] ) ) { $theme_options['header-button1-font-size'] = $theme_options['primary-header-button-font-size']; } if ( isset( $theme_options['primary-header-button-font-weight'] ) ) { $theme_options['header-button1-font-weight'] = $theme_options['primary-header-button-font-weight']; } if ( isset( $theme_options['primary-header-button-text-transform'] ) ) { $theme_options['header-button1-text-transform'] = $theme_options['primary-header-button-text-transform']; } if ( isset( $theme_options['primary-header-button-line-height'] ) ) { $theme_options['header-button1-line-height'] = $theme_options['primary-header-button-line-height']; } if ( isset( $theme_options['primary-header-button-letter-spacing'] ) ) { $theme_options['header-button1-letter-spacing'] = $theme_options['primary-header-button-letter-spacing']; } if ( isset( $theme_options['header-main-rt-section-button-padding'] ) ) { $theme_options['section-hb-button-1-padding'] = $theme_options['header-main-rt-section-button-padding']; } // Sticky Header Button options. // Text Color. if ( isset( $theme_options['header-main-rt-sticky-section-button-text-color'] ) ) { $theme_options['sticky-header-button1-text-color'] = array( 'desktop' => $theme_options['header-main-rt-sticky-section-button-text-color'], 'tablet' => '', 'mobile' => '', ); } // BG Color. if ( isset( $theme_options['header-main-rt-sticky-section-button-back-color'] ) ) { $theme_options['sticky-header-button1-back-color'] = array( 'desktop' => $theme_options['header-main-rt-sticky-section-button-back-color'], 'tablet' => '', 'mobile' => '', ); } // Text Hover Color. if ( isset( $theme_options['header-main-rt-sticky-section-button-text-h-color'] ) ) { $theme_options['sticky-header-button1-text-h-color'] = array( 'desktop' => $theme_options['header-main-rt-sticky-section-button-text-h-color'], 'tablet' => '', 'mobile' => '', ); } // BG Hover Color. if ( isset( $theme_options['header-main-rt-sticky-section-button-back-h-color'] ) ) { $theme_options['sticky-header-button1-back-h-color'] = array( 'desktop' => $theme_options['header-main-rt-sticky-section-button-back-h-color'], 'tablet' => '', 'mobile' => '', ); } // Border Width. if ( isset( $theme_options['header-main-rt-sticky-section-button-border-size'] ) ) { $theme_options['sticky-header-button1-border-size'] = $theme_options['header-main-rt-sticky-section-button-border-size']; } // Border Color. if ( isset( $theme_options['header-main-rt-sticky-section-button-border-color'] ) ) { $theme_options['sticky-header-button1-border-color'] = array( 'desktop' => $theme_options['header-main-rt-sticky-section-button-border-color'], 'tablet' => '', 'mobile' => '', ); } // Border Hover Color. if ( isset( $theme_options['header-main-rt-sticky-section-button-border-h-color'] ) ) { $theme_options['sticky-header-button1-border-h-color'] = array( 'desktop' => $theme_options['header-main-rt-sticky-section-button-border-h-color'], 'tablet' => '', 'mobile' => '', ); } // Border Radius. if ( isset( $theme_options['header-main-rt-sticky-section-button-border-radius'] ) ) { $theme_options['sticky-header-button1-border-radius'] = $theme_options['header-main-rt-sticky-section-button-border-radius']; } // Padding. if ( isset( $theme_options['header-main-rt-sticky-section-button-padding'] ) ) { $theme_options['sticky-header-button1-padding'] = $theme_options['header-main-rt-sticky-section-button-padding']; } break; case 'text-html': $new_menu_item = 'html-1'; if ( isset( $theme_options['header-main-rt-section-html'] ) ) { $theme_options['header-html-1'] = $theme_options['header-main-rt-section-html']; } break; case 'widget': $new_menu_item = 'widget-1'; if ( isset( $widget_options['header-widget'] ) ) { $widget_options['header-widget-1'] = $widget_options['header-widget']; } break; case 'woocommerce': $new_menu_item = 'woo-cart'; if ( ! empty( $theme_options['woo-header-cart-icon-color'] ) ) { $theme_options['header-woo-cart-icon-color'] = $theme_options['woo-header-cart-icon-color']; } break; case 'edd': $new_menu_item = 'edd-cart'; break; } $used_elements[] = $new_menu_item; $new_menu_item_mobile = ( ! $last_menu_item_mobile_flag ) ? $new_menu_item : ''; $new_menu_item_mobile_outside = ''; if ( ! $last_menu_item_mobile_flag && $last_menu_item_mobile_outside ) { $new_menu_item_mobile_outside = $new_menu_item; $new_menu_item_mobile = ''; } $theme_options['header-desktop-items']['above'] = array( 'above_left' => array(), 'above_left_center' => array(), 'above_center' => array(), 'above_right_center' => array(), 'above_right' => array(), ); $theme_options['header-mobile-items']['above'] = array( 'above_left' => array(), 'above_center' => array(), 'above_right' => array(), ); $theme_options['header-desktop-items']['below'] = array( 'below_left' => array(), 'below_left_center' => array(), 'below_center' => array(), 'below_right_center' => array(), 'below_right' => array(), ); $theme_options['header-mobile-items']['below'] = array( 'below_left' => array(), 'below_center' => array(), 'below_right' => array(), ); /** * Assign the new locations. */ switch ( $primary_header_layout ) { case 'header-main-layout-1': $theme_options['header-desktop-items']['primary'] = array( 'primary_left' => array( 'logo' ), 'primary_left_center' => array(), 'primary_center' => array(), 'primary_right_center' => array(), 'primary_right' => ( '' !== $new_menu_item ) ? array( 'menu-1', $new_menu_item ) : array( 'menu-1' ), ); break; case 'header-main-layout-2': $theme_options['header-desktop-items']['primary'] = array( 'primary_left' => array(), 'primary_left_center' => array(), 'primary_center' => array( 'logo' ), 'primary_right_center' => array(), 'primary_right' => array(), ); $theme_options['header-desktop-items']['below'] = array( 'below_left' => array(), 'below_left_center' => array(), 'below_center' => ( '' !== $new_menu_item ) ? array( 'menu-1', $new_menu_item ) : array( 'menu-1' ), 'below_right_center' => array(), 'below_right' => array(), ); break; case 'header-main-layout-3': $theme_options['header-desktop-items']['primary'] = array( 'primary_left' => ( '' !== $new_menu_item ) ? array( 'menu-1', $new_menu_item ) : array( 'menu-1' ), 'primary_left_center' => array(), 'primary_center' => array(), 'primary_right_center' => array(), 'primary_right' => array( 'logo' ), ); break; default: $theme_options['header-desktop-items']['primary'] = array( 'primary_left' => array( 'logo' ), 'primary_left_center' => array(), 'primary_center' => array(), 'primary_right_center' => array(), 'primary_right' => array( 'menu-1' ), ); } // Header : Primary Header - Mobile Layout. $mobile_layout = astra_get_option( 'header-main-menu-align' ); if ( 'stack' === $mobile_layout ) { $theme_options['header-mobile-items']['popup'] = array( 'popup_content' => ( '' !== $new_menu_item_mobile && '' !== $new_menu_item_mobile_outside ) ? array( 'menu-1', $new_menu_item_mobile ) : array( 'menu-1' ) ); $theme_options['header-mobile-items']['primary'] = array( 'primary_left' => array(), 'primary_center' => array( 'logo' ), 'primary_right' => array(), ); $theme_options['header-mobile-items']['below'] = array( 'below_left' => array(), 'below_center' => ( '' !== $new_menu_item_mobile_outside ) ? array( $new_menu_item_mobile_outside, 'mobile-trigger' ) : array( 'mobile-trigger' ), 'below_right' => array(), ); } else { $theme_options['header-mobile-items']['popup'] = array( 'popup_content' => ( '' !== $new_menu_item_mobile ) ? array( 'menu-1', $new_menu_item_mobile ) : array( 'menu-1' ) ); if ( 'header-main-layout-3' === $primary_header_layout ) { $theme_options['header-mobile-items']['primary'] = array( 'primary_left' => ( '' !== $new_menu_item_mobile_outside ) ? array( $new_menu_item_mobile_outside, 'mobile-trigger' ) : array( 'mobile-trigger' ), 'primary_center' => array(), 'primary_right' => array( 'logo' ), ); } else { $theme_options['header-mobile-items']['primary'] = array( 'primary_left' => array( 'logo' ), 'primary_center' => array(), 'primary_right' => ( '' !== $new_menu_item_mobile_outside ) ? array( $new_menu_item_mobile_outside, 'mobile-trigger' ) : array( 'mobile-trigger' ), ); } } // Header - Primary Header - Content Width. if ( isset( $theme_options['header-main-layout-width'] ) ) { $theme_options['hb-header-main-layout-width'] = $theme_options['header-main-layout-width']; } // Header - Primary Header - Border Bottom. if ( isset( $theme_options['header-main-sep'] ) ) { $theme_options['hb-header-main-sep'] = $theme_options['header-main-sep']; } if ( isset( $theme_options['header-main-sep-color'] ) ) { $theme_options['hb-header-main-sep-color'] = $theme_options['header-main-sep-color']; } if ( isset( $theme_options['header-bg-obj-responsive'] ) ) { $theme_options['hb-header-bg-obj-responsive'] = $theme_options['header-bg-obj-responsive']; } if ( isset( $theme_options['header-spacing'] ) ) { $theme_options['section-primary-header-builder-padding'] = $theme_options['header-spacing']; } return array( 'theme_options' => $theme_options, 'used_elements' => $used_elements, 'widget_options' => $widget_options, ); } /** * Header Footer builder - Migration of Below Header. * * @since 3.0.0 * @param array $theme_options Theme options. * @param array $used_elements Used Elements array. * @param array $widget_options Widget options. * @return array */ function astra_below_header_builder_migration( $theme_options, $used_elements, $widget_options ) { /** * Below Header */ $below_header_layout = ( isset( $theme_options['below-header-layout'] ) ) ? $theme_options['below-header-layout'] : ''; $below_header_on_mobile = ( isset( $theme_options['below-header-on-mobile'] ) ) ? $theme_options['below-header-on-mobile'] : ''; $below_header_merge_menu = ( isset( $theme_options['below-header-merge-menu'] ) ) ? $theme_options['below-header-merge-menu'] : ''; $below_header_swap_mobile = ( isset( $theme_options['below-header-swap-mobile'] ) ) ? $theme_options['below-header-swap-mobile'] : ''; if ( isset( $theme_options['below-header-height'] ) ) { $theme_options['hbb-header-height'] = array( 'desktop' => $theme_options['below-header-height'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['below-header-divider'] ) ) { $theme_options['hbb-header-separator'] = $theme_options['below-header-divider']; } if ( isset( $theme_options['below-header-divider-color'] ) ) { $theme_options['hbb-header-bottom-border-color'] = $theme_options['below-header-divider-color']; } if ( isset( $theme_options['below-header-bg-obj-responsive'] ) ) { $theme_options['hbb-header-bg-obj-responsive'] = $theme_options['below-header-bg-obj-responsive']; } if ( isset( $theme_options['below-header-spacing'] ) ) { $theme_options['section-below-header-builder-padding'] = $theme_options['below-header-spacing']; } // Below Header Section 1. $below_header_section_1 = ( isset( $theme_options['below-header-section-1'] ) ) ? $theme_options['below-header-section-1'] : ''; $new_below_header_section_1_item = ''; switch ( $below_header_section_1 ) { case 'menu': $new_below_header_section_1_item = 'menu-2'; break; case 'search': if ( ! in_array( 'search', $used_elements ) ) { $new_below_header_section_1_item = 'search'; if ( isset( $theme_options['below-header-section-1-search-box-type'] ) ) { $theme_options['header-search-box-type'] = $theme_options['below-header-section-1-search-box-type']; } } break; case 'text-html': if ( ! in_array( 'html-2', $used_elements ) ) { $new_below_header_section_1_item = 'html-2'; if ( isset( $theme_options['below-header-section-1-html'] ) ) { $theme_options['header-html-2'] = $theme_options['below-header-section-1-html']; } } break; case 'widget': if ( ! in_array( 'widget-2', $used_elements ) ) { $new_below_header_section_1_item = 'widget-2'; if ( isset( $widget_options['below-header-widget-1'] ) ) { $widget_options['header-widget-2'] = $widget_options['below-header-widget-1']; } } break; case 'woocommerce': if ( ! in_array( 'woo-cart', $used_elements ) ) { $new_below_header_section_1_item = 'woo-cart'; } break; case 'edd': if ( ! in_array( 'edd-cart', $used_elements ) ) { $new_below_header_section_1_item = 'edd-cart'; } break; } // Below Header Section 2. $below_header_section_2 = ( isset( $theme_options['below-header-section-2'] ) ) ? $theme_options['below-header-section-2'] : ''; $new_below_header_section_2_item = ''; switch ( $below_header_section_2 ) { case 'menu': $new_below_header_section_2_item = 'menu-2'; break; case 'search': if ( ! in_array( 'search', $used_elements ) ) { $new_below_header_section_2_item = 'search'; if ( isset( $theme_options['below-header-section-2-search-box-type'] ) ) { $theme_options['header-search-box-type'] = $theme_options['below-header-section-2-search-box-type']; } } break; case 'text-html': if ( ! in_array( 'html-2', $used_elements ) ) { $new_below_header_section_2_item = 'html-2'; if ( isset( $theme_options['below-header-section-2-html'] ) ) { $theme_options['header-html-2'] = $theme_options['below-header-section-2-html']; } } break; case 'widget': if ( ! in_array( 'widget-2', $used_elements ) ) { $new_below_header_section_2_item = 'widget-2'; if ( isset( $widget_options['below-header-widget-2'] ) ) { $widget_options['header-widget-2'] = $widget_options['below-header-widget-2']; } } break; case 'woocommerce': if ( ! in_array( 'woo-cart', $used_elements ) ) { $new_below_header_section_2_item = 'woo-cart'; } break; case 'edd': if ( ! in_array( 'edd-cart', $used_elements ) ) { $new_below_header_section_2_item = 'edd-cart'; } break; } if ( 'menu' === $below_header_section_1 || 'menu' === $below_header_section_2 ) { $theme_options['header-menu2-menu-stack-on-mobile'] = false; /** * Menu - 2 */ if ( isset( $theme_options['below-header-submenu-container-animation'] ) ) { $theme_options['header-menu2-submenu-container-animation'] = $theme_options['below-header-submenu-container-animation']; } if ( isset( $theme_options['below-header-submenu-border'] ) ) { $theme_options['header-menu2-submenu-border'] = $theme_options['below-header-submenu-border']; } if ( isset( $theme_options['below-header-submenu-b-color'] ) ) { $theme_options['header-menu2-submenu-b-color'] = $theme_options['below-header-submenu-b-color']; } if ( isset( $theme_options['below-header-submenu-item-border'] ) ) { $theme_options['header-menu2-submenu-item-border'] = $theme_options['below-header-submenu-item-border']; } if ( isset( $theme_options['below-header-submenu-item-b-color'] ) ) { $theme_options['header-menu2-submenu-item-b-color'] = $theme_options['below-header-submenu-item-b-color']; } if ( isset( $theme_options['below-header-menu-text-color-responsive'] ) ) { $theme_options['header-menu2-color-responsive'] = $theme_options['below-header-menu-text-color-responsive']; } if ( isset( $theme_options['below-header-menu-bg-obj-responsive'] ) ) { $theme_options['header-menu2-bg-obj-responsive'] = $theme_options['below-header-menu-bg-obj-responsive']; } if ( isset( $theme_options['below-header-menu-text-hover-color-responsive'] ) ) { $theme_options['header-menu2-h-color-responsive'] = $theme_options['below-header-menu-text-hover-color-responsive']; } if ( isset( $theme_options['below-header-menu-bg-hover-color-responsive'] ) ) { $theme_options['header-menu2-h-bg-color-responsive'] = $theme_options['below-header-menu-bg-hover-color-responsive']; } if ( isset( $theme_options['below-header-current-menu-text-color-responsive'] ) ) { $theme_options['header-menu2-a-color-responsive'] = $theme_options['below-header-current-menu-text-color-responsive']; } if ( isset( $theme_options['below-header-current-menu-bg-color-responsive'] ) ) { $theme_options['header-menu2-a-bg-color-responsive'] = $theme_options['below-header-current-menu-bg-color-responsive']; } if ( isset( $theme_options['below-header-font-size'] ) ) { $theme_options['header-menu2-font-size'] = $theme_options['below-header-font-size']; } if ( isset( $theme_options['below-header-font-weight'] ) ) { $theme_options['header-menu2-font-weight'] = $theme_options['below-header-font-weight']; } if ( isset( $theme_options['below-header-line-height'] ) ) { $theme_options['header-menu2-line-height'] = $theme_options['below-header-line-height']; } if ( isset( $theme_options['below-header-font-family'] ) ) { $theme_options['header-menu2-font-family'] = $theme_options['below-header-font-family']; } if ( isset( $theme_options['below-header-text-transform'] ) ) { $theme_options['header-menu2-text-transform'] = $theme_options['below-header-text-transform']; } if ( isset( $theme_options['below-header-menu-spacing'] ) ) { $theme_options['header-menu2-menu-spacing'] = $theme_options['below-header-menu-spacing']; } // Menu 2 - Submenu. if ( isset( $theme_options['below-header-submenu-text-color-responsive'] ) ) { $theme_options['header-menu2-submenu-color-responsive'] = $theme_options['below-header-submenu-text-color-responsive']; } if ( isset( $theme_options['below-header-submenu-bg-color-responsive'] ) ) { $theme_options['header-menu2-submenu-bg-color-responsive'] = $theme_options['below-header-submenu-bg-color-responsive']; } if ( isset( $theme_options['below-header-submenu-hover-color-responsive'] ) ) { $theme_options['header-menu2-submenu-h-color-responsive'] = $theme_options['below-header-submenu-hover-color-responsive']; } if ( isset( $theme_options['below-header-submenu-bg-hover-color-responsive'] ) ) { $theme_options['header-menu2-submenu-h-bg-color-responsive'] = $theme_options['below-header-submenu-bg-hover-color-responsive']; } if ( isset( $theme_options['below-header-submenu-active-color-responsive'] ) ) { $theme_options['header-menu2-submenu-a-color-responsive'] = $theme_options['below-header-submenu-active-color-responsive']; } if ( isset( $theme_options['below-header-submenu-active-bg-color-responsive'] ) ) { $theme_options['header-menu2-submenu-a-bg-color-responsive'] = $theme_options['below-header-submenu-active-bg-color-responsive']; } if ( isset( $theme_options['font-size-below-header-dropdown-menu'] ) ) { $theme_options['header-font-size-menu2-sub-menu'] = $theme_options['font-size-below-header-dropdown-menu']; } if ( isset( $theme_options['font-weight-below-header-dropdown-menu'] ) ) { $theme_options['header-font-weight-menu2-sub-menu'] = $theme_options['font-weight-below-header-dropdown-menu']; } if ( isset( $theme_options['line-height-below-header-dropdown-menu'] ) ) { $theme_options['header-line-height-menu2-sub-menu'] = $theme_options['line-height-below-header-dropdown-menu']; } if ( isset( $theme_options['font-family-below-header-dropdown-menu'] ) ) { $theme_options['header-font-family-menu2-sub-menu'] = $theme_options['font-family-below-header-dropdown-menu']; } if ( isset( $theme_options['text-transform-below-header-dropdown-menu'] ) ) { $theme_options['header-text-transform-menu2-sub-menu'] = $theme_options['text-transform-below-header-dropdown-menu']; } if ( isset( $theme_options['below-header-submenu-spacing'] ) ) { $theme_options['header-menu2-submenu-spacing'] = $theme_options['below-header-submenu-spacing']; } } if ( 'search' === $below_header_section_1 || 'search' === $below_header_section_2 ) { if ( isset( $theme_options['below-header-text-color-responsive'] ) ) { $theme_options['header-search-icon-color'] = $theme_options['below-header-text-color-responsive']; } } if ( 'text-html' === $below_header_section_1 || 'text-html' === $below_header_section_2 ) { if ( isset( $theme_options['below-header-text-color-responsive'] ) ) { $theme_options['header-html-2color'] = $theme_options['below-header-text-color-responsive']; } if ( isset( $theme_options['below-header-link-color-responsive'] ) ) { $theme_options['header-html-2link-color'] = $theme_options['below-header-link-color-responsive']; } if ( isset( $theme_options['below-header-link-hover-color-responsive'] ) ) { $theme_options['header-html-2link-h-color'] = $theme_options['below-header-link-hover-color-responsive']; } if ( isset( $theme_options['font-size-below-header-content'] ) ) { $theme_options['font-size-section-hb-html-2'] = $theme_options['font-size-below-header-content']; } if ( isset( $theme_options['font-weight-below-header-content'] ) ) { $theme_options['font-weight-section-hb-html-2'] = $theme_options['font-weight-below-header-content']; } if ( isset( $theme_options['line-height-below-header-content'] ) ) { $theme_options['line-height-section-hb-html-2'] = $theme_options['line-height-below-header-content']; } if ( isset( $theme_options['font-family-below-header-content'] ) ) { $theme_options['font-family-section-hb-html-2'] = $theme_options['font-family-below-header-content']; } if ( isset( $theme_options['text-transform-below-header-content'] ) ) { $theme_options['text-transform-section-hb-html-2'] = $theme_options['text-transform-below-header-content']; } } if ( 'widget' === $below_header_section_1 || 'widget' === $below_header_section_2 ) { if ( isset( $theme_options['below-header-text-color-responsive'] ) ) { $theme_options['header-widget-2-color'] = $theme_options['below-header-text-color-responsive']; $theme_options['header-widget-2-title-color'] = $theme_options['below-header-text-color-responsive']; } if ( isset( $theme_options['below-header-link-color-responsive'] ) ) { $theme_options['header-widget-2-link-color'] = $theme_options['below-header-link-color-responsive']; } if ( isset( $theme_options['below-header-link-hover-color-responsive'] ) ) { $theme_options['header-widget-2-link-h-color'] = $theme_options['below-header-link-hover-color-responsive']; } if ( isset( $theme_options['font-size-below-header-content'] ) ) { $theme_options['header-widget-2-content-font-size'] = $theme_options['font-size-below-header-content']; } if ( isset( $theme_options['font-weight-below-header-content'] ) ) { $theme_options['header-widget-2-content-font-weight'] = $theme_options['font-weight-below-header-content']; } if ( isset( $theme_options['line-height-below-header-content'] ) ) { $theme_options['header-widget-2-content-line-height'] = $theme_options['line-height-below-header-content']; } if ( isset( $theme_options['font-family-below-header-content'] ) ) { $theme_options['header-widget-2-content-font-family'] = $theme_options['font-family-below-header-content']; } if ( isset( $theme_options['text-transform-below-header-content'] ) ) { $theme_options['header-widget-2-content-text-transform'] = $theme_options['text-transform-below-header-content']; } } switch ( $below_header_layout ) { case 'below-header-layout-1': $theme_options['header-desktop-items']['below'] = array( 'below_left' => ( '' !== $new_below_header_section_1_item ) ? array( $new_below_header_section_1_item ) : array(), 'below_left_center' => array(), 'below_center' => array(), 'below_right_center' => array(), 'below_right' => ( '' !== $new_below_header_section_2_item ) ? array( $new_below_header_section_2_item ) : array(), ); break; case 'below-header-layout-2': $theme_options['header-desktop-items']['below'] = array( 'below_left' => array(), 'below_left_center' => array(), 'below_center' => ( '' !== $new_below_header_section_1_item ) ? array( $new_below_header_section_1_item ) : array(), 'below_right_center' => array(), 'below_right' => array(), ); break; } if ( $below_header_on_mobile ) { if ( $below_header_swap_mobile && ( 'menu' === $below_header_section_1 || 'menu' === $below_header_section_2 ) ) { $temp = $new_below_header_section_1_item; $new_below_header_section_1_item = $new_below_header_section_2_item; $new_below_header_section_2_item = $temp; } if ( $below_header_merge_menu && ( 'menu' === $below_header_section_1 || 'menu' === $below_header_section_2 ) ) { if ( '' !== $new_below_header_section_1_item ) { $theme_options['header-mobile-items']['popup']['popup_content'][] = $new_below_header_section_1_item; } if ( '' !== $new_below_header_section_2_item ) { $theme_options['header-mobile-items']['popup']['popup_content'][] = $new_below_header_section_2_item; } $theme_options['header-menu2-menu-stack-on-mobile'] = true; $theme_options['header-mobile-items']['below'] = array( 'below_left' => array(), 'below_center' => array(), 'below_right' => array(), ); } else { switch ( $below_header_layout ) { case 'below-header-layout-1': $theme_options['header-mobile-items']['below'] = array( 'below_left' => ( '' !== $new_below_header_section_1_item ) ? array( $new_below_header_section_1_item ) : array(), 'below_center' => array(), 'below_right' => ( '' !== $new_below_header_section_2_item ) ? array( $new_below_header_section_2_item ) : array(), ); break; case 'below-header-layout-2': $theme_options['header-mobile-items']['below'] = array( 'below_left' => array(), 'below_center' => ( '' !== $new_below_header_section_1_item ) ? array( $new_below_header_section_1_item ) : array(), 'below_right' => array(), ); break; } } } return array( 'theme_options' => $theme_options, 'used_elements' => $used_elements, 'widget_options' => $widget_options, ); } /** * Header Footer builder - Migration of Above Header. * * @since 3.0.0 * @param array $theme_options Theme options. * @param array $used_elements Used Elements array. * @param array $widget_options Widget options. * @return array */ function astra_above_header_builder_migration( $theme_options, $used_elements, $widget_options ) { /** * Above Header. */ $above_header_layout = ( isset( $theme_options['above-header-layout'] ) ) ? $theme_options['above-header-layout'] : ''; $above_header_on_mobile = ( isset( $theme_options['above-header-on-mobile'] ) ) ? $theme_options['above-header-on-mobile'] : ''; $above_header_merge_menu = ( isset( $theme_options['above-header-merge-menu'] ) ) ? $theme_options['above-header-merge-menu'] : ''; $above_header_swap_mobile = ( isset( $theme_options['above-header-swap-mobile'] ) ) ? $theme_options['above-header-swap-mobile'] : ''; if ( isset( $theme_options['above-header-height'] ) ) { $theme_options['hba-header-height'] = array( 'desktop' => $theme_options['above-header-height'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['above-header-divider'] ) ) { $theme_options['hba-header-separator'] = $theme_options['above-header-divider']; } if ( isset( $theme_options['above-header-divider-color'] ) ) { $theme_options['hba-header-bottom-border-color'] = $theme_options['above-header-divider-color']; } if ( isset( $theme_options['above-header-bg-obj-responsive'] ) ) { $theme_options['hba-header-bg-obj-responsive'] = $theme_options['above-header-bg-obj-responsive']; } if ( isset( $theme_options['above-header-spacing'] ) ) { $theme_options['section-above-header-builder-padding'] = $theme_options['above-header-spacing']; } // Above Header Section 1. $above_header_section_1 = ( isset( $theme_options['above-header-section-1'] ) ) ? $theme_options['above-header-section-1'] : ''; $new_above_header_section_1_item = ''; switch ( $above_header_section_1 ) { case 'menu': $new_above_header_section_1_item = 'menu-3'; break; case 'search': if ( ! in_array( 'search', $used_elements ) ) { $new_above_header_section_1_item = 'search'; if ( isset( $theme_options['above-header-section-1-search-box-type'] ) ) { $theme_options['header-search-box-type'] = $theme_options['above-header-section-1-search-box-type']; } } break; case 'text-html': if ( ! in_array( 'html-3', $used_elements ) ) { $new_above_header_section_1_item = 'html-3'; if ( isset( $theme_options['above-header-section-1-html'] ) ) { $theme_options['header-html-3'] = $theme_options['above-header-section-1-html']; } } break; case 'widget': if ( ! in_array( 'widget-3', $used_elements ) ) { $new_above_header_section_1_item = 'widget-3'; if ( isset( $widget_options['above-header-widget-1'] ) ) { $widget_options['header-widget-3'] = $widget_options['above-header-widget-1']; } } break; case 'woocommerce': if ( ! in_array( 'woo-cart', $used_elements ) ) { $new_above_header_section_1_item = 'woo-cart'; } break; case 'edd': if ( ! in_array( 'edd-cart', $used_elements ) ) { $new_above_header_section_1_item = 'edd-cart'; } break; } // Above Header Section 2. $above_header_section_2 = ( isset( $theme_options['above-header-section-2'] ) ) ? $theme_options['above-header-section-2'] : ''; $new_above_header_section_2_item = ''; switch ( $above_header_section_2 ) { case 'menu': $new_above_header_section_2_item = 'menu-3'; break; case 'search': if ( ! in_array( 'search', $used_elements ) ) { $new_above_header_section_2_item = 'search'; if ( isset( $theme_options['above-header-section-2-search-box-type'] ) ) { $theme_options['header-search-box-type'] = $theme_options['above-header-section-2-search-box-type']; } } break; case 'text-html': if ( ! in_array( 'html-3', $used_elements ) ) { $new_above_header_section_2_item = 'html-3'; if ( isset( $theme_options['above-header-section-2-html'] ) ) { $theme_options['header-html-3'] = $theme_options['above-header-section-2-html']; } } break; case 'widget': if ( ! in_array( 'widget-3', $used_elements ) ) { $new_above_header_section_2_item = 'widget-3'; if ( isset( $widget_options['above-header-widget-2'] ) ) { $widget_options['header-widget-3'] = $widget_options['above-header-widget-2']; } } break; case 'woocommerce': if ( ! in_array( 'woo-cart', $used_elements ) ) { $new_above_header_section_2_item = 'woo-cart'; } break; case 'edd': if ( ! in_array( 'edd-cart', $used_elements ) ) { $new_above_header_section_2_item = 'edd-cart'; } break; } if ( 'menu' === $above_header_section_1 || 'menu' === $above_header_section_2 ) { $theme_options['header-menu3-menu-stack-on-mobile'] = false; /** * Menu - 3 */ if ( isset( $theme_options['above-header-submenu-container-animation'] ) ) { $theme_options['header-menu3-submenu-container-animation'] = $theme_options['above-header-submenu-container-animation']; } if ( isset( $theme_options['above-header-submenu-border'] ) ) { $theme_options['header-menu3-submenu-border'] = $theme_options['above-header-submenu-border']; } if ( isset( $theme_options['above-header-submenu-b-color'] ) ) { $theme_options['header-menu3-submenu-b-color'] = $theme_options['above-header-submenu-b-color']; } if ( isset( $theme_options['above-header-submenu-item-border'] ) ) { $theme_options['header-menu3-submenu-item-border'] = $theme_options['above-header-submenu-item-border']; } if ( isset( $theme_options['above-header-submenu-item-b-color'] ) ) { $theme_options['header-menu3-submenu-item-b-color'] = $theme_options['above-header-submenu-item-b-color']; } if ( isset( $theme_options['above-header-menu-text-color-responsive'] ) ) { $theme_options['header-menu3-color-responsive'] = $theme_options['above-header-menu-text-color-responsive']; } if ( isset( $theme_options['above-header-menu-bg-obj-responsive'] ) ) { $theme_options['header-menu3-bg-obj-responsive'] = $theme_options['above-header-menu-bg-obj-responsive']; } if ( isset( $theme_options['above-header-menu-text-hover-color-responsive'] ) ) { $theme_options['header-menu3-h-color-responsive'] = $theme_options['above-header-menu-text-hover-color-responsive']; } if ( isset( $theme_options['above-header-menu-bg-hover-color-responsive'] ) ) { $theme_options['header-menu3-h-bg-color-responsive'] = $theme_options['above-header-menu-bg-hover-color-responsive']; } if ( isset( $theme_options['above-header-current-menu-text-color-responsive'] ) ) { $theme_options['header-menu3-a-color-responsive'] = $theme_options['above-header-current-menu-text-color-responsive']; } if ( isset( $theme_options['above-header-current-menu-bg-color-responsive'] ) ) { $theme_options['header-menu3-a-bg-color-responsive'] = $theme_options['above-header-current-menu-bg-color-responsive']; } if ( isset( $theme_options['above-header-font-size'] ) ) { $theme_options['header-menu3-font-size'] = $theme_options['above-header-font-size']; } if ( isset( $theme_options['above-header-font-weight'] ) ) { $theme_options['header-menu3-font-weight'] = $theme_options['above-header-font-weight']; } if ( isset( $theme_options['above-header-line-height'] ) ) { $theme_options['header-menu3-line-height'] = $theme_options['above-header-line-height']; } if ( isset( $theme_options['above-header-font-family'] ) ) { $theme_options['header-menu3-font-family'] = $theme_options['above-header-font-family']; } if ( isset( $theme_options['above-header-text-transform'] ) ) { $theme_options['header-menu3-text-transform'] = $theme_options['above-header-text-transform']; } if ( isset( $theme_options['above-header-menu-spacing'] ) ) { $theme_options['header-menu3-menu-spacing'] = $theme_options['above-header-menu-spacing']; } // Menu 3 - Submenu. if ( isset( $theme_options['above-header-submenu-text-color-responsive'] ) ) { $theme_options['header-menu3-submenu-color-responsive'] = $theme_options['above-header-submenu-text-color-responsive']; } if ( isset( $theme_options['above-header-submenu-bg-color-responsive'] ) ) { $theme_options['header-menu3-submenu-bg-color-responsive'] = $theme_options['above-header-submenu-bg-color-responsive']; } if ( isset( $theme_options['above-header-submenu-hover-color-responsive'] ) ) { $theme_options['header-menu3-submenu-h-color-responsive'] = $theme_options['above-header-submenu-hover-color-responsive']; } if ( isset( $theme_options['above-header-submenu-bg-hover-color-responsive'] ) ) { $theme_options['header-menu3-submenu-h-bg-color-responsive'] = $theme_options['above-header-submenu-bg-hover-color-responsive']; } if ( isset( $theme_options['above-header-submenu-active-color-responsive'] ) ) { $theme_options['header-menu3-submenu-a-color-responsive'] = $theme_options['above-header-submenu-active-color-responsive']; } if ( isset( $theme_options['above-header-submenu-active-bg-color-responsive'] ) ) { $theme_options['header-menu3-submenu-a-bg-color-responsive'] = $theme_options['above-header-submenu-active-bg-color-responsive']; } if ( isset( $theme_options['font-size-above-header-dropdown-menu'] ) ) { $theme_options['header-font-size-menu3-sub-menu'] = $theme_options['font-size-above-header-dropdown-menu']; } if ( isset( $theme_options['font-weight-above-header-dropdown-menu'] ) ) { $theme_options['header-font-weight-menu3-sub-menu'] = $theme_options['font-weight-above-header-dropdown-menu']; } if ( isset( $theme_options['line-height-above-header-dropdown-menu'] ) ) { $theme_options['header-line-height-menu3-sub-menu'] = $theme_options['line-height-above-header-dropdown-menu']; } if ( isset( $theme_options['font-family-above-header-dropdown-menu'] ) ) { $theme_options['header-font-family-menu3-sub-menu'] = $theme_options['font-family-above-header-dropdown-menu']; } if ( isset( $theme_options['text-transform-above-header-dropdown-menu'] ) ) { $theme_options['header-text-transform-menu3-sub-menu'] = $theme_options['text-transform-above-header-dropdown-menu']; } if ( isset( $theme_options['above-header-submenu-spacing'] ) ) { $theme_options['header-menu3-submenu-spacing'] = $theme_options['above-header-submenu-spacing']; } } if ( 'search' === $above_header_section_1 || 'search' === $above_header_section_2 ) { if ( isset( $theme_options['above-header-text-color-responsive'] ) ) { $theme_options['header-search-icon-color'] = $theme_options['above-header-text-color-responsive']; } } if ( 'text-html' === $above_header_section_1 || 'text-html' === $above_header_section_2 ) { if ( isset( $theme_options['above-header-text-color-responsive'] ) ) { $theme_options['header-html-3color'] = $theme_options['above-header-text-color-responsive']; } if ( isset( $theme_options['above-header-link-color-responsive'] ) ) { $theme_options['header-html-3link-color'] = $theme_options['above-header-link-color-responsive']; } if ( isset( $theme_options['above-header-link-hover-color-responsive'] ) ) { $theme_options['header-html-3link-h-color'] = $theme_options['above-header-link-hover-color-responsive']; } if ( isset( $theme_options['font-size-above-header-content'] ) ) { $theme_options['font-size-section-hb-html-3'] = $theme_options['font-size-above-header-content']; } if ( isset( $theme_options['font-weight-above-header-content'] ) ) { $theme_options['font-weight-section-hb-html-3'] = $theme_options['font-weight-above-header-content']; } if ( isset( $theme_options['line-height-above-header-content'] ) ) { $theme_options['line-height-section-hb-html-3'] = $theme_options['line-height-above-header-content']; } if ( isset( $theme_options['font-family-above-header-content'] ) ) { $theme_options['font-family-section-hb-html-3'] = $theme_options['font-family-above-header-content']; } if ( isset( $theme_options['text-transform-above-header-content'] ) ) { $theme_options['text-transform-section-hb-html-3'] = $theme_options['text-transform-above-header-content']; } } if ( 'widget' === $above_header_section_1 || 'widget' === $above_header_section_2 ) { if ( isset( $theme_options['above-header-text-color-responsive'] ) ) { $theme_options['header-widget-3-color'] = $theme_options['above-header-text-color-responsive']; $theme_options['header-widget-3-title-color'] = $theme_options['above-header-text-color-responsive']; } if ( isset( $theme_options['above-header-link-color-responsive'] ) ) { $theme_options['header-widget-3-link-color'] = $theme_options['above-header-link-color-responsive']; } if ( isset( $theme_options['above-header-link-hover-color-responsive'] ) ) { $theme_options['header-widget-3-link-h-color'] = $theme_options['above-header-link-hover-color-responsive']; } if ( isset( $theme_options['font-size-above-header-content'] ) ) { $theme_options['header-widget-3-content-font-size'] = $theme_options['font-size-above-header-content']; } if ( isset( $theme_options['font-weight-above-header-content'] ) ) { $theme_options['header-widget-3-content-font-weight'] = $theme_options['font-weight-above-header-content']; } if ( isset( $theme_options['line-height-above-header-content'] ) ) { $theme_options['header-widget-3-content-line-height'] = $theme_options['line-height-above-header-content']; } if ( isset( $theme_options['font-family-above-header-content'] ) ) { $theme_options['header-widget-3-content-font-family'] = $theme_options['font-family-above-header-content']; } if ( isset( $theme_options['text-transform-above-header-content'] ) ) { $theme_options['header-widget-3-content-text-transform'] = $theme_options['text-transform-above-header-content']; } } switch ( $above_header_layout ) { case 'above-header-layout-1': $theme_options['header-desktop-items']['above'] = array( 'above_left' => ( '' !== $new_above_header_section_1_item ) ? array( $new_above_header_section_1_item ) : array(), 'above_left_center' => array(), 'above_center' => array(), 'above_right_center' => array(), 'above_right' => ( '' !== $new_above_header_section_2_item ) ? array( $new_above_header_section_2_item ) : array(), ); break; case 'above-header-layout-2': $theme_options['header-desktop-items']['above'] = array( 'above_left' => array(), 'above_left_center' => array(), 'above_center' => ( '' !== $new_above_header_section_1_item ) ? array( $new_above_header_section_1_item ) : array(), 'above_right_center' => array(), 'above_right' => array(), ); break; } if ( $above_header_on_mobile ) { if ( $above_header_swap_mobile && ( 'menu' === $above_header_section_1 || 'menu' === $above_header_section_2 ) ) { $temp = $new_above_header_section_1_item; $new_above_header_section_1_item = $new_above_header_section_2_item; $new_above_header_section_2_item = $temp; } if ( $above_header_merge_menu && ( 'menu' === $above_header_section_1 || 'menu' === $above_header_section_2 ) ) { if ( '' !== $new_above_header_section_1_item ) { $theme_options['header-mobile-items']['popup']['popup_content'][] = $new_above_header_section_1_item; } if ( '' !== $new_above_header_section_2_item ) { $theme_options['header-mobile-items']['popup']['popup_content'][] = $new_above_header_section_2_item; } $theme_options['header-menu3-menu-stack-on-mobile'] = true; $theme_options['header-mobile-items']['above'] = array( 'above_left' => array(), 'above_center' => array(), 'above_right' => array(), ); } else { switch ( $above_header_layout ) { case 'above-header-layout-1': $theme_options['header-mobile-items']['above'] = array( 'above_left' => ( '' !== $new_above_header_section_1_item ) ? array( $new_above_header_section_1_item ) : array(), 'above_center' => array(), 'above_right' => ( '' !== $new_above_header_section_2_item ) ? array( $new_above_header_section_2_item ) : array(), ); break; case 'above-header-layout-2': $theme_options['header-mobile-items']['above'] = array( 'above_left' => array(), 'above_center' => ( '' !== $new_above_header_section_1_item ) ? array( $new_above_header_section_1_item ) : array(), 'above_right' => array(), ); break; } } } return array( 'theme_options' => $theme_options, 'used_elements' => $used_elements, 'widget_options' => $widget_options, ); } /** * Header Footer builder - Migration of Footer. * * @since 3.0.0 * @param array $theme_options Theme options. * @param array $used_elements Used Elements array. * @param array $widget_options Widget options. * @return array */ function astra_footer_builder_migration( $theme_options, $used_elements, $widget_options ) { /** * Footer */ $footer_layout = ( isset( $theme_options['footer-sml-layout'] ) ) ? $theme_options['footer-sml-layout'] : ''; if ( isset( $theme_options['footer-layout-width'] ) ) { $theme_options['hb-footer-layout-width'] = $theme_options['footer-layout-width']; } if ( isset( $theme_options['footer-sml-divider'] ) ) { $theme_options['hbb-footer-separator'] = $theme_options['footer-sml-divider']; } if ( isset( $theme_options['footer-sml-divider-color'] ) ) { $theme_options['hbb-footer-top-border-color'] = $theme_options['footer-sml-divider-color']; } if ( isset( $theme_options['footer-bg-obj'] ) ) { $theme_options['hbb-footer-bg-obj-responsive'] = array( 'desktop' => $theme_options['footer-bg-obj'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['footer-sml-spacing'] ) ) { $theme_options['section-below-footer-builder-padding'] = $theme_options['footer-sml-spacing']; } // Footer Section 1. $footer_section_1 = ( isset( $theme_options['footer-sml-section-1'] ) ) ? $theme_options['footer-sml-section-1'] : ''; $new_section_1_item = ''; $used_elements[] = $new_section_1_item; $footer_section_2 = ( isset( $theme_options['footer-sml-section-2'] ) ) ? $theme_options['footer-sml-section-2'] : ''; $new_section_2_item = ''; $used_elements[] = $new_section_2_item; switch ( $footer_section_1 ) { case 'custom': $new_section_1_item = 'copyright'; $theme_options['footer-copyright-alignment'] = array( 'desktop' => ( 'footer-sml-layout-1' === $footer_layout ) ? 'center' : 'left', 'tablet' => ( 'footer-sml-layout-1' === $footer_layout ) ? 'center' : 'left', 'mobile' => 'center', ); break; case 'widget': $new_section_1_item = 'widget-1'; $theme_options['footer-widget-alignment-1'] = array( 'desktop' => ( 'footer-sml-layout-1' === $footer_layout ) ? 'center' : 'left', 'tablet' => ( 'footer-sml-layout-1' === $footer_layout ) ? 'center' : 'left', 'mobile' => 'center', ); if ( isset( $theme_options['footer-color'] ) ) { $theme_options['footer-widget-1-color'] = array( 'desktop' => $theme_options['footer-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['footer-link-color'] ) ) { $theme_options['footer-widget-1-link-color'] = array( 'desktop' => $theme_options['footer-link-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['footer-link-h-color'] ) ) { $theme_options['footer-widget-1-link-h-color'] = array( 'desktop' => $theme_options['footer-link-h-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['font-size-footer-content'] ) ) { $theme_options['footer-widget-1-content-font-size'] = $theme_options['font-size-footer-content']; } if ( isset( $theme_options['font-weight-footer-content'] ) ) { $theme_options['footer-widget-1-content-font-weight'] = $theme_options['font-weight-footer-content']; } if ( isset( $theme_options['line-height-footer-content'] ) ) { $theme_options['footer-widget-1-content-line-height'] = $theme_options['line-height-footer-content']; } if ( isset( $theme_options['font-family-footer-content'] ) ) { $theme_options['footer-widget-1-content-font-family'] = $theme_options['font-family-footer-content']; } if ( isset( $theme_options['text-transform-footer-content'] ) ) { $theme_options['footer-widget-1-content-text-transform'] = $theme_options['text-transform-footer-content']; } break; case 'menu': $theme_options['footer-menu-alignment'] = array( 'desktop' => ( 'footer-sml-layout-1' === $footer_layout ) ? 'center' : 'flex-start', 'tablet' => ( 'footer-sml-layout-1' === $footer_layout ) ? 'center' : 'flex-start', 'mobile' => 'center', ); $new_section_1_item = 'menu'; break; } // Footer Section 2. switch ( $footer_section_2 ) { case 'custom': $new_section_2_item = ( 'copyright' !== $new_section_1_item ) ? 'copyright' : 'html-1'; if ( 'copyright' !== $new_section_1_item ) { $theme_options['footer-copyright-alignment'] = array( 'desktop' => ( 'footer-sml-layout-1' === $footer_layout ) ? 'center' : 'right', 'tablet' => ( 'footer-sml-layout-1' === $footer_layout ) ? 'center' : 'right', 'mobile' => 'center', ); if ( isset( $theme_options['footer-sml-section-2-credit'] ) ) { $theme_options['footer-copyright-editor'] = $theme_options['footer-sml-section-2-credit']; } } else { $theme_options['footer-html-1-alignment'] = array( 'desktop' => ( 'footer-sml-layout-1' === $footer_layout ) ? 'center' : 'right', 'tablet' => ( 'footer-sml-layout-1' === $footer_layout ) ? 'center' : 'right', 'mobile' => 'center', ); if ( isset( $theme_options['footer-sml-section-2-credit'] ) ) { $theme_options['footer-html-1'] = $theme_options['footer-sml-section-2-credit']; } } break; case 'widget': $new_section_2_item = 'widget-2'; $theme_options['footer-widget-alignment-2'] = array( 'desktop' => ( 'footer-sml-layout-1' === $footer_layout ) ? 'center' : 'right', 'tablet' => ( 'footer-sml-layout-1' === $footer_layout ) ? 'center' : 'right', 'mobile' => 'center', ); if ( isset( $theme_options['footer-color'] ) ) { $theme_options['footer-widget-2-color'] = array( 'desktop' => $theme_options['footer-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['footer-link-color'] ) ) { $theme_options['footer-widget-2-link-color'] = array( 'desktop' => $theme_options['footer-link-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['footer-link-h-color'] ) ) { $theme_options['footer-widget-2-link-h-color'] = array( 'desktop' => $theme_options['footer-link-h-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['font-size-footer-content'] ) ) { $theme_options['footer-widget-2-content-font-size'] = $theme_options['font-size-footer-content']; } if ( isset( $theme_options['font-weight-footer-content'] ) ) { $theme_options['footer-widget-2-content-font-weight'] = $theme_options['font-weight-footer-content']; } if ( isset( $theme_options['line-height-footer-content'] ) ) { $theme_options['footer-widget-2-content-line-height'] = $theme_options['line-height-footer-content']; } if ( isset( $theme_options['font-family-footer-content'] ) ) { $theme_options['footer-widget-2-content-font-family'] = $theme_options['font-family-footer-content']; } if ( isset( $theme_options['text-transform-footer-content'] ) ) { $theme_options['footer-widget-2-content-text-transform'] = $theme_options['text-transform-footer-content']; } break; case 'menu': $new_section_2_item = 'menu'; $theme_options['footer-menu-alignment'] = array( 'desktop' => ( 'footer-sml-layout-1' === $footer_layout ) ? 'center' : 'flex-end', 'tablet' => ( 'footer-sml-layout-1' === $footer_layout ) ? 'center' : 'flex-end', 'mobile' => 'center', ); break; } if ( 'custom' === $footer_section_1 || 'custom' === $footer_section_2 ) { // Footer Content Color migrated to Copyright. if ( isset( $theme_options['footer-sml-section-1-credit'] ) ) { $theme_options['footer-copyright-editor'] = $theme_options['footer-sml-section-1-credit']; } if ( isset( $theme_options['footer-color'] ) ) { $theme_options['footer-copyright-color'] = $theme_options['footer-color']; } if ( isset( $theme_options['footer-link-color'] ) ) { $theme_options['footer-copyright-link-color'] = $theme_options['footer-link-color']; } if ( isset( $theme_options['footer-link-h-color'] ) ) { $theme_options['footer-copyright-link-h-color'] = $theme_options['footer-link-h-color']; } if ( isset( $theme_options['font-size-footer-content'] ) ) { $theme_options['font-size-section-footer-copyright'] = $theme_options['font-size-footer-content']; } if ( isset( $theme_options['font-weight-footer-content'] ) ) { $theme_options['font-weight-section-footer-copyright'] = $theme_options['font-weight-footer-content']; } if ( isset( $theme_options['line-height-footer-content'] ) ) { $theme_options['line-height-section-footer-copyright'] = $theme_options['line-height-footer-content']; } if ( isset( $theme_options['font-family-footer-content'] ) ) { $theme_options['font-family-section-footer-copyright'] = $theme_options['font-family-footer-content']; } if ( isset( $theme_options['text-transform-footer-content'] ) ) { $theme_options['text-transform-section-footer-copyright'] = $theme_options['text-transform-footer-content']; } if ( 'html-1' === $new_section_2_item ) { // Footer Content Color migrated to HTML 1. if ( isset( $theme_options['footer-color'] ) ) { $theme_options['footer-html-1-color'] = array( 'desktop' => $theme_options['footer-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['footer-link-color'] ) ) { $theme_options['footer-html-1-link-color'] = array( 'desktop' => $theme_options['footer-link-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['footer-link-h-color'] ) ) { $theme_options['footer-html-1-link-h-color'] = array( 'desktop' => $theme_options['footer-link-h-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['font-size-footer-content'] ) ) { $theme_options['font-size-section-fb-html-1'] = $theme_options['font-size-footer-content']; } if ( isset( $theme_options['font-weight-footer-content'] ) ) { $theme_options['font-weight-section-fb-html-1'] = $theme_options['font-weight-footer-content']; } if ( isset( $theme_options['line-height-footer-content'] ) ) { $theme_options['line-height-section-fb-html-1'] = $theme_options['line-height-footer-content']; } if ( isset( $theme_options['font-family-footer-content'] ) ) { $theme_options['font-family-section-fb-html-1'] = $theme_options['font-family-footer-content']; } if ( isset( $theme_options['text-transform-footer-content'] ) ) { $theme_options['text-transform-section-fb-html-1'] = $theme_options['text-transform-footer-content']; } } } if ( 'menu' === $footer_section_1 || 'menu' === $footer_section_2 ) { if ( isset( $theme_options['footer-link-color'] ) ) { $theme_options['footer-menu-color-responsive'] = array( 'desktop' => $theme_options['footer-link-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['footer-link-h-color'] ) ) { $theme_options['footer-menu-h-color-responsive'] = array( 'desktop' => $theme_options['footer-link-h-color'], 'tablet' => '', 'mobile' => '', ); } $theme_options['footer-menu-layout'] = array( 'desktop' => 'horizontal', 'tablet' => 'horizontal', 'mobile' => 'horizontal', ); if ( isset( $theme_options['font-size-footer-content'] ) ) { $theme_options['footer-menu-font-size'] = $theme_options['font-size-footer-content']; } if ( isset( $theme_options['font-weight-footer-content'] ) ) { $theme_options['footer-menu-font-weight'] = $theme_options['font-weight-footer-content']; } if ( isset( $theme_options['line-height-footer-content'] ) ) { $theme_options['footer-menu-line-height'] = $theme_options['line-height-footer-content']; } if ( isset( $theme_options['font-family-footer-content'] ) ) { $theme_options['footer-menu-font-family'] = $theme_options['font-family-footer-content']; } if ( isset( $theme_options['text-transform-footer-content'] ) ) { $theme_options['footer-menu-text-transform'] = $theme_options['text-transform-footer-content']; } if ( isset( $theme_options['footer-menu-spacing'] ) ) { $theme_options['footer-main-menu-spacing'] = $theme_options['footer-menu-spacing']; } } if ( '' !== $footer_layout ) { $theme_options['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(), 'below_2' => array(), 'below_3' => array(), 'below_4' => array(), 'below_5' => array(), ), ); switch ( $footer_layout ) { case 'footer-sml-layout-1': $theme_options['footer-desktop-items']['below'] = array( 'below_1' => array( $new_section_1_item, $new_section_2_item ), 'below_2' => array(), 'below_3' => array(), 'below_4' => array(), 'below_5' => array(), ); $theme_options['hbb-footer-column'] = 1; $theme_options['hbb-footer-layout'] = array( 'desktop' => 'full', 'tablet' => 'full', 'mobile' => 'full', ); break; case 'footer-sml-layout-2': $theme_options['footer-desktop-items']['below'] = array( 'below_1' => array( $new_section_1_item ), 'below_2' => array( $new_section_2_item ), 'below_3' => array(), 'below_4' => array(), 'below_5' => array(), ); $theme_options['hbb-footer-column'] = 2; $theme_options['hbb-footer-layout'] = array( 'desktop' => '2-equal', 'tablet' => '2-equal', 'mobile' => 'full', ); break; default: $theme_options['footer-desktop-items']['below'] = array( 'below_1' => array( 'copyright' ), 'below_2' => array(), 'below_3' => array(), 'below_4' => array(), 'below_5' => array(), ); } } return array( 'theme_options' => $theme_options, 'used_elements' => $used_elements, 'widget_options' => $widget_options, ); } /** * Header Footer builder - Migration of Footer Widgets. * * @since 3.0.0 * @param array $theme_options Theme options. * @param array $used_elements Used Elements array. * @param array $widget_options Widget options. * @return array */ function astra_footer_widgets_migration( $theme_options, $used_elements, $widget_options ) { $footer_widget_layouts = ( isset( $theme_options['footer-adv'] ) ) ? $theme_options['footer-adv'] : ''; if ( '' !== $footer_widget_layouts ) { $column = 2; $layout = array( 'desktop' => '2-equal', 'tablet' => '2-equal', 'mobile' => 'full', ); $items = array( 'above_1' => array(), 'above_2' => array(), 'above_3' => array(), 'above_4' => array(), 'above_5' => array(), ); switch ( $footer_widget_layouts ) { case 'layout-1': $column = '1'; $layout = array( 'desktop' => 'full', 'tablet' => 'full', 'mobile' => 'full', ); $items = array( 'above_1' => array( 'widget-1' ), 'above_2' => array(), 'above_3' => array(), 'above_4' => array(), 'above_5' => array(), ); break; case 'layout-2': $column = '2'; $layout = array( 'desktop' => '2-equal', 'tablet' => '2-equal', 'mobile' => '2-equal', ); $items = array( 'above_1' => array( 'widget-1' ), 'above_2' => array( 'widget-2' ), 'above_3' => array(), 'above_4' => array(), 'above_5' => array(), ); break; case 'layout-3': $column = '3'; $layout = array( 'desktop' => '3-equal', 'tablet' => 'full', 'mobile' => 'full', ); $items = array( 'above_1' => array( 'widget-1' ), 'above_2' => array( 'widget-2' ), 'above_3' => array( 'widget-3' ), 'above_4' => array(), 'above_5' => array(), ); break; case 'layout-4': $column = '4'; $layout = array( 'desktop' => '4-equal', 'tablet' => 'full', 'mobile' => 'full', ); $items = array( 'above_1' => array( 'widget-1' ), 'above_2' => array( 'widget-2' ), 'above_3' => array( 'widget-3' ), 'above_4' => array( 'widget-4' ), 'above_5' => array(), ); break; case 'layout-5': $column = '5'; $layout = array( 'desktop' => '5-equal', 'tablet' => 'full', 'mobile' => 'full', ); $items = array( 'above_1' => array( 'widget-1' ), 'above_2' => array( 'widget-2' ), 'above_3' => array( 'widget-3' ), 'above_4' => array( 'widget-4' ), 'above_5' => array( 'widget-5' ), ); break; case 'layout-6': case 'layout-7': $column = '3'; $layout = array( 'desktop' => '3-lheavy', 'tablet' => 'full', 'mobile' => 'full', ); $items = array( 'above_1' => array( 'widget-1' ), 'above_2' => array( 'widget-2' ), 'above_3' => array( 'widget-3' ), 'above_4' => array(), 'above_5' => array(), ); break; } $theme_options['hba-footer-column'] = $column; $theme_options['hba-footer-layout'] = $layout; if ( isset( $theme_options['footer-desktop-items'] ) ) { $theme_options['footer-desktop-items']['above'] = $items; } for ( $i = 1; $i <= $column; $i++ ) { if ( isset( $theme_options['footer-adv-wgt-title-color'] ) ) { $theme_options[ 'footer-widget-' . $i . '-title-color' ] = array( 'desktop' => $theme_options['footer-adv-wgt-title-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['footer-adv-text-color'] ) ) { $theme_options[ 'footer-widget-' . $i . '-color' ] = array( 'desktop' => $theme_options['footer-adv-text-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['footer-adv-link-color'] ) ) { $theme_options[ 'footer-widget-' . $i . '-link-color' ] = array( 'desktop' => $theme_options['footer-adv-link-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['footer-adv-link-h-color'] ) ) { $theme_options[ 'footer-widget-' . $i . '-link-h-color' ] = array( 'desktop' => $theme_options['footer-adv-link-h-color'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['footer-adv-wgt-title-font-size'] ) ) { $theme_options[ 'footer-widget-' . $i . '-font-size' ] = $theme_options['footer-adv-wgt-title-font-size']; } if ( isset( $theme_options['footer-adv-wgt-title-font-weight'] ) ) { $theme_options[ 'footer-widget-' . $i . '-font-weight' ] = $theme_options['footer-adv-wgt-title-font-weight']; } if ( isset( $theme_options['footer-adv-wgt-title-line-height'] ) ) { $theme_options[ 'footer-widget-' . $i . '-line-height' ] = $theme_options['footer-adv-wgt-title-line-height']; } if ( isset( $theme_options['footer-adv-wgt-title-font-family'] ) ) { $theme_options[ 'footer-widget-' . $i . '-font-family' ] = $theme_options['footer-adv-wgt-title-font-family']; } if ( isset( $theme_options['footer-adv-wgt-title-text-transform'] ) ) { $theme_options[ 'footer-widget-' . $i . '-text-transform' ] = $theme_options['footer-adv-wgt-title-text-transform']; } if ( isset( $theme_options['footer-adv-wgt-content-font-size'] ) ) { $theme_options[ 'footer-widget-' . $i . '-content-font-size' ] = $theme_options['footer-adv-wgt-content-font-size']; } if ( isset( $theme_options['footer-adv-wgt-content-font-weight'] ) ) { $theme_options[ 'footer-widget-' . $i . '-content-font-weight' ] = $theme_options['footer-adv-wgt-content-font-weight']; } if ( isset( $theme_options['footer-adv-wgt-content-line-height'] ) ) { $theme_options[ 'footer-widget-' . $i . '-content-line-height' ] = $theme_options['footer-adv-wgt-content-line-height']; } if ( isset( $theme_options['footer-adv-wgt-content-font-family'] ) ) { $theme_options[ 'footer-widget-' . $i . '-content-font-family' ] = $theme_options['footer-adv-wgt-content-font-family']; } if ( isset( $theme_options['footer-adv-wgt-content-text-transform'] ) ) { $theme_options[ 'footer-widget-' . $i . '-content-text-transform' ] = $theme_options['footer-adv-wgt-content-text-transform']; } if ( isset( $widget_options[ 'advanced-footer-widget-' . $i ] ) ) { $widget_options[ 'footer-widget-' . $i ] = $widget_options[ 'advanced-footer-widget-' . $i ]; } } } if ( isset( $theme_options['footer-adv-border-width'] ) ) { $theme_options['hba-footer-separator'] = $theme_options['footer-adv-border-width']; } if ( isset( $theme_options['footer-adv-border-color'] ) ) { $theme_options['hba-footer-top-border-color'] = $theme_options['footer-adv-border-color']; } if ( isset( $theme_options['footer-adv-bg-obj'] ) ) { $theme_options['hba-footer-bg-obj-responsive'] = array( 'desktop' => $theme_options['footer-adv-bg-obj'], 'tablet' => '', 'mobile' => '', ); } if ( isset( $theme_options['footer-adv-area-padding'] ) ) { $theme_options['section-above-footer-builder-padding'] = $theme_options['footer-adv-area-padding']; } return array( 'theme_options' => $theme_options, 'used_elements' => $used_elements, 'widget_options' => $widget_options, ); } /** * Header Footer builder - Migration of Primary Menu. * * @since 3.0.0 * @param array $theme_options Theme options. * @param array $used_elements Used Elements array. * @param array $widget_options Widget options. * @return array */ function astra_primary_menu_builder_migration( $theme_options, $used_elements, $widget_options ) { /** * Primary Menu. */ if ( isset( $theme_options['header-main-submenu-container-animation'] ) ) { $theme_options['header-menu1-submenu-container-animation'] = $theme_options['header-main-submenu-container-animation']; } if ( isset( $theme_options['primary-submenu-border'] ) ) { $theme_options['header-menu1-submenu-border'] = $theme_options['primary-submenu-border']; } if ( isset( $theme_options['primary-submenu-b-color'] ) ) { $theme_options['header-menu1-submenu-b-color'] = $theme_options['primary-submenu-b-color']; } if ( isset( $theme_options['primary-submenu-item-border'] ) ) { $theme_options['header-menu1-submenu-item-border'] = $theme_options['primary-submenu-item-border']; } if ( isset( $theme_options['primary-submenu-item-b-color'] ) ) { $theme_options['header-menu1-submenu-item-b-color'] = $theme_options['primary-submenu-item-b-color']; } /** * Primary Menu. */ if ( isset( $theme_options['primary-menu-color-responsive'] ) ) { $theme_options['header-menu1-color-responsive'] = $theme_options['primary-menu-color-responsive']; } if ( isset( $theme_options['primary-menu-bg-obj-responsive'] ) ) { $theme_options['header-menu1-bg-obj-responsive'] = $theme_options['primary-menu-bg-obj-responsive']; } if ( isset( $theme_options['primary-menu-text-h-color-responsive'] ) ) { $theme_options['header-menu1-h-color-responsive'] = $theme_options['primary-menu-text-h-color-responsive']; } if ( isset( $theme_options['primary-menu-h-bg-color-responsive'] ) ) { $theme_options['header-menu1-h-bg-color-responsive'] = $theme_options['primary-menu-h-bg-color-responsive']; } if ( isset( $theme_options['primary-menu-a-color-responsive'] ) ) { $theme_options['header-menu1-a-color-responsive'] = $theme_options['primary-menu-a-color-responsive']; } if ( isset( $theme_options['primary-menu-a-bg-color-responsive'] ) ) { $theme_options['header-menu1-a-bg-color-responsive'] = $theme_options['primary-menu-a-bg-color-responsive']; } if ( isset( $theme_options['font-size-primary-menu'] ) ) { $theme_options['header-menu1-font-size'] = $theme_options['font-size-primary-menu']; } if ( isset( $theme_options['font-weight-primary-menu'] ) ) { $theme_options['header-menu1-font-weight'] = $theme_options['font-weight-primary-menu']; } if ( isset( $theme_options['line-height-primary-menu'] ) ) { $theme_options['header-menu1-line-height'] = $theme_options['line-height-primary-menu']; } if ( isset( $theme_options['font-family-primary-menu'] ) ) { $theme_options['header-menu1-font-family'] = $theme_options['font-family-primary-menu']; } if ( isset( $theme_options['text-transform-primary-menu'] ) ) { $theme_options['header-menu1-text-transform'] = $theme_options['text-transform-primary-menu']; } if ( isset( $theme_options['primary-menu-spacing'] ) ) { $theme_options['header-menu1-menu-spacing'] = $theme_options['primary-menu-spacing']; } // Primary Menu - Submenu. if ( isset( $theme_options['primary-submenu-color-responsive'] ) ) { $theme_options['header-menu1-submenu-color-responsive'] = $theme_options['primary-submenu-color-responsive']; } if ( isset( $theme_options['primary-submenu-bg-color-responsive'] ) ) { $theme_options['header-menu1-submenu-bg-color-responsive'] = $theme_options['primary-submenu-bg-color-responsive']; } if ( isset( $theme_options['primary-submenu-h-color-responsive'] ) ) { $theme_options['header-menu1-submenu-h-color-responsive'] = $theme_options['primary-submenu-h-color-responsive']; } if ( isset( $theme_options['primary-submenu-h-bg-color-responsive'] ) ) { $theme_options['header-menu1-submenu-h-bg-color-responsive'] = $theme_options['primary-submenu-h-bg-color-responsive']; } if ( isset( $theme_options['primary-submenu-a-color-responsive'] ) ) { $theme_options['header-menu1-submenu-a-color-responsive'] = $theme_options['primary-submenu-a-color-responsive']; } if ( isset( $theme_options['primary-submenu-a-bg-color-responsive'] ) ) { $theme_options['header-menu1-submenu-a-bg-color-responsive'] = $theme_options['primary-submenu-a-bg-color-responsive']; } if ( isset( $theme_options['font-size-primary-dropdown-menu'] ) ) { $theme_options['header-font-size-menu1-sub-menu'] = $theme_options['font-size-primary-dropdown-menu']; } if ( isset( $theme_options['font-weight-primary-dropdown-menu'] ) ) { $theme_options['header-font-weight-menu1-sub-menu'] = $theme_options['font-weight-primary-dropdown-menu']; } if ( isset( $theme_options['line-height-primary-dropdown-menu'] ) ) { $theme_options['header-line-height-menu1-sub-menu'] = $theme_options['line-height-primary-dropdown-menu']; } if ( isset( $theme_options['font-family-primary-dropdown-menu'] ) ) { $theme_options['header-font-family-menu1-sub-menu'] = $theme_options['font-family-primary-dropdown-menu']; } if ( isset( $theme_options['text-transform-primary-dropdown-menu'] ) ) { $theme_options['header-text-transform-menu1-sub-menu'] = $theme_options['text-transform-primary-dropdown-menu']; } if ( isset( $theme_options['primary-submenu-spacing'] ) ) { $theme_options['header-menu1-submenu-spacing'] = $theme_options['primary-submenu-spacing']; } // Primary Menu - Mega Menu. if ( isset( $theme_options['primary-header-megamenu-heading-color'] ) ) { $theme_options['header-menu1-header-megamenu-heading-color'] = $theme_options['primary-header-megamenu-heading-color']; } if ( isset( $theme_options['primary-header-megamenu-heading-h-color'] ) ) { $theme_options['header-menu1-header-megamenu-heading-h-color'] = $theme_options['primary-header-megamenu-heading-h-color']; } if ( isset( $theme_options['primary-header-megamenu-heading-font-size'] ) ) { $theme_options['header-menu1-megamenu-heading-font-size'] = $theme_options['primary-header-megamenu-heading-font-size']; } if ( isset( $theme_options['primary-header-megamenu-heading-font-weight'] ) ) { $theme_options['header-menu1-megamenu-heading-font-weight'] = $theme_options['primary-header-megamenu-heading-font-weight']; } if ( isset( $theme_options['primary-header-megamenu-heading-line-height'] ) ) { $theme_options['header-menu1-megamenu-heading-line-height'] = $theme_options['primary-header-megamenu-heading-line-height']; } if ( isset( $theme_options['primary-header-megamenu-heading-font-family'] ) ) { $theme_options['header-menu1-megamenu-heading-font-family'] = $theme_options['primary-header-megamenu-heading-font-family']; } if ( isset( $theme_options['primary-header-megamenu-heading-text-transform'] ) ) { $theme_options['header-menu1-megamenu-heading-text-transform'] = $theme_options['primary-header-megamenu-heading-text-transform']; } if ( isset( $theme_options['primary-header-megamenu-heading-space'] ) ) { $theme_options['header-menu1-megamenu-heading-space'] = $theme_options['primary-header-megamenu-heading-space']; } /** * Primary Menu - Mobile. */ if ( isset( $theme_options['header-main-menu-label'] ) ) { $theme_options['mobile-header-menu-label'] = $theme_options['header-main-menu-label']; } if ( isset( $theme_options['mobile-header-toggle-btn-style-color'] ) ) { $theme_options['mobile-header-toggle-btn-color'] = $theme_options['mobile-header-toggle-btn-style-color']; $theme_options['mobile-header-toggle-border-color'] = $theme_options['mobile-header-toggle-btn-style-color']; } if ( isset( $theme_options['mobile-header-toggle-btn-border-radius'] ) ) { $theme_options['mobile-header-toggle-border-radius'] = $theme_options['mobile-header-toggle-btn-border-radius']; } return array( 'theme_options' => $theme_options, 'used_elements' => $used_elements, 'widget_options' => $widget_options, ); } /** * Header Footer builder - Migration of Sticky Header. * * @since 3.0.0 * @param array $theme_options Theme options. * @param array $used_elements Used Elements array. * @param array $widget_options Widget options. * @return array */ function astra_sticky_header_builder_migration( $theme_options, $used_elements, $widget_options ) { // Menu. $is_menu_in_primary = false; $is_menu_in_above = false; $is_menu_in_below = false; if ( isset( $theme_options['header-desktop-items']['primary'] ) ) { foreach ( $theme_options['header-desktop-items']['primary'] as $zone ) { if ( false !== array_search( 'menu-1', $zone ) ) { $is_menu_in_primary = true; } } } if ( isset( $theme_options['header-desktop-items']['above'] ) ) { foreach ( $theme_options['header-desktop-items']['above'] as $zone ) { if ( false !== array_search( 'menu-1', $zone ) ) { $is_menu_in_above = true; } } } if ( isset( $theme_options['header-desktop-items']['below'] ) ) { foreach ( $theme_options['header-desktop-items']['below'] as $zone ) { if ( false !== array_search( 'menu-1', $zone ) ) { $is_menu_in_below = true; } } } if ( $is_menu_in_primary ) { // Menu. // Normal. if ( isset( $theme_options['sticky-header-menu-color-responsive'] ) ) { $theme_options['sticky-header-menu1-color-responsive'] = $theme_options['sticky-header-menu-color-responsive']; } if ( isset( $theme_options['sticky-header-menu-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu1-bg-obj-responsive'] = $theme_options['sticky-header-menu-bg-color-responsive']; } // Hover. if ( isset( $theme_options['sticky-header-menu-h-color-responsive'] ) ) { $theme_options['sticky-header-menu1-h-color-responsive'] = $theme_options['sticky-header-menu-h-color-responsive']; } if ( isset( $theme_options['sticky-header-menu-h-a-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu1-h-bg-color-responsive'] = $theme_options['sticky-header-menu-h-a-bg-color-responsive']; } // Active. if ( isset( $theme_options['sticky-header-menu-h-color-responsive'] ) ) { $theme_options['sticky-header-menu1-a-color-responsive'] = $theme_options['sticky-header-menu-h-color-responsive']; } if ( isset( $theme_options['sticky-header-menu-h-a-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu1-a-bg-color-responsive'] = $theme_options['sticky-header-menu-h-a-bg-color-responsive']; } // Submenu. // Normal. if ( isset( $theme_options['sticky-header-submenu-color-responsive'] ) ) { $theme_options['sticky-header-menu1-submenu-color-responsive'] = $theme_options['sticky-header-submenu-color-responsive']; } if ( isset( $theme_options['sticky-header-submenu-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu1-submenu-bg-color-responsive'] = $theme_options['sticky-header-submenu-bg-color-responsive']; } // Hover. if ( isset( $theme_options['sticky-header-submenu-h-color-responsive'] ) ) { $theme_options['sticky-header-menu1-submenu-h-color-responsive'] = $theme_options['sticky-header-submenu-h-color-responsive']; } if ( isset( $theme_options['sticky-header-submenu-h-a-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu1-submenu-h-bg-color-responsive'] = $theme_options['sticky-header-submenu-h-a-bg-color-responsive']; } // Active. if ( isset( $theme_options['sticky-header-submenu-h-color-responsive'] ) ) { $theme_options['sticky-header-menu1-submenu-a-color-responsive'] = $theme_options['sticky-header-submenu-h-color-responsive']; } if ( isset( $theme_options['sticky-header-submenu-h-a-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu1-submenu-a-bg-color-responsive'] = $theme_options['sticky-header-submenu-h-a-bg-color-responsive']; } // Mega menu. // Normal. if ( isset( $theme_options['sticky-primary-header-megamenu-heading-color'] ) ) { $theme_options['sticky-header-menu1-header-megamenu-heading-color'] = $theme_options['sticky-primary-header-megamenu-heading-color']; } // Hover. if ( isset( $theme_options['sticky-primary-header-megamenu-heading-h-color'] ) ) { $theme_options['sticky-header-menu1-header-megamenu-heading-h-color'] = $theme_options['sticky-primary-header-megamenu-heading-h-color']; } } if ( $is_menu_in_above ) { // Menu. // Normal. if ( isset( $theme_options['sticky-above-header-menu-color-responsive'] ) ) { $theme_options['sticky-header-menu3-color-responsive'] = $theme_options['sticky-above-header-menu-color-responsive']; } if ( isset( $theme_options['sticky-above-header-menu-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu3-bg-obj-responsive'] = $theme_options['sticky-above-header-menu-bg-color-responsive']; } // Hover. if ( isset( $theme_options['sticky-above-header-menu-h-color-responsive'] ) ) { $theme_options['sticky-header-menu3-h-color-responsive'] = $theme_options['sticky-above-header-menu-h-color-responsive']; } if ( isset( $theme_options['sticky-above-header-menu-h-a-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu3-h-bg-color-responsive'] = $theme_options['sticky-above-header-menu-h-a-bg-color-responsive']; } // Active. if ( isset( $theme_options['sticky-above-header-menu-h-color-responsive'] ) ) { $theme_options['sticky-header-menu3-a-color-responsive'] = $theme_options['sticky-above-header-menu-h-color-responsive']; } if ( isset( $theme_options['sticky-above-header-menu-h-a-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu3-a-bg-color-responsive'] = $theme_options['sticky-above-header-menu-h-a-bg-color-responsive']; } // Submenu. // Normal. if ( isset( $theme_options['sticky-above-header-submenu-color-responsive'] ) ) { $theme_options['sticky-header-menu3-submenu-color-responsive'] = $theme_options['sticky-above-header-submenu-color-responsive']; } if ( isset( $theme_options['sticky-above-header-submenu-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu3-submenu-bg-obj-responsive'] = $theme_options['sticky-above-header-submenu-bg-color-responsive']; } // Hover. if ( isset( $theme_options['sticky-above-header-submenu-h-color-responsive'] ) ) { $theme_options['sticky-header-menu3-submenu-h-color-responsive'] = $theme_options['sticky-above-header-submenu-h-color-responsive']; } if ( isset( $theme_options['sticky-above-header-submenu-h-a-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu3-submenu-h-bg-color-responsive'] = $theme_options['sticky-above-header-submenu-h-a-bg-color-responsive']; } // Active. if ( isset( $theme_options['sticky-above-header-submenu-h-color-responsive'] ) ) { $theme_options['sticky-header-menu3-submenu-a-color-responsive'] = $theme_options['sticky-above-header-submenu-h-color-responsive']; } if ( isset( $theme_options['sticky-above-header-submenu-h-a-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu3-submenu-a-bg-color-responsive'] = $theme_options['sticky-above-header-submenu-h-a-bg-color-responsive']; } // Mega menu. // Normal. if ( isset( $theme_options['sticky-above-header-megamenu-heading-color'] ) ) { $theme_options['sticky-header-menu3-header-megamenu-heading-color'] = $theme_options['sticky-above-header-megamenu-heading-color']; } // Hover. if ( isset( $theme_options['sticky-above-header-megamenu-heading-h-color'] ) ) { $theme_options['sticky-header-menu3-header-megamenu-heading-h-color'] = $theme_options['sticky-above-header-megamenu-heading-h-color']; } } if ( $is_menu_in_below ) { // Menu. // Normal. if ( isset( $theme_options['sticky-below-header-menu-color-responsive'] ) ) { $theme_options['sticky-header-menu2-color-responsive'] = $theme_options['sticky-below-header-menu-color-responsive']; } if ( isset( $theme_options['sticky-below-header-menu-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu2-bg-obj-responsive'] = $theme_options['sticky-below-header-menu-bg-color-responsive']; } // Hover. if ( isset( $theme_options['sticky-below-header-menu-h-color-responsive'] ) ) { $theme_options['sticky-header-menu2-h-color-responsive'] = $theme_options['sticky-below-header-menu-h-color-responsive']; } if ( isset( $theme_options['sticky-below-header-menu-h-a-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu2-h-bg-color-responsive'] = $theme_options['sticky-below-header-menu-h-a-bg-color-responsive']; } // Active. if ( isset( $theme_options['sticky-below-header-menu-h-color-responsive'] ) ) { $theme_options['sticky-header-menu2-a-color-responsive'] = $theme_options['sticky-below-header-menu-h-color-responsive']; } if ( isset( $theme_options['sticky-below-header-menu-h-a-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu2-a-bg-color-responsive'] = $theme_options['sticky-below-header-menu-h-a-bg-color-responsive']; } // Submenu. // Normal. if ( isset( $theme_options['sticky-below-header-submenu-color-responsive'] ) ) { $theme_options['sticky-header-menu2-submenu-color-responsive'] = $theme_options['sticky-below-header-submenu-color-responsive']; } if ( isset( $theme_options['sticky-below-header-submenu-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu2-submenu-bg-obj-responsive'] = $theme_options['sticky-below-header-submenu-bg-color-responsive']; } // Hover. if ( isset( $theme_options['sticky-below-header-submenu-h-color-responsive'] ) ) { $theme_options['sticky-header-menu2-submenu-h-color-responsive'] = $theme_options['sticky-below-header-submenu-h-color-responsive']; } if ( isset( $theme_options['sticky-below-header-submenu-h-a-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu2-submenu-h-bg-color-responsive'] = $theme_options['sticky-below-header-submenu-h-a-bg-color-responsive']; } // Active. if ( isset( $theme_options['sticky-below-header-submenu-h-color-responsive'] ) ) { $theme_options['sticky-header-menu2-submenu-a-color-responsive'] = $theme_options['sticky-below-header-submenu-h-color-responsive']; } if ( isset( $theme_options['sticky-below-header-submenu-h-a-bg-color-responsive'] ) ) { $theme_options['sticky-header-menu2-submenu-a-bg-color-responsive'] = $theme_options['sticky-below-header-submenu-h-a-bg-color-responsive']; } // Mega menu. // Normal. if ( isset( $theme_options['sticky-below-header-megamenu-heading-color'] ) ) { $theme_options['sticky-header-menu2-header-megamenu-heading-color'] = $theme_options['sticky-below-header-megamenu-heading-color']; } // Hover. if ( isset( $theme_options['sticky-below-header-megamenu-heading-h-color'] ) ) { $theme_options['sticky-header-menu2-header-megamenu-heading-h-color'] = $theme_options['sticky-below-header-megamenu-heading-h-color']; } } // Sticky Site Title. // Normal. if ( isset( $theme_options['sticky-header-color-site-title-responsive']['desktop'] ) ) { $theme_options['sticky-header-builder-site-title-color'] = $theme_options['sticky-header-color-site-title-responsive']['desktop']; } // Hover. if ( isset( $theme_options['sticky-header-color-h-site-title-responsive']['desktop'] ) ) { $theme_options['sticky-header-builder-site-title-h-color'] = $theme_options['sticky-header-color-h-site-title-responsive']['desktop']; } // Sticky Site Tagline. if ( isset( $theme_options['sticky-header-color-site-tagline-responsive']['desktop'] ) ) { $theme_options['sticky-header-builder-site-tagline-color'] = $theme_options['sticky-header-color-site-tagline-responsive']['desktop']; } // Sticky Above/Below Header HTML. $is_html_in_above = false; $is_html_in_below = false; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort foreach ( $theme_options['header-desktop-items']['above'] as $zone ) { /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( false !== array_search( 'html-3', $zone ) ) { $is_html_in_above = true; } } /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort foreach ( $theme_options['header-desktop-items']['below'] as $zone ) { /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( false !== array_search( 'html-2', $zone ) ) { $is_html_in_below = true; } } if ( $is_html_in_above ) { if ( isset( $theme_options['sticky-above-header-content-section-text-color-responsive']['desktop'] ) ) { $theme_options['sticky-header-html-3color'] = $theme_options['sticky-above-header-content-section-text-color-responsive']['desktop']; } } if ( $is_html_in_below ) { if ( isset( $theme_options['sticky-below-header-content-section-text-color-responsive']['desktop'] ) ) { $theme_options['sticky-header-html-2color'] = $theme_options['sticky-below-header-content-section-text-color-responsive']['desktop']; } } // Sticky Above/Below Header Search. $is_search_in_above = false; $is_search_in_below = false; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort foreach ( $theme_options['header-desktop-items']['above'] as $zone ) { /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( false !== array_search( 'search', $zone ) ) { $is_search_in_above = true; } } /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort foreach ( $theme_options['header-desktop-items']['below'] as $zone ) { /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( false !== array_search( 'search', $zone ) ) { $is_search_in_below = true; } } if ( $is_search_in_above ) { if ( isset( $theme_options['sticky-above-header-content-section-link-color-responsive']['desktop'] ) ) { $theme_options['sticky-header-search-icon-color'] = $theme_options['sticky-above-header-content-section-link-color-responsive']['desktop']; } } if ( $is_search_in_below ) { if ( isset( $theme_options['sticky-below-header-content-section-link-color-responsive']['desktop'] ) ) { $theme_options['sticky-header-search-icon-color'] = $theme_options['sticky-below-header-content-section-link-color-responsive']['desktop']; } } // Sticky Above/Below Header Widget. $is_widget_in_above = false; $is_widget_in_below = false; /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort foreach ( $theme_options['header-desktop-items']['above'] as $zone ) { /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( false !== array_search( 'widget-3', $zone ) ) { $is_widget_in_above = true; } } /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort foreach ( $theme_options['header-desktop-items']['below'] as $zone ) { /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( false !== array_search( 'widget-2', $zone ) ) { $is_widget_in_below = true; } } if ( $is_widget_in_above ) { if ( isset( $theme_options['sticky-above-header-content-section-text-color-responsive']['desktop'] ) ) { $theme_options['sticky-header-widget-3-title-color'] = $theme_options['sticky-above-header-content-section-text-color-responsive']['desktop']; } if ( isset( $theme_options['sticky-above-header-content-section-text-color-responsive']['desktop'] ) ) { $theme_options['sticky-header-widget-3-color'] = $theme_options['sticky-above-header-content-section-text-color-responsive']['desktop']; } if ( isset( $theme_options['sticky-above-header-content-section-link-color-responsive']['desktop'] ) ) { $theme_options['sticky-header-widget-3-link-color'] = $theme_options['sticky-above-header-content-section-link-color-responsive']['desktop']; } if ( isset( $theme_options['sticky-above-header-content-section-link-h-color-responsive']['desktop'] ) ) { $theme_options['sticky-header-widget-3-link-h-color'] = $theme_options['sticky-above-header-content-section-link-h-color-responsive']['desktop']; } } if ( $is_widget_in_below ) { if ( isset( $theme_options['sticky-below-header-content-section-text-color-responsive']['desktop'] ) ) { $theme_options['sticky-header-widget-2-title-color'] = $theme_options['sticky-below-header-content-section-text-color-responsive']['desktop']; } if ( isset( $theme_options['sticky-below-header-content-section-text-color-responsive']['desktop'] ) ) { $theme_options['sticky-header-widget-2-color'] = $theme_options['sticky-below-header-content-section-text-color-responsive']['desktop']; } if ( isset( $theme_options['sticky-below-header-content-section-link-color-responsive']['desktop'] ) ) { $theme_options['sticky-header-widget-2-link-color'] = $theme_options['sticky-below-header-content-section-link-color-responsive']['desktop']; } if ( isset( $theme_options['sticky-below-header-content-section-link-h-color-responsive']['desktop'] ) ) { $theme_options['sticky-header-widget-2-link-h-color'] = $theme_options['sticky-below-header-content-section-link-h-color-responsive']['desktop']; } } return array( 'theme_options' => $theme_options, 'used_elements' => $used_elements, 'widget_options' => $widget_options, ); } PKQmZG998theme-update/class-astra-theme-wp-background-process.phpnu[ astra_responsive_font( $heading_h4_font_size, 'desktop' ), 'line-height' => esc_attr( $headings_line_height ), ); $h5_properties = array( 'font-size' => astra_responsive_font( $heading_h5_font_size, 'desktop' ), 'line-height' => esc_attr( $headings_line_height ), ); $h6_properties = array( 'font-size' => astra_responsive_font( $heading_h6_font_size, 'desktop' ), 'line-height' => esc_attr( $headings_line_height ), ); if ( astra_has_gcp_typo_preset_compatibility() ) { $h4_font_properties = array( 'font-weight' => astra_get_css_value( $h4_font_weight, 'font' ), 'font-family' => astra_get_css_value( $h4_font_family, 'font' ), 'text-transform' => esc_attr( $h4_text_transform ), 'line-height' => esc_attr( $h4_line_height ), 'text-decoration' => esc_attr( $h4_text_decoration ), 'letter-spacing' => esc_attr( $h4_letter_spacing ), ); $h4_properties = array_merge( $h4_properties, $h4_font_properties ); $h5_font_properties = array( 'font-weight' => astra_get_css_value( $h5_font_weight, 'font' ), 'font-family' => astra_get_css_value( $h5_font_family, 'font' ), 'text-transform' => esc_attr( $h5_text_transform ), 'line-height' => esc_attr( $h5_line_height ), 'text-decoration' => esc_attr( $h5_text_decoration ), 'letter-spacing' => esc_attr( $h5_letter_spacing ), ); $h5_properties = array_merge( $h5_properties, $h5_font_properties ); $h6_font_properties = array( 'font-weight' => astra_get_css_value( $h6_font_weight, 'font' ), 'font-family' => astra_get_css_value( $h6_font_family, 'font' ), 'text-transform' => esc_attr( $h6_text_transform ), 'line-height' => esc_attr( $h6_line_height ), 'text-decoration' => esc_attr( $h6_text_decoration ), 'letter-spacing' => esc_attr( $h6_letter_spacing ), ); $h6_properties = array_merge( $h6_properties, $h6_font_properties ); } $link_selector = ( true === $update_customizer_strctural_defaults ) ? 'a' : 'a, .page-title'; $transparent_search_box_bg_color = astra_get_option( 'transparent-header-search-box-background-color', '#fff' ); $article_space = self::astra_4_6_0_compatibility() ? '2.5em' : '3em'; $color_palette_reorganize = self::astra_4_8_9_compatibility(); $css_output = array( ':root' => array( '--ast-post-nav-space' => 0, // Moved from inc/dynamic-css/single-post.php for the fix of post-navigation issue for the old users. @since 4.6.13 '--ast-container-default-xlg-padding' => ( true === $update_customizer_strctural_defaults ) ? $article_space : '6.67em', '--ast-container-default-lg-padding' => ( true === $update_customizer_strctural_defaults ) ? $article_space : '5.67em', '--ast-container-default-slg-padding' => ( true === $update_customizer_strctural_defaults ) ? '2em' : '4.34em', '--ast-container-default-md-padding' => ( true === $update_customizer_strctural_defaults ) ? $article_space : '3.34em', '--ast-container-default-sm-padding' => ( true === $update_customizer_strctural_defaults ) ? $article_space : '6.67em', '--ast-container-default-xs-padding' => ( true === $update_customizer_strctural_defaults ) ? '2.4em' : '2.4em', '--ast-container-default-xxs-padding' => ( true === $update_customizer_strctural_defaults ) ? '1.8em' : '1.4em', '--ast-code-block-background' => ( true === self::astra_check_default_color_typo() ) ? '#ECEFF3' : '#EEEEEE', '--ast-comment-inputs-background' => ( true === self::astra_check_default_color_typo() ) ? '#F9FAFB' : '#FAFAFA', '--ast-normal-container-width' => $site_content_width . 'px', '--ast-narrow-container-width' => $narrow_container_max_width . 'px', '--ast-blog-title-font-weight' => self::astra_4_6_0_compatibility() ? '600' : 'normal', '--ast-blog-meta-weight' => self::astra_4_6_0_compatibility() ? '600' : 'inherit', '--ast-global-color-primary' => $color_palette_reorganize ? 'var(--ast-global-color-4)' : 'var(--ast-global-color-5)', '--ast-global-color-secondary' => $color_palette_reorganize ? 'var(--ast-global-color-5)' : 'var(--ast-global-color-4)', '--ast-global-color-alternate-background' => $color_palette_reorganize ? 'var(--ast-global-color-6)' : 'var(--ast-global-color-7)', '--ast-global-color-subtle-background' => $color_palette_reorganize ? 'var(--ast-global-color-7)' : 'var(--ast-global-color-6)', ), // HTML. 'html' => array( 'font-size' => astra_get_font_css_value( (int) $body_font_size_desktop * 6.25, '%' ), ), $link_selector => array( 'color' => esc_attr( $link_color ), ), 'a:hover, a:focus' => array( 'color' => esc_attr( $link_hover_color ), ), 'body, button, input, select, textarea, .ast-button, .ast-custom-button' => array( 'font-family' => astra_get_font_family( $body_font_family ), 'font-weight' => esc_attr( $body_font_weight ), 'font-size' => astra_responsive_font( $body_font_size, 'desktop' ), 'line-height' => ! empty( $body_line_height ) ? 'var(--ast-body-line-height, ' . esc_attr( $body_line_height ) . ')' : '', 'text-transform' => esc_attr( $body_text_transform ), 'text-decoration' => esc_attr( $body_text_decoration ), 'letter-spacing' => esc_attr( $body_letter_spacing ), ), 'blockquote' => array( 'border-color' => astra_hex_to_rgba( $link_color, 0.15 ), ), 'p, .entry-content p' => array( 'margin-bottom' => astra_get_css_value( $para_margin_bottom, 'em' ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h1, .entry-content h1, .entry-content h1 a, h2, .entry-content h2, .entry-content h2 a, h3, .entry-content h3, .entry-content h3 a, h4, .entry-content h4, .entry-content h4 a, h5, .entry-content h5, .entry-content h5 a, h6, .entry-content h6, .entry-content h6 a, .site-title, .site-title a', 'h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6, .site-title, .site-title a' ) => astra_get_font_array_css( astra_get_option( 'headings-font-family' ), astra_get_option( 'headings-font-weight' ), array(), 'headings-font-extras' ), '.ast-site-identity .site-title a' => array( 'color' => esc_attr( $title_color ), ), '.ast-site-identity .site-title a:hover' => array( 'color' => esc_attr( $title_hover_color ), ), '.ast-site-identity .site-description' => array( 'color' => esc_attr( $tagline_color ), ), '.site-title' => array( 'font-size' => astra_responsive_font( $site_title_font_size, 'desktop' ), 'display' => esc_attr( $desktop_title_visibility ), ), is_customize_preview() ? '.ast-sg-logo-section .custom-logo-link img, header .custom-logo-link img' : 'header .custom-logo-link img' => array( 'max-width' => astra_get_css_value( $header_logo_width['desktop'], 'px' ), 'width' => astra_get_css_value( $header_logo_width['desktop'], 'px' ), ), '.astra-logo-svg' => array( 'width' => astra_get_css_value( $header_logo_width['desktop'], 'px' ), ), '.site-header .site-description' => array( 'font-size' => astra_responsive_font( $site_tagline_font_size, 'desktop' ), 'display' => esc_attr( $desktop_tagline_visibility ), ), '.entry-title' => array( 'font-size' => astra_responsive_font( $archive_post_title_font_size, 'desktop' ), ), '.ast-blog-single-element.ast-taxonomy-container a' => array( 'font-size' => astra_responsive_font( $archive_post_tax_font_size, 'desktop' ), ), '.ast-blog-meta-container' => array( 'font-size' => astra_responsive_font( $archive_post_meta_font_size, 'desktop' ), ), 'blog-layout-5' === $blog_layout ? '.archive .ast-article-post, .blog .ast-article-post, .archive .ast-article-post:hover, .blog .ast-article-post:hover' : '.archive .ast-article-post .ast-article-inner, .blog .ast-article-post .ast-article-inner, .archive .ast-article-post .ast-article-inner:hover, .blog .ast-article-post .ast-article-inner:hover' => array( 'border-top-left-radius' => astra_responsive_spacing( $archive_cards_radius, 'top', 'desktop' ), 'border-top-right-radius' => astra_responsive_spacing( $archive_cards_radius, 'right', 'desktop' ), 'border-bottom-right-radius' => astra_responsive_spacing( $archive_cards_radius, 'bottom', 'desktop' ), 'border-bottom-left-radius' => astra_responsive_spacing( $archive_cards_radius, 'left', 'desktop' ), 'overflow' => 'hidden', ), // Conditionally select the css selectors with or without anchors. self::conditional_headings_css_selectors( 'h1, .entry-content h1, .entry-content h1 a', 'h1, .entry-content h1' ) => array( 'font-size' => astra_responsive_font( $heading_h1_font_size, 'desktop' ), 'font-weight' => astra_get_css_value( $h1_font_weight, 'font' ), 'font-family' => astra_get_css_value( $h1_font_family, 'font' ), 'line-height' => esc_attr( $h1_line_height ), 'text-transform' => esc_attr( $h1_text_transform ), 'text-decoration' => esc_attr( $h1_text_decoration ), 'letter-spacing' => esc_attr( $h1_letter_spacing ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h2, .entry-content h2, .entry-content h2 a', 'h2, .entry-content h2' ) => array( 'font-size' => astra_responsive_font( $heading_h2_font_size, 'desktop' ), 'font-weight' => astra_get_css_value( $h2_font_weight, 'font' ), 'font-family' => astra_get_css_value( $h2_font_family, 'font' ), 'line-height' => esc_attr( $h2_line_height ), 'text-transform' => esc_attr( $h2_text_transform ), 'text-decoration' => esc_attr( $h2_text_decoration ), 'letter-spacing' => esc_attr( $h2_letter_spacing ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h3, .entry-content h3, .entry-content h3 a', 'h3, .entry-content h3' ) => array( 'font-size' => astra_responsive_font( $heading_h3_font_size, 'desktop' ), 'font-weight' => astra_get_css_value( $h3_font_weight, 'font' ), 'font-family' => astra_get_css_value( $h3_font_family, 'font' ), 'line-height' => esc_attr( $h3_line_height ), 'text-transform' => esc_attr( $h3_text_transform ), 'text-decoration' => esc_attr( $h3_text_decoration ), 'letter-spacing' => esc_attr( $h3_letter_spacing ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h4, .entry-content h4, .entry-content h4 a', 'h4, .entry-content h4' ) => $h4_properties, // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h5, .entry-content h5, .entry-content h5 a', 'h5, .entry-content h5' ) => $h5_properties, // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h6, .entry-content h6, .entry-content h6 a', 'h6, .entry-content h6' ) => $h6_properties, // Global CSS. '::selection' => array( 'background-color' => esc_attr( $theme_color ), 'color' => esc_attr( $selection_text_color ), ), // Conditionally select selectors with annchors or withour anchors for text color. self::conditional_headings_css_selectors( 'body, h1, .entry-title a, .entry-content h1, .entry-content h1 a, h2, .entry-content h2, .entry-content h2 a, h3, .entry-content h3, .entry-content h3 a, h4, .entry-content h4, .entry-content h4 a, h5, .entry-content h5, .entry-content h5 a, h6, .entry-content h6, .entry-content h6 a', 'body, h1, .entry-title a, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6' ) => array( 'color' => esc_attr( $text_color ), ), // Typography. '.tagcloud a:hover, .tagcloud a:focus, .tagcloud a.current-item' => array( 'color' => astra_get_foreground_color( $link_color ), 'border-color' => esc_attr( $link_color ), 'background-color' => esc_attr( $link_color ), ), // Input tags. 'input:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="reset"]:focus, input[type="search"]:focus, textarea:focus' => array( 'border-color' => esc_attr( $link_color ), ), 'input[type="radio"]:checked, input[type=reset], input[type="checkbox"]:checked, input[type="checkbox"]:hover:checked, input[type="checkbox"]:focus:checked, input[type=range]::-webkit-slider-thumb' => array( 'border-color' => esc_attr( $link_color ), 'background-color' => esc_attr( $link_color ), 'box-shadow' => 'none', ), // Small Footer. '.site-footer a:hover + .post-count, .site-footer a:focus + .post-count' => array( 'background' => esc_attr( $link_color ), 'border-color' => esc_attr( $link_color ), ), '.single .nav-links .nav-previous, .single .nav-links .nav-next' => array( 'color' => esc_attr( $link_color ), ), // Blog Post Meta Typography. '.entry-meta, .entry-meta *' => array( 'line-height' => '1.45', 'color' => esc_attr( $link_color ), 'font-weight' => self::astra_4_6_0_compatibility() && ! defined( 'ASTRA_EXT_VER' ) ? '600' : '', ), '.entry-meta a:not(.ast-button):hover, .entry-meta a:not(.ast-button):hover *, .entry-meta a:not(.ast-button):focus, .entry-meta a:not(.ast-button):focus *, .page-links > .page-link, .page-links .page-link:hover, .post-navigation a:hover' => array( 'color' => esc_attr( $link_hover_color ), ), // Blockquote Text Color. 'blockquote' => array( 'color' => astra_adjust_brightness( $text_color, 75, 'darken' ), ), '#cat option, .secondary .calendar_wrap thead a, .secondary .calendar_wrap thead a:visited' => array( 'color' => esc_attr( $link_color ), ), '.secondary .calendar_wrap #today, .ast-progress-val span' => array( 'background' => esc_attr( $link_color ), ), '.secondary a:hover + .post-count, .secondary a:focus + .post-count' => array( 'background' => esc_attr( $link_color ), 'border-color' => esc_attr( $link_color ), ), '.calendar_wrap #today > a' => array( 'color' => astra_get_foreground_color( $link_color ), ), // Pagination. '.page-links .page-link, .single .post-navigation a' => array( 'color' => esc_attr( self::astra_4_6_0_compatibility() ? $text_color : $link_color ), ), // Menu Toggle Border Radius. '.ast-header-break-point .main-header-bar .ast-button-wrap .menu-toggle' => array( 'border-radius' => ( '' !== $mobile_header_toggle_btn_border_radius ) ? esc_attr( $mobile_header_toggle_btn_border_radius ) . 'px' : '', ), // Search. '.ast-search-menu-icon .search-form button.search-submit' => array( 'padding' => '0 4px', ), '.ast-search-menu-icon form.search-form' => array( 'padding-right' => '0', ), '.ast-search-menu-icon.slide-search input.search-field' => array( 'width' => Astra_Builder_Helper::$is_header_footer_builder_active ? '0' : '', ), '.ast-header-search .ast-search-menu-icon.ast-dropdown-active .search-form, .ast-header-search .ast-search-menu-icon.ast-dropdown-active .search-field:focus' => array( 'transition' => 'all 0.2s', 'border-color' => astra_get_option( 'site-accessibility-highlight-input-color' ), ), '.search-form input.search-field:focus' => array( 'outline' => 'none', // Making highlight by border that's why making outline none. ), ); if ( 'blog-layout-6' === $blog_layout ) { $css_output['.ast-blog-layout-6-grid .ast-article-inner .post-thumb::after'] = array( 'content' => '""', 'background' => $archive_cards_overlay, 'position' => 'absolute', 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', ); } if ( self::astra_4_4_0_compatibility() ) { $css_output['.ast-search-menu-icon .search-form button.search-submit:focus, .ast-theme-transparent-header .ast-header-search .ast-dropdown-active .ast-icon, .ast-theme-transparent-header .ast-inline-search .search-field:focus .ast-icon'] = array( 'color' => 'var(--ast-global-color-1)', ); $css_output['.ast-header-search .slide-search .search-form'] = array( 'border' => '2px solid var(--ast-global-color-0)', ); // Reduced specificity so that it does not override customizer background color option. $css_output['.ast-header-search .slide-search .search-field'] = array( 'background-color' => '#fff', // Referred by main.css. ); } /* This is a fix issue with logo height for normal and transparent logo so that they are the same */ if ( ! apply_filters( 'astra_site_svg_logo_equal_height', astra_get_option( 'astra-site-svg-logo-equal-height', true ) ) ) { $css_output['.astra-logo-svg:not(.sticky-custom-logo .astra-logo-svg, .transparent-custom-logo .astra-logo-svg, .advanced-header-logo .astra-logo-svg)'] = array( 'height' => astra_get_css_value( ( ! empty( $header_logo_width['desktop-svg-height'] ) && ! is_customize_preview() ) ? $header_logo_width['desktop-svg-height'] : '', 'px' ), ); } /* Compatibility with cost calculator plugin range slider*/ if ( defined( 'CALC_VERSION' ) ) { $css_output['.calc-range-slider input::-webkit-slider-runnable-track'] = array( 'height' => 'auto', 'box-shadow' => 'none', 'background' => 'transparent', 'border-radius' => 'none', 'border' => 'none', ); $css_output['.calc-range-slider input::-moz-range-track'] = array( 'height' => 'auto', 'box-shadow' => 'none', 'background' => 'transparent', 'border-radius' => 'none', 'border' => 'none', ); $css_output['.calc-range-slider input::-webkit-slider-thumb'] = array( 'margin-top' => 'auto', ); } if ( astra_has_global_color_format_support() ) { $css_output['.ast-archive-title'] = array( 'color' => esc_attr( $heading_base_color ), ); } if ( ! $block_editor_legacy_setup && false === $update_customizer_strctural_defaults ) { $css_output['.wp-block-latest-posts > li > a'] = array( 'color' => esc_attr( $heading_base_color ), ); } // Construct the selector string conditionally $selectors = '.widget-title'; if ( ! self::astra_heading_inside_widget_font_size_comp() ) { $selectors .= ', .widget .wp-block-heading'; } // Default widget title color. $css_output[ $selectors ] = array( 'font-size' => astra_get_font_css_value( (int) $body_font_size_desktop * 1.428571429 ), 'color' => astra_has_global_color_format_support() ? esc_attr( $heading_base_color ) : esc_attr( $text_color ), ); // Remove this condition after 2-3 updates of add-on. if ( defined( 'ASTRA_EXT_VER' ) && version_compare( ASTRA_EXT_VER, '3.0.1', '>=' ) ) { $css_output['.single .ast-author-details .author-title'] = array( 'color' => esc_attr( $link_hover_color ), ); } if ( 'no-sidebar' !== astra_page_layout() ) { $css_output['#secondary, #secondary button, #secondary input, #secondary select, #secondary textarea'] = array( 'font-size' => astra_responsive_font( $body_font_size, 'desktop' ), ); } // Add underline to every link in content area. $content_links_underline = astra_get_option( 'underline-content-links' ); if ( $content_links_underline ) { $text_decoration_selector = class_exists( 'WooCommerce' ) ? '.ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a), .woocommerce-js .woocommerce-product-details__short-description a' : '.ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a)'; $css_output[ $text_decoration_selector ] = array( 'text-decoration' => 'underline', ); $reset_underline_from_anchors = self::unset_builder_elements_underline(); $buttons_exclusion_selectors = $button_styling_improved ? '.ast-single-post .elementor-button-wrapper .elementor-button, .ast-single-post .entry-content .uagb-tab a, .ast-single-post .entry-content .uagb-ifb-cta a, .ast-single-post .entry-content .uabb-module-content a, .ast-single-post .entry-content .uagb-post-grid a, .ast-single-post .entry-content .uagb-timeline a, .ast-single-post .entry-content .uagb-toc__wrap a, .ast-single-post .entry-content .uagb-taxomony-box a, .ast-single-post .entry-content .woocommerce a, .entry-content .wp-block-latest-posts > li > a, .ast-single-post .entry-content .wp-block-file__button, li.ast-post-filter-single, .ast-single-post .ast-comment-content .comment-reply-link, .ast-single-post .ast-comment-content .comment-edit-link' : '.ast-single-post .wp-block-button .wp-block-button__link, .ast-single-post .elementor-button-wrapper .elementor-button, .ast-single-post .entry-content .uagb-tab a, .ast-single-post .entry-content .uagb-ifb-cta a, .ast-single-post .entry-content .wp-block-uagb-buttons a, .ast-single-post .entry-content .uabb-module-content a, .ast-single-post .entry-content .uagb-post-grid a, .ast-single-post .entry-content .uagb-timeline a, .ast-single-post .entry-content .uagb-toc__wrap a, .ast-single-post .entry-content .uagb-taxomony-box a, .ast-single-post .entry-content .woocommerce a, .entry-content .wp-block-latest-posts > li > a, .ast-single-post .entry-content .wp-block-file__button, li.ast-post-filter-single, .ast-single-post .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link, .ast-single-post .ast-comment-content .comment-reply-link, .ast-single-post .ast-comment-content .comment-edit-link'; $excluding_anchor_selectors = $reset_underline_from_anchors ? $buttons_exclusion_selectors : '.ast-single-post .wp-block-button .wp-block-button__link, .ast-single-post .elementor-button-wrapper .elementor-button, li.ast-post-filter-single, .ast-single-post .wp-block-button.is-style-outline .wp-block-button__link, div.ast-custom-button, .ast-single-post .ast-comment-content .comment-reply-link, .ast-single-post .ast-comment-content .comment-edit-link'; if ( class_exists( 'WooCommerce' ) ) { $excluding_anchor_selectors .= ', .entry-content [CLASS*="wc-block"] .wc-block-components-button, .entry-content [CLASS*="wc-block"] .wc-block-components-totals-coupon-link, .entry-content [CLASS*="wc-block"] .wc-block-components-product-name'; } $excluding_anchor_selectors = apply_filters( 'astra_remove_underline_anchor_links', $excluding_anchor_selectors ); $css_output[ $excluding_anchor_selectors ] = array( 'text-decoration' => 'none', ); } // Accessibility options. $enable_site_accessibility = astra_get_option( 'site-accessibility-toggle', false ); $html_selectors_focus_visible = '.ast-search-menu-icon.slide-search a:focus-visible:focus-visible, .astra-search-icon:focus-visible, #close:focus-visible, a:focus-visible, .ast-menu-toggle:focus-visible, .site .skip-link:focus-visible, .wp-block-loginout input:focus-visible, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper, .ast-header-navigation-arrow:focus-visible, .woocommerce .wc-proceed-to-checkout > .checkout-button:focus-visible, .woocommerce .woocommerce-MyAccount-navigation ul li a:focus-visible, .ast-orders-table__row .ast-orders-table__cell:focus-visible, .woocommerce .woocommerce-order-details .order-again > .button:focus-visible, .woocommerce .woocommerce-message a.button.wc-forward:focus-visible, .woocommerce #minus_qty:focus-visible, .woocommerce #plus_qty:focus-visible, a#ast-apply-coupon:focus-visible, .woocommerce .woocommerce-info a:focus-visible, .woocommerce .astra-shop-summary-wrap a:focus-visible, .woocommerce a.wc-forward:focus-visible, #ast-apply-coupon:focus-visible, .woocommerce-js .woocommerce-mini-cart-item a.remove:focus-visible, #close:focus-visible, .button.search-submit:focus-visible, #search_submit:focus, .normal-search:focus-visible, .ast-header-account-wrap:focus-visible, .woocommerce .ast-on-card-button.ast-quick-view-trigger:focus'; $html_selectors_focus_only_inputs = 'input:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="reset"]:focus, input[type="search"]:focus, input[type="number"]:focus, textarea:focus, .wp-block-search__input:focus, [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal:focus, .ast-mobile-popup-drawer.active .menu-toggle-close:focus, .woocommerce-ordering select.orderby:focus, #ast-scroll-top:focus, #coupon_code:focus, .woocommerce-page #comment:focus, .woocommerce #reviews #respond input#submit:focus, .woocommerce a.add_to_cart_button:focus, .woocommerce .button.single_add_to_cart_button:focus, .woocommerce .woocommerce-cart-form button:focus, .woocommerce .woocommerce-cart-form__cart-item .quantity .qty:focus, .woocommerce .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper .woocommerce-input-wrapper > .input-text:focus, .woocommerce #order_comments:focus, .woocommerce #place_order:focus, .woocommerce .woocommerce-address-fields .woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper > .input-text:focus, .woocommerce .woocommerce-MyAccount-content form button:focus, .woocommerce .woocommerce-MyAccount-content .woocommerce-EditAccountForm .woocommerce-form-row .woocommerce-Input.input-text:focus, .woocommerce .ast-woocommerce-container .woocommerce-pagination ul.page-numbers li a:focus, body #content .woocommerce form .form-row .select2-container--default .select2-selection--single:focus, #ast-coupon-code:focus, .woocommerce.woocommerce-js .quantity input[type=number]:focus, .woocommerce-js .woocommerce-mini-cart-item .quantity input[type=number]:focus, .woocommerce p#ast-coupon-trigger:focus'; if ( $enable_site_accessibility ) { $outline_style = astra_get_option( 'site-accessibility-highlight-type' ); $outline_color = astra_get_option( 'site-accessibility-highlight-color' ); $outline_input_style = astra_get_option( 'site-accessibility-highlight-input-type' ); // If the outline input style is set to 'disable', change it to 'unset' css value. if ( $outline_input_style === 'disable' ) { $outline_input_style = 'unset'; } $outline_input_color = astra_get_option( 'site-accessibility-highlight-input-color' ); $css_output[ $html_selectors_focus_visible ] = array( 'outline-style' => $outline_style ? $outline_style : 'inherit', 'outline-color' => $outline_color ? $outline_color : 'inherit', 'outline-width' => 'thin', 'border-color' => astra_get_option( 'site-accessibility-highlight-input-color' ), ); if ( 'unset' !== $outline_input_style ) { $css_output[ $html_selectors_focus_only_inputs ] = array( 'border-style' => $outline_input_style ? $outline_input_style : 'inherit', 'border-color' => $outline_input_color ? $outline_input_color : 'inherit', 'border-width' => 'thin', 'outline-color' => astra_get_option( 'site-accessibility-highlight-input-color' ), ); } else { $css_output[ $html_selectors_focus_only_inputs ] = array( 'border-style' => $outline_style ? $outline_style : 'inherit', 'border-color' => $outline_color ? $outline_color : 'inherit', 'border-width' => 'thin', 'outline-color' => astra_get_option( 'site-accessibility-highlight-input-color' ), ); } $css_output['input'] = array( 'outline' => 'none', ); if ( class_exists( 'WooCommerce' ) ) { $css_output['.woocommerce-js input[type=text]:focus, .woocommerce-js input[type=email]:focus, .woocommerce-js textarea:focus, input[type=number]:focus, .comments-area textarea#comment:focus, .comments-area textarea#comment:active, .comments-area .ast-comment-formwrap input[type="text"]:focus, .comments-area .ast-comment-formwrap input[type="text"]:active'] = array( 'outline-style' => $outline_input_style ? $outline_input_style : 'inherit', 'outline-color' => $outline_input_color ? $outline_input_color : 'inherit', 'outline-width' => 'thin', 'border-color' => astra_get_option( 'site-accessibility-highlight-input-color' ), ); } } if ( false === $enable_site_accessibility ) { $css_output[ $html_selectors_focus_only_inputs . ', ' . $html_selectors_focus_visible ] = array( 'outline-style' => 'none', ); $css_output['.ast-header-search .ast-search-menu-icon.ast-dropdown-active .search-form, .ast-header-search .ast-search-menu-icon.ast-dropdown-active .search-field:focus'] = array( 'border-color' => 'var(--ast-global-color-0)', ); } if ( self::astra_4_4_0_compatibility() ) { $css_output['.ast-search-menu-icon .search-form button.search-submit:focus, .ast-theme-transparent-header .ast-header-search .ast-dropdown-active .ast-icon, .ast-theme-transparent-header .ast-inline-search .search-field:focus .ast-icon'] = array( 'color' => 'var(--ast-global-color-1)', ); if ( false === $enable_site_accessibility ) { $css_output['.ast-header-search .slide-search .search-form'] = array( 'border' => '2px solid var(--ast-global-color-0)', ); } // Reduced specificity so that it does not override customizer background color option. $css_output['.ast-header-search .slide-search .search-field'] = array( 'background-color' => '#fff', // Referred by main.css. ); } /** * Loaded the following CSS conditionally because of following scenarios - * * 1. $text_color is applying to menu-link anchors as well though $link_color should apply over there. * 2. $link_color applying in old header as hover color for menu-anchors. * * @since 3.0.0 */ if ( false === Astra_Builder_Helper::$is_header_footer_builder_active ) { // Header - Main Header CSS. $css_output['.main-header-menu .menu-link, .ast-header-custom-item a'] = array( 'color' => esc_attr( $text_color ), ); // Main - Menu Items. $css_output['.main-header-menu .menu-item:hover > .menu-link, .main-header-menu .menu-item:hover > .ast-menu-toggle, .main-header-menu .ast-masthead-custom-menu-items a:hover, .main-header-menu .menu-item.focus > .menu-link, .main-header-menu .menu-item.focus > .ast-menu-toggle, .main-header-menu .current-menu-item > .menu-link, .main-header-menu .current-menu-ancestor > .menu-link, .main-header-menu .current-menu-item > .ast-menu-toggle, .main-header-menu .current-menu-ancestor > .ast-menu-toggle'] = array( 'color' => esc_attr( $link_color ), ); $css_output['.header-main-layout-3 .ast-main-header-bar-alignment'] = array( 'margin-right' => 'auto', ); if ( $is_site_rtl ) { $css_output['.header-main-layout-2 .site-header-section-left .ast-site-identity'] = array( 'text-align' => 'right', ); } else { $css_output['.header-main-layout-2 .site-header-section-left .ast-site-identity'] = array( 'text-align' => 'left', ); } } $page_header_logo = ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'advanced-headers' ) && Astra_Ext_Advanced_Headers_Loader::astra_advanced_headers_design_option( 'logo-url' ) ) ? true : false; if ( astra_get_option( 'logo-title-inline' ) || is_customize_preview() ) { $css_output['.ast-logo-title-inline .site-logo-img'] = array( 'padding-right' => '1em', ); } if ( get_theme_mod( 'custom_logo' ) || astra_get_option( 'transparent-header-logo' ) || astra_get_option( 'sticky-header-logo' ) || $page_header_logo || is_customize_preview() ) { $css_output['.site-logo-img img'] = array( ' transition' => 'all 0.2s linear', ); if ( astra_get_option( 'header-logo-color' ) ) { $css_output['.site-logo-img img'] = array( 'filter' => 'url(#ast-img-color-filter)', ' transition' => 'all 0.2s linear', ); } if ( astra_get_option( 'transparent-header-logo-color' ) ) { $css_output['.site-logo-img .transparent-custom-logo img, .ast-theme-transparent-header .site-logo-img img'] = array( 'filter' => 'url(#ast-img-color-filter-2)', ); } } $parse_css = ''; if ( $block_editor_legacy_setup ) { $parse_css .= ' .ast-no-sidebar .entry-content .alignfull { margin-left: calc( -50vw + 50%); margin-right: calc( -50vw + 50%); max-width: 100vw; width: 100vw; } .ast-no-sidebar .entry-content .alignwide { margin-left: calc(-41vw + 50%); margin-right: calc(-41vw + 50%); max-width: unset; width: unset; } .ast-no-sidebar .entry-content .alignfull .alignfull, .ast-no-sidebar .entry-content .alignfull .alignwide, .ast-no-sidebar .entry-content .alignwide .alignfull, .ast-no-sidebar .entry-content .alignwide .alignwide, .ast-no-sidebar .entry-content .wp-block-column .alignfull, .ast-no-sidebar .entry-content .wp-block-column .alignwide{ width: 100%; margin-left: auto; margin-right: auto; } .wp-block-gallery, .blocks-gallery-grid { margin: 0; } .wp-block-separator { max-width: 100px; } .wp-block-separator.is-style-wide, .wp-block-separator.is-style-dots { max-width: none; } .entry-content .has-2-columns .wp-block-column:first-child { padding-right: 10px; } .entry-content .has-2-columns .wp-block-column:last-child { padding-left: 10px; } @media (max-width: 782px) { .entry-content .wp-block-columns .wp-block-column { flex-basis: 100%; } .entry-content .has-2-columns .wp-block-column:first-child { padding-right: 0; } .entry-content .has-2-columns .wp-block-column:last-child { padding-left: 0; } } body .entry-content .wp-block-latest-posts { margin-left: 0; } body .entry-content .wp-block-latest-posts li { list-style: none; } .ast-no-sidebar .ast-container .entry-content .wp-block-latest-posts { margin-left: 0; } .ast-header-break-point .entry-content .alignwide { margin-left: auto; margin-right: auto; } .entry-content .blocks-gallery-item img { margin-bottom: auto; } .wp-block-pullquote { border-top: 4px solid #555d66; border-bottom: 4px solid #555d66; color: #40464d; } '; } /* Parse CSS from array() */ $parse_css .= astra_parse_css( $css_output ); if ( defined( 'BORLABS_COOKIE_VERSION' ) ) { $oembed_wrapper = array( 'body .ast-oembed-container > *' => array( 'position' => 'absolute', 'top' => '0', 'width' => '100%', 'height' => '100%', ( $is_site_rtl ? 'right' : 'left' ) => '0', ), ); } else { $oembed_wrapper = array( 'body .ast-oembed-container *' => array( 'position' => 'absolute', 'top' => '0', 'width' => '100%', 'height' => '100%', ( $is_site_rtl ? 'right' : 'left' ) => '0', ), ); } /** * Special case handling for pocket casts embed url. * * @since 4.6.4 */ $oembed_wrapper['body .wp-block-embed-pocket-casts .ast-oembed-container *'] = array( 'position' => 'unset', ); $parse_css .= astra_parse_css( $oembed_wrapper ); if ( ! Astra_Builder_Helper::$is_header_footer_builder_active ) { $old_header_mobile_toggle = array( // toggle style // Menu Toggle Minimal. '.ast-header-break-point .ast-mobile-menu-buttons-minimal.menu-toggle' => array( 'background' => 'transparent', 'color' => esc_attr( $mobile_header_toggle_btn_style_color ), ), // Menu Toggle Outline. '.ast-header-break-point .ast-mobile-menu-buttons-outline.menu-toggle' => array( 'background' => 'transparent', 'border' => '1px solid ' . $mobile_header_toggle_btn_style_color, 'color' => esc_attr( $mobile_header_toggle_btn_style_color ), ), // Menu Toggle Fill. '.ast-header-break-point .ast-mobile-menu-buttons-fill.menu-toggle' => array( 'background' => esc_attr( $mobile_header_toggle_btn_style_color ), 'color' => $menu_btn_color, ), ); $parse_css .= astra_parse_css( $old_header_mobile_toggle ); } $parse_css .= astra_container_layout_css(); if ( 'no-sidebar' !== astra_page_layout() ) { $parse_css .= Astra_Enqueue_Scripts::trim_css( self::load_sidebar_static_css() ); $parse_css .= self::astra_sticky_sidebar_css(); } if ( self::astra_4_6_0_compatibility() ) { // Forms default styling improvements. $parse_css .= self::astra_default_forms_styling_dynamic_css(); } if ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) { $parse_css .= astra_parse_css( array( '#ast-desktop-header' => array( 'display' => 'none', ), ), '', number_format( absint( astra_get_tablet_breakpoint() ) + 0.9, 1, '.', '' ) ); $parse_css .= astra_parse_css( array( '#ast-mobile-header' => array( 'display' => 'none', ), ), astra_get_tablet_breakpoint( '', 1 ) ); } // Comments CSS. if ( ! Astra_Builder_Helper::apply_flex_based_css() ) { require_once ASTRA_THEME_DIR . 'inc/dynamic-css/comments.php'; // PHPCS:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound } else { require_once ASTRA_THEME_DIR . 'inc/dynamic-css/comments-flex.php'; // PHPCS:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound } // Single post improvement. require_once ASTRA_THEME_DIR . 'inc/dynamic-css/single-post.php'; // PHPCS:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound $live_search_enabled = astra_get_option( 'live-search', false ); if ( ( true === Astra_Builder_Helper::$is_header_footer_builder_active && Astra_Builder_Helper::is_component_loaded( 'search', 'header' ) && $live_search_enabled ) || ( is_search() && true === astra_get_option( 'ast-search-live-search' ) ) ) { // Live search CSS. require_once ASTRA_THEME_DIR . 'inc/dynamic-css/live-search.php'; // PHPCS:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound } if ( Astra_Builder_Helper::is_component_loaded( 'woo-cart', 'header' ) || Astra_Builder_Helper::is_component_loaded( 'edd-cart', 'header' ) ) { $parse_css .= Astra_Enqueue_Scripts::trim_css( self::load_cart_static_css() ); $parse_css .= astra_parse_css( array( '.astra-cart-drawer.active' => array( 'width' => '80%', ), ), '', astra_get_tablet_breakpoint() ); $parse_css .= astra_parse_css( array( '.astra-cart-drawer.active' => array( 'width' => '100%', ), ), '', astra_get_mobile_breakpoint() ); } if ( ! Astra_Builder_Helper::$is_header_footer_builder_active ) { $footer_css_output = array( '.ast-small-footer' => array( 'color' => esc_attr( $footer_color ), ), '.ast-small-footer > .ast-footer-overlay' => astra_get_background_obj( $footer_bg_obj ), '.ast-small-footer a' => array( 'color' => esc_attr( $footer_link_color ), ), '.ast-small-footer a:hover' => array( 'color' => esc_attr( $footer_link_h_color ), ), // Advanced Footer colors/fonts. '.footer-adv .footer-adv-overlay' => array( 'border-top-style' => 'solid', 'border-top-width' => astra_get_css_value( $footer_adv_border_width, 'px' ), 'border-top-color' => esc_attr( $footer_adv_border_color ), ), '.footer-adv .widget-title,.footer-adv .widget-title a' => array( 'color' => esc_attr( $footer_adv_widget_title_color ), ), '.footer-adv' => array( 'color' => esc_attr( $footer_adv_text_color ), ), '.footer-adv a' => array( 'color' => esc_attr( $footer_adv_link_color ), ), '.footer-adv .tagcloud a:hover, .footer-adv .tagcloud a.current-item' => array( 'border-color' => esc_attr( $footer_adv_link_color ), 'background-color' => esc_attr( $footer_adv_link_color ), ), '.footer-adv a:hover, .footer-adv .no-widget-text a:hover, .footer-adv a:focus, .footer-adv .no-widget-text a:focus' => array( 'color' => esc_attr( $footer_adv_link_h_color ), ), '.footer-adv .calendar_wrap #today, .footer-adv a:hover + .post-count' => array( 'background-color' => esc_attr( $footer_adv_link_color ), ), '.footer-adv-overlay' => astra_get_background_obj( $footer_adv_bg_obj ), ); $parse_css .= astra_parse_css( $footer_css_output ); } // Paginaiton CSS. require_once ASTRA_THEME_DIR . 'inc/dynamic-css/pagination.php'; // PHPCS:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound // Related Posts Dynamic CSS. // Navigation CSS. if ( ! self::astra_4_6_0_compatibility() && is_single() ) { /** * CSS for post navigation design break for the old users. */ $parse_css .= Astra_Enqueue_Scripts::trim_css( ' @media( max-width: 420px ) { .single .nav-links .nav-previous, .single .nav-links .nav-next { width: 100%; text-align: center; } } ' ); } // Navigation CSS. if ( is_single() && self::astra_4_6_0_compatibility() ) { require_once ASTRA_THEME_DIR . 'inc/dynamic-css/navigation.php'; // PHPCS:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound } /** * Load dynamic css related to logo svg icons. * * @since 4.7.0 */ require_once ASTRA_THEME_DIR . 'inc/dynamic-css/logo-svg-icons.php'; // PHPCS:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound /** * * Fix button aligment issue comming from the gutenberg plugin (v9.3.0). */ $gtn_plugin_button_center_alignment = array( '.wp-block-buttons.aligncenter' => array( 'justify-content' => 'center', ), ); $parse_css .= astra_parse_css( $gtn_plugin_button_center_alignment ); $ast_container_layout = astra_get_content_layout(); $is_boxed = astra_is_content_style_boxed(); $is_sidebar_boxed = astra_is_sidebar_style_boxed(); $ast_container_layout = astra_apply_boxed_layouts( $ast_container_layout, $is_boxed, $is_sidebar_boxed ); /** * If transparent header is activated then it adds top 1.5em padding space, so this CSS will fix this issue. * This issue is only visible on responsive devices. * * @since 2.6.0 */ if ( self::gutenberg_core_blocks_css_comp() && is_singular() ) { $trans_header_responsive_top_space_css_fix = array( '.ast-theme-transparent-header #primary, .ast-theme-transparent-header #secondary' => array( 'padding' => 0, ), ); /* Parse CSS from array() -> max-width: (tablet-breakpoint)px CSS */ $parse_css .= astra_parse_css( $trans_header_responsive_top_space_css_fix, '', astra_get_tablet_breakpoint() ); } /** * Remove #primary padding on mobile devices which compromises deigned layout. * * @since 2.6.1 */ if ( self::gutenberg_media_text_block_css_compat() && is_singular() ) { $remove_primary_padding_on_mobile_css = array( '.ast-plain-container.ast-no-sidebar #primary' => array( 'padding' => 0, ), ); /* Parse CSS from array() -> max-width: (tablet-breakpoint)px CSS */ $parse_css .= astra_parse_css( $remove_primary_padding_on_mobile_css, '', astra_get_tablet_breakpoint() ); } /** * Remove margin top when Primary Header is not set and No Sidebar is added in Full-Width / Contained Layout. * * @since 2.5.0 */ if ( self::gtn_group_cover_css_comp() && is_singular() ) { $display_header = get_post_meta( get_the_ID(), 'ast-main-header-display', true ); if ( 'disabled' === $display_header && apply_filters( 'astra_content_margin_full_width_contained', true ) || ( Astra_Ext_Transparent_Header_Markup::is_transparent_header() ) || ( self::gutenberg_core_blocks_css_comp() ) ) { $gtn_margin_top = array( '.ast-plain-container.ast-no-sidebar #primary' => array( 'margin-top' => '0', 'margin-bottom' => '0', ), ); $parse_css .= astra_parse_css( $gtn_margin_top ); } /** * Re-add margin top when FullWidth Contained layout is set. * * @since 3.8.3 */ if ( true === $update_customizer_strctural_defaults ) { $display_title = get_post_meta( get_the_ID(), 'site-post-title', true ); if ( 'disabled' !== $display_title && ! Astra_Ext_Transparent_Header_Markup::is_transparent_header() && apply_filters( 'astra_contained_layout_primary_spacing', true ) ) { $gtn_margin_top = array( '.ast-plain-container.ast-no-sidebar #primary' => array( 'margin-top' => '60px', 'margin-bottom' => '60px', ), ); /* Parse CSS from array() -> min-width: (1200)px CSS */ $parse_css .= astra_parse_css( $gtn_margin_top, '1200' ); } } } $single_post_outside_spacing = astra_get_option( 'single-post-outside-spacing' ); if ( ! self::astra_4_6_0_compatibility() ) { $single_post_outside_spacing_css_desktop = array( '.ast-separate-container.ast-single-post.ast-right-sidebar #primary, .ast-separate-container.ast-single-post.ast-left-sidebar #primary, .ast-separate-container.ast-single-post #primary, .ast-plain-container.ast-single-post #primary, .ast-narrow-container.ast-single-post #primary' => array( 'margin-top' => astra_responsive_spacing( $single_post_outside_spacing, 'top', 'desktop' ), 'margin-bottom' => astra_responsive_spacing( $single_post_outside_spacing, 'bottom', 'desktop' ), ), '.ast-left-sidebar.ast-single-post #primary, .ast-right-sidebar.ast-single-post #primary, .ast-separate-container.ast-single-post.ast-right-sidebar #primary, .ast-separate-container.ast-single-post.ast-left-sidebar #primary, .ast-separate-container.ast-single-post #primary, .ast-narrow-container.ast-single-post #primary' => array( 'padding-left' => astra_responsive_spacing( $single_post_outside_spacing, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $single_post_outside_spacing, 'right', 'desktop' ), ), ); $parse_css .= astra_parse_css( $single_post_outside_spacing_css_desktop ); $single_post_outside_spacing_css_tablet = array( '.ast-separate-container.ast-single-post.ast-right-sidebar #primary, .ast-separate-container.ast-single-post.ast-left-sidebar #primary, .ast-separate-container.ast-single-post #primary, .ast-plain-container #primary, .ast-narrow-container #primary' => array( 'margin-top' => astra_responsive_spacing( $single_post_outside_spacing, 'top', 'tablet' ), 'margin-bottom' => astra_responsive_spacing( $single_post_outside_spacing, 'bottom', 'tablet' ), ), '.ast-left-sidebar #primary, .ast-right-sidebar #primary, .ast-separate-container.ast-single-post.ast-right-sidebar #primary, .ast-separate-container.ast-single-post.ast-left-sidebar #primary, .ast-separate-container #primary, .ast-narrow-container #primary' => array( 'padding-left' => astra_responsive_spacing( $single_post_outside_spacing, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $single_post_outside_spacing, 'right', 'tablet' ), ), '.ast-separate-container.ast-single-post.ast-right-sidebar #primary, .ast-separate-container.ast-single-post.ast-left-sidebar #primary, .ast-separate-container.ast-single-post #primary, .ast-plain-container.ast-single-post #primary, .ast-narrow-container.ast-single-post #primary' => array( 'margin-top' => astra_responsive_spacing( $single_post_outside_spacing, 'top', 'tablet' ), 'margin-bottom' => astra_responsive_spacing( $single_post_outside_spacing, 'bottom', 'tablet' ), ), '.ast-left-sidebar.ast-single-post #primary, .ast-right-sidebar.ast-single-post #primary, .ast-separate-container.ast-single-post.ast-right-sidebar #primary, .ast-separate-container.ast-single-post.ast-left-sidebar #primary, .ast-separate-container.ast-single-post #primary, .ast-narrow-container.ast-single-post #primary' => array( 'padding-left' => astra_responsive_spacing( $single_post_outside_spacing, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $single_post_outside_spacing, 'right', 'tablet' ), ), ); $parse_css .= astra_parse_css( $single_post_outside_spacing_css_tablet, '', astra_get_tablet_breakpoint() ); $single_post_outside_spacing_css_mobile = array( '.ast-separate-container.ast-single-post.ast-right-sidebar #primary, .ast-separate-container.ast-single-post.ast-left-sidebar #primary, .ast-separate-container.ast-single-post #primary, .ast-plain-container.ast-single-post #primary, .ast-narrow-container.ast-single-post #primary' => array( 'margin-top' => astra_responsive_spacing( $single_post_outside_spacing, 'top', 'mobile' ), 'margin-bottom' => astra_responsive_spacing( $single_post_outside_spacing, 'bottom', 'mobile' ), ), '.ast-left-sidebar.ast-single-post #primary, .ast-right-sidebar.ast-single-post #primary, .ast-separate-container.ast-single-post.ast-right-sidebar #primary, .ast-separate-container.ast-single-post.ast-left-sidebar #primary, .ast-separate-container.ast-single-post #primary, .ast-narrow-container.ast-single-post #primary' => array( 'padding-left' => astra_responsive_spacing( $single_post_outside_spacing, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $single_post_outside_spacing, 'right', 'mobile' ), ), ); $parse_css .= astra_parse_css( $single_post_outside_spacing_css_mobile, '', astra_get_mobile_breakpoint() ); } if ( self::astra_4_8_2_compatibility() ) { $single_post_outside_padding_css_tablet = array( '.ast-separate-container.ast-single-post #primary, .ast-narrow-container.ast-single-post #primary' => array( 'padding-left' => astra_responsive_spacing( $single_post_outside_spacing, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $single_post_outside_spacing, 'right', 'tablet' ), ), ); $parse_css .= astra_parse_css( $single_post_outside_padding_css_tablet, '', astra_get_tablet_breakpoint() ); $single_post_outside_padding_css_mobile = array( '.ast-separate-container.ast-single-post #primary, .ast-narrow-container.ast-single-post #primary' => array( 'padding-left' => astra_responsive_spacing( $single_post_outside_spacing, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $single_post_outside_spacing, 'right', 'mobile' ), ), ); $parse_css .= astra_parse_css( $single_post_outside_padding_css_mobile, '', astra_get_mobile_breakpoint() ); } /** * Single Post Outer spacing */ // To apply Container Outside Spacing we need to remove default top padding given from the theme. $remove_single_post_top_padding_container = array( '.ast-separate-container #primary, .ast-narrow-container #primary' => array( 'padding-top' => astra_get_css_value( 0, 'px' ), ), ); // To apply Container Outside Spacing we need to remove default bottom padding given from the theme. $remove_single_post_bottom_padding_container = array( '.ast-separate-container #primary, .ast-narrow-container #primary' => array( 'padding-bottom' => astra_get_css_value( 0, 'px' ), ), ); if ( isset( $single_post_outside_spacing['desktop']['top'] ) && '' != $single_post_outside_spacing['desktop']['top'] ) { $parse_css .= astra_parse_css( $remove_single_post_top_padding_container ); } if ( isset( $single_post_outside_spacing['tablet']['top'] ) && '' != $single_post_outside_spacing['tablet']['top'] ) { $parse_css .= astra_parse_css( $remove_single_post_top_padding_container, '', astra_get_tablet_breakpoint() ); } if ( isset( $single_post_outside_spacing['mobile']['top'] ) && '' != $single_post_outside_spacing['mobile']['top'] ) { $parse_css .= astra_parse_css( $remove_single_post_top_padding_container, '', astra_get_mobile_breakpoint() ); } if ( isset( $single_post_outside_spacing['desktop']['top'] ) && '' != $single_post_outside_spacing['desktop']['top'] ) { $parse_css .= astra_parse_css( $remove_single_post_bottom_padding_container ); } if ( isset( $single_post_outside_spacing['tablet']['top'] ) && '' != $single_post_outside_spacing['tablet']['top'] ) { $parse_css .= astra_parse_css( $remove_single_post_bottom_padding_container, '', astra_get_tablet_breakpoint() ); } if ( isset( $single_post_outside_spacing['mobile']['top'] ) && '' != $single_post_outside_spacing['mobile']['top'] ) { $parse_css .= astra_parse_css( $remove_single_post_bottom_padding_container, '', astra_get_mobile_breakpoint() ); } if ( $block_editor_legacy_setup ) { /* * Fix the wide width issue in gutenberg * check if the current user is existing user or new user. * if new user load the CSS bty default if existing provide a filter */ if ( self::gtn_image_group_css_comp() ) { if ( false === $improve_gb_ui && ( 'content-boxed-container' == $ast_container_layout || 'boxed-container' == $ast_container_layout ) ) { $parse_css .= astra_parse_css( array( '.ast-separate-container.ast-right-sidebar .entry-content .wp-block-image.alignfull,.ast-separate-container.ast-left-sidebar .entry-content .wp-block-image.alignfull,.ast-separate-container.ast-right-sidebar .entry-content .wp-block-cover.alignfull,.ast-separate-container.ast-left-sidebar .entry-content .wp-block-cover.alignfull' => array( 'margin-left' => '-6.67em', 'margin-right' => '-6.67em', 'max-width' => 'unset', 'width' => 'unset', ), '.ast-separate-container.ast-right-sidebar .entry-content .wp-block-image.alignwide,.ast-separate-container.ast-left-sidebar .entry-content .wp-block-image.alignwide,.ast-separate-container.ast-right-sidebar .entry-content .wp-block-cover.alignwide,.ast-separate-container.ast-left-sidebar .entry-content .wp-block-cover.alignwide' => array( 'margin-left' => '-20px', 'margin-right' => '-20px', 'max-width' => 'unset', 'width' => 'unset', ), ), '1200' ); } $gtn_full_wide_image_css = array( '.wp-block-group .has-background' => array( 'padding' => '20px', ), ); $parse_css .= astra_parse_css( $gtn_full_wide_image_css, '1200' ); } else { $gtn_tablet_column_css = array( '.entry-content .wp-block-columns .wp-block-column' => array( 'margin-left' => '0px', ), ); $parse_css .= astra_parse_css( $gtn_tablet_column_css, '', '782' ); } if ( self::gtn_group_cover_css_comp() ) { if ( 'no-sidebar' !== astra_page_layout() ) { switch ( $ast_container_layout ) { case 'content-boxed-container': case 'boxed-container': if ( true === $improve_gb_ui ) { break; } $parse_css .= astra_parse_css( array( // With container - Sidebar. '.ast-separate-container.ast-right-sidebar .entry-content .wp-block-group.alignwide, .ast-separate-container.ast-left-sidebar .entry-content .wp-block-group.alignwide, .ast-separate-container.ast-right-sidebar .entry-content .wp-block-cover.alignwide, .ast-separate-container.ast-left-sidebar .entry-content .wp-block-cover.alignwide' => array( 'margin-left' => '-20px', 'margin-right' => '-20px', 'padding-left' => '20px', 'padding-right' => '20px', ), '.ast-separate-container.ast-right-sidebar .entry-content .wp-block-group.alignfull, .ast-separate-container.ast-left-sidebar .entry-content .wp-block-group.alignfull, .ast-separate-container.ast-right-sidebar .entry-content .wp-block-cover.alignfull, .ast-separate-container.ast-left-sidebar .entry-content .wp-block-cover.alignfull' => array( 'margin-left' => '-6.67em', 'margin-right' => '-6.67em', 'padding-left' => '6.67em', 'padding-right' => '6.67em', ), ), '1200' ); break; case 'plain-container': $parse_css .= astra_parse_css( array( // Without container - Sidebar. '.ast-plain-container.ast-right-sidebar .entry-content .wp-block-group.alignwide, .ast-plain-container.ast-left-sidebar .entry-content .wp-block-group.alignwide, .ast-plain-container.ast-right-sidebar .entry-content .wp-block-group.alignfull, .ast-plain-container.ast-left-sidebar .entry-content .wp-block-group.alignfull' => array( 'padding-left' => '20px', 'padding-right' => '20px', ), ), '1200' ); break; case 'page-builder': $parse_css .= astra_parse_css( array( '.ast-page-builder-template.ast-left-sidebar .entry-content .wp-block-cover.alignwide, .ast-page-builder-template.ast-right-sidebar .entry-content .wp-block-cover.alignwide, .ast-page-builder-template.ast-left-sidebar .entry-content .wp-block-cover.alignfull, .ast-page-builder-template.ast-right-sidebar .entry-content .wp-block-cover.alignful' => array( 'padding-right' => '0', 'padding-left' => '0', ), ), '1200' ); break; } } else { switch ( $container_layout ) { case 'content-boxed-container': case 'boxed-container': if ( true === $improve_gb_ui ) { break; } $parse_css .= astra_parse_css( array( // With container - No Sidebar. '.ast-no-sidebar.ast-separate-container .entry-content .wp-block-group.alignwide, .ast-no-sidebar.ast-separate-container .entry-content .wp-block-cover.alignwide' => array( 'margin-left' => '-20px', 'margin-right' => '-20px', 'padding-left' => '20px', 'padding-right' => '20px', ), '.ast-no-sidebar.ast-separate-container .entry-content .wp-block-cover.alignfull, .ast-no-sidebar.ast-separate-container .entry-content .wp-block-group.alignfull' => array( 'margin-left' => '-6.67em', 'margin-right' => '-6.67em', 'padding-left' => '6.67em', 'padding-right' => '6.67em', ), ), '1200' ); break; case 'plain-container': $parse_css .= astra_parse_css( array( // Without container - No Sidebar. '.ast-plain-container.ast-no-sidebar .entry-content .alignwide .wp-block-cover__inner-container, .ast-plain-container.ast-no-sidebar .entry-content .alignfull .wp-block-cover__inner-container' => array( 'width' => astra_get_css_value( $site_content_width + 40, 'px' ), ), ), '1200' ); break; case 'page-builder': $parse_css .= astra_parse_css( array( '.ast-page-builder-template.ast-no-sidebar .entry-content .wp-block-cover.alignwide, .ast-page-builder-template.ast-no-sidebar .entry-content .wp-block-cover.alignfull' => array( 'padding-right' => '0', 'padding-left' => '0', ), ), '1200' ); break; } } $parse_css .= astra_parse_css( array( '.wp-block-cover-image.alignwide .wp-block-cover__inner-container, .wp-block-cover.alignwide .wp-block-cover__inner-container, .wp-block-cover-image.alignfull .wp-block-cover__inner-container, .wp-block-cover.alignfull .wp-block-cover__inner-container' => array( 'width' => '100%', ), ), '1200' ); } if ( self::gutenberg_core_blocks_css_comp() ) { $desktop_screen_gb_css = array( // Group block, Columns block, Gallery block, Table block & has-text-align-center selector compatibility Desktop CSS. '.wp-block-columns' => array( 'margin-bottom' => 'unset', ), '.wp-block-image.size-full' => array( 'margin' => '2rem 0', ), '.wp-block-separator.has-background' => array( 'padding' => '0', ), '.wp-block-gallery' => array( 'margin-bottom' => '1.6em', ), '.wp-block-group' => array( 'padding-top' => '4em', 'padding-bottom' => '4em', ), '.wp-block-group__inner-container .wp-block-columns:last-child, .wp-block-group__inner-container :last-child, .wp-block-table table' => array( 'margin-bottom' => '0', ), '.blocks-gallery-grid' => array( 'width' => '100%', ), '.wp-block-navigation-link__content' => array( 'padding' => '5px 0', ), '.wp-block-group .wp-block-group .has-text-align-center, .wp-block-group .wp-block-column .has-text-align-center' => array( 'max-width' => '100%', ), '.has-text-align-center' => array( 'margin' => '0 auto', ), ); /* Parse CSS from array() -> Desktop CSS */ $parse_css .= astra_parse_css( $desktop_screen_gb_css ); if ( false === $improve_gb_ui ) { $middle_screen_min_gb_css = array( // Group & Column block > align compatibility (min-width:1200px) CSS. '.wp-block-cover__inner-container, .alignwide .wp-block-group__inner-container, .alignfull .wp-block-group__inner-container' => array( 'max-width' => '1200px', 'margin' => '0 auto', ), '.wp-block-group.alignnone, .wp-block-group.aligncenter, .wp-block-group.alignleft, .wp-block-group.alignright, .wp-block-group.alignwide, .wp-block-columns.alignwide' => array( 'margin' => '2rem 0 1rem 0', ), ); /* Parse CSS from array() -> min-width: (1200)px CSS */ $parse_css .= astra_parse_css( $middle_screen_min_gb_css, '1200' ); } $middle_screen_max_gb_css = array( // Group & Column block (max-width:1200px) CSS. '.wp-block-group' => array( 'padding' => '3em', ), '.wp-block-group .wp-block-group' => array( 'padding' => '1.5em', ), '.wp-block-columns, .wp-block-column' => array( 'margin' => '1rem 0', ), ); /* Parse CSS from array() -> max-width: (1200)px CSS */ $parse_css .= astra_parse_css( $middle_screen_max_gb_css, '', '1200' ); $tablet_screen_min_gb_css = array( // Columns inside Group block compatibility (min-width: tablet-breakpoint) CSS. '.wp-block-columns .wp-block-group' => array( 'padding' => '2em', ), ); /* Parse CSS from array() -> min-width: (tablet-breakpoint)px CSS */ $parse_css .= astra_parse_css( $tablet_screen_min_gb_css, astra_get_tablet_breakpoint() ); $mobile_screen_max_gb_css = array( // Content | image | video inside Media & Text block, Cover block, Image inside cover block compatibility (max-width: mobile-breakpoint) CSS. '.wp-block-cover-image .wp-block-cover__inner-container, .wp-block-cover .wp-block-cover__inner-container' => array( 'width' => 'unset', ), '.wp-block-cover, .wp-block-cover-image' => array( 'padding' => '2em 0', ), '.wp-block-group, .wp-block-cover' => array( 'padding' => '2em', ), '.wp-block-media-text__media img, .wp-block-media-text__media video' => array( 'width' => 'unset', 'max-width' => '100%', ), '.wp-block-media-text.has-background .wp-block-media-text__content' => array( 'padding' => '1em', ), ); if ( ! self::gutenberg_media_text_block_css_compat() ) { // Added this [! self::gutenberg_media_text_block_css_compat()] condition as we update the same selector CSS in gutenberg_media_text_block_css_compat() function with new padding: 8% 0; CSS for max-width: (mobile-breakpoint). $mobile_screen_max_gb_css['.wp-block-media-text .wp-block-media-text__content'] = array( 'padding' => '3em 2em', ); } /* Parse CSS from array() -> max-width: (mobile-breakpoint)px CSS */ $parse_css .= astra_parse_css( $mobile_screen_max_gb_css, '', astra_get_mobile_breakpoint() ); } $is_legacy_setup = ( 'legacy' === astra_get_option( 'wp-blocks-ui' ) ) ? true : false; if ( $is_legacy_setup && astra_wp_version_compare( '6.0', '>=' ) ) { // Image block align center CSS. $image_block_center_align = array( '.wp-block-image.aligncenter' => array( 'margin-left' => 'auto', 'margin-right' => 'auto', ), ); $parse_css .= astra_parse_css( $image_block_center_align ); } if ( $is_legacy_setup ) { // Table block align center CSS. $table_block_center_align = array( '.wp-block-table.aligncenter' => array( 'margin-left' => 'auto', 'margin-right' => 'auto', ), ); $parse_css .= astra_parse_css( $table_block_center_align ); } if ( self::gutenberg_media_text_block_css_compat() ) { $media_text_block_padding_css = array( // Media & Text block CSS compatibility (min-width: mobile-breakpoint) CSS. '.entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content' => array( 'padding' => '0 8% 0 0', ), '.entry-content .wp-block-media-text .wp-block-media-text__content' => array( 'padding' => '0 0 0 8%', ), '.ast-plain-container .site-content .entry-content .has-custom-content-position.is-position-bottom-left > *, .ast-plain-container .site-content .entry-content .has-custom-content-position.is-position-bottom-right > *, .ast-plain-container .site-content .entry-content .has-custom-content-position.is-position-top-left > *, .ast-plain-container .site-content .entry-content .has-custom-content-position.is-position-top-right > *, .ast-plain-container .site-content .entry-content .has-custom-content-position.is-position-center-right > *, .ast-plain-container .site-content .entry-content .has-custom-content-position.is-position-center-left > *' => array( 'margin' => 0, ), ); /* Parse CSS from array() -> min-width: (mobile-breakpoint)px CSS */ $parse_css .= astra_parse_css( $media_text_block_padding_css, astra_get_mobile_breakpoint() ); $mobile_screen_media_text_block_css = array( // Media & Text block padding CSS for (max-width: mobile-breakpoint) CSS. '.entry-content .wp-block-media-text .wp-block-media-text__content' => array( 'padding' => '8% 0', ), '.wp-block-media-text .wp-block-media-text__media img' => array( 'width' => 'auto', 'max-width' => '100%', ), ); /* Parse CSS from array() -> max-width: (mobile-breakpoint)px CSS */ $parse_css .= astra_parse_css( $mobile_screen_media_text_block_css, '', astra_get_mobile_breakpoint() ); } } /** * When supporting GB button outline patterns in v3.3.0 we have given 2px as default border for GB outline button, where we restrict button border for flat type buttons. * But now while reverting this change there is no need of default border because whatever customizer border will set it should behave accordingly. Although it is empty ('') WP applying 2px as default border for outline buttons. * * @since 3.6.3 */ $default_border_size = '2px'; if ( astra_button_default_padding_updated() ) { $default_border_size = ''; } // Outline Gutenberg button compatibility CSS. $theme_btn_top_border = ( isset( $global_custom_button_border_size['top'] ) && ( '' !== $global_custom_button_border_size['top'] && '0' !== $global_custom_button_border_size['top'] ) ) ? astra_get_css_value( $global_custom_button_border_size['top'], 'px' ) : $default_border_size; $theme_btn_right_border = ( isset( $global_custom_button_border_size['right'] ) && ( '' !== $global_custom_button_border_size['right'] && '0' !== $global_custom_button_border_size['right'] ) ) ? astra_get_css_value( $global_custom_button_border_size['right'], 'px' ) : $default_border_size; $theme_btn_left_border = ( isset( $global_custom_button_border_size['left'] ) && ( '' !== $global_custom_button_border_size['left'] && '0' !== $global_custom_button_border_size['left'] ) ) ? astra_get_css_value( $global_custom_button_border_size['left'], 'px' ) : $default_border_size; $theme_btn_bottom_border = ( isset( $global_custom_button_border_size['bottom'] ) && ( '' !== $global_custom_button_border_size['bottom'] && '0' !== $global_custom_button_border_size['bottom'] ) ) ? astra_get_css_value( $global_custom_button_border_size['bottom'], 'px' ) : $default_border_size; if ( self::gutenberg_core_patterns_compat() ) { $outline_button_css = array( '.wp-block-button.is-style-outline .wp-block-button__link' => array( 'border-color' => empty( $btn_border_color ) ? esc_attr( $btn_bg_color ) : esc_attr( $btn_border_color ), 'border-top-width' => esc_attr( $theme_btn_top_border ), 'border-right-width' => esc_attr( $theme_btn_right_border ), 'border-bottom-width' => esc_attr( $theme_btn_bottom_border ), 'border-left-width' => esc_attr( $theme_btn_left_border ), ), 'div.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color), div.wp-block-button.wp-block-button__link.is-style-outline:not(.has-text-color)' => array( 'color' => empty( $btn_border_color ) ? esc_attr( $btn_bg_color ) : esc_attr( $btn_border_color ), ), '.wp-block-button.is-style-outline .wp-block-button__link:hover, .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:focus, .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):hover, .wp-block-buttons .wp-block-button.wp-block-button__link.is-style-outline:not(.has-text-color):hover' => array( 'color' => esc_attr( $btn_text_hover_color ), 'background-color' => esc_attr( $btn_bg_hover_color ), 'border-color' => empty( $btn_border_h_color ) ? esc_attr( $btn_bg_hover_color ) : esc_attr( $btn_border_h_color ), ), // Adding CSS to highlight current paginated number. '.post-page-numbers.current .page-link, .ast-pagination .page-numbers.current' => array( 'color' => astra_get_foreground_color( $theme_color ), 'border-color' => esc_attr( $theme_color ), 'background-color' => esc_attr( $theme_color ), ), ); /* Parse CSS from array() -> All media CSS */ $parse_css .= astra_parse_css( $outline_button_css ); if ( $block_editor_legacy_setup ) { if ( ! astra_button_default_padding_updated() ) { // Tablet CSS. $outline_button_tablet_css = array( '.wp-block-button.is-style-outline .wp-block-button__link' => array( 'padding-top' => 'calc(15px - ' . (int) $theme_btn_top_border . 'px)', 'padding-right' => 'calc(30px - ' . (int) $theme_btn_right_border . 'px)', 'padding-bottom' => 'calc(15px - ' . (int) $theme_btn_bottom_border . 'px)', 'padding-left' => 'calc(30px - ' . (int) $theme_btn_left_border . 'px)', ), ); $parse_css .= astra_parse_css( $outline_button_tablet_css, '', astra_get_tablet_breakpoint() ); // Mobile CSS. $outline_button_mobile_css = array( '.wp-block-button.is-style-outline .wp-block-button__link' => array( 'padding-top' => 'calc(15px - ' . (int) $theme_btn_top_border . 'px)', 'padding-right' => 'calc(30px - ' . (int) $theme_btn_right_border . 'px)', 'padding-bottom' => 'calc(15px - ' . (int) $theme_btn_bottom_border . 'px)', 'padding-left' => 'calc(30px - ' . (int) $theme_btn_left_border . 'px)', ), ); $parse_css .= astra_parse_css( $outline_button_mobile_css, '', astra_get_mobile_breakpoint() ); } if ( $is_site_rtl ) { $gb_patterns_min_mobile_css = array( '.entry-content > .alignleft' => array( 'margin-left' => '20px', ), '.entry-content > .alignright' => array( 'margin-right' => '20px', ), ); } else { $gb_patterns_min_mobile_css = array( '.entry-content > .alignleft' => array( 'margin-right' => '20px', ), '.entry-content > .alignright' => array( 'margin-left' => '20px', ), ); } if ( ! astra_button_default_padding_updated() ) { $gb_patterns_min_mobile_css['.wp-block-group.has-background'] = array( 'padding' => '20px', ); } /* Parse CSS from array() -> min-width: (mobile-breakpoint) px CSS */ $parse_css .= astra_parse_css( $gb_patterns_min_mobile_css, astra_get_mobile_breakpoint() ); } } if ( astra_button_default_padding_updated() ) { $outline_button_css = array( '.wp-block-button.is-style-outline .wp-block-button__link' => array( 'border-top-width' => esc_attr( $theme_btn_top_border ), 'border-right-width' => esc_attr( $theme_btn_right_border ), 'border-bottom-width' => esc_attr( $theme_btn_bottom_border ), 'border-left-width' => esc_attr( $theme_btn_left_border ), ), ); /* Parse CSS from array() -> All media CSS */ $parse_css .= astra_parse_css( $outline_button_css ); } /** * Secondary button styles. */ $scndry_btn_text_color = astra_get_option( 'secondary-button-color' ); $scndry_btn_border_color = astra_get_option( 'secondary-theme-button-border-group-border-color' ); $scndry_btn_border_h_color = astra_get_option( 'secondary-theme-button-border-group-border-h-color' ); $global_scndry_custom_button_border_size = astra_get_option( 'secondary-theme-button-border-group-border-size' ); $scndry_theme_btn_top_border = ( isset( $global_scndry_custom_button_border_size['top'] ) && ( '' !== $global_scndry_custom_button_border_size['top'] && '0' !== $global_scndry_custom_button_border_size['top'] ) ) ? astra_get_css_value( $global_scndry_custom_button_border_size['top'], 'px' ) : $default_border_size; $scndry_theme_btn_right_border = ( isset( $global_scndry_custom_button_border_size['right'] ) && ( '' !== $global_scndry_custom_button_border_size['right'] && '0' !== $global_scndry_custom_button_border_size['right'] ) ) ? astra_get_css_value( $global_scndry_custom_button_border_size['right'], 'px' ) : $default_border_size; $scndry_theme_btn_left_border = ( isset( $global_scndry_custom_button_border_size['left'] ) && ( '' !== $global_scndry_custom_button_border_size['left'] && '0' !== $global_scndry_custom_button_border_size['left'] ) ) ? astra_get_css_value( $global_scndry_custom_button_border_size['left'], 'px' ) : $default_border_size; $scndry_theme_btn_bottom_border = ( isset( $global_scndry_custom_button_border_size['bottom'] ) && ( '' !== $global_scndry_custom_button_border_size['bottom'] && '0' !== $global_scndry_custom_button_border_size['bottom'] ) ) ? astra_get_css_value( $global_scndry_custom_button_border_size['bottom'], 'px' ) : $default_border_size; $scndry_theme_btn_font_family = astra_get_option( 'secondary-font-family-button' ); $scndry_theme_btn_font_size = astra_get_option( 'secondary-font-size-button' ); $scndry_theme_btn_font_weight = astra_get_option( 'secondary-font-weight-button' ); $scndry_theme_btn_text_transform = astra_get_font_extras( astra_get_option( 'secondary-font-extras-button' ), 'text-transform' ); $scndry_theme_btn_line_height = astra_get_font_extras( astra_get_option( 'secondary-font-extras-button' ), 'line-height', 'line-height-unit' ); $scndry_theme_btn_letter_spacing = astra_get_font_extras( astra_get_option( 'secondary-font-extras-button' ), 'letter-spacing', 'letter-spacing-unit' ); $scndry_theme_btn_text_decoration = astra_get_font_extras( astra_get_option( 'secondary-font-extras-button' ), 'text-decoration' ); $scndry_theme_btn_padding = astra_get_option( 'secondary-theme-button-padding' ); $scndry_btn_border_radius_fields = astra_get_option( 'secondary-button-radius-fields' ); $scndry_btn_bg_color = astra_get_option( 'secondary-button-bg-color' ); $scndry_btn_bg_hover_color = astra_get_option( 'secondary-button-bg-h-color' ); $scndry_btn_text_hover_color = astra_get_option( 'secondary-button-h-color' ); $outline_button_selector = '.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button, .ast-outline-button'; $padding_top = astra_responsive_spacing( $scndry_theme_btn_padding, 'top', 'desktop' ); $padding_right = astra_responsive_spacing( $scndry_theme_btn_padding, 'right', 'desktop' ); $padding_bottom = astra_responsive_spacing( $scndry_theme_btn_padding, 'bottom', 'desktop' ); $padding_left = astra_responsive_spacing( $scndry_theme_btn_padding, 'left', 'desktop' ); $border_top_val = ''; $border_right_val = ''; $border_bottom_val = ''; $border_left_val = ''; $gutenberg_core_patterns_compat = self::gutenberg_core_patterns_compat(); // Secondary color. if ( empty( $scndry_btn_text_color ) && $gutenberg_core_patterns_compat ) { $btn_color_val = empty( $btn_border_color ) ? esc_attr( $btn_bg_color ) : esc_attr( $btn_border_color ); } else { $btn_color_val = $scndry_btn_text_color; } // Secondary border color. if ( empty( $scndry_btn_border_color ) && empty( $scndry_btn_bg_color ) && $gutenberg_core_patterns_compat ) { $btn_border_color_val = empty( $btn_border_color ) ? esc_attr( $btn_bg_color ) : esc_attr( $btn_border_color ); } else { $btn_border_color_val = empty( $scndry_btn_border_color ) ? esc_attr( $scndry_btn_bg_color ) : esc_attr( $scndry_btn_border_color ); } // Secondary border hover color. if ( empty( $scndry_btn_border_h_color ) && $gutenberg_core_patterns_compat ) { $btn_border_h_color_val = empty( $btn_border_h_color ) ? esc_attr( $btn_bg_hover_color ) : esc_attr( $btn_border_h_color ); } else { $btn_border_h_color_val = $scndry_btn_border_h_color; } // Secondary button border size. if ( $scndry_theme_btn_top_border || $scndry_theme_btn_right_border || $scndry_theme_btn_left_border || $scndry_theme_btn_bottom_border ) { $border_top_val = $scndry_theme_btn_top_border; $border_right_val = $scndry_theme_btn_right_border; $border_bottom_val = $scndry_theme_btn_bottom_border; $border_left_val = $scndry_theme_btn_left_border; $outline_button_selector = '.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button, .ast-outline-button, .wp-block-uagb-buttons-child .uagb-buttons-repeater.ast-outline-button'; } // Secondary button padding. if ( $padding_top || $padding_right || $padding_bottom || $padding_left ) { $outline_button_selector = '.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button, .ast-outline-button, .wp-block-uagb-buttons-child .uagb-buttons-repeater.ast-outline-button'; } // Secondary button preset compatibility. $secondary_btn_preset_style = astra_get_option( 'secondary-button-preset-style' ); if ( 'button_04' === $secondary_btn_preset_style || 'button_05' === $secondary_btn_preset_style || 'button_06' === $secondary_btn_preset_style ) { if ( empty( $scndry_btn_border_color ) ) { $btn_border_color_val = $scndry_btn_bg_color; } if ( '' === astra_get_option( 'secondary-button-bg-color' ) && '' === astra_get_option( 'secondary-button-color' ) ) { $btn_color_val = $theme_color; } elseif ( '' === astra_get_option( 'secondary-button-color' ) ) { $btn_color_val = $scndry_btn_bg_color; } $scndry_btn_bg_color = 'transparent'; } $outline_button_css_desktop = array( $outline_button_selector => array( 'border-color' => esc_attr( $btn_border_color_val ), 'border-top-width' => esc_attr( $border_top_val ), 'border-right-width' => esc_attr( $border_right_val ), 'border-bottom-width' => esc_attr( $border_bottom_val ), 'border-left-width' => esc_attr( $border_left_val ), 'font-family' => astra_get_font_family( $scndry_theme_btn_font_family ), 'font-weight' => esc_attr( $scndry_theme_btn_font_weight ), 'font-size' => isset( $scndry_theme_btn_font_size['desktop'] ) && isset( $scndry_theme_btn_font_size['desktop-unit'] ) && is_array( $scndry_theme_btn_font_size ) ? astra_get_font_css_value( $scndry_theme_btn_font_size['desktop'], $scndry_theme_btn_font_size['desktop-unit'] ) : '', 'line-height' => esc_attr( $scndry_theme_btn_line_height ), 'text-transform' => esc_attr( $scndry_theme_btn_text_transform ), 'text-decoration' => esc_attr( $scndry_theme_btn_text_decoration ), 'letter-spacing' => esc_attr( $scndry_theme_btn_letter_spacing ), 'padding-top' => $padding_top, 'padding-right' => $padding_right, 'padding-bottom' => $padding_bottom, 'padding-left' => $padding_left, 'border-top-left-radius' => astra_responsive_spacing( $scndry_btn_border_radius_fields, 'top', 'desktop' ), 'border-top-right-radius' => astra_responsive_spacing( $scndry_btn_border_radius_fields, 'right', 'desktop' ), 'border-bottom-right-radius' => astra_responsive_spacing( $scndry_btn_border_radius_fields, 'bottom', 'desktop' ), 'border-bottom-left-radius' => astra_responsive_spacing( $scndry_btn_border_radius_fields, 'left', 'desktop' ), ), '.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color), .wp-block-buttons .wp-block-button.wp-block-button__link.is-style-outline:not(.has-text-color), .ast-outline-button' => array( 'color' => esc_attr( $btn_color_val ), ), '.wp-block-button.is-style-outline .wp-block-button__link:hover, .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:focus, .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):hover, .wp-block-buttons .wp-block-button.wp-block-button__link.is-style-outline:not(.has-text-color):hover, .ast-outline-button:hover, .ast-outline-button:focus, .wp-block-uagb-buttons-child .uagb-buttons-repeater.ast-outline-button:hover, .wp-block-uagb-buttons-child .uagb-buttons-repeater.ast-outline-button:focus' => array( 'color' => empty( $scndry_btn_text_hover_color ) && $gutenberg_core_patterns_compat ? esc_attr( $btn_text_hover_color ) : esc_attr( $scndry_btn_text_hover_color ), 'background-color' => empty( $scndry_btn_bg_hover_color ) && $gutenberg_core_patterns_compat ? esc_attr( $btn_bg_hover_color ) : esc_attr( $scndry_btn_bg_hover_color ), 'border-color' => esc_attr( $btn_border_h_color_val ), ), ); if ( $content_links_underline && $button_styling_improved ) { $outline_button_css_desktop['.ast-single-post .entry-content a.ast-outline-button, .ast-single-post .entry-content .is-style-outline>.wp-block-button__link'] = array( 'text-decoration' => '' === $scndry_theme_btn_text_decoration || 'initial' === $scndry_theme_btn_text_decoration ? 'none' : esc_attr( $scndry_theme_btn_text_decoration ), ); } $outline_button_css_tablet = array( $outline_button_selector => array( 'font-size' => astra_responsive_font( $scndry_theme_btn_font_size, 'tablet' ), 'padding-top' => astra_responsive_spacing( $scndry_theme_btn_padding, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $scndry_theme_btn_padding, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $scndry_theme_btn_padding, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $scndry_theme_btn_padding, 'left', 'tablet' ), 'border-top-left-radius' => astra_responsive_spacing( $scndry_btn_border_radius_fields, 'top', 'tablet' ), 'border-top-right-radius' => astra_responsive_spacing( $scndry_btn_border_radius_fields, 'right', 'tablet' ), 'border-bottom-right-radius' => astra_responsive_spacing( $scndry_btn_border_radius_fields, 'bottom', 'tablet' ), 'border-bottom-left-radius' => astra_responsive_spacing( $scndry_btn_border_radius_fields, 'left', 'tablet' ), ), ); $outline_button_css_mobile = array( $outline_button_selector => array( 'font-size' => astra_responsive_font( $scndry_theme_btn_font_size, 'mobile' ), 'padding-top' => astra_responsive_spacing( $scndry_theme_btn_padding, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $scndry_theme_btn_padding, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $scndry_theme_btn_padding, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $scndry_theme_btn_padding, 'left', 'mobile' ), 'border-top-left-radius' => astra_responsive_spacing( $scndry_btn_border_radius_fields, 'top', 'mobile' ), 'border-top-right-radius' => astra_responsive_spacing( $scndry_btn_border_radius_fields, 'right', 'mobile' ), 'border-bottom-right-radius' => astra_responsive_spacing( $scndry_btn_border_radius_fields, 'bottom', 'mobile' ), 'border-bottom-left-radius' => astra_responsive_spacing( $scndry_btn_border_radius_fields, 'left', 'mobile' ), ), ); // Secondary button background color. $outline_button_css_desktop['.wp-block-button .wp-block-button__link.wp-element-button.is-style-outline:not(.has-background), .wp-block-button.is-style-outline>.wp-block-button__link.wp-element-button:not(.has-background), .ast-outline-button'] = array( 'background-color' => empty( $scndry_btn_bg_color ) ? 'transparent' : esc_attr( $scndry_btn_bg_color ), ); // Secondary button preset compatibility. if ( 'button_01' === $secondary_btn_preset_style || 'button_02' === $secondary_btn_preset_style || 'button_03' === $secondary_btn_preset_style ) { if ( empty( $scndry_btn_text_color ) ) { $scndry_btn_text_color = astra_get_foreground_color( $theme_color ); } $outline_button_css_desktop['.wp-block-buttons .wp-block-button .wp-block-button__link.is-style-outline:not(.has-background), .wp-block-buttons .wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background), .ast-outline-button'] = array( 'background-color' => empty( $scndry_btn_bg_color ) ? esc_attr( $theme_color ) : esc_attr( $scndry_btn_bg_color ), 'color' => esc_attr( $scndry_btn_text_color ), ); } if ( $button_styling_improved ) { $outline_button_css_desktop['.uagb-buttons-repeater.ast-outline-button'] = array( 'border-radius' => '9999px', ); } /* Parse CSS from array() -> Desktop */ $parse_css .= astra_parse_css( $outline_button_css_desktop ); /* Parse CSS from array() -> Tablet */ $parse_css .= astra_parse_css( $outline_button_css_tablet, '', astra_get_tablet_breakpoint() ); /* Parse CSS from array() -> Mobile */ $parse_css .= astra_parse_css( $outline_button_css_mobile, '', astra_get_mobile_breakpoint() ); /** * Add margin-bottom to the figure element conditionally for WordPress 6.3 or above. * * @since 4.4.0 */ if ( astra_wp_version_compare( '6.3', '>=' ) ) { $figure_margin_bottom = array( '.entry-content[data-ast-blocks-layout] > figure' => array( 'margin-bottom' => '1em', ), ); /* Parse CSS from array() -> All media CSS */ $parse_css .= astra_parse_css( $figure_margin_bottom ); } if ( $is_widget_title_support_font_weight ) { $widget_title_font_weight_support = array( 'h1.widget-title' => array( 'font-weight' => esc_attr( $h1_font_weight ), ), 'h2.widget-title' => array( 'font-weight' => esc_attr( $h2_font_weight ), ), 'h3.widget-title' => array( 'font-weight' => esc_attr( $h3_font_weight ), ), ); /* Parse CSS from array() -> All media CSS */ $parse_css .= astra_parse_css( $widget_title_font_weight_support ); } $static_layout_css = array( '.ast-separate-container #primary, .ast-separate-container #secondary' => array( 'padding' => '1.5em 0', ), '#primary, #secondary' => array( 'padding' => '1.5em 0', 'margin' => 0, ), '.ast-left-sidebar #content > .ast-container' => array( 'display' => 'flex', 'flex-direction' => 'column-reverse', 'width' => '100%', ), ); // Handle backward compatibility for Elementor Pro heading's margin. if ( defined( 'ELEMENTOR_PRO_VERSION' ) && $elementor_heading_margin_style_comp ) { $elementor_base_css[' .content-area .elementor-widget-theme-post-content h1, .content-area .elementor-widget-theme-post-content h2, .content-area .elementor-widget-theme-post-content h3, .content-area .elementor-widget-theme-post-content h4, .content-area .elementor-widget-theme-post-content h5, .content-area .elementor-widget-theme-post-content h6'] = array( 'margin-top' => '1.5em', 'margin-bottom' => 'calc(0.3em + 10px)', ); $parse_css .= astra_parse_css( $elementor_base_css ); } // Getting the responsive alignment option. $shop_product_alignment = astra_get_option( 'shop-product-align-responsive' ); // Added Check if the tablet alignment is 'align-center' if ( ( isset( $shop_product_alignment['desktop'] ) && 'align-center' === $shop_product_alignment['desktop'] ) && 'shop-page-list-style' !== astra_get_option( 'shop-style' ) ) { $desktop_review_wrapper[' .ast-desktop .review-count'] = array( 'margin-left' => '-40px', 'margin-right' => 'auto', ); /* Parse CSS from array() -> Desktop CSS */ $parse_css .= astra_parse_css( $desktop_review_wrapper ); } if ( class_exists( 'WooCommerce' ) && ! is_product() ) { $review_rating_style['.review-rating'] = array( 'display' => 'flex', 'align-items' => 'center', 'order' => '2', ); /* Parse CSS from array() -> Desktop CSS */ $parse_css .= astra_parse_css( $review_rating_style ); } // Added cover block paragraph tag text color compatibility. if ( has_block( 'core/cover' ) ) { $cover_block_style['body .wp-block-cover:not(.has-text-color.has-link-color) p'] = array( 'color' => esc_attr( $text_color ), ); $parse_css .= astra_parse_css( $cover_block_style ); } if ( true === $update_customizer_strctural_defaults ) { $is_site_rtl = is_rtl() ? true : false; $ltr_left = $is_site_rtl ? esc_attr( 'right' ) : esc_attr( 'left' ); $ltr_right = $is_site_rtl ? esc_attr( 'left' ) : esc_attr( 'right' ); $default_layout_update_css = array( '#page' => array( 'display' => 'flex', 'flex-direction' => 'column', 'min-height' => '100vh', ), '.ast-404-layout-1 h1.page-title' => array( 'color' => 'var(--ast-global-color-2)', ), '.single .post-navigation a' => array( 'line-height' => '1em', 'height' => 'inherit', ), '.error-404 .page-sub-title' => array( 'font-size' => '1.5rem', 'font-weight' => 'inherit', ), '.search .site-content .content-area .search-form' => array( 'margin-bottom' => '0', ), '#page .site-content' => array( 'flex-grow' => '1', ), '.widget' => array( 'margin-bottom' => '1.25em', ), '#secondary li' => array( 'line-height' => '1.5em', ), '#secondary .wp-block-group h2' => array( 'margin-bottom' => '0.7em', ), '#secondary h2' => array( 'font-size' => '1.7rem', ), '.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single, .ast-separate-container .comment-respond' => array( 'padding' => self::astra_4_6_0_compatibility() && is_single() ? '2.5em' : '3em', ), '.ast-separate-container .ast-article-single .ast-article-single' => array( 'padding' => '0', ), '.ast-article-single .wp-block-post-template-is-layout-grid' => array( 'padding-' . $ltr_left => '0', ), '.ast-separate-container .comments-title, .ast-narrow-container .comments-title' => array( 'padding' => '1.5em 2em', ), '.ast-page-builder-template .comment-form-textarea, .ast-comment-formwrap .ast-grid-common-col' => array( 'padding' => '0', ), '.ast-comment-formwrap' => array( 'padding' => '0', 'display' => 'inline-flex', 'column-gap' => '20px', 'width' => '100%', 'margin-left' => '0', 'margin-right' => '0', ), '.comments-area textarea#comment:focus, .comments-area textarea#comment:active, .comments-area .ast-comment-formwrap input[type="text"]:focus, .comments-area .ast-comment-formwrap input[type="text"]:active ' => array( 'box-shadow' => 'none', 'outline' => 'none', ), '.archive.ast-page-builder-template .entry-header' => array( 'margin-top' => '2em', ), '.ast-page-builder-template .ast-comment-formwrap' => array( 'width' => '100%', ), '.entry-title' => array( 'margin-bottom' => self::astra_4_6_0_compatibility() ? '0.6em' : '0.5em', ), '.ast-archive-description p' => array( 'font-size' => 'inherit', 'font-weight' => 'inherit', 'line-height' => 'inherit', ), ); if ( ! self::astra_4_6_0_compatibility() ) { $default_layout_update_css['.ast-separate-container .ast-comment-list li.depth-1, .hentry'] = array( 'margin-bottom' => '2em', ); } else { if ( is_single() && astra_get_option( 'single-content-images-shadow', false ) ) { $default_layout_update_css['.ast-article-single img'] = array( 'box-shadow' => '0 0 30px 0 rgba(0,0,0,.15)', '-webkit-box-shadow' => '0 0 30px 0 rgba(0,0,0,.15)', '-moz-box-shadow' => '0 0 30px 0 rgba(0,0,0,.15)', ); } $default_layout_update_css['.ast-separate-container .ast-comment-list li.depth-1, .hentry'] = array( 'margin-bottom' => '1.5em', ); $default_layout_update_css['.site-content section.ast-archive-description'] = array( 'margin-bottom' => '2em', ); // Search page. if ( is_search() ) { $default_layout_update_css['.no-results'] = array( 'text-align' => 'center', ); $default_layout_update_css['.no-results .search-form'] = array( 'max-width' => '370px', 'margin' => '0 auto', ); $default_layout_update_css['.no-results .search-field'] = array( 'width' => '100%', ); $default_layout_update_css['.search .site-main .no-results .ast-search-submit'] = array( 'display' => 'block', ); $default_layout_update_css['.search .site-main .no-results .ast-live-search-results'] = array( 'max-height' => '200px', ); } } /* Parse CSS from array() -> Desktop CSS */ $parse_css .= astra_parse_css( $default_layout_update_css ); $default_tablet_layout_css = array( '.ast-left-sidebar.ast-page-builder-template #secondary, .archive.ast-right-sidebar.ast-page-builder-template .site-main' => array( 'padding-' . $ltr_left => '20px', 'padding-' . $ltr_right => '20px', ), ); /* Parse CSS from array() -> min-width: tablet-breakpoint CSS */ $parse_css .= astra_parse_css( $default_tablet_layout_css, astra_get_tablet_breakpoint() ); $default_mobile_layout_css = array( '.ast-comment-formwrap.ast-row' => array( 'column-gap' => '10px', 'display' => 'inline-block', ), '#ast-commentform .ast-grid-common-col' => array( 'position' => 'relative', 'width' => '100%', ), ); /* Parse CSS from array() -> max-width: mobile-breakpoint CSS */ $parse_css .= astra_parse_css( $default_mobile_layout_css, '', astra_get_mobile_breakpoint() ); if ( is_user_logged_in() ) { $admin_bar_specific_page_css = array( '.admin-bar #page' => array( 'min-height' => 'calc(100vh - 32px)', ), ); $parse_css .= astra_parse_css( $admin_bar_specific_page_css ); $admin_bar_responsive_page_css = array( '.admin-bar #page' => array( 'min-height' => 'calc(100vh - 46px)', ), ); $parse_css .= astra_parse_css( $admin_bar_responsive_page_css, '', '782' ); } $default_medium_layout_css = array( '.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single, .ast-separate-container .ast-author-box, .ast-separate-container .ast-404-layout-1, .ast-separate-container .no-results' => array( 'padding' => self::astra_4_6_0_compatibility() && is_single() ? '2.5em' : '3em', ), ); /* Parse CSS from array() -> min-width: 1201px CSS */ $parse_css .= astra_parse_css( $default_medium_layout_css, '1201' ); if ( is_author() ) { $default_author_css = array( '.ast-author-box img.avatar' => array( 'margin' => '0', ), ); /* Parse CSS from array() -> Desktop CSS */ $parse_css .= astra_parse_css( $default_author_css ); $default_tablet_min_author_css = array( '.ast-author-box img.avatar' => array( 'width' => '100px', 'height' => '100px', ), '.ast-author-box' => array( 'column-gap' => '50px', ), ); /* Parse CSS from array() -> min-width: (tablet-breakpoint) CSS */ $parse_css .= astra_parse_css( $default_tablet_min_author_css, astra_get_tablet_breakpoint() ); $default_max_tablet_author_css = array( '.ast-author-avatar' => array( 'margin-top' => '20px', ), ); /* Parse CSS from array() -> max-width: (tablet-breakpoint) CSS */ $parse_css .= astra_parse_css( $default_max_tablet_author_css, '', astra_get_tablet_breakpoint() ); $default_tablet_min_extra_px_author_css = array( '.ast-author-box' => array( 'align-items' => 'center', ), ); /* Parse CSS from array() -> min-width: (tablet-breakpoint + 1) CSS */ $parse_css .= astra_parse_css( $default_tablet_min_extra_px_author_css, astra_get_tablet_breakpoint( '', 1 ) ); } } else { $static_layout_css['.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single'] = array( 'padding' => '1.5em 2.14em', ); $static_layout_css['.ast-author-box img.avatar'] = array( 'margin' => '20px 0 0 0', ); } // Handle backward compatibility for Elementor Loop block post div container padding. if ( defined( 'ELEMENTOR_PRO_VERSION' ) && $elementor_container_padding_style_comp ) { $elementor_base_css['.elementor-loop-container .e-loop-item, .elementor-loop-container .ast-separate-container .ast-article-post, .elementor-loop-container .ast-separate-container .ast-article-single, .elementor-loop-container .ast-separate-container .comment-respond'] = array( 'padding' => '0px', ); $parse_css .= astra_parse_css( $elementor_base_css ); } /* Parse CSS from array() -> max-width: (tablet-breakpoint)px CSS */ $parse_css .= astra_parse_css( $static_layout_css, '', astra_get_tablet_breakpoint() ); if ( is_author() && false === $update_customizer_strctural_defaults ) { $parse_css .= astra_parse_css( array( '.ast-author-box img.avatar' => array( 'margin' => '20px 0 0 0', ), ), astra_get_tablet_breakpoint() ); } if ( 'no-sidebar' !== astra_page_layout() ) { $static_secondary_layout_css = array( '#secondary.secondary' => array( 'padding-top' => 0, ), '.ast-separate-container.ast-right-sidebar #secondary' => array( 'padding-left' => '1em', 'padding-right' => '1em', ), '.ast-separate-container.ast-two-container #secondary' => array( 'padding-left' => 0, 'padding-right' => 0, ), '.ast-page-builder-template .entry-header #secondary, .ast-page-builder-template #secondary' => array( 'margin-top' => '1.5em', ), ); $parse_css .= astra_parse_css( $static_secondary_layout_css, '', astra_get_tablet_breakpoint() ); } if ( 'no-sidebar' !== astra_page_layout() ) { if ( $is_site_rtl ) { $static_layout_lang_direction_css = array( '.ast-right-sidebar #primary' => array( 'padding-left' => 0, ), '.ast-page-builder-template.ast-left-sidebar #secondary, ast-page-builder-template.ast-right-sidebar #secondary' => array( 'padding-left' => '20px', 'padding-right' => '20px', ), '.ast-right-sidebar #secondary, .ast-left-sidebar #primary' => array( 'padding-right' => 0, ), '.ast-left-sidebar #secondary' => array( 'padding-left' => 0, ), ); } else { $static_layout_lang_direction_css = array( '.ast-right-sidebar #primary' => array( 'padding-right' => 0, ), '.ast-page-builder-template.ast-left-sidebar #secondary, .ast-page-builder-template.ast-right-sidebar #secondary' => array( 'padding-right' => '20px', 'padding-left' => '20px', ), '.ast-right-sidebar #secondary, .ast-left-sidebar #primary' => array( 'padding-left' => 0, ), '.ast-left-sidebar #secondary' => array( 'padding-right' => 0, ), ); } /* Parse CSS from array() -> max-width: (tablet-breakpoint)px CSS */ $parse_css .= astra_parse_css( $static_layout_lang_direction_css, '', astra_get_tablet_breakpoint() ); } $static_layout_css_min = array( '.ast-separate-container.ast-right-sidebar #primary, .ast-separate-container.ast-left-sidebar #primary' => array( 'border' => 0, ), '.search-no-results.ast-separate-container #primary' => array( 'margin-bottom' => '4em', ), ); if ( is_author() ) { $author_table_css = array( '.ast-author-box' => array( '-js-display' => 'flex', 'display' => 'flex', ), '.ast-author-bio' => array( 'flex' => '1', ), ); $static_layout_css_min = array_merge( $static_layout_css_min, $author_table_css ); } /* Parse CSS from array() -> min-width: (tablet-breakpoint + 1)px CSS */ $parse_css .= astra_parse_css( $static_layout_css_min, astra_get_tablet_breakpoint( '', '1' ) ); // 404 Page. if ( is_404() ) { $page_404 = array( '.ast-404-layout-1 .ast-404-text' => array( 'font-size' => astra_get_font_css_value( '200' ), ), ); $parse_css .= astra_parse_css( $page_404 ); $parse_css .= astra_parse_css( array( '.error404.ast-separate-container #primary' => array( 'margin-bottom' => '4em', ), ), astra_get_tablet_breakpoint( '', '1' ) ); $parse_css .= astra_parse_css( array( '.ast-404-layout-1 .ast-404-text' => array( 'font-size' => astra_get_font_css_value( 100 ), ), ), '', '920' ); } if ( 'no-sidebar' !== astra_page_layout() ) { if ( $is_site_rtl ) { $static_layout_min_lang_direction_css = array( '.ast-right-sidebar #primary' => array( 'border-left' => '1px solid var(--ast-border-color)', ), '.ast-right-sidebar #secondary' => array( 'border-right' => '1px solid var(--ast-border-color)', 'margin-right' => '-1px', ), '.ast-left-sidebar #primary' => array( 'border-right' => '1px solid var(--ast-border-color)', ), '.ast-left-sidebar #secondary' => array( 'border-left' => '1px solid var(--ast-border-color)', 'margin-left' => '-1px', ), '.ast-separate-container.ast-two-container.ast-right-sidebar #secondary' => array( 'padding-right' => '30px', 'padding-left' => 0, ), '.ast-separate-container.ast-two-container.ast-left-sidebar #secondary' => array( 'padding-left' => '30px', 'padding-right' => 0, ), '.ast-separate-container.ast-right-sidebar #secondary, .ast-separate-container.ast-left-sidebar #secondary' => array( 'border' => 0, 'margin-left' => 'auto', 'margin-right' => 'auto', ), '.ast-separate-container.ast-two-container #secondary .widget:last-child' => array( 'margin-bottom' => 0, ), ); } else { $static_layout_min_lang_direction_css = array( '.ast-right-sidebar #primary' => array( 'border-right' => '1px solid var(--ast-border-color)', ), '.ast-left-sidebar #primary' => array( 'border-left' => '1px solid var(--ast-border-color)', ), '.ast-right-sidebar #secondary' => array( 'border-left' => '1px solid var(--ast-border-color)', 'margin-left' => '-1px', ), '.ast-left-sidebar #secondary' => array( 'border-right' => '1px solid var(--ast-border-color)', 'margin-right' => '-1px', ), '.ast-separate-container.ast-two-container.ast-right-sidebar #secondary' => array( 'padding-left' => '30px', 'padding-right' => 0, ), '.ast-separate-container.ast-two-container.ast-left-sidebar #secondary' => array( 'padding-right' => '30px', 'padding-left' => 0, ), '.ast-separate-container.ast-right-sidebar #secondary, .ast-separate-container.ast-left-sidebar #secondary' => array( 'border' => 0, 'margin-left' => 'auto', 'margin-right' => 'auto', ), '.ast-separate-container.ast-two-container #secondary .widget:last-child' => array( 'margin-bottom' => 0, ), ); } /* Parse CSS from array() -> min-width: (tablet-breakpoint + 1)px CSS */ $parse_css .= astra_parse_css( $static_layout_min_lang_direction_css, astra_get_tablet_breakpoint( '', '1' ) ); } /** * Elementor & Gutenberg button backward compatibility for default styling. */ if ( self::page_builder_button_style_css() ) { $search_button_selector = ( ! $block_editor_legacy_setup || $is_wp_5_8_support_enabled ) ? ', form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button' : ''; $search_button_hover_selector = ( ! $block_editor_legacy_setup || $is_wp_5_8_support_enabled ) ? ', form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:hover, form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:focus' : ''; $file_block_button_selector = ( ! $block_editor_legacy_setup || $improve_gb_ui ) ? ', body .wp-block-file .wp-block-file__button' : ''; $file_block_button_hover_selector = ( ! $block_editor_legacy_setup || $improve_gb_ui ) ? ', body .wp-block-file .wp-block-file__button:hover, body .wp-block-file .wp-block-file__button:focus' : ''; $search_page_btn_selector = ( true === $update_customizer_strctural_defaults ) ? ', .search .search-submit' : ''; $woo_btns_selector = ( true === self::astra_woo_support_global_settings() ) ? ', .woocommerce-js a.button, .woocommerce button.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled], .woocommerce input.button:disabled:hover, .woocommerce input.button:disabled[disabled]:hover, .woocommerce #respond input#submit, .woocommerce button.button.alt.disabled, .wc-block-grid__products .wc-block-grid__product .wp-block-button__link, .wc-block-grid__product-onsale, [CLASS*="wc-block"] button, .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons .button:not(.checkout):not(.ast-continue-shopping), .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons a.checkout, .woocommerce button.button.alt.disabled.wc-variation-selection-needed, [CLASS*="wc-block"] .wc-block-components-button' : ''; $woo_btns_hover_selector = ( true === self::astra_woo_support_global_settings() ) ? ', .woocommerce-js a.button:hover, .woocommerce button.button:hover, .woocommerce .woocommerce-message a.button:hover,.woocommerce #respond input#submit:hover,.woocommerce #respond input#submit.alt:hover, .woocommerce input.button.alt:hover, .woocommerce input.button:hover, .woocommerce button.button.alt.disabled:hover, .wc-block-grid__products .wc-block-grid__product .wp-block-button__link:hover, [CLASS*="wc-block"] button:hover, .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons .button:not(.checkout):not(.ast-continue-shopping):hover, .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons a.checkout:hover, .woocommerce button.button.alt.disabled.wc-variation-selection-needed:hover, [CLASS*="wc-block"] .wc-block-components-button:hover, [CLASS*="wc-block"] .wc-block-components-button:focus' : ''; $v4_2_2_core_form_btns_styling_selector = ( true === self::astra_core_form_btns_styling() ) ? ', #comments .submit, .search .search-submit' : ''; /** * Global button CSS - Desktop. */ $global_button_desktop = array( '.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"]' . $v4_2_2_core_form_btns_styling_selector . $search_button_selector . $file_block_button_selector . $search_page_btn_selector . $woo_btns_selector => array( 'border-style' => 'solid', 'border-top-width' => ( isset( $global_custom_button_border_size['top'] ) && '' !== $global_custom_button_border_size['top'] ) ? astra_get_css_value( $global_custom_button_border_size['top'], 'px' ) : '0', 'border-right-width' => ( isset( $global_custom_button_border_size['right'] ) && '' !== $global_custom_button_border_size['right'] ) ? astra_get_css_value( $global_custom_button_border_size['right'], 'px' ) : '0', 'border-left-width' => ( isset( $global_custom_button_border_size['left'] ) && '' !== $global_custom_button_border_size['left'] ) ? astra_get_css_value( $global_custom_button_border_size['left'], 'px' ) : '0', 'border-bottom-width' => ( isset( $global_custom_button_border_size['bottom'] ) && '' !== $global_custom_button_border_size['bottom'] ) ? astra_get_css_value( $global_custom_button_border_size['bottom'], 'px' ) : '0', 'color' => esc_attr( $btn_text_color ), 'border-color' => empty( $btn_border_color ) ? esc_attr( $btn_bg_color ) : esc_attr( $btn_border_color ), 'background-color' => esc_attr( $btn_bg_color ), 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'desktop' ), 'font-family' => astra_get_font_family( $theme_btn_font_family ), 'font-weight' => esc_attr( $theme_btn_font_weight ), 'font-size' => astra_get_font_css_value( $theme_btn_font_size['desktop'], $theme_btn_font_size['desktop-unit'] ), 'line-height' => esc_attr( $theme_btn_line_height ), 'text-transform' => esc_attr( $theme_btn_text_transform ), 'text-decoration' => esc_attr( $theme_btn_text_decoration ), 'letter-spacing' => esc_attr( $theme_btn_letter_spacing ), 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'desktop' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'desktop' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'desktop' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'desktop' ), ), 'button:focus, .menu-toggle:hover, button:hover, .ast-button:hover, .ast-custom-button:hover .button:hover, .ast-custom-button:hover , input[type=reset]:hover, input[type=reset]:focus, input#submit:hover, input#submit:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus' . $search_button_hover_selector . $file_block_button_hover_selector . $woo_btns_hover_selector => array( 'color' => esc_attr( $btn_text_hover_color ), 'background-color' => esc_attr( $btn_bg_hover_color ), 'border-color' => empty( $btn_border_h_color ) ? esc_attr( $btn_bg_hover_color ) : esc_attr( $btn_border_h_color ), ), ); /** * Global button CSS - Tablet. */ $global_button_tablet = array( '.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"]' . $v4_2_2_core_form_btns_styling_selector . $search_button_selector . $file_block_button_selector . $search_page_btn_selector . $woo_btns_selector => array( 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'tablet' ), 'font-size' => astra_responsive_font( $theme_btn_font_size, 'tablet' ), 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'tablet' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'tablet' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'tablet' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'tablet' ), ), ); /** * Global button CSS - Mobile. */ $global_button_mobile = array( '.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"]' . $v4_2_2_core_form_btns_styling_selector . $search_button_selector . $file_block_button_selector . $search_page_btn_selector . $woo_btns_selector => array( 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'mobile' ), 'font-size' => astra_responsive_font( $theme_btn_font_size, 'mobile' ), 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'mobile' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'mobile' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'mobile' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'mobile' ), ), ); $btn_text_color_selectors = '.wp-block-button .wp-block-button__link'; $extra_body_class = $add_body_class ? 'body ' : ''; if ( 'color-typo' === self::elementor_default_color_font_setting() || 'color' === self::elementor_default_color_font_setting() || 'typo' === self::elementor_default_color_font_setting() ) { $ele_btn_default_desktop = array( '.elementor-button-wrapper .elementor-button' => array( 'border-style' => 'solid', 'text-decoration' => 'none', 'border-top-width' => ( isset( $global_custom_button_border_size['top'] ) && '' !== $global_custom_button_border_size['top'] ) ? astra_get_css_value( $global_custom_button_border_size['top'], 'px' ) : '0', 'border-right-width' => ( isset( $global_custom_button_border_size['right'] ) && '' !== $global_custom_button_border_size['right'] ) ? astra_get_css_value( $global_custom_button_border_size['right'], 'px' ) : '0', 'border-left-width' => ( isset( $global_custom_button_border_size['left'] ) && '' !== $global_custom_button_border_size['left'] ) ? astra_get_css_value( $global_custom_button_border_size['left'], 'px' ) : '0', 'border-bottom-width' => ( isset( $global_custom_button_border_size['bottom'] ) && '' !== $global_custom_button_border_size['bottom'] ) ? astra_get_css_value( $global_custom_button_border_size['bottom'], 'px' ) : '0', ), $extra_body_class . '.elementor-button.elementor-size-sm, ' . $extra_body_class . '.elementor-button.elementor-size-xs, ' . $extra_body_class . '.elementor-button.elementor-size-md, ' . $extra_body_class . '.elementor-button.elementor-size-lg, ' . $extra_body_class . '.elementor-button.elementor-size-xl, ' . $extra_body_class . '.elementor-button' => array( 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'desktop' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'desktop' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'desktop' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'desktop' ), 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'desktop' ), ), ); /* Parse CSS from array() */ $parse_css .= astra_parse_css( $ele_btn_default_desktop ); $ele_btn_default_tablet = array( '.elementor-button-wrapper .elementor-button.elementor-size-sm, .elementor-button-wrapper .elementor-button.elementor-size-xs, .elementor-button-wrapper .elementor-button.elementor-size-md, .elementor-button-wrapper .elementor-button.elementor-size-lg, .elementor-button-wrapper .elementor-button.elementor-size-xl, .elementor-button-wrapper .elementor-button' => array( 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'tablet' ), 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'tablet' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'tablet' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'tablet' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'tablet' ), ), ); /* Parse CSS from array() */ $parse_css .= astra_parse_css( $ele_btn_default_tablet, '', astra_get_tablet_breakpoint() ); $ele_btn_default_mobile = array( '.elementor-button-wrapper .elementor-button.elementor-size-sm, .elementor-button-wrapper .elementor-button.elementor-size-xs, .elementor-button-wrapper .elementor-button.elementor-size-md, .elementor-button-wrapper .elementor-button.elementor-size-lg, .elementor-button-wrapper .elementor-button.elementor-size-xl, .elementor-button-wrapper .elementor-button' => array( 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'mobile' ), 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'mobile' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'mobile' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'mobile' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'mobile' ), ), ); /* Parse CSS from array() */ $parse_css .= astra_parse_css( $ele_btn_default_mobile, '', astra_get_mobile_breakpoint() ); } if ( 'color-typo' === self::elementor_default_color_font_setting() || 'color' === self::elementor_default_color_font_setting() ) { // Check if Global Elementor - Theme Style - button color is set. If yes then remove ( :visited ) CSS for the compatibility. if ( false === self::is_elementor_kit_button_color_set() ) { $btn_text_color_selectors .= ' , .elementor-button-wrapper .elementor-button, .elementor-button-wrapper .elementor-button:visited'; } else { $btn_text_color_selectors .= ' , .elementor-button-wrapper .elementor-button'; } $ele_btn_color_builder_desktop = array( '.elementor-button-wrapper .elementor-button' => array( 'border-color' => empty( $btn_border_color ) ? esc_attr( $btn_bg_color ) : esc_attr( $btn_border_color ), 'background-color' => esc_attr( $btn_bg_color ), ), '.elementor-button-wrapper .elementor-button:hover, .elementor-button-wrapper .elementor-button:focus' => array( 'color' => esc_attr( $btn_text_hover_color ), 'background-color' => esc_attr( $btn_bg_hover_color ), 'border-color' => empty( $btn_border_h_color ) ? esc_attr( $btn_bg_hover_color ) : esc_attr( $btn_border_h_color ), ), ); /* Parse CSS from array() */ $parse_css .= astra_parse_css( $ele_btn_color_builder_desktop ); } $global_button_page_builder_text_color_desktop = array( $btn_text_color_selectors => array( 'color' => esc_attr( $btn_text_color ), ), ); /* Parse CSS from array() */ $parse_css .= astra_parse_css( $global_button_page_builder_text_color_desktop ); if ( 'color-typo' === self::elementor_default_color_font_setting() || 'typo' === self::elementor_default_color_font_setting() ) { $ele_btn_typo_builder_desktop = array( '.elementor-button-wrapper .elementor-button' => astra_get_font_array_css( astra_get_option( 'font-family-button' ), astra_get_option( 'font-weight-button' ), $theme_btn_font_size, 'font-extras-button' ), 'body .elementor-button.elementor-size-sm, body .elementor-button.elementor-size-xs, body .elementor-button.elementor-size-md, body .elementor-button.elementor-size-lg, body .elementor-button.elementor-size-xl, body .elementor-button' => array( 'font-size' => astra_responsive_font( $theme_btn_font_size, 'desktop' ), ), ); /* Parse CSS from array() */ $parse_css .= astra_parse_css( $ele_btn_typo_builder_desktop ); } $global_button_page_builder_desktop = array( '.wp-block-button .wp-block-button__link:hover, .wp-block-button .wp-block-button__link:focus' => array( 'color' => esc_attr( $btn_text_hover_color ), 'background-color' => esc_attr( $btn_bg_hover_color ), 'border-color' => empty( $btn_border_h_color ) ? esc_attr( $btn_bg_hover_color ) : esc_attr( $btn_border_h_color ), ), ); if ( defined( 'ELEMENTOR_VERSION' ) ) { $global_button_page_builder_desktop = array_merge( $global_button_page_builder_desktop, array( '.elementor-widget-heading h1.elementor-heading-title' => array( 'line-height' => esc_attr( $h1_line_height ), ), '.elementor-widget-heading h2.elementor-heading-title' => array( 'line-height' => esc_attr( $h2_line_height ), ), '.elementor-widget-heading h3.elementor-heading-title' => array( 'line-height' => esc_attr( $h3_line_height ), ), '.elementor-widget-heading h4.elementor-heading-title' => array( 'line-height' => esc_attr( $h4_line_height ), ), '.elementor-widget-heading h5.elementor-heading-title' => array( 'line-height' => esc_attr( $h5_line_height ), ), '.elementor-widget-heading h6.elementor-heading-title' => array( 'line-height' => esc_attr( $h6_line_height ), ), ) ); } if ( $block_editor_legacy_setup && self::gutenberg_core_patterns_compat() && ! astra_button_default_padding_updated() ) { $theme_outline_gb_btn_top_border = ( isset( $global_custom_button_border_size['top'] ) && ( '' !== $global_custom_button_border_size['top'] && '0' !== $global_custom_button_border_size['top'] ) ) ? astra_get_css_value( $global_custom_button_border_size['top'], 'px' ) : '2px'; $theme_outline_gb_btn_right_border = ( isset( $global_custom_button_border_size['right'] ) && ( '' !== $global_custom_button_border_size['right'] && '0' !== $global_custom_button_border_size['right'] ) ) ? astra_get_css_value( $global_custom_button_border_size['right'], 'px' ) : '2px'; $theme_outline_gb_btn_bottom_border = ( isset( $global_custom_button_border_size['bottom'] ) && ( '' !== $global_custom_button_border_size['bottom'] && '0' !== $global_custom_button_border_size['bottom'] ) ) ? astra_get_css_value( $global_custom_button_border_size['bottom'], 'px' ) : '2px'; $theme_outline_gb_btn_left_border = ( isset( $global_custom_button_border_size['left'] ) && ( '' !== $global_custom_button_border_size['left'] && '0' !== $global_custom_button_border_size['left'] ) ) ? astra_get_css_value( $global_custom_button_border_size['left'], 'px' ) : '2px'; $global_button_page_builder_desktop['.wp-block-button .wp-block-button__link'] = array( 'border' => 'none', 'background-color' => esc_attr( $btn_bg_color ), 'color' => esc_attr( $btn_text_color ), 'font-family' => astra_get_font_family( $theme_btn_font_family ), 'font-weight' => esc_attr( $theme_btn_font_weight ), 'line-height' => esc_attr( $theme_btn_line_height ), 'text-transform' => esc_attr( $theme_btn_text_transform ), 'text-decoration' => esc_attr( $theme_btn_text_decoration ), 'letter-spacing' => esc_attr( $theme_btn_letter_spacing ), 'font-size' => astra_responsive_font( $theme_btn_font_size, 'desktop' ), 'padding' => '15px 30px', 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'desktop' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'desktop' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'desktop' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'desktop' ), ); $global_button_page_builder_desktop['.wp-block-button.is-style-outline .wp-block-button__link'] = array( 'border-style' => 'solid', 'border-top-width' => esc_attr( $theme_outline_gb_btn_top_border ), 'border-right-width' => esc_attr( $theme_outline_gb_btn_right_border ), 'border-left-width' => esc_attr( $theme_outline_gb_btn_left_border ), 'border-bottom-width' => esc_attr( $theme_outline_gb_btn_bottom_border ), 'border-color' => empty( $btn_border_color ) ? esc_attr( $btn_bg_color ) : esc_attr( $btn_border_color ), 'padding-top' => 'calc(15px - ' . (int) $theme_outline_gb_btn_top_border . 'px)', 'padding-right' => 'calc(30px - ' . (int) $theme_outline_gb_btn_right_border . 'px)', 'padding-bottom' => 'calc(15px - ' . (int) $theme_outline_gb_btn_bottom_border . 'px)', 'padding-left' => 'calc(30px - ' . (int) $theme_outline_gb_btn_left_border . 'px)', ); $global_button_page_builder_tablet = array( '.wp-block-button .wp-block-button__link' => array( 'font-size' => astra_responsive_font( $theme_btn_font_size, 'tablet' ), 'border' => 'none', 'padding' => '15px 30px', ), '.wp-block-button.is-style-outline .wp-block-button__link' => array( 'padding-top' => 'calc(15px - ' . (int) $theme_btn_top_border . 'px)', 'padding-right' => 'calc(30px - ' . (int) $theme_btn_right_border . 'px)', 'padding-bottom' => 'calc(15px - ' . (int) $theme_btn_bottom_border . 'px)', 'padding-left' => 'calc(30px - ' . (int) $theme_btn_left_border . 'px)', ), ); $global_button_page_builder_mobile = array( '.wp-block-button .wp-block-button__link' => array( 'font-size' => astra_responsive_font( $theme_btn_font_size, 'mobile' ), 'border' => 'none', 'padding' => '15px 30px', ), '.wp-block-button.is-style-outline .wp-block-button__link' => array( 'padding-top' => 'calc(15px - ' . (int) $theme_btn_top_border . 'px)', 'padding-right' => 'calc(30px - ' . (int) $theme_btn_right_border . 'px)', 'padding-bottom' => 'calc(15px - ' . (int) $theme_btn_bottom_border . 'px)', 'padding-left' => 'calc(30px - ' . (int) $theme_btn_left_border . 'px)', ), ); } else { $default_border_size = '0'; if ( astra_button_default_padding_updated() || ! $block_editor_legacy_setup ) { $default_border_size = ''; } $selector = '.wp-block-button .wp-block-button__link'; if ( ! $block_editor_legacy_setup ) { $selector = $selector . ', .wp-block-search .wp-block-search__button, body .wp-block-file .wp-block-file__button'; } $btn_top_border_size = ( isset( $global_custom_button_border_size['top'] ) && '' !== $global_custom_button_border_size['top'] ) ? astra_get_css_value( $global_custom_button_border_size['top'], 'px' ) : $default_border_size; $btn_bottom_border_size = ( isset( $global_custom_button_border_size['bottom'] ) && '' !== $global_custom_button_border_size['bottom'] ) ? astra_get_css_value( $global_custom_button_border_size['bottom'], 'px' ) : $default_border_size; $btn_right_border_size = ( isset( $global_custom_button_border_size['right'] ) && '' !== $global_custom_button_border_size['right'] ) ? astra_get_css_value( $global_custom_button_border_size['right'], 'px' ) : $default_border_size; $btn_left_border_size = ( isset( $global_custom_button_border_size['left'] ) && '' !== $global_custom_button_border_size['left'] ) ? astra_get_css_value( $global_custom_button_border_size['left'], 'px' ) : $default_border_size; $global_button_page_builder_desktop[ $selector ] = array( 'border-style' => ( $btn_top_border_size || $btn_right_border_size || $btn_left_border_size || $btn_bottom_border_size ) ? 'solid' : '', 'border-top-width' => $btn_top_border_size, 'border-right-width' => $btn_right_border_size, 'border-left-width' => $btn_left_border_size, 'border-bottom-width' => $btn_bottom_border_size, 'border-color' => empty( $btn_border_color ) ? esc_attr( $btn_bg_color ) : esc_attr( $btn_border_color ), 'background-color' => esc_attr( $btn_bg_color ), 'color' => esc_attr( $btn_text_color ), 'font-family' => astra_get_font_family( $theme_btn_font_family ), 'font-weight' => esc_attr( $theme_btn_font_weight ), 'line-height' => esc_attr( $theme_btn_line_height ), 'text-transform' => esc_attr( $theme_btn_text_transform ), 'text-decoration' => esc_attr( $theme_btn_text_decoration ), 'letter-spacing' => esc_attr( $theme_btn_letter_spacing ), 'font-size' => astra_responsive_font( $theme_btn_font_size, 'desktop' ), 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'desktop' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'desktop' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'desktop' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'desktop' ), 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'desktop' ), ); if ( $content_links_underline && $button_styling_improved ) { $global_button_page_builder_desktop['.ast-single-post .entry-content .wp-block-button .wp-block-button__link, .ast-single-post .entry-content .wp-block-search .wp-block-search__button, body .entry-content .wp-block-file .wp-block-file__button'] = array( 'text-decoration' => '' === $theme_btn_text_decoration || 'initial' === $theme_btn_text_decoration ? 'none' : esc_attr( $theme_btn_text_decoration ), ); } $global_button_page_builder_tablet = array( $selector => array( 'font-size' => astra_responsive_font( $theme_btn_font_size, 'tablet' ), 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'tablet' ), 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'tablet' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'tablet' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'tablet' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'tablet' ), ), ); $global_button_page_builder_mobile = array( $selector => array( 'font-size' => astra_responsive_font( $theme_btn_font_size, 'mobile' ), 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'mobile' ), 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'mobile' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'mobile' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'mobile' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'mobile' ), ), ); } /* Parse CSS from array() */ $parse_css .= astra_parse_css( $global_button_page_builder_desktop ); /* Parse CSS from array() */ $parse_css .= astra_parse_css( $global_button_page_builder_tablet, '', astra_get_tablet_breakpoint() ); /* Parse CSS from array() */ $parse_css .= astra_parse_css( $global_button_page_builder_mobile, '', astra_get_mobile_breakpoint() ); } else { $search_button_selector = $is_wp_5_8_support_enabled ? ', form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button' : ''; $search_button_hover_selector = $is_wp_5_8_support_enabled ? ', form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:hover, form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:focus' : ''; /** * Global button CSS - Desktop. */ $global_button_desktop = array( '.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"]' . $search_button_selector => array( 'color' => esc_attr( $btn_text_color ), 'border-color' => empty( $btn_border_color ) ? esc_attr( $btn_bg_color ) : esc_attr( $btn_border_color ), 'background-color' => esc_attr( $btn_bg_color ), 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'desktop' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'desktop' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'desktop' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'desktop' ), 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'desktop' ), 'font-family' => astra_get_font_family( $theme_btn_font_family ), 'font-weight' => esc_attr( $theme_btn_font_weight ), 'font-size' => astra_get_font_css_value( $theme_btn_font_size['desktop'], $theme_btn_font_size['desktop-unit'] ), 'text-transform' => esc_attr( $theme_btn_text_transform ), 'text-decoration' => esc_attr( $theme_btn_text_decoration ), 'letter-spacing' => esc_attr( $theme_btn_letter_spacing ), ), 'button:focus, .menu-toggle:hover, button:hover, .ast-button:hover, .ast-custom-button:hover .button:hover, .ast-custom-button:hover, input[type=reset]:hover, input[type=reset]:focus, input#submit:hover, input#submit:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus' . $search_button_hover_selector => array( 'color' => esc_attr( $btn_text_hover_color ), 'background-color' => esc_attr( $btn_bg_hover_color ), 'border-color' => empty( $btn_border_h_color ) ? esc_attr( $btn_bg_hover_color ) : esc_attr( $btn_border_h_color ), ), ); /** * Global button CSS - Tablet. */ $global_button_tablet = array( '.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"]' . $search_button_selector => array( 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'tablet' ), 'font-size' => astra_responsive_font( $theme_btn_font_size, 'tablet' ), 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'tablet' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'tablet' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'tablet' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'tablet' ), ), ); /** * Global button CSS - Mobile. */ $global_button_mobile = array( '.menu-toggle, button, .ast-button, .ast-custom-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"]' . $search_button_selector => array( 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'mobile' ), 'font-size' => astra_responsive_font( $theme_btn_font_size, 'mobile' ), 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'mobile' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'mobile' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'mobile' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'mobile' ), ), ); } if ( true === $update_customizer_strctural_defaults ) { $global_button_desktop['form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button.has-icon'] = array( 'padding-top' => 'calc(' . astra_responsive_spacing( $theme_btn_padding, 'top', 'desktop' ) . ' - 3px)', 'padding-right' => 'calc(' . astra_responsive_spacing( $theme_btn_padding, 'right', 'desktop' ) . ' - 3px)', 'padding-bottom' => 'calc(' . astra_responsive_spacing( $theme_btn_padding, 'bottom', 'desktop' ) . ' - 3px)', 'padding-left' => 'calc(' . astra_responsive_spacing( $theme_btn_padding, 'left', 'desktop' ) . ' - 3px)', ); } /* Parse CSS from array() */ $parse_css .= astra_parse_css( $global_button_desktop ); $parse_css .= astra_parse_css( $global_button_tablet, '', astra_get_tablet_breakpoint() ); $parse_css .= astra_parse_css( $global_button_mobile, '', astra_get_mobile_breakpoint() ); /* Parse CSS from array() -> min-width: (tablet-breakpoint) px CSS */ if ( empty( $site_content_width ) ) { $container_min_tablet_css = array( '.ast-container' => array( 'max-width' => '100%', ), ); $parse_css .= astra_parse_css( $container_min_tablet_css, astra_get_tablet_breakpoint() ); } $container_min_mobile_css = array( '.ast-container' => array( 'max-width' => '100%', ), ); /** * Global button CSS - -> max-width: (tablet-breakpoint) px. */ $global_button_tablet = array( '.menu-toggle, button, .ast-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"]' => array( 'font-size' => astra_get_font_css_value( $theme_btn_font_size['tablet'], $theme_btn_font_size['tablet-unit'] ), ), '.ast-mobile-header-stack .main-header-bar .ast-search-menu-icon' => array( 'display' => 'inline-block', ), '.ast-header-break-point.ast-header-custom-item-outside .ast-mobile-header-stack .main-header-bar .ast-search-icon' => array( 'margin' => '0', ), '.ast-comment-avatar-wrap img' => array( 'max-width' => '2.5em', ), '.ast-comment-meta' => array( 'padding' => '0 1.8888em 1.3333em', ), ); if ( ! self::astra_4_6_0_compatibility() ) { $global_button_tablet['.ast-separate-container .ast-comment-list li.depth-1'] = array( 'padding' => '1.5em 2.14em', ); $global_button_tablet['.ast-separate-container .comment-respond'] = array( 'padding' => '2em 2.14em', ); } /* Parse CSS from array() -> max-width: (tablet-breakpoint) px CSS */ $parse_css .= astra_parse_css( $global_button_tablet, '', astra_get_tablet_breakpoint() ); /* Parse CSS from array() -> min-width: (mobile-breakpoint) px CSS */ $parse_css .= astra_parse_css( $container_min_mobile_css, astra_get_mobile_breakpoint() ); $global_button_mobile = array( '.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single, .ast-separate-container .comments-title, .ast-separate-container .ast-archive-description' => array( 'padding' => '1.5em 1em', ), '.ast-separate-container #content .ast-container' => array( 'padding-left' => '0.54em', 'padding-right' => '0.54em', ), '.ast-separate-container .ast-comment-list .bypostauthor' => array( 'padding' => '.5em', ), '.ast-search-menu-icon.ast-dropdown-active .search-field' => array( 'width' => '170px', ), '.menu-toggle, button, .ast-button, .button, input#submit, input[type="button"], input[type="submit"], input[type="reset"]' => array( 'font-size' => astra_get_font_css_value( $theme_btn_font_size['mobile'], $theme_btn_font_size['mobile-unit'] ), ), ); if ( ! self::astra_4_6_0_compatibility() ) { $global_button_tablet['.ast-separate-container .ast-comment-list li.depth-1'] = array( 'padding' => '1.5em 1em', 'margin-bottom' => '1.5em', ); } if ( 'no-sidebar' !== astra_page_layout() ) { $global_button_mobile['.ast-separate-container #secondary'] = array( 'padding-top' => 0, ); $global_button_mobile['.ast-separate-container.ast-two-container #secondary .widget'] = array( 'margin-bottom' => '1.5em', 'padding-left' => '1em', 'padding-right' => '1em', ); } // Add/Remove logo max-width: 100%; CSS for logo in old header layout. if ( false === Astra_Builder_Helper::$is_header_footer_builder_active && false === self::remove_logo_max_width_mobile_static_css() ) { $global_button_mobile['.site-branding img, .site-header .site-logo-img .custom-logo-link img'] = array( 'max-width' => '100%', ); } /* Parse CSS from array() -> max-width: (mobile-breakpoint) px */ $parse_css .= astra_parse_css( $global_button_mobile, '', astra_get_mobile_breakpoint() ); if ( Astra_Builder_Helper::is_component_loaded( 'search', 'header', 'mobile' ) ) { if ( $is_site_rtl ) { $global_button_tablet_lang_direction_css = array( '.ast-header-break-point .ast-search-menu-icon.slide-search .search-form' => array( 'left' => '0', ), '.ast-header-break-point .ast-mobile-header-stack .ast-search-menu-icon.slide-search .search-form' => array( 'left' => '-1em', ), ); } else { $global_button_tablet_lang_direction_css = array( '.ast-header-break-point .ast-search-menu-icon.slide-search .search-form' => array( 'right' => '0', ), '.ast-header-break-point .ast-mobile-header-stack .ast-search-menu-icon.slide-search .search-form' => array( 'right' => '-1em', ), ); } $parse_css .= astra_parse_css( $global_button_tablet_lang_direction_css, '', astra_get_tablet_breakpoint() ); } if ( false === Astra_Builder_Helper::$is_header_footer_builder_active && 'custom-button' === $header_custom_button_style ) { $css_output = array( // Header button typography stylings. '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button, .ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' => array( 'font-family' => astra_get_font_family( $header_custom_btn_font_family ), 'font-weight' => esc_attr( $header_custom_btn_font_weight ), 'font-size' => astra_responsive_font( $header_custom_btn_font_size, 'desktop' ), 'line-height' => esc_attr( $header_custom_btn_line_height ), 'text-transform' => esc_attr( $header_custom_btn_text_transform ), 'letter-spacing' => astra_get_css_value( $header_custom_btn_letter_spacing, 'px' ), ), // Custom menu item button - Default. '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' => array( 'color' => esc_attr( $header_custom_button_text_color ), 'background-color' => esc_attr( $header_custom_button_back_color ), 'padding-top' => astra_responsive_spacing( $header_custom_button_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $header_custom_button_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $header_custom_button_spacing, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $header_custom_button_spacing, 'right', 'desktop' ), 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'desktop' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'desktop' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'desktop' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'desktop' ), 'border-style' => 'solid', 'border-color' => esc_attr( $header_custom_button_border_color ), 'border-top-width' => ( isset( $header_custom_button_border_size['top'] ) && '' !== $header_custom_button_border_size['top'] ) ? astra_get_css_value( $header_custom_button_border_size['top'], 'px' ) : '0px', 'border-right-width' => ( isset( $header_custom_button_border_size['right'] ) && '' !== $header_custom_button_border_size['right'] ) ? astra_get_css_value( $header_custom_button_border_size['right'], 'px' ) : '0px', 'border-left-width' => ( isset( $header_custom_button_border_size['left'] ) && '' !== $header_custom_button_border_size['left'] ) ? astra_get_css_value( $header_custom_button_border_size['left'], 'px' ) : '0px', 'border-bottom-width' => ( isset( $header_custom_button_border_size['bottom'] ) && '' !== $header_custom_button_border_size['bottom'] ) ? astra_get_css_value( $header_custom_button_border_size['bottom'], 'px' ) : '0px', ), '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button:hover' => array( 'color' => esc_attr( $header_custom_button_text_h_color ), 'background-color' => esc_attr( $header_custom_button_back_h_color ), 'border-color' => esc_attr( $header_custom_button_border_h_color ), ), // Custom menu item button - Transparent. '.ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' => array( 'color' => esc_attr( $header_custom_trans_button_text_color ), 'background-color' => esc_attr( $header_custom_trans_button_back_color ), 'padding-top' => astra_responsive_spacing( $header_custom_trans_button_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $header_custom_trans_button_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $header_custom_trans_button_spacing, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $header_custom_trans_button_spacing, 'right', 'desktop' ), 'border-radius' => astra_get_css_value( $header_custom_trans_button_radius, 'px' ), 'border-style' => 'solid', 'border-color' => esc_attr( $header_custom_trans_button_border_color ), 'border-top-width' => ( isset( $header_custom_trans_button_border_size['top'] ) && '' !== $header_custom_trans_button_border_size['top'] ) ? astra_get_css_value( $header_custom_trans_button_border_size['top'], 'px' ) : '', 'border-right-width' => ( isset( $header_custom_trans_button_border_size['right'] ) && '' !== $header_custom_trans_button_border_size['right'] ) ? astra_get_css_value( $header_custom_trans_button_border_size['right'], 'px' ) : '', 'border-left-width' => ( isset( $header_custom_trans_button_border_size['left'] ) && '' !== $header_custom_trans_button_border_size['left'] ) ? astra_get_css_value( $header_custom_trans_button_border_size['left'], 'px' ) : '', 'border-bottom-width' => ( isset( $header_custom_trans_button_border_size['bottom'] ) && '' !== $header_custom_trans_button_border_size['bottom'] ) ? astra_get_css_value( $header_custom_trans_button_border_size['bottom'], 'px' ) : '', ), '.ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button:hover' => array( 'color' => esc_attr( $header_custom_trans_button_text_h_color ), 'background-color' => esc_attr( $header_custom_trans_button_back_h_color ), 'border-color' => esc_attr( $header_custom_trans_button_border_h_color ), ), ); /* Parse CSS from array() */ $parse_css .= astra_parse_css( $css_output ); /* Parse CSS from array()*/ /* Custom Menu Item Button */ $custom_button_css = array( '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' => array( 'font-size' => astra_responsive_font( $header_custom_btn_font_size, 'tablet' ), 'padding-top' => astra_responsive_spacing( $header_custom_button_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $header_custom_button_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $header_custom_button_spacing, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $header_custom_button_spacing, 'right', 'tablet' ), ), ); $custom_trans_button_css = array( '.ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' => array( 'font-size' => astra_responsive_font( $header_custom_btn_font_size, 'tablet' ), 'padding-top' => astra_responsive_spacing( $header_custom_trans_button_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $header_custom_trans_button_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $header_custom_trans_button_spacing, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $header_custom_trans_button_spacing, 'right', 'tablet' ), ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( array_merge( $custom_button_css, $custom_trans_button_css ), '', astra_get_tablet_breakpoint() ); /* Custom Menu Item Button */ $custom_button = array( '.main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' => array( 'font-size' => astra_responsive_font( $header_custom_btn_font_size, 'mobile' ), 'padding-top' => astra_responsive_spacing( $header_custom_button_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $header_custom_button_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $header_custom_button_spacing, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $header_custom_button_spacing, 'right', 'mobile' ), ), ); $custom_trans_button = array( '.ast-theme-transparent-header .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' => array( 'font-size' => astra_responsive_font( $header_custom_btn_font_size, 'mobile' ), 'padding-top' => astra_responsive_spacing( $header_custom_trans_button_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $header_custom_trans_button_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $header_custom_trans_button_spacing, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $header_custom_trans_button_spacing, 'right', 'mobile' ), ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( array_merge( $custom_button, $custom_trans_button ), '', astra_get_mobile_breakpoint() ); } if ( false === Astra_Builder_Helper::$is_header_footer_builder_active ) { // Foreground color. if ( ! empty( $footer_adv_link_color ) ) { $footer_adv_tagcloud = array( '.footer-adv .tagcloud a:hover, .footer-adv .tagcloud a.current-item' => array( 'color' => astra_get_foreground_color( $footer_adv_link_color ), ), '.footer-adv .calendar_wrap #today' => array( 'color' => astra_get_foreground_color( $footer_adv_link_color ), ), ); $parse_css .= astra_parse_css( $footer_adv_tagcloud ); } } /* Width for Footer */ if ( false === Astra_Builder_Helper::$is_header_footer_builder_active && 'content' != $astra_footer_width ) { $genral_global_responsive = array( '.ast-small-footer .ast-container' => array( 'max-width' => '100%', 'padding-left' => '35px', 'padding-right' => '35px', ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( $genral_global_responsive, astra_get_tablet_breakpoint( '', 1 ) ); } /* Preventing link redirection when the cart is clicked */ if ( 'redirect' !== astra_get_option( 'responsive-cart-click-action' ) ) { $desktop_cart_link_event = array( ' #ast-mobile-header .ast-site-header-cart-li a' => array( 'pointer-events' => 'none', ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( $desktop_cart_link_event ); } /* Preventing link redirection when the cart is clicked */ if ( is_customize_preview() && 'redirect' !== astra_get_option( 'woo-header-cart-click-action' ) ) { $responsive_cart_link_event = array( ' #ast-desktop-header .ast-site-header-cart-li a' => array( 'pointer-events' => 'none', ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( $responsive_cart_link_event ); } /* Width for Comments for Full Width / Stretched Template */ if ( 'page-builder' == $container_layout ) { $page_builder_comment = array( '.ast-page-builder-template .comments-area, .single.ast-page-builder-template .entry-header, .single.ast-page-builder-template .post-navigation, .single.ast-page-builder-template .ast-single-related-posts-container' => array( 'max-width' => astra_get_css_value( $site_content_width + 40, 'px' ), 'margin-left' => 'auto', 'margin-right' => 'auto', ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( $page_builder_comment, astra_get_mobile_breakpoint( '', 1 ) ); } $astra_spearate_container_selector = 'body, .ast-separate-container'; if ( astra_has_gcp_typo_preset_compatibility() && true === astra_apply_content_background_fullwidth_layouts() ) { $astra_spearate_container_selector = '.ast-separate-container'; } $separate_container_css = array( $astra_spearate_container_selector => astra_get_responsive_background_obj( $box_bg_obj, 'desktop' ), ); $parse_css .= astra_parse_css( $separate_container_css ); if ( $block_editor_legacy_setup ) { /** * Added new compatibility & layout designs for core block layouts. * - Compatibility for alignwide, alignfull, default width. * * @since 3.7.4 */ $entry_content_selector = '.entry-content'; if ( true === $improve_gb_ui ) { $entry_content_selector = '.entry-content >'; $core_blocks_width_desktop_ui_css = array( '.entry-content > .wp-block-group, .entry-content > .wp-block-media-text, .entry-content > .wp-block-cover, .entry-content > .wp-block-columns' => array( 'max-width' => '58em', 'width' => 'calc(100% - 4em)', 'margin-left' => 'auto', 'margin-right' => 'auto', ), '.entry-content [class*="__inner-container"] > .alignfull' => array( 'max-width' => '100%', 'margin-left' => 0, 'margin-right' => 0, ), '.entry-content [class*="__inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright)' => array( 'margin-left' => 'auto', 'margin-right' => 'auto', ), '.entry-content [class*="__inner-container"] > *:not(.alignwide):not(p):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide):not(iframe)' => array( 'max-width' => '50rem', 'width' => '100%', ), ); /* Parse CSS from array -> Desktop CSS. */ $parse_css .= astra_parse_css( $core_blocks_width_desktop_ui_css ); $core_blocks_min_width_tablet_ui_css = array( '.entry-content > .wp-block-group.alignwide.has-background, .entry-content > .wp-block-group.alignfull.has-background, .entry-content > .wp-block-cover.alignwide, .entry-content > .wp-block-cover.alignfull, .entry-content > .wp-block-columns.has-background.alignwide, .entry-content > .wp-block-columns.has-background.alignfull' => array( 'margin-top' => '0', 'margin-bottom' => '0', 'padding' => '6em 4em', ), '.entry-content > .wp-block-columns.has-background' => array( 'margin-bottom' => '0', ), ); /* Parse CSS from array -> min-width(tablet-breakpoint) */ $parse_css .= astra_parse_css( $core_blocks_min_width_tablet_ui_css, astra_get_tablet_breakpoint() ); $core_blocks_min_width_1200_ui_css = array( '.entry-content .alignfull p' => array( 'max-width' => astra_get_css_value( $site_content_width, 'px' ), ), '.entry-content .alignfull' => array( 'max-width' => '100%', 'width' => '100%', ), '.ast-page-builder-template .entry-content .alignwide, .entry-content [class*="__inner-container"] > .alignwide' => array( 'max-width' => astra_get_css_value( $site_content_width, 'px' ), 'margin-left' => '0', 'margin-right' => '0', ), '.entry-content .alignfull [class*="__inner-container"] > .alignwide' => array( 'max-width' => '80rem', ), ); /* Parse CSS from array -> min-width( 1200px ) */ $parse_css .= astra_parse_css( $core_blocks_min_width_1200_ui_css, '1200' ); $core_blocks_min_width_mobile_ui_css = array( '.site-main .entry-content > .alignwide' => array( 'margin' => '0 auto', ), '.wp-block-group.has-background, .entry-content > .wp-block-cover, .entry-content > .wp-block-columns.has-background' => array( 'padding' => '4em', 'margin-top' => '0', 'margin-bottom' => '0', ), '.entry-content .wp-block-media-text.alignfull .wp-block-media-text__content, .entry-content .wp-block-media-text.has-background .wp-block-media-text__content' => array( 'padding' => '0 8%', ), ); /* Parse CSS from array -> min-width(mobile-breakpoint + 1) */ $parse_css .= astra_parse_css( $core_blocks_min_width_mobile_ui_css, astra_get_mobile_breakpoint( '', 1 ) ); } else { $astra_no_sidebar_layout_css = '.ast-no-sidebar.ast-separate-container ' . $entry_content_selector . ' .alignfull { margin-left: -6.67em; margin-right: -6.67em; width: auto; } @media (max-width: 1200px) { .ast-no-sidebar.ast-separate-container ' . $entry_content_selector . ' .alignfull { margin-left: -2.4em; margin-right: -2.4em; } } @media (max-width: 768px) { .ast-no-sidebar.ast-separate-container ' . $entry_content_selector . ' .alignfull { margin-left: -2.14em; margin-right: -2.14em; } } @media (max-width: 544px) { .ast-no-sidebar.ast-separate-container ' . $entry_content_selector . ' .alignfull { margin-left: -1em; margin-right: -1em; } } .ast-no-sidebar.ast-separate-container ' . $entry_content_selector . ' .alignwide { margin-left: -20px; margin-right: -20px; } .ast-no-sidebar.ast-separate-container ' . $entry_content_selector . ' .wp-block-column .alignfull, .ast-no-sidebar.ast-separate-container ' . $entry_content_selector . ' .wp-block-column .alignwide { margin-left: auto; margin-right: auto; width: 100%; } '; $parse_css .= Astra_Enqueue_Scripts::trim_css( $astra_no_sidebar_layout_css ); } } $tablet_typo = array(); if ( isset( $body_font_size['tablet'] ) && '' != $body_font_size['tablet'] ) { $tablet_typo = array( // Widget Title. '.widget-title' => array( 'font-size' => astra_get_font_css_value( (int) $body_font_size['tablet'] * 1.428571429, 'px', 'tablet' ), ), ); } /* Tablet Typography */ $tablet_typography = array( 'body, button, input, select, textarea, .ast-button, .ast-custom-button' => array( 'font-size' => astra_responsive_font( $body_font_size, 'tablet' ), ), '#secondary, #secondary button, #secondary input, #secondary select, #secondary textarea' => array( 'font-size' => astra_responsive_font( $body_font_size, 'tablet' ), ), '.site-title' => array( 'font-size' => astra_responsive_font( $site_title_font_size, 'tablet' ), 'display' => esc_attr( $tablet_title_visibility ), ), '.site-header .site-description' => array( 'font-size' => astra_responsive_font( $site_tagline_font_size, 'tablet' ), 'display' => esc_attr( $tablet_tagline_visibility ), ), '.entry-title' => array( 'font-size' => astra_responsive_font( $archive_post_title_font_size, 'tablet' ), ), '.ast-blog-single-element.ast-taxonomy-container a' => array( 'font-size' => astra_responsive_font( $archive_post_tax_font_size, 'tablet' ), ), '.ast-blog-meta-container' => array( 'font-size' => astra_responsive_font( $archive_post_meta_font_size, 'tablet' ), ), 'blog-layout-4' === $blog_layout ? '.archive .ast-article-post .ast-article-inner, .blog .ast-article-post .ast-article-inner' : '.archive .ast-article-post, .ast-article-post .post-thumb-img-content, .ast-blog-layout-6-grid .ast-article-inner .post-thumb::after, .blog .ast-article-post' => array( 'border-top-left-radius' => astra_responsive_spacing( $archive_cards_radius, 'top', 'tablet' ), 'border-top-right-radius' => astra_responsive_spacing( $archive_cards_radius, 'right', 'tablet' ), 'border-bottom-right-radius' => astra_responsive_spacing( $archive_cards_radius, 'bottom', 'tablet' ), 'border-bottom-left-radius' => astra_responsive_spacing( $archive_cards_radius, 'left', 'tablet' ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h1, .entry-content h1, .entry-content h1 a', 'h1, .entry-content h1' ) => array( 'font-size' => astra_responsive_font( $heading_h1_font_size, 'tablet', $heading_font_size_comp ? '' : 30 ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h2, .entry-content h2, .entry-content h2 a', 'h2, .entry-content h2' ) => array( 'font-size' => astra_responsive_font( $heading_h2_font_size, 'tablet', $heading_font_size_comp ? '' : 25 ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h3, .entry-content h3, .entry-content h3 a', 'h3, .entry-content h3' ) => array( 'font-size' => astra_responsive_font( $heading_h3_font_size, 'tablet', $heading_font_size_comp ? '' : 20 ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h4, .entry-content h4, .entry-content h4 a', 'h4, .entry-content h4' ) => array( 'font-size' => astra_responsive_font( $heading_h4_font_size, 'tablet' ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h5, .entry-content h5, .entry-content h5 a', 'h5, .entry-content h5' ) => array( 'font-size' => astra_responsive_font( $heading_h5_font_size, 'tablet' ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h6, .entry-content h6, .entry-content h6 a', 'h6, .entry-content h6' ) => array( 'font-size' => astra_responsive_font( $heading_h6_font_size, 'tablet' ), ), '.astra-logo-svg' => array( 'width' => astra_get_css_value( $header_logo_width['tablet'], 'px' ), ), '.astra-logo-svg:not(.sticky-custom-logo .astra-logo-svg, .transparent-custom-logo .astra-logo-svg, .advanced-header-logo .astra-logo-svg)' => array( 'height' => astra_get_css_value( ( ! empty( $header_logo_width['tablet-svg-height'] ) && ! is_customize_preview() ) ? $header_logo_width['tablet-svg-height'] : '', 'px' ), ), is_customize_preview() ? '.ast-sg-logo-section .custom-logo-link img, header .custom-logo-link img, .ast-header-break-point .site-logo-img .custom-mobile-logo-link img' : 'header .custom-logo-link img, .ast-header-break-point .site-logo-img .custom-mobile-logo-link img' => array( 'max-width' => astra_get_css_value( $header_logo_width['tablet'], 'px' ), 'width' => astra_get_css_value( $header_logo_width['tablet'], 'px' ), ), 'body, .ast-separate-container' => astra_get_responsive_background_obj( $box_bg_obj, 'tablet' ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( array_merge( $tablet_typo, $tablet_typography ), '', astra_get_tablet_breakpoint() ); $mobile_typo = array(); if ( isset( $body_font_size['mobile'] ) && '' != $body_font_size['mobile'] ) { $mobile_typo = array( // Widget Title. '.widget-title' => array( 'font-size' => astra_get_font_css_value( (int) $body_font_size['mobile'] * 1.428571429, 'px', 'mobile' ), ), ); } /* Mobile Typography */ $mobile_typography = array( 'body, button, input, select, textarea, .ast-button, .ast-custom-button' => array( 'font-size' => astra_responsive_font( $body_font_size, 'mobile' ), ), '#secondary, #secondary button, #secondary input, #secondary select, #secondary textarea' => array( 'font-size' => astra_responsive_font( $body_font_size, 'mobile' ), ), '.site-title' => array( 'font-size' => astra_responsive_font( $site_title_font_size, 'mobile' ), 'display' => esc_attr( $mobile_title_visibility ), ), '.site-header .site-description' => array( 'font-size' => astra_responsive_font( $site_tagline_font_size, 'mobile' ), 'display' => esc_attr( $mobile_tagline_visibility ), ), '.entry-title' => array( 'font-size' => astra_responsive_font( $archive_post_title_font_size, 'mobile' ), ), '.ast-blog-single-element.ast-taxonomy-container a' => array( 'font-size' => astra_responsive_font( $archive_post_tax_font_size, 'mobile' ), ), '.ast-blog-meta-container' => array( 'font-size' => astra_responsive_font( $archive_post_meta_font_size, 'mobile' ), ), 'blog-layout-4' === $blog_layout ? '.archive .ast-article-post .ast-article-inner, .blog .ast-article-post .ast-article-inner' : '.archive .ast-article-post, .ast-article-post .post-thumb-img-content, .ast-blog-layout-6-grid .ast-article-inner .post-thumb::after, .blog .ast-article-post' => array( 'border-top-left-radius' => astra_responsive_spacing( $archive_cards_radius, 'top', 'mobile' ), 'border-top-right-radius' => astra_responsive_spacing( $archive_cards_radius, 'right', 'mobile' ), 'border-bottom-right-radius' => astra_responsive_spacing( $archive_cards_radius, 'bottom', 'mobile' ), 'border-bottom-left-radius' => astra_responsive_spacing( $archive_cards_radius, 'left', 'mobile' ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h1, .entry-content h1, .entry-content h1 a', 'h1, .entry-content h1' ) => array( 'font-size' => astra_responsive_font( $heading_h1_font_size, 'mobile', $heading_font_size_comp ? '' : 30 ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h2, .entry-content h2, .entry-content h2 a', 'h2, .entry-content h2' ) => array( 'font-size' => astra_responsive_font( $heading_h2_font_size, 'mobile', $heading_font_size_comp ? '' : 25 ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h3, .entry-content h3, .entry-content h3 a', 'h3, .entry-content h3' ) => array( 'font-size' => astra_responsive_font( $heading_h3_font_size, 'mobile', $heading_font_size_comp ? '' : 20 ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h4, .entry-content h4, .entry-content h4 a', 'h4, .entry-content h4' ) => array( 'font-size' => astra_responsive_font( $heading_h4_font_size, 'mobile' ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h5, .entry-content h5, .entry-content h5 a', 'h5, .entry-content h5' ) => array( 'font-size' => astra_responsive_font( $heading_h5_font_size, 'mobile' ), ), // Conditionally select the css selectors with or without achors. self::conditional_headings_css_selectors( 'h6, .entry-content h6, .entry-content h6 a', 'h6, .entry-content h6' ) => array( 'font-size' => astra_responsive_font( $heading_h6_font_size, 'mobile' ), ), is_customize_preview() ? '.ast-sg-logo-section .custom-logo-link img, header .custom-logo-link img, .ast-header-break-point .site-branding img, .ast-header-break-point .custom-logo-link img' : 'header .custom-logo-link img, .ast-header-break-point .site-branding img, .ast-header-break-point .custom-logo-link img' => array( 'max-width' => astra_get_css_value( $header_logo_width['mobile'], 'px' ), 'width' => astra_get_css_value( $header_logo_width['mobile'], 'px' ), ), '.astra-logo-svg' => array( 'width' => astra_get_css_value( $header_logo_width['mobile'], 'px' ), ), '.astra-logo-svg:not(.sticky-custom-logo .astra-logo-svg, .transparent-custom-logo .astra-logo-svg, .advanced-header-logo .astra-logo-svg)' => array( 'height' => astra_get_css_value( ( ! empty( $header_logo_width['mobile-svg-height'] ) && ! is_customize_preview() ) ? $header_logo_width['mobile-svg-height'] : '', 'px' ), ), '.ast-header-break-point .site-logo-img .custom-mobile-logo-link img' => array( 'max-width' => astra_get_css_value( $header_logo_width['mobile'], 'px' ), ), 'body, .ast-separate-container' => astra_get_responsive_background_obj( $box_bg_obj, 'mobile' ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( array_merge( $mobile_typo, $mobile_typography ), '', astra_get_mobile_breakpoint() ); /* * Responsive Font Size for Tablet & Mobile to the root HTML element */ // Tablet Font Size for HTML tag. if ( '' == $body_font_size['tablet'] ) { $html_tablet_typography = array( 'html' => array( 'font-size' => astra_get_font_css_value( (int) $body_font_size_desktop * 5.7, '%' ), ), ); $parse_css .= astra_parse_css( $html_tablet_typography, '', astra_get_tablet_breakpoint() ); } // Mobile Font Size for HTML tag. if ( '' == $body_font_size['mobile'] ) { $html_mobile_typography = array( 'html' => array( 'font-size' => astra_get_font_css_value( (int) $body_font_size_desktop * 5.7, '%' ), ), ); } else { $html_mobile_typography = array( 'html' => array( 'font-size' => astra_get_font_css_value( (int) $body_font_size_desktop * 6.25, '%' ), ), ); } /* Parse CSS from array()*/ $parse_css .= astra_parse_css( $html_mobile_typography, '', astra_get_mobile_breakpoint() ); /* Site width Responsive */ $site_width = array( '.ast-container' => array( 'max-width' => astra_get_css_value( $site_content_width + 40, 'px' ), ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( $site_width, astra_get_tablet_breakpoint( '', 1 ) ); /* Narrow width container layout dynamic css */ $parse_css .= astra_narrow_container_width( astra_get_content_layout(), $narrow_container_max_width ); // Page Meta. $parse_css .= astra_narrow_container_width( astra_get_content_layout(), $narrow_container_max_width ); if ( Astra_Builder_Helper::apply_flex_based_css() ) { $max_site_container_css = array( '.site-content .ast-container' => array( 'display' => 'flex', ), ); $parse_css .= astra_parse_css( $max_site_container_css, astra_get_tablet_breakpoint( '', 1 ) ); $min_site_container_css = array( '.site-content .ast-container' => array( 'flex-direction' => 'column', ), ); $parse_css .= astra_parse_css( $min_site_container_css, '', astra_get_tablet_breakpoint() ); } /** * Astra Fonts */ if ( apply_filters( 'astra_enable_default_fonts', true ) ) { $astra_fonts = '@font-face {'; $astra_fonts .= 'font-family: "Astra";'; $astra_fonts .= 'src: url(' . ASTRA_THEME_URI . 'assets/fonts/astra.woff) format("woff"),'; $astra_fonts .= 'url(' . ASTRA_THEME_URI . 'assets/fonts/astra.ttf) format("truetype"),'; $astra_fonts .= 'url(' . ASTRA_THEME_URI . 'assets/fonts/astra.svg#astra) format("svg");'; $astra_fonts .= 'font-weight: normal;'; $astra_fonts .= 'font-style: normal;'; $astra_fonts .= 'font-display: ' . astra_get_fonts_display_property() . ';'; $astra_fonts .= '}'; $parse_css .= $astra_fonts; } if ( false === Astra_Builder_Helper::$is_header_footer_builder_active ) { /** * Hide the default naviagtion markup for responsive devices. * Once class .ast-header-break-point is added to the body below CSS will be override by the * .ast-header-break-point class */ $astra_navigation = '@media (max-width:' . $header_break_point . 'px) {'; $astra_navigation .= '.main-header-bar .main-header-bar-navigation{'; $astra_navigation .= 'display:none;'; $astra_navigation .= '}'; $astra_navigation .= '}'; $parse_css .= $astra_navigation; } /* Blog */ if ( 'custom' === $blog_width ) : /* Site width Responsive */ $blog_css = array( '.blog .site-content > .ast-container, .archive .site-content > .ast-container, .search .site-content > .ast-container' => array( 'max-width' => astra_get_css_value( $blog_max_width, 'px' ), ), ); $parse_css .= astra_parse_css( $blog_css, astra_get_tablet_breakpoint( '', 1 ) ); endif; /* Single Blog */ if ( 'custom' === $single_post_max ) : /* Site width Responsive */ $single_blog_css = array( '.single-post .site-content > .ast-container' => array( 'max-width' => astra_get_css_value( $single_post_max_width, 'px' ), ), ); $parse_css .= astra_parse_css( $single_blog_css, astra_get_tablet_breakpoint( '', 1 ) ); endif; /* Single Page */ if ( 'custom' === $single_page_max ) : /* Site width Responsive */ $single_page_css = array( ' .page .site-content > .ast-container' => array( 'max-width' => astra_get_css_value( $single_page_max_width, 'px' ), ), ); $parse_css .= astra_parse_css( $single_page_css, astra_get_tablet_breakpoint( '', 1 ) ); endif; if ( self::astra_headings_clear_compatibility() && is_singular() ) { /** * Fix with backward compatibility for single blogs heading text wrap with image issue. */ $parse_css .= astra_parse_css( array( '.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6' => array( 'clear' => 'none', ), ) ); } /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $blog_addon_condition = defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'blog-pro' ); /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( is_search() || is_archive() || is_home() ) { if ( ! ( $blog_addon_condition ) ) { // If a old pro user has used blog-layout-1 to 3 and disabled astra addon then moved layout to 'blog-layout-4'. if ( 'blog-layout-1' == $blog_layout || 'blog-layout-2' === $blog_layout || 'blog-layout-3' === $blog_layout ) { $blog_layout = 'blog-layout-4'; } } $bl_selector = '.ast-' . esc_attr( $blog_layout ) . '-grid'; $blog_grid = astra_get_option( 'blog-grid' ); $blog_layout_css = array(); if ( 'blog-layout-4' === $blog_layout || 'blog-layout-6' === $blog_layout ) { $blog_layout_css = array( $bl_selector . ' .ast-article-post' => array( 'border' => '0', ), $bl_selector . ' .ast-article-inner .wp-post-image' => array( 'width' => '100%', ), ); if ( $blog_addon_condition && 1 === $blog_grid ) { $blog_layout_css['.ast-separate-container .ast-article-post'] = array( 'padding' => '1.5em', ); } /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( ! ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'blog-pro' ) ) || ( $blog_addon_condition && 1 !== $blog_grid ) ) { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $blog_layout_css['.ast-article-inner'] = array( 'padding' => '1.5em', ); } $blog_layout_css[ $bl_selector . ' .ast-row' ] = array( 'display' => 'flex', 'flex-wrap' => 'wrap', 'flex-flow' => 'row wrap', 'align-items' => 'stretch', ); } /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( ! ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'blog-pro' ) ) ) { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( 'blog-layout-4' === $blog_layout || 'blog-layout-6' === $blog_layout ) { $blog_layout_css[ $bl_selector . ' .ast-article-post' ] = array( 'width' => '33.33%', 'margin-bottom' => '2em', 'border-bottom' => '0', 'background-color' => 'transparent', ); $blog_layout_css[ '.ast-separate-container ' . $bl_selector . ' .ast-article-post' ] = array( 'padding' => '0 1em 0', ); $blog_layout_css['.ast-separate-container.ast-desktop .ast-blog-layout-4-grid .ast-row'] = array( 'margin-left' => '-1em', 'margin-right' => '-1em', ); } $blog_layout_css[ $bl_selector . ' .ast-article-inner' ] = array( 'box-shadow' => '0px 6px 15px -2px rgba(16, 24, 40, 0.05)', ); $blog_layout_css[ '.ast-separate-container ' . $bl_selector . ' .ast-article-inner, .ast-plain-container ' . $bl_selector . ' .ast-article-inner' ] = array( 'height' => '100%', ); } $parse_css .= astra_parse_css( $blog_layout_css ); if ( 'blog-layout-4' === $blog_layout ) { $blog_layout_grid_css = array( '.ast-row .blog-layout-4 .post-content, .blog-layout-4 .post-thumb' => array( 'padding-' . $rtl_left . '' => '0', 'padding-' . $rtl_right . '' => '0', ), '.ast-article-post.remove-featured-img-padding .blog-layout-4 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content' => array( 'margin-top' => '-1.5em', ), '.ast-article-post.remove-featured-img-padding .blog-layout-4 .post-content .ast-blog-featured-section .post-thumb-img-content' => array( 'margin-' . $rtl_left . '' => '-1.5em', 'margin-' . $rtl_right . '' => '-1.5em', ), ); $parse_css .= astra_parse_css( $blog_layout_grid_css ); } if ( 'blog-layout-5' === $blog_layout ) { $blog_layout_list_css = array( $bl_selector . ' .ast-row' => array( 'margin-' . $rtl_left . '' => '0', 'margin-' . $rtl_right . '' => '0', ), $bl_selector . ' .ast-article-inner' => array( 'width' => '100%', ), $bl_selector . ' .blog-layout-5' => array( 'display' => 'flex', 'flex-wrap' => 'wrap', 'vertical-align' => 'middle', ), $bl_selector . ' .ast-blog-featured-section' => array( 'width' => '25%', 'margin-bottom' => '0', ), $bl_selector . ' .post-thumb-img-content' => array( 'height' => '100%', ), $bl_selector . ' .ast-blog-featured-section img' => array( 'width' => '100%', 'height' => '100%', 'object-fit' => 'cover', ), $bl_selector . ' .post-content' => array( 'width' => '75%', 'padding-' . $rtl_left . '' => '1.5em', ), $bl_selector . ' .ast-no-thumb .ast-blog-featured-section' => array( 'width' => 'unset', ), $bl_selector . ' .ast-no-thumb .post-content' => array( 'width' => '100%', ), '.ast-separate-container ' . $bl_selector . ' .post-content' => array( 'padding-' . $rtl_right . '' => '1.5em', 'padding-top' => '1.5em', 'padding-bottom' => '1.5em', ), ); /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( ! ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'blog-pro' ) ) ) { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $blog_layout_list_css[ $bl_selector . ' .ast-article-post' ] = array( 'margin-bottom' => '2em', 'padding' => '0', 'border-bottom' => '0', ); } else { $blog_layout_list_css[ $bl_selector . ' .ast-article-post' ] = array( 'padding' => '0', 'border-bottom' => '0', ); } $parse_css .= astra_parse_css( $blog_layout_list_css ); $blog_layout_list_css_responsive = array(); $blog_layout_list_css_responsive[ '.ast-separate-container ' . $bl_selector . ' .post-content' ] = array( 'padding' => '0', ); $blog_layout_list_css_responsive[ $bl_selector . ' .ast-blog-featured-section' ] = array( 'margin-bottom' => '1.5em', ); $parse_css .= astra_parse_css( $blog_layout_list_css_responsive, '', astra_get_tablet_breakpoint() ); } if ( 'blog-layout-6' === $blog_layout ) { $blog_layout_cover_css = array( $bl_selector . ' .blog-layout-6 .post-content' => array( 'position' => 'static', 'padding-left' => '0', 'padding-right' => '0', ), $bl_selector . ' .blog-layout-6 .ast-blog-featured-section' => array( 'position' => 'absolute', 'top' => '0', 'left' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'width' => '100%', 'height' => '100%', ), $bl_selector . ' .blog-layout-6 .post-thumb-img-content,' . $bl_selector . ' .blog-layout-6 .post-thumb-img-content img' => array( 'width' => '100%', 'height' => '100%', ), $bl_selector . ' .blog-layout-6 .post-thumb-img-content img' => array( 'object-fit' => 'cover', 'border-radius' => '4px', ), $bl_selector . ' .blog-layout-6 .ast-blog-single-element:not(.ast-blog-featured-section)' => array( 'position' => 'relative', 'z-index' => '1', ), $bl_selector . ' .blog-layout-6 .ast-blog-single-element, ' . $bl_selector . ' .blog-layout-6 .ast-blog-single-element *, ' . $bl_selector . ' .blog-layout-6 .ast-blog-single-element *:hover' => array( 'color' => '#fff', ), $bl_selector . ' .badge .ast-button,' . $bl_selector . ' .badge .ast-button:hover' => array( 'border' => '1px solid #fff', 'background-color' => 'transparent', ), $bl_selector . ' .blog-layout-6 .ast-blog-featured-section:before' => array( 'position' => 'absolute', 'top' => '0', 'left' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'width' => '100%', 'height' => '100%', 'background-color' => 'rgba(30, 41, 59, 0.65)', 'border-radius' => '4px', ), ); if ( ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'blog-pro' ) ) && ( 1 === astra_get_option( 'blog-grid' ) ) ) { $blog_layout_cover_css[ $bl_selector . ' .ast-archive-post' ] = array( 'position' => 'relative', ); } else { $blog_layout_cover_css[ $bl_selector . ' .blog-layout-6' ] = array( 'position' => 'relative', ); } if ( 1 === $blog_grid ) { $blog_layout_cover_css['.ast-plain-container .ast-article-post'] = array( 'padding' => '1.5em', ); } if ( 1 !== $blog_grid ) { $blog_layout_cover_css['.ast-plain-container .ast-article-inner'] = array( 'padding' => '1.5em', ); } $parse_css .= astra_parse_css( $blog_layout_cover_css ); } $blog_layout_css_responsive = array(); if ( 'blog-layout-4' === $blog_layout || 'blog-layout-6' === $blog_layout ) { $blog_layout_css_responsive = array( $bl_selector . ' .ast-article-post' => array( 'width' => '100%', ), ); } if ( 'blog-layout-5' === $blog_layout ) { $blog_layout_css_responsive[ $bl_selector . ' .ast-blog-featured-section,' . $bl_selector . ' .post-content' ] = array( 'width' => '100%', ); } $parse_css .= astra_parse_css( $blog_layout_css_responsive, '', astra_get_tablet_breakpoint() ); $parse_css .= Astra_Enqueue_Scripts::trim_css( self::blog_layout_static_css() ); // Blog Archive Featured Image. if ( $aspect_ratio && $with_aspect_img_width ) { $blog_featured_image = array( '.ast-article-post .post-thumb-img-content img' => array( 'aspect-ratio' => $aspect_ratio, 'width' => $with_aspect_img_width, ), ); $parse_css .= astra_parse_css( $blog_featured_image ); } // Added cover styling for Custom image ratio. if ( 'custom' === $aspect_ratio_type ) { $cover_style_image = array( '.ast-article-post .post-thumb-img-content img' => array( 'object-fit' => 'cover', ), ); $parse_css .= astra_parse_css( $cover_style_image ); } $author_avatar = astra_get_option( 'blog-meta-author-avatar' ); if ( $author_avatar ) { $blog_author_css = array( '.ast-author-image' => array( 'aspect-ratio' => '1/1', 'border-radius' => '100%', 'margin-' . $rtl_right . '' => '.5em', ), ); $parse_css .= astra_parse_css( $blog_author_css ); } $blog_archive_hover_effect = astra_get_option( 'blog-hover-effect' ); if ( 'none' !== $blog_archive_hover_effect ) { $blog_archive_hover_effect_css = array( '.ast-article-post .post-thumb-img-content' => array( 'overflow' => 'hidden', ), ); if ( 'zoom-in' === $blog_archive_hover_effect ) { $blog_archive_hover_effect_css['.ast-article-post .post-thumb-img-content img'] = array( 'transform' => 'scale(1)', 'transition' => 'transform .5s ease', ); $blog_archive_hover_effect_css['.ast-article-post:hover .post-thumb-img-content img'] = array( 'transform' => 'scale(1.1)', ); } if ( 'zoom-out' === $blog_archive_hover_effect ) { $blog_archive_hover_effect_css['.ast-article-post .post-thumb-img-content img'] = array( 'transform' => 'scale(1.1)', 'transition' => 'transform .5s ease', ); $blog_archive_hover_effect_css['.ast-article-post:hover .post-thumb-img-content img'] = array( 'transform' => 'scale(1)', ); } $parse_css .= astra_parse_css( $blog_archive_hover_effect_css ); } // Post elements. $categories_styles = astra_get_option( 'blog-category-style' ); $tag_styles = astra_get_option( 'blog-tag-style' ); $categories_meta_styles = astra_get_option( 'blog-meta-category-style' ); $tag_meta_styles = astra_get_option( 'blog-meta-tag-style' ); if ( $categories_styles || $tag_styles || $categories_meta_styles || $tag_meta_styles ) { $post_tax_style = ' .cat-links.badge a, .tags-links.badge a { padding: 4px 8px; border-radius: 3px; font-weight: 400; } '; $post_tax_style .= ' .cat-links.underline a, .tags-links.underline a{ text-decoration: underline; } '; $parse_css .= Astra_Enqueue_Scripts::trim_css( $post_tax_style ); } } // Primary Submenu Border Width & Color. $submenu_border_style = array( '.ast-desktop .main-header-menu.submenu-with-border .sub-menu, .ast-desktop .main-header-menu.submenu-with-border .astra-full-megamenu-wrapper' => array( 'border-color' => esc_attr( $primary_submenu_b_color ), ), '.ast-desktop .main-header-menu.submenu-with-border .sub-menu' => array( 'border-top-width' => ! empty( $submenu_border['top'] ) ? astra_get_css_value( $submenu_border['top'], 'px' ) : '', 'border-right-width' => ! empty( $submenu_border['right'] ) ? astra_get_css_value( $submenu_border['right'], 'px' ) : '', 'border-left-width' => ! empty( $submenu_border['left'] ) ? astra_get_css_value( $submenu_border['left'], 'px' ) : '', 'border-bottom-width' => ! empty( $submenu_border['bottom'] ) ? astra_get_css_value( $submenu_border['bottom'], 'px' ) : '', 'border-style' => 'solid', ), '.ast-desktop .main-header-menu.submenu-with-border .sub-menu .sub-menu' => array( 'top' => ( isset( $submenu_border['top'] ) && '' != $submenu_border['top'] ) ? astra_get_css_value( '-' . $submenu_border['top'], 'px' ) : '', ), '.ast-desktop .main-header-menu.submenu-with-border .sub-menu .menu-link, .ast-desktop .main-header-menu.submenu-with-border .children .menu-link' => array( 'border-bottom-width' => ( $primary_submenu_item_border ) ? '1px' : '0px', 'border-style' => 'solid', 'border-color' => esc_attr( $primary_submenu_item_b_color ), ), ); // Submenu items goes outside? $submenu_border_for_left_align_menu = array( '.main-header-menu .sub-menu .menu-item.ast-left-align-sub-menu:hover > .sub-menu, .main-header-menu .sub-menu .menu-item.ast-left-align-sub-menu.focus > .sub-menu' => array( 'margin-left' => ( ( isset( $submenu_border['left'] ) && '' != $submenu_border['left'] ) || isset( $submenu_border['right'] ) && '' != $submenu_border['right'] ) ? astra_get_css_value( '-' . ( (int) $submenu_border['left'] + (int) $submenu_border['right'] ), 'px' ) : '', ), ); if ( false === Astra_Builder_Helper::$is_header_footer_builder_active ) { $parse_css .= astra_parse_css( $submenu_border_style ); } // Submenu items goes outside? $parse_css .= astra_parse_css( $submenu_border_for_left_align_menu, astra_get_tablet_breakpoint( '', 1 ) ); /* Small Footer CSS */ if ( false === Astra_Builder_Helper::$is_header_footer_builder_active && 'disabled' != $small_footer_layout ) : $sml_footer_css = array( '.ast-small-footer' => array( 'border-top-style' => 'solid', 'border-top-width' => astra_get_css_value( $small_footer_divider, 'px' ), 'border-top-color' => esc_attr( $small_footer_divider_color ), ), ); $parse_css .= astra_parse_css( $sml_footer_css ); if ( 'footer-sml-layout-2' != $small_footer_layout ) { $sml_footer_css = array( '.ast-small-footer-wrap' => array( 'text-align' => 'center', ), ); $parse_css .= astra_parse_css( $sml_footer_css ); } endif; /* Transparent Header - Comonent header specific CSS compatibility */ if ( true === Astra_Builder_Helper::$is_header_footer_builder_active && Astra_Ext_Transparent_Header_Markup::is_transparent_header() ) { $html_text_color = astra_get_option( 'transparent-header-html-text-color' ); $html_link_color = astra_get_option( 'transparent-header-html-link-color' ); $html_link_h_color = astra_get_option( 'transparent-header-html-link-h-color' ); $search_icon_color = astra_get_option( 'transparent-header-search-icon-color' ); $search_text_color = astra_get_option( 'transparent-header-search-box-placeholder-color' ); $search_box_bg_color = astra_get_option( 'transparent-header-search-box-background-color' ); $social_color = astra_get_option( 'transparent-header-social-icons-color' ); $social_hover_color = astra_get_option( 'transparent-header-social-icons-h-color' ); $social_bg_color = astra_get_option( 'transparent-header-social-icons-bg-color' ); $social_bg_hover_color = astra_get_option( 'transparent-header-social-icons-bg-h-color' ); $button_color = astra_get_option( 'transparent-header-button-text-color' ); $button_h_color = astra_get_option( 'transparent-header-button-text-h-color' ); $button_bg_color = astra_get_option( 'transparent-header-button-bg-color' ); $button_bg_h_color = astra_get_option( 'transparent-header-button-bg-h-color' ); $button_border_color = astra_get_option( 'transparent-header-button-border-color' ); $button_h_border_color = astra_get_option( 'transparent-header-button-border-h-color' ); $divider_color = astra_get_option( 'transparent-header-divider-color' ); $account_icon_color = astra_get_option( 'transparent-account-icon-color' ); $account_loggedout_text_color = astra_get_option( 'transparent-account-type-text-color' ); // Menu colors. $account_menu_color = astra_get_option( 'transparent-account-menu-color' ); $account_menu_bg_color = astra_get_option( 'transparent-account-menu-bg-obj' ); $account_menu_color_hover = astra_get_option( 'transparent-account-menu-h-color' ); $account_menu_bg_color_hover = astra_get_option( 'transparent-account-menu-h-bg-color' ); $account_menu_color_active = astra_get_option( 'transparent-account-menu-a-color' ); $account_menu_bg_color_active = astra_get_option( 'transparent-account-menu-a-bg-color' ); $transparent_header_builder_desktop_css = array( '.ast-theme-transparent-header [CLASS*="ast-header-html-"] .ast-builder-html-element' => array( 'color' => esc_attr( $html_text_color ), ), '.ast-theme-transparent-header [CLASS*="ast-header-html-"] .ast-builder-html-element a' => array( 'color' => esc_attr( $html_link_color ), ), '.ast-theme-transparent-header [CLASS*="ast-header-html-"] .ast-builder-html-element a:hover' => array( 'color' => esc_attr( $html_link_h_color ), ), '.ast-theme-transparent-header .ast-header-search .astra-search-icon, .ast-theme-transparent-header .ast-header-search .search-field::placeholder, .ast-theme-transparent-header .ast-header-search .ast-icon' => array( 'color' => esc_attr( $search_icon_color ), ), '.ast-theme-transparent-header .ast-header-search .ast-search-menu-icon .search-field, .ast-theme-transparent-header .ast-header-search .ast-search-menu-icon .search-field::placeholder' => array( 'color' => esc_attr( $search_text_color ), ), '.ast-theme-transparent-header .ast-header-search .ast-search-menu-icon .search-field, .ast-theme-transparent-header .ast-header-search .ast-search-menu-icon .search-form, .ast-theme-transparent-header .ast-header-search .ast-search-menu-icon .search-submit' => array( 'background-color' => esc_attr( $search_box_bg_color ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element' => array( 'background' => esc_attr( $social_bg_color['desktop'] ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element svg' => array( 'fill' => esc_attr( $social_color['desktop'] ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element:hover' => array( 'background' => esc_attr( $social_bg_hover_color['desktop'] ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element:hover svg' => array( 'fill' => esc_attr( $social_hover_color['desktop'] ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element .social-item-label' => array( 'color' => esc_attr( $social_color['desktop'] ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element:hover .social-item-label' => array( 'color' => esc_attr( $social_hover_color['desktop'] ), ), '.ast-theme-transparent-header [CLASS*="ast-header-button-"] .ast-custom-button' => array( 'color' => esc_attr( $button_color ), 'background' => esc_attr( $button_bg_color ), 'border-color' => esc_attr( $button_border_color ), ), '.ast-theme-transparent-header [CLASS*="ast-header-button-"] .ast-custom-button:hover' => array( 'color' => esc_attr( $button_h_color ), 'background' => esc_attr( $button_bg_h_color ), 'border-color' => esc_attr( $button_h_border_color ), ), '.ast-theme-transparent-header .ast-header-divider-element .ast-divider-wrapper' => array( 'border-color' => esc_attr( $divider_color ), ), '.ast-theme-transparent-header .ast-header-account-wrap .ast-header-account-type-icon .ahfb-svg-iconset svg path:not(.ast-hf-account-unfill), .ast-theme-transparent-header .ast-header-account-wrap .ast-header-account-type-icon .ahfb-svg-iconset svg circle' => array( 'fill' => esc_attr( $account_icon_color ), ), '.ast-theme-transparent-header .ast-header-account-wrap .ast-account-nav-menu .menu-item .menu-link' => array( 'color' => esc_attr( $account_menu_color ), ), '.ast-theme-transparent-header .ast-header-account-wrap .ast-account-nav-menu .menu-item:hover > .menu-link' => array( 'color' => $account_menu_color_hover, 'background' => $account_menu_bg_color_hover, ), '.ast-theme-transparent-header .ast-header-account-wrap .ast-account-nav-menu .menu-item.current-menu-item > .menu-link' => array( 'color' => $account_menu_color_active, 'background' => $account_menu_bg_color_active, ), '.ast-theme-transparent-header .ast-header-account-wrap .account-main-navigation ul' => array( 'background' => $account_menu_bg_color, ), '.ast-theme-transparent-header .ast-header-account-wrap .ast-header-account-text' => array( 'color' => $account_loggedout_text_color, ), ); $widget_title_color = astra_get_option( 'transparent-header-widget-title-color' ); $widget_content_color = astra_get_option( 'transparent-header-widget-content-color' ); $widget_link_color = astra_get_option( 'transparent-header-widget-link-color' ); $widget_link_hover_color = astra_get_option( 'transparent-header-widget-link-h-color' ); $transparent_header_builder_desktop_css['.ast-theme-transparent-header .widget-area.header-widget-area .widget-title'] = array( 'color' => esc_attr( $widget_title_color ), ); $transparent_header_builder_desktop_css['.ast-theme-transparent-header .widget-area.header-widget-area .header-widget-area-inner'] = array( 'color' => esc_attr( $widget_content_color ), ); $transparent_header_builder_desktop_css['.ast-theme-transparent-header .widget-area.header-widget-area .header-widget-area-inner a'] = array( 'color' => esc_attr( $widget_link_color ), ); $transparent_header_builder_desktop_css['.ast-theme-transparent-header .widget-area.header-widget-area .header-widget-area-inner a:hover'] = array( 'color' => esc_attr( $widget_link_hover_color ), ); if ( Astra_Builder_Helper::apply_flex_based_css() ) { $transparent_header_widget_selector = '.ast-theme-transparent-header .widget-area.header-widget-area.header-widget-area-inner'; } else { $transparent_header_widget_selector = '.ast-theme-transparent-header .widget-area.header-widget-area. header-widget-area-inner'; } $transparent_header_builder_desktop_css[ $transparent_header_widget_selector ] = array( 'color' => esc_attr( $widget_content_color ), ); $transparent_header_builder_desktop_css[ $transparent_header_widget_selector . ' a' ] = array( 'color' => esc_attr( $widget_link_color ), ); $transparent_header_builder_desktop_css[ $transparent_header_widget_selector . ' a:hover' ] = array( 'color' => esc_attr( $widget_link_hover_color ), ); if ( Astra_Builder_Helper::is_component_loaded( 'mobile-trigger', 'header', 'mobile' ) ) { $transparent_toggle_selector = '.ast-theme-transparent-header [data-section="section-header-mobile-trigger"]'; $trigger_bg = astra_get_option( 'transparent-header-toggle-btn-bg-color' ); $trigger_border_color = astra_get_option( 'transparent-header-toggle-border-color', $trigger_bg ); $style = astra_get_option( 'mobile-header-toggle-btn-style' ); $default = '#ffffff'; if ( 'fill' !== $style ) { $default = $theme_color; } $icon_color = astra_get_option( 'transparent-header-toggle-btn-color' ); /** * Off-Canvas CSS. */ $transparent_header_builder_desktop_css[ $transparent_toggle_selector . ' .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg' ] = array( 'fill' => $icon_color, ); $transparent_header_builder_desktop_css[ $transparent_toggle_selector . ' .ast-button-wrap .mobile-menu-wrap .mobile-menu' ] = array( // Color. 'color' => $icon_color, ); if ( 'fill' === $style ) { $transparent_header_builder_desktop_css[ $transparent_toggle_selector . ' .ast-button-wrap .ast-mobile-menu-trigger-fill' ] = array( 'background' => esc_attr( $trigger_bg ), ); $transparent_header_builder_desktop_css[ $transparent_toggle_selector . ' .ast-button-wrap .ast-mobile-menu-trigger-fill, ' . $transparent_toggle_selector . ' .ast-button-wrap .ast-mobile-menu-trigger-minimal' ] = array( // Color & Border. 'color' => esc_attr( $icon_color ), 'border' => 'none', ); } elseif ( 'outline' === $style ) { $transparent_header_builder_desktop_css[ $transparent_toggle_selector . ' .ast-button-wrap .ast-mobile-menu-trigger-outline' ] = array( // Background. 'background' => 'transparent', 'color' => esc_attr( $icon_color ), 'border-color' => $trigger_border_color, ); } else { $transparent_header_builder_desktop_css[ $transparent_toggle_selector . ' .ast-button-wrap .ast-mobile-menu-trigger-minimal' ] = array( 'background' => 'transparent', ); } } $parse_css .= astra_parse_css( $transparent_header_builder_desktop_css ); /** * Max-width: Tablet Breakpoint CSS. */ $transparent_header_builder_tablet_css = array( '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element' => array( 'background' => esc_attr( $social_bg_color['tablet'] ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element svg' => array( 'fill' => esc_attr( $social_color['tablet'] ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element:hover' => array( 'background' => esc_attr( $social_bg_hover_color['tablet'] ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element:hover svg' => array( 'fill' => esc_attr( $social_hover_color['tablet'] ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element .social-item-label' => array( 'color' => esc_attr( $social_color['tablet'] ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element:hover .social-item-label' => array( 'color' => esc_attr( $social_hover_color['tablet'] ), ), ); $parse_css .= astra_parse_css( $transparent_header_builder_tablet_css, '', astra_get_tablet_breakpoint() ); /** * Max-width: Mobile Breakpoint CSS. */ $transparent_header_builder_mobile_css = array( '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element' => array( 'background' => esc_attr( $social_bg_color['mobile'] ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element svg' => array( 'fill' => esc_attr( $social_color['mobile'] ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element:hover' => array( 'background' => esc_attr( $social_bg_hover_color['mobile'] ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element:hover svg' => array( 'fill' => esc_attr( $social_hover_color['mobile'] ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element .social-item-label' => array( 'color' => esc_attr( $social_color['mobile'] ), ), '.ast-theme-transparent-header .ast-header-social-wrap .ast-social-color-type-custom .ast-builder-social-element:hover .social-item-label' => array( 'color' => esc_attr( $social_hover_color['mobile'] ), ), ); $parse_css .= astra_parse_css( $transparent_header_builder_mobile_css, '', astra_get_mobile_breakpoint() ); } if ( self::astra_list_block_vertical_spacing() ) { $list_spacing_css = array( '.entry-content li > p' => array( 'margin-bottom' => 0, ), ); $parse_css .= astra_parse_css( $list_spacing_css ); } if ( self::astra_fullwidth_sidebar_support() ) { if ( 'page-builder' == $ast_container_layout ) { add_filter( 'astra_page_layout', function() { // phpcs:ignore PHPCompatibility.FunctionDeclarations.NewClosure.Found return 'no-sidebar'; } ); } } if ( astra_get_option( 'enable-comments-area', true ) ) { $parse_css .= Astra_Extended_Base_Dynamic_CSS::prepare_inner_section_advanced_css( 'ast-sub-section-comments', '.site .comments-area' ); $comments_radius = astra_get_option( 'ast-sub-section-comments-border-radius', array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ) ); $list_spacing_css = array( '.comments-area .comments-title, .comments-area .comment-respond' => array( 'border-top-left-radius' => ! empty( astra_get_css_value( $comments_radius['top'] ) ) ? astra_get_css_value( $comments_radius['top'], 'px' ) : '', 'border-bottom-right-radius' => ! empty( astra_get_css_value( $comments_radius['bottom'] ) ) ? astra_get_css_value( $comments_radius['bottom'], 'px' ) : '', 'border-bottom-left-radius' => ! empty( astra_get_css_value( $comments_radius['left'] ) ) ? astra_get_css_value( $comments_radius['left'], 'px' ) : '', 'border-top-right-radius' => ! empty( astra_get_css_value( $comments_radius['right'] ) ) ? astra_get_css_value( $comments_radius['right'], 'px' ) : '', ), ); $parse_css .= astra_parse_css( $list_spacing_css ); } $parse_css .= $dynamic_css; $custom_css = astra_get_option( 'custom-css' ); if ( '' != $custom_css ) { $parse_css .= $custom_css; } // trim white space for faster page loading. $parse_css = Astra_Enqueue_Scripts::trim_css( $parse_css ); return apply_filters( 'astra_theme_dynamic_css', $parse_css ); } /** * Astra update default font size and font weight. * * @since 4.6.5 * @return boolean */ public static function elementor_heading_margin_style_comp() { $astra_settings = astra_get_options(); return apply_filters( 'elementor_heading_margin', isset( $astra_settings['elementor-headings-style'] ) ? false : true ); } /** * Heading font size fix in footer builder compatibility. * * @since 4.7.0 * @return boolean */ public static function astra_heading_inside_widget_font_size_comp() { $astra_settings = astra_get_options(); return apply_filters( 'astra_heading_inside_widget_font_size', isset( $astra_settings['heading-widget-font-size'] ) ? false : true ); } /** * Added Elementor post loop block padding support . * * @since 4.6.6 * @return boolean */ public static function elementor_container_padding_style_comp() { $astra_settings = astra_get_options(); return apply_filters( 'elementor_container_padding', isset( $astra_settings['elementor-container-padding-style'] ) ? false : true ); } /** * Added Elementor button styling support. * * @since 4.6.12 * @return boolean */ public static function elementor_btn_styling_comp() { $astra_settings = astra_get_options(); return apply_filters( 'astra_elementor_button_body_selector_compatibility', isset( $astra_settings['elementor-btn-styling'] ) && $astra_settings['elementor-btn-styling'] ? true : false ); } /** * PX to em conversion failed with default value set. * * @since 4.8.4 * @return boolean */ public static function heading_font_size_comp() { $astra_settings = astra_get_options(); return apply_filters( 'heading_font_size_compatibility', isset( $astra_settings['astra-heading-font-size-compatibility'] ) ? false : true ); } /** * Return post meta CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return mixed Return the CSS. */ public static function return_meta_output( $dynamic_css, $dynamic_css_filtered = '' ) { /** * - Page Layout * * - Sidebar Positions CSS */ $secondary_width = absint( astra_get_option( 'site-sidebar-width' ) ); $primary_width = absint( 100 - $secondary_width ); $meta_style = ''; // Header Separator. $header_separator = astra_get_option( 'header-main-sep' ); $header_separator_color = astra_get_option( 'header-main-sep-color' ); $meta_style = array( '.ast-header-break-point .main-header-bar' => array( 'border-bottom-width' => astra_get_css_value( $header_separator, 'px' ), 'border-bottom-color' => esc_attr( $header_separator_color ), ), ); $parse_css = astra_parse_css( $meta_style ); $meta_style = array( '.main-header-bar' => array( 'border-bottom-width' => astra_get_css_value( $header_separator, 'px' ), 'border-bottom-color' => esc_attr( $header_separator_color ), ), ); $parse_css .= astra_parse_css( $meta_style, astra_get_tablet_breakpoint( '', 1 ) ); if ( 'no-sidebar' !== astra_page_layout() ) : $meta_style = array( '#primary' => array( 'width' => astra_get_css_value( $primary_width, '%' ), ), '#secondary' => array( 'width' => astra_get_css_value( strval( $secondary_width ), '%' ), ), ); $parse_css .= astra_parse_css( $meta_style, astra_get_tablet_breakpoint( '', 1 ) ); endif; if ( false === self::astra_submenu_below_header_fix() ) : // If submenu below header fix is not to be loaded then add removed flex properties from class `ast-flex`. // Also restore the padding to class `main-header-bar`. $submenu_below_header = array( '.ast-flex' => array( '-webkit-align-content' => 'center', '-ms-flex-line-pack' => 'center', 'align-content' => 'center', '-webkit-box-align' => 'center', '-webkit-align-items' => 'center', '-moz-box-align' => 'center', '-ms-flex-align' => 'center', 'align-items' => 'center', ), '.main-header-bar' => array( 'padding' => '1em 0', ), '.ast-site-identity' => array( 'padding' => '0', ), // CSS to open submenu just below menu. '.header-main-layout-1 .ast-flex.main-header-container, .header-main-layout-3 .ast-flex.main-header-container' => array( '-webkit-align-content' => 'center', '-ms-flex-line-pack' => 'center', 'align-content' => 'center', '-webkit-box-align' => 'center', '-webkit-align-items' => 'center', '-moz-box-align' => 'center', '-ms-flex-align' => 'center', 'align-items' => 'center', ), ); $parse_css .= astra_parse_css( $submenu_below_header ); else : // `.menu-item` required display:flex, although weight of this css increases because of which custom CSS added from child themes to be not working. // Hence this is added to dynamic CSS which will be applied only if this filter `astra_submenu_below_header_fix` is enabled. // @see https://github.com/brainstormforce/astra/pull/828 $submenu_below_header = array( '.main-header-menu .menu-item, #astra-footer-menu .menu-item, .main-header-bar .ast-masthead-custom-menu-items' => array( '-js-display' => 'flex', 'display' => '-webkit-box', 'display' => '-webkit-flex', 'display' => '-moz-box', 'display' => '-ms-flexbox', 'display' => 'flex', '-webkit-box-pack' => 'center', '-webkit-justify-content' => 'center', '-moz-box-pack' => 'center', '-ms-flex-pack' => 'center', 'justify-content' => 'center', '-webkit-box-orient' => 'vertical', '-webkit-box-direction' => 'normal', '-webkit-flex-direction' => 'column', '-moz-box-orient' => 'vertical', '-moz-box-direction' => 'normal', '-ms-flex-direction' => 'column', 'flex-direction' => 'column', ), '.main-header-menu > .menu-item > .menu-link, #astra-footer-menu > .menu-item > .menu-link' => array( 'height' => '100%', '-webkit-box-align' => 'center', '-webkit-align-items' => 'center', '-moz-box-align' => 'center', '-ms-flex-align' => 'center', 'align-items' => 'center', '-js-display' => 'flex', 'display' => '-webkit-box', 'display' => '-webkit-flex', 'display' => '-moz-box', 'display' => '-ms-flexbox', 'display' => 'flex', ), ); if ( false === Astra_Builder_Helper::$is_header_footer_builder_active ) { $submenu_below_header['.ast-primary-menu-disabled .main-header-bar .ast-masthead-custom-menu-items'] = array( 'flex' => 'unset', ); } $parse_css .= astra_parse_css( $submenu_below_header ); endif; if ( false === self::astra_submenu_open_below_header_fix() ) { // If submenu below header fix is not to be loaded then add removed flex properties from class `ast-flex`. // Also restore the padding to class `main-header-bar`. $submenu_below_header = array( // CSS to open submenu just below menu. '.header-main-layout-1 .ast-flex.main-header-container, .header-main-layout-3 .ast-flex.main-header-container' => array( '-webkit-align-content' => 'center', '-ms-flex-line-pack' => 'center', 'align-content' => 'center', '-webkit-box-align' => 'center', '-webkit-align-items' => 'center', '-moz-box-align' => 'center', '-ms-flex-align' => 'center', 'align-items' => 'center', ), ); $parse_css .= astra_parse_css( $submenu_below_header ); } $submenu_toggle = ''; $is_site_rtl = is_rtl(); if ( false === Astra_Icons::is_svg_icons() ) { // Update styles depend on RTL sites. $transform_svg_style = 'translate(0,-50%) rotate(270deg)'; $transform_nested_svg_transform = 'translate(0, -2px) rotateZ(270deg)'; $default_left_rtl_right = 'left'; $default_right_rtl_left = 'right'; if ( $is_site_rtl ) { $transform_svg_style = 'translate(0,-50%) rotate(90deg)'; $transform_nested_svg_transform = 'translate(0, -2px) rotateZ(90deg)'; $default_left_rtl_right = 'right'; $default_right_rtl_left = 'left'; } $submenu_toggle = array( // HFB / Old Header Footer - CSS compatibility when SVGs are disabled. '.main-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link:after' => array( 'position' => 'absolute', $default_right_rtl_left => '1em', 'top' => '50%', 'transform' => $transform_svg_style, ), '.ast-header-break-point .main-header-bar .main-header-bar-navigation .page_item_has_children > .ast-menu-toggle::before, .ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle::before, .ast-mobile-popup-drawer .main-header-bar-navigation .menu-item-has-children>.ast-menu-toggle::before, .ast-header-break-point .ast-mobile-header-wrap .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle::before' => array( 'font-weight' => 'bold', 'content' => '"\e900"', 'font-family' => 'Astra', 'text-decoration' => 'inherit', 'display' => 'inline-block', ), '.ast-header-break-point .main-navigation ul.sub-menu .menu-item .menu-link:before' => array( 'content' => '"\e900"', 'font-family' => 'Astra', 'font-size' => '.65em', 'text-decoration' => 'inherit', 'display' => 'inline-block', 'transform' => $transform_nested_svg_transform, 'margin-' . $default_right_rtl_left => '5px', ), '.widget_search .search-form:after' => array( 'font-family' => 'Astra', 'font-size' => '1.2em', 'font-weight' => 'normal', 'content' => '"\e8b6"', 'position' => 'absolute', 'top' => '50%', $default_right_rtl_left => '15px', 'transform' => 'translate(0, -50%)', ), '.astra-search-icon::before' => array( 'content' => '"\e8b6"', 'font-family' => 'Astra', 'font-style' => 'normal', 'font-weight' => 'normal', 'text-decoration' => 'inherit', 'text-align' => 'center', '-webkit-font-smoothing' => 'antialiased', '-moz-osx-font-smoothing' => 'grayscale', 'z-index' => '3', ), '.main-header-bar .main-header-bar-navigation .page_item_has_children > a:after, .main-header-bar .main-header-bar-navigation .menu-item-has-children > a:after, .menu-item-has-children .ast-header-navigation-arrow:after' => array( 'content' => '"\e900"', 'display' => 'inline-block', 'font-family' => 'Astra', 'font-size' => '9px', 'font-size' => '.6rem', 'font-weight' => 'bold', 'text-rendering' => 'auto', '-webkit-font-smoothing' => 'antialiased', '-moz-osx-font-smoothing' => 'grayscale', 'margin-' . $default_left_rtl_right => '10px', 'line-height' => 'normal', ), '.menu-item-has-children .sub-menu .ast-header-navigation-arrow:after' => array( 'margin-left' => '0', ), '.ast-mobile-popup-drawer .main-header-bar-navigation .ast-submenu-expanded>.ast-menu-toggle::before' => array( 'transform' => 'rotateX(180deg)', ), '.ast-header-break-point .main-header-bar-navigation .menu-item-has-children > .menu-link:after' => array( 'display' => 'none', ), ); } else { if ( ! Astra_Builder_Helper::$is_header_footer_builder_active ) { // Update styles depend on RTL sites. $transform_svg_style = 'translate(0,-50%) rotate(270deg)'; $transform_nested_svg_transform = 'translate(0, -2px) rotateZ(270deg)'; $default_left_rtl_right = 'left'; $default_right_rtl_left = 'right'; if ( $is_site_rtl ) { $transform_svg_style = 'translate(0,-50%) rotate(900deg)'; $transform_nested_svg_transform = 'translate(0, -2px) rotateZ(90deg)'; $default_left_rtl_right = 'right'; $default_right_rtl_left = 'left'; } $submenu_toggle = array( // Old Header Footer - SVG Support. '.ast-desktop .main-header-menu .sub-menu .menu-item.menu-item-has-children>.menu-link .icon-arrow svg' => array( 'position' => 'absolute', $default_right_rtl_left => '.6em', 'top' => '50%', 'transform' => $transform_svg_style, ), '.ast-header-break-point .main-navigation ul .menu-item .menu-link .icon-arrow:first-of-type svg' => array( $default_left_rtl_right => '.1em', 'top' => '.1em', 'transform' => $transform_nested_svg_transform, ), ); } else { $transform_svg_style = 'translate(0, -2px) rotateZ(270deg)'; $default_left_rtl_right = 'left'; if ( $is_site_rtl ) { $transform_svg_style = 'translate(0, -2px) rotateZ(90deg)'; $default_left_rtl_right = 'right'; } $submenu_toggle = array( // New Header Footer - SVG Support. '.ast-header-break-point .main-navigation ul .menu-item .menu-link .icon-arrow:first-of-type svg' => array( 'top' => '.2em', 'margin-top' => '0px', 'margin-' . $default_left_rtl_right => '0px', 'width' => '.65em', 'transform' => $transform_svg_style, ), '.ast-mobile-popup-content .ast-submenu-expanded > .ast-menu-toggle' => array( 'transform' => 'rotateX(180deg)', 'overflow-y' => 'auto', ), ); } } $parse_css .= astra_parse_css( $submenu_toggle ); $dynamic_css .= $parse_css; $ltr_right = is_rtl() ? esc_attr( 'left' ) : esc_attr( 'right' ); $dynamic_css .= astra_parse_css( array( '.ast-builder-menu .main-navigation > ul > li:last-child a' => array( 'margin-' . $ltr_right => '0', ), ), astra_get_tablet_breakpoint( '', 1 ) ); return $dynamic_css; } /** * Conditionally iclude CSS Selectors with anchors in the typography settings. * * Historically Astra adds Colors/Typography CSS for headings and anchors for headings but this causes irregularities with the expected output. * For eg Link color does not work for the links inside headings. * * If filter `astra_include_achors_in_headings_typography` is set to true or Astra Option `include-headings-in-typography` is set to true, This will return selectors with anchors. Else This will return selectors without anchors. * * @since 1.4.9 * @param String $selectors_with_achors CSS Selectors with anchors. * @param String $selectors_without_achors CSS Selectors withour annchors. * * @return String CSS Selectors based on the condition of filters. */ private static function conditional_headings_css_selectors( $selectors_with_achors, $selectors_without_achors ) { if ( true === self::anchors_in_css_selectors_heading() ) { return $selectors_with_achors; } else { return $selectors_without_achors; } } /** * Check if CSS selectors in Headings should use anchors. * * @since 1.4.9 * @return boolean true if it should include anchors, False if not. */ public static function anchors_in_css_selectors_heading() { if ( true === astra_get_option( 'include-headings-in-typography' ) && true === apply_filters( 'astra_include_achors_in_headings_typography', true ) ) { return true; } return false; } /** * Check backwards compatibility CSS for loading submenu below the header needs to be added. * * @since 1.5.0 * @return boolean true if CSS should be included, False if not. */ public static function astra_submenu_below_header_fix() { if ( false === astra_get_option( 'submenu-below-header', true ) && false === apply_filters( 'astra_submenu_below_header_fix', false ) ) { return false; } return true; } /** * Check backwards compatibility CSS for loading submenu below the header needs to be added. * * @since 2.1.3 * @return boolean true if submenu below header fix is to be loaded, False if not. */ public static function astra_submenu_open_below_header_fix() { if ( false === astra_get_option( 'submenu-open-below-header', true ) && false === apply_filters( 'astra_submenu_open_below_header_fix', false ) ) { return false; } return true; } /** * Check backwards compatibility to not load default CSS for the button styling of Page Builders. * * @since 2.2.0 * @return boolean true if button style CSS should be loaded, False if not. */ public static function page_builder_button_style_css() { $astra_settings = astra_get_options(); return apply_filters( 'astra_page_builder_button_style_css', ( isset( $astra_settings['pb-button-color-compatibility'] ) && false === $astra_settings['pb-button-color-compatibility'] ) ? false : true ); } /** * Elementor Theme Style - Button Text Color compatibility. This should be looked in the future for proper solution. * * Reference: https://github.com/elementor/elementor/issues/10733 * Reference: https://github.com/elementor/elementor/issues/10739 * * @since 2.3.3 * * @return mixed */ public static function is_elementor_kit_button_color_set() { $ele_btn_global_text_color = false; $ele_kit_id = get_option( 'elementor_active_kit', false ); if ( false !== $ele_kit_id ) { $ele_global_btn_data = get_post_meta( $ele_kit_id, '_elementor_page_settings' ); // Elementor Global theme style button text color fetch value from database. $ele_btn_global_text_color = isset( $ele_global_btn_data[0]['button_text_color'] ) ? $ele_global_btn_data[0]['button_text_color'] : $ele_btn_global_text_color; } return $ele_btn_global_text_color; } /** * Check if Elementor - Disable Default Colors or Disable Default Fonts checked or unchecked. * * @since 2.3.3 * * @return mixed String if any of the settings are enabled. False if no settings are enabled. */ public static function elementor_default_color_font_setting() { $ele_default_color_setting = get_option( 'elementor_disable_color_schemes' ); $ele_default_typo_setting = get_option( 'elementor_disable_typography_schemes' ); if ( ( 'yes' === $ele_default_color_setting && 'yes' === $ele_default_typo_setting ) || ( false === self::is_elementor_default_color_font_comp() ) ) { return 'color-typo'; } if ( 'yes' === $ele_default_color_setting ) { return 'color'; } if ( 'yes' === $ele_default_typo_setting ) { return 'typo'; } return false; } /** * For existing users, do not reflect direct change. * * @since 3.6.5 * @return boolean true if WordPress-5.8 compatibility enabled, False if not. */ public static function is_block_editor_support_enabled() { $astra_settings = astra_get_options(); return apply_filters( 'astra_has_block_editor_support', ( isset( $astra_settings['support-block-editor'] ) && false === $astra_settings['support-block-editor'] ) ? false : true ); } /** * For existing users, do not provide Elementor Default Color Typo settings compatibility by default. * * @since 2.3.3 * @return boolean true if elementor default color and typo setting should work with theme, False if not. */ public static function is_elementor_default_color_font_comp() { $astra_settings = astra_get_options(); return apply_filters( 'astra_elementor_default_color_font_comp', ( isset( $astra_settings['ele-default-color-typo-setting-comp'] ) && false === $astra_settings['ele-default-color-typo-setting-comp'] ) ? false : true ); } /** * For existing users, do not provide list vertical spacing. * * @since 4.1.6 * @return boolean true for new users, false for old users. */ public static function astra_list_block_vertical_spacing() { $astra_settings = astra_get_options(); return apply_filters( 'astra_list_block_vertical_spacing', isset( $astra_settings['list-block-vertical-spacing'] ) ? false : true ); } /** * For existing users, do not load the wide/full width image CSS by default. * * @since 2.4.4 * @return boolean false if it is an existing user , true if not. */ public static function gtn_image_group_css_comp() { $astra_settings = astra_get_options(); return apply_filters( 'astra_gutenberg_image_group_style_support', isset( $astra_settings['gtn-full-wide-image-grp-css'] ) ? false : true ); } /** * Do not apply new wide/full Group and Cover block CSS for existing users. * * @since 2.5.0 * @return boolean false if it is an existing user , true if not. */ public static function gtn_group_cover_css_comp() { $astra_settings = astra_get_options(); return apply_filters( 'astra_gtn_group_cover_css_comp', isset( $astra_settings['gtn-full-wide-grp-cover-css'] ) ? false : true ); } /** * Do not apply new Group, Column and Media & Text block CSS for existing users. * * @since 2.6.0 * @return boolean false if it is an existing user , true if not. */ public static function gutenberg_core_blocks_css_comp() { $astra_settings = astra_get_options(); return apply_filters( 'astra_gutenberg_core_blocks_design_compatibility', isset( $astra_settings['guntenberg-core-blocks-comp-css'] ) ? false : true ); } /** * Do not apply new Group, Column and Media & Text block CSS for existing users. * * CSS for adding spacing|padding support to Gutenberg Media-&-Text Block * * @since 2.6.1 * @return boolean false if it is an existing user , true if not. */ public static function gutenberg_media_text_block_css_compat() { $astra_settings = astra_get_options(); return apply_filters( 'astra_gutenberg_media_text_block_spacing_compatibility', isset( $astra_settings['guntenberg-media-text-block-padding-css'] ) ? false : true ); } /** * Gutenberg pattern compatibility changes. * * @since 3.3.0 * @return boolean false if it is an existing user , true if not. */ public static function gutenberg_core_patterns_compat() { $astra_settings = astra_get_options(); return apply_filters( 'astra_gutenberg_patterns_compatibility', isset( $astra_settings['guntenberg-button-pattern-compat-css'] ) ? false : true ); } /** * Font CSS support for widget-title heading fonts & fonts which are not working in editor. * * 1. Adding Font-weight support to widget titles. * 2. Customizer font CSS not supporting in editor. * * @since 3.6.0 * @return boolean false if it is an existing user, true if not. */ public static function support_font_css_to_widget_and_in_editor() { $astra_settings = astra_get_options(); return apply_filters( 'astra_heading_fonts_typo_support', isset( $astra_settings['can-support-widget-and-editor-fonts'] ) ? false : true ); } /** * Whether to remove or not following CSS which restricts logo size on responsive devices. * * @see https://github.com/brainstormforce/astra/commit/d09f63336b73d58c8f8951726edbc90671d7f419 * * @since 3.6.0 * @return boolean false if it is an existing user, true if not. */ public static function remove_logo_max_width_mobile_static_css() { $astra_settings = astra_get_options(); return apply_filters( 'astra_remove_logo_max_width_css', isset( $astra_settings['can-remove-logo-max-width-css'] ) ? false : true ); } /** * Remove text-decoration: underline; CSS for builder specific elements to maintain their UI/UX better. * * 1. UAG : Marketing Button, Info Box CTA, MultiButtons, Tabs. * 2. UABB : Button, Slide Box CTA, Flip box CTA, Info Banner, Posts, Info Circle, Call to Action, Subscribe Form. * * @since 3.6.9 */ public static function unset_builder_elements_underline() { $astra_settings = astra_get_options(); return apply_filters( 'astra_unset_builder_elements_underline', isset( $astra_settings['unset-builder-elements-underline'] ) ? false : true ); } /** * Block editor experience improvements css introduced with v4.0.0. * * @since 4.0.0 * @return boolean false if it is an existing user , true if not. */ public static function v4_block_editor_compat() { $astra_settings = astra_get_options(); return apply_filters( 'astra_v4_block_editor_compat', isset( $astra_settings['v4-block-editor-compat'] ) ? false : true ); } /** * Load sidebar static CSS when it is enabled. * * @since 3.0.0 */ public static function load_sidebar_static_css() { $update_customizer_strctural_defaults = astra_check_is_structural_setup(); $secondary_li_bottom_spacing = ( true === $update_customizer_strctural_defaults ) ? '0.75em' : '0.25em'; $is_site_rtl = is_rtl() ? true : false; $ltr_left = $is_site_rtl ? esc_attr( 'right' ) : esc_attr( 'left' ); $ltr_right = $is_site_rtl ? esc_attr( 'left' ) : esc_attr( 'right' ); $sidebar_static_css = ' #secondary { margin: 4em 0 2.5em; word-break: break-word; line-height: 2; } #secondary li { margin-bottom: ' . esc_attr( $secondary_li_bottom_spacing ) . '; } #secondary li:last-child { margin-bottom: 0; } @media (max-width: 768px) { .js_active .ast-plain-container.ast-single-post #secondary { margin-top: 1.5em; } } .ast-separate-container.ast-two-container #secondary .widget { background-color: #fff; padding: 2em; margin-bottom: 2em; } '; if ( defined( 'CFVSW_VER' ) ) { $sidebar_static_css .= ' #secondary .cfvsw-filters li{ margin-bottom: 0; margin-top: 0; } '; } $sidebar_static_css .= ' @media (min-width: 993px) { .ast-left-sidebar #secondary { padding-' . $ltr_right . ': 60px; } .ast-right-sidebar #secondary { padding-' . $ltr_left . ': 60px; } } @media (max-width: 993px) { .ast-right-sidebar #secondary { padding-' . $ltr_left . ': 30px; } .ast-left-sidebar #secondary { padding-' . $ltr_right . ': 30px; } } '; if ( $update_customizer_strctural_defaults ) { $sidebar_static_css .= ' @media (min-width: 993px) { .ast-page-builder-template.ast-left-sidebar #secondary { padding-' . $ltr_left . ': 60px; } .ast-page-builder-template.ast-right-sidebar #secondary { padding-' . $ltr_right . ': 60px; } } @media (max-width: 993px) { .ast-page-builder-template.ast-right-sidebar #secondary { padding-' . $ltr_right . ': 30px; } .ast-page-builder-template.ast-left-sidebar #secondary { padding-' . $ltr_left . ': 30px; } } '; } return $sidebar_static_css; } /** * Astra Spectra Gutenberg Compatibility CSS. * * @since 3.9.4 * @return boolean false if it is an existing user , true if not. */ public static function spectra_gutenberg_compat_css() { $astra_settings = astra_get_options(); return apply_filters( 'astra_spectra_gutenberg_compat_css', isset( $astra_settings['spectra-gutenberg-compat-css'] ) ? false : true ); } /** * Load static card(EDD/Woo) CSS. * * @since 3.0.0 * @return string static css for Woocommerce and EDD card. */ public static function load_cart_static_css() { $theme_color = astra_get_option( 'theme-color' ); $btn_border_color = astra_get_option( 'theme-button-border-group-border-color' ); $btn_bg_color = astra_get_option( 'button-bg-color', $theme_color ); $btn_border_h_color = astra_get_option( 'theme-button-border-group-border-h-color' ); $link_h_color = astra_get_option( 'link-h-color' ); $btn_bg_h_color = astra_get_option( 'button-bg-h-color', '', $link_h_color ); $normal_border_color = $btn_border_color ? $btn_border_color : $btn_bg_color; $hover_border_color = $btn_border_h_color ? $btn_border_h_color : $btn_bg_h_color; $is_site_rtl = is_rtl(); $ltr_left = $is_site_rtl ? 'right' : 'left'; $ltr_right = $is_site_rtl ? 'left' : 'right'; $cart_static_css = ' .ast-site-header-cart .cart-container, .ast-edd-site-header-cart .ast-edd-cart-container { transition: all 0.2s linear; } .ast-site-header-cart .ast-woo-header-cart-info-wrap, .ast-edd-site-header-cart .ast-edd-header-cart-info-wrap { padding: 0 6px 0 2px; font-weight: 600; line-height: 2.7; display: inline-block; } .ast-site-header-cart i.astra-icon { font-size: 20px; font-size: 1.3em; font-style: normal; font-weight: normal; position: relative; padding: 0 2px; } .ast-site-header-cart i.astra-icon.no-cart-total:after, .ast-header-break-point.ast-header-custom-item-outside .ast-edd-header-cart-info-wrap, .ast-header-break-point.ast-header-custom-item-outside .ast-woo-header-cart-info-wrap { display: none; } .ast-site-header-cart.ast-menu-cart-fill i.astra-icon, .ast-edd-site-header-cart.ast-edd-menu-cart-fill span.astra-icon { font-size: 1.1em; } .astra-cart-drawer { position: fixed; display: block; visibility: hidden; overflow: auto; -webkit-overflow-scrolling: touch; z-index: 10000; background-color: var(--ast-global-color-primary, var(--ast-global-color-5)); transform: translate3d(0, 0, 0); opacity: 0; will-change: transform; transition: 0.25s ease; } .woocommerce-mini-cart { position: relative; } .woocommerce-mini-cart::before { content: ""; transition: .3s; } .woocommerce-mini-cart.ajax-mini-cart-qty-loading::before { position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 100%; z-index: 5; background-color: var(--ast-global-color-primary, var(--ast-global-color-5)); opacity: .5; } .astra-cart-drawer { width: 460px; height: 100%; ' . $ltr_left . ': 100%; top: 0px; opacity: 1; transform: translate3d(0%, 0, 0); } .astra-cart-drawer .astra-cart-drawer-header { position: absolute; width: 100%; text-align: ' . $ltr_left . '; text-transform: inherit; font-weight: 500; border-bottom: 1px solid var(--ast-border-color); padding: 1.34em; line-height: 1; z-index: 1; max-height: 3.5em; } .astra-cart-drawer .astra-cart-drawer-header .astra-cart-drawer-title { color: var(--ast-global-color-2); } .astra-cart-drawer .astra-cart-drawer-close .ast-close-svg { width: 22px; height: 22px; } .astra-cart-drawer .astra-cart-drawer-content, .astra-cart-drawer .astra-cart-drawer-content .widget_shopping_cart, .astra-cart-drawer .astra-cart-drawer-content .widget_shopping_cart_content { height: 100%; } .astra-cart-drawer .astra-cart-drawer-content { padding-top: 3.5em; } .astra-cart-drawer .ast-mini-cart-price-wrap .multiply-symbol{ padding: 0 0.5em; } .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart-item .ast-mini-cart-price-wrap { float: ' . $ltr_right . '; margin-top: 0.5em; max-width: 50%; } .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart-item .variation { margin-top: 0.5em; margin-bottom: 0.5em; } .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart-item .variation dt { font-weight: 500; } .astra-cart-drawer .astra-cart-drawer-content .widget_shopping_cart_content { display: flex; flex-direction: column; overflow: hidden; } .astra-cart-drawer .astra-cart-drawer-content .widget_shopping_cart_content ul li { min-height: 60px; } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 0.7em 1.34em; margin-bottom: 0; } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__total strong, .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__total .amount { width: 50%; } .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart { padding: 1.3em; flex: 1; overflow: auto; } .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart a.remove { width: 20px; height: 20px; line-height: 16px; } .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__total { padding: 1em 1.5em; margin: 0; text-align: center; } .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons { padding: 1.34em; text-align: center; margin-bottom: 0; } .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons .button.checkout { margin-' . $ltr_right . ': 0; } .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons a{ width: 100%; } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons a:nth-last-child(1) { margin-bottom: 0; } .astra-cart-drawer .astra-cart-drawer-content .edd-cart-item { padding: .5em 2.6em .5em 1.5em; } .astra-cart-drawer .astra-cart-drawer-content .edd-cart-item .edd-remove-from-cart::after { width: 20px; height: 20px; line-height: 16px; } .astra-cart-drawer .astra-cart-drawer-content .edd-cart-number-of-items { padding: 1em 1.5em 1em 1.5em; margin-bottom: 0; text-align: center; } .astra-cart-drawer .astra-cart-drawer-content .edd_total { padding: .5em 1.5em; margin: 0; text-align: center; } .astra-cart-drawer .astra-cart-drawer-content .cart_item.edd_checkout { padding: 1em 1.5em 0; text-align: center; margin-top: 0; } .astra-cart-drawer .widget_shopping_cart_content > .woocommerce-mini-cart__empty-message { display: none; } .astra-cart-drawer .woocommerce-mini-cart__empty-message, .astra-cart-drawer .cart_item.empty { text-align: center; margin-top: 10px; } body.admin-bar .astra-cart-drawer { padding-top: 32px; } @media (max-width: 782px) { body.admin-bar .astra-cart-drawer { padding-top: 46px; } } .ast-mobile-cart-active body.ast-hfb-header { overflow: hidden; } .ast-mobile-cart-active .astra-mobile-cart-overlay { opacity: 1; cursor: pointer; visibility: visible; z-index: 999; } .ast-mini-cart-empty-wrap { display: flex; flex-wrap: wrap; height: 100%; align-items: flex-end; } .ast-mini-cart-empty-wrap > * { width: 100%; } .astra-cart-drawer-content .ast-mini-cart-empty { height: 100%; display: flex; flex-direction: column; justify-content: space-between; text-align: center; } .astra-cart-drawer-content .ast-mini-cart-empty .ast-mini-cart-message { display: flex; align-items: center; justify-content: center; height: 100%; padding: 1.34em; } @media (min-width: 546px) { .astra-cart-drawer .astra-cart-drawer-content.ast-large-view .woocommerce-mini-cart__buttons { display: flex; } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content.ast-large-view .woocommerce-mini-cart__buttons a, .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content.ast-large-view .woocommerce-mini-cart__buttons a.checkout { margin-top: 0; margin-bottom: 0; } } .ast-site-header-cart .cart-container:focus-visible { display: inline-block; } '; if ( is_rtl() ) { $cart_static_css .= ' .ast-site-header-cart i.astra-icon:after { content: attr(data-cart-total); position: absolute; font-family: ' . astra_get_font_family( astra_body_font_family() ) . '; font-style: normal; top: -10px; left: -12px; font-weight: bold; box-shadow: 1px 1px 3px 0px rgba(0, 0, 0, 0.3); font-size: 11px; padding-right: 0px; padding-left: 2px; line-height: 17px; letter-spacing: -.5px; height: 18px; min-width: 18px; border-radius: 99px; text-align: center; z-index: 3; } li.woocommerce-custom-menu-item .ast-site-header-cart i.astra-icon:after, li.edd-custom-menu-item .ast-edd-site-header-cart span.astra-icon:after { padding-right: 2px; } .astra-cart-drawer .astra-cart-drawer-close { position: absolute; top: 0.5em; left: 0; border: none; margin: 0; padding: .6em 1em .4em; color: var(--ast-global-color-2); background-color: transparent; } .astra-mobile-cart-overlay { background-color: rgba(0, 0, 0, 0.4); position: fixed; top: 0; left: 0; bottom: 0; right: 0; visibility: hidden; opacity: 0; transition: opacity 0.2s ease-in-out; } .astra-cart-drawer .astra-cart-drawer-content .edd-cart-item .edd-remove-from-cart { left: 1.2em; } .ast-header-break-point.ast-woocommerce-cart-menu.ast-hfb-header .ast-cart-menu-wrap, .ast-header-break-point.ast-hfb-header .ast-cart-menu-wrap, .ast-header-break-point .ast-edd-site-header-cart-wrap .ast-edd-cart-menu-wrap { width: auto; height: 2em; font-size: 1.4em; line-height: 2; vertical-align: middle; text-align: left; } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons .button:not(.checkout):not(.ast-continue-shopping) { margin-left: 10px; background-color: transparent; border: 2px solid var( --ast-global-color-0 ); color: var( --ast-global-color-0 ); } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons .button:not(.checkout):not(.ast-continue-shopping):hover { border-color: var( --ast-global-color-1 ); color: var( --ast-global-color-1 ); } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons a.checkout { margin-right: 0; margin-top: 10px; } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__total strong{ padding-left: .5em; text-align: right; font-weight: 500; } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__total .amount{ text-align: left; } .astra-cart-drawer.active { transform: translate3d(100%, 0, 0); visibility: visible; } '; } else { $cart_static_css .= ' .ast-site-header-cart i.astra-icon:after { content: attr(data-cart-total); position: absolute; font-family: ' . astra_get_font_family( astra_body_font_family() ) . '; font-style: normal; top: -10px; right: -12px; font-weight: bold; box-shadow: 1px 1px 3px 0px rgba(0, 0, 0, 0.3); font-size: 11px; padding-left: 0px; padding-right: 2px; line-height: 17px; letter-spacing: -.5px; height: 18px; min-width: 18px; border-radius: 99px; text-align: center; z-index: 3; } li.woocommerce-custom-menu-item .ast-site-header-cart i.astra-icon:after, li.edd-custom-menu-item .ast-edd-site-header-cart span.astra-icon:after { padding-left: 2px; } .astra-cart-drawer .astra-cart-drawer-close { position: absolute; top: 0.5em; right: 0; border: none; margin: 0; padding: .6em 1em .4em; color: var(--ast-global-color-2); background-color: transparent; } .astra-mobile-cart-overlay { background-color: rgba(0, 0, 0, 0.4); position: fixed; top: 0; right: 0; bottom: 0; left: 0; visibility: hidden; opacity: 0; transition: opacity 0.2s ease-in-out; } .astra-cart-drawer .astra-cart-drawer-content .edd-cart-item .edd-remove-from-cart { right: 1.2em; } .ast-header-break-point.ast-woocommerce-cart-menu.ast-hfb-header .ast-cart-menu-wrap, .ast-header-break-point.ast-hfb-header .ast-cart-menu-wrap, .ast-header-break-point .ast-edd-site-header-cart-wrap .ast-edd-cart-menu-wrap { width: auto; height: 2em; font-size: 1.4em; line-height: 2; vertical-align: middle; text-align: right; } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons .button:not(.checkout):not(.ast-continue-shopping) { margin-right: 10px; } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons .button:not(.checkout):not(.ast-continue-shopping), .ast-site-header-cart .widget_shopping_cart .buttons .button:not(.checkout), .ast-site-header-cart .ast-site-header-cart-data .ast-mini-cart-empty .woocommerce-mini-cart__buttons a.button { background-color: transparent; border-style: solid; border-width: 1px; border-color: ' . $normal_border_color . '; color: ' . esc_attr( $normal_border_color ) . '; } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons .button:not(.checkout):not(.ast-continue-shopping):hover, .ast-site-header-cart .widget_shopping_cart .buttons .button:not(.checkout):hover { border-color: ' . $hover_border_color . '; color: ' . esc_attr( $hover_border_color ) . '; } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons a.checkout { margin-left: 0; margin-top: 10px; border-style: solid; border-width: 2px; border-color: ' . $normal_border_color . '; } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons a.checkout:hover { border-color: ' . $hover_border_color . '; } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__total strong{ padding-right: .5em; text-align: left; font-weight: 500; } .woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__total .amount{ text-align: right; } .astra-cart-drawer.active { transform: translate3d(-100%, 0, 0); visibility: visible; } '; } $cart_static_css .= ' .ast-site-header-cart.ast-menu-cart-outline .ast-cart-menu-wrap, .ast-site-header-cart.ast-menu-cart-fill .ast-cart-menu-wrap, .ast-edd-site-header-cart.ast-edd-menu-cart-outline .ast-edd-cart-menu-wrap, .ast-edd-site-header-cart.ast-edd-menu-cart-fill .ast-edd-cart-menu-wrap { line-height: 1.8; }'; // This CSS requires in case of :before Astra icons. But in case of SVGs this loads twice that's why removed this from static & loading conditionally. if ( false === Astra_Icons::is_svg_icons() ) { $cart_static_css .= ' .ast-site-header-cart .cart-container *, .ast-edd-site-header-cart .ast-edd-cart-container * { transition: all 0s linear; } '; } return $cart_static_css; } /** * Check is new structural things are updated. * * @return bool true|false. * @since 4.0.0 */ public static function astra_check_default_color_typo() { $astra_settings = astra_get_options(); return apply_filters( 'astra_get_option_update_default_color_typo', isset( $astra_settings['update-default-color-typo'] ) ? false : true ); } /** * Check is new structural things are updated. * * @return bool true|false. * @since 4.1.0 */ public static function astra_woo_support_global_settings() { $astra_settings = astra_get_options(); return apply_filters( 'astra_get_option_woo_support_global_settings', isset( $astra_settings['woo_support_global_settings'] ) ? false : true ); } /** * Dynamic CSS to make Sidebar Sticky. * * @return string Sticky Sidebar CSS. * @since 4.4.0 */ public static function astra_sticky_sidebar_css() { $css = ''; if ( astra_get_option( 'site-sticky-sidebar', false ) ) { $sidebar_sticky_css = array( '.ast-sticky-sidebar .sidebar-main' => array( 'top' => '50px', 'position' => 'sticky', 'overflow-y' => 'auto', ), ); $sidebar_webkit_sticky_css = array( '.ast-sticky-sidebar .sidebar-main' => array( 'position' => '-webkit-sticky', ), ); $css .= astra_parse_css( $sidebar_sticky_css, astra_get_tablet_breakpoint( '', 1 ) ); $css .= astra_parse_css( $sidebar_webkit_sticky_css, astra_get_tablet_breakpoint( '', 1 ) ); } return $css; } /** * Dynamic CSS for default forms styling improvements. * * @return string Dynamic CSS. * @since 4.6.0 */ public static function astra_default_forms_styling_dynamic_css() { $css = ''; $enable_site_accessibility = astra_get_option( 'site-accessibility-toggle', false ); $forms_default_styling_css = array( 'input[type="text"], input[type="number"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type=reset], input[type=tel], input[type=date], select, textarea' => array( 'font-size' => '16px', 'font-style' => 'normal', 'font-weight' => '400', 'line-height' => '24px', 'width' => '100%', 'padding' => '12px 16px', 'border-radius' => '4px', 'box-shadow' => '0px 1px 2px 0px rgba(0, 0, 0, 0.05)', 'color' => 'var(--ast-form-input-text, #475569)', ), 'input[type="text"], input[type="number"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type=reset], input[type=tel], input[type=date], select' => array( 'height' => '40px', ), 'input[type="date"]' => array( 'border-width' => '1px', 'border-style' => 'solid', 'border-color' => 'var(--ast-border-color)', ), 'input[type="text"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type=reset]:focus, input[type="tel"]:focus, input[type="date"]:focus, select:focus, textarea:focus' => array( 'border-color' => 'var(--ast-global-color-0, #046BD2)', 'box-shadow' => 'none', 'outline' => 'none', 'color' => 'var(--ast-form-input-focus-text, #475569)', ), 'label, legend' => array( 'color' => '#111827', 'font-size' => '14px', 'font-style' => 'normal', 'font-weight' => '500', 'line-height' => '20px', ), 'select' => array( 'padding' => '6px 10px', ), 'fieldset' => array( 'padding' => '30px', 'border-radius' => '4px', ), 'button, .ast-button, .button, input[type="button"], input[type="reset"], input[type="submit"]' => array( 'border-radius' => '4px', 'box-shadow' => '0px 1px 2px 0px rgba(0, 0, 0, 0.05)', ), ':root' => array( '--ast-comment-inputs-background' => '#FFF', ), '::placeholder' => array( 'color' => 'var(--ast-form-field-color, #9CA3AF)', ), '::-ms-input-placeholder' => array( /* Edge 12-18 */ 'color' => 'var(--ast-form-field-color, #9CA3AF)', ), ); if ( defined( 'WPCF7_VERSION' ) ) { $wpcf7_dynamic_css = array( '.wpcf7 input.wpcf7-form-control:not([type=submit]), .wpcf7 textarea.wpcf7-form-control' => array( 'padding' => '12px 16px', ), '.wpcf7 select.wpcf7-form-control' => array( 'padding' => '6px 10px', ), '.wpcf7 input.wpcf7-form-control:not([type=submit]):focus, .wpcf7 select.wpcf7-form-control:focus, .wpcf7 textarea.wpcf7-form-control:focus' => array( 'border-color' => 'var(--ast-global-color-0, #046BD2)', 'box-shadow' => 'none', 'outline' => 'none', 'color' => 'var(--ast-form-input-focus-text, #475569)', ), '.wpcf7 .wpcf7-not-valid-tip' => array( 'color' => '#DC2626', 'font-size' => '14px', 'font-weight' => '400', 'line-height' => '20px', 'margin-top' => '8px', ), '.wpcf7 input[type=file].wpcf7-form-control' => array( 'font-size' => '16px', 'font-style' => 'normal', 'font-weight' => '400', 'line-height' => '24px', 'width' => '100%', 'padding' => '12px 16px', 'border-radius' => '4px', 'box-shadow' => '0px 1px 2px 0px rgba(0, 0, 0, 0.05)', 'color' => 'var(--ast-form-input-text, #475569)', ), ); $forms_default_styling_css = array_merge( $forms_default_styling_css, $wpcf7_dynamic_css ); } if ( class_exists( 'GFForms' ) ) { $gravity_forms_dynamic_css = array( 'input[type="radio"].gfield-choice-input:checked, input[type="checkbox"].gfield-choice-input:checked, .ginput_container_consent input[type="checkbox"]:checked' => array( 'border-color' => 'inherit', 'background-color' => 'inherit', ), 'input[type="radio"].gfield-choice-input:focus, input[type="checkbox"].gfield-choice-input:focus, .ginput_container_consent input[type="checkbox"]:focus' => array( 'border-color' => 'var(--ast-global-color-0, #046BD2)', 'box-shadow' => 'none', 'outline' => 'none', 'color' => 'var(--ast-form-input-focus-text, #475569)', ), ); $forms_default_styling_css = array_merge( $forms_default_styling_css, $gravity_forms_dynamic_css ); } // Default form styling accessibility options compatibility. if ( $enable_site_accessibility ) { $outline_style = astra_get_option( 'site-accessibility-highlight-type' ); $outline_color = astra_get_option( 'site-accessibility-highlight-color' ); $outline_input_style = astra_get_option( 'site-accessibility-highlight-input-type' ); $outline_input_color = astra_get_option( 'site-accessibility-highlight-input-color' ); $input_highlight = ( 'unset' !== $outline_input_style ); $selected_outline_style = $input_highlight ? $outline_input_style : $outline_style; $selected_outline_color = $input_highlight ? $outline_input_color : $outline_color; $forms_default_styling_css['input[type="text"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type=reset]:focus, input[type="tel"]:focus, input[type="date"]:focus, select:focus, textarea:focus'] = array( 'border-color' => $selected_outline_color ? $selected_outline_color : '#046BD2', 'box-shadow' => 'none', 'outline' => 'none', 'color' => 'var(--ast-form-input-focus-text, #475569)', ); // Contact form 7 accessibility compatibility. if ( defined( 'WPCF7_VERSION' ) ) { $forms_default_styling_css['.wpcf7 input.wpcf7-form-control:not([type=submit]):focus, .wpcf7 select.wpcf7-form-control:focus, .wpcf7 textarea.wpcf7-form-control:focus'] = array( 'border-style' => $selected_outline_style ? $selected_outline_style : 'inherit', 'border-color' => $selected_outline_color ? $selected_outline_color : '#046BD2', 'border-width' => 'thin', 'box-shadow' => 'none', 'outline' => 'none', 'color' => 'var(--ast-form-input-focus-text, #475569)', ); } // Gravity forms accessibility compatibility. if ( class_exists( 'GFForms' ) ) { $forms_default_styling_css['input[type="radio"].gfield-choice-input:focus, input[type="checkbox"].gfield-choice-input:focus, .ginput_container_consent input[type="checkbox"]:focus'] = array( 'border-style' => $selected_outline_style ? $selected_outline_style : 'inherit', 'border-color' => $selected_outline_color ? $selected_outline_color : '#046BD2', 'border-width' => 'thin', 'box-shadow' => 'none', 'outline' => 'none', 'color' => 'var(--ast-form-input-focus-text, #475569)', ); } } $css .= astra_parse_css( $forms_default_styling_css ); return $css; } /** * Check if fullwidth layout with sidebar is supported. * Old users - yes * New users - no * * @return bool true|false. * @since 4.2.0 */ public static function astra_fullwidth_sidebar_support() { $astra_settings = astra_get_options(); return apply_filters( 'astra_get_option_fullwidth_sidebar_support', isset( $astra_settings['fullwidth_sidebar_support'] ) ? false : true ); } /** * Core Comment & Search Button Styling Compatibility. * Old Users - Will not reflect directly. * New Users - Direct reflection * * @return bool true|false. * @since 4.2.2 */ public static function astra_core_form_btns_styling() { $astra_settings = astra_get_options(); return apply_filters( 'astra_core_form_btns_styling', isset( $astra_settings['v4-2-2-core-form-btns-styling'] ) ? false : true ); } /** * Load Blog Layout static CSS when it is enabled. * * @since 4.6.0 */ public static function blog_layout_static_css() { $bl_selector = '.ast-blog-layout-6-grid'; $blog_layout_css = ' ' . $bl_selector . ' .ast-blog-featured-section:before { content: ""; } '; return $blog_layout_css; } /** * Improve full screen search Submit button style. * * @since 4.4.0 * @return boolean false if it is an existing user, true if not. */ public static function astra_4_4_0_compatibility() { $astra_settings = astra_get_options(); return apply_filters( 'astra_addon_upgrade_fullscreen_search_submit_style', isset( $astra_settings['v4-4-0-backward-option'] ) ? false : true ); } /** * Check version 4.5.0 backward compatibility. * * @since 4.5.0 * @return boolean false if it is an existing user, true if not. */ public static function astra_4_5_0_compatibility() { $astra_settings = astra_get_options(); return apply_filters( 'astra_upgrade_color_styles', isset( $astra_settings['v4-5-0-backward-option'] ) ? false : true ); } /** * In 4.6.0 version we are having new stylings. * 1. Comments area refined. * 2. Defaults improvement for single-blog layouts. * 3. Form default UI improved. * * @return bool true|false. * @since 4.6.0 */ public static function astra_4_6_0_compatibility() { $astra_settings = astra_get_options(); return apply_filters( 'astra_get_option_v4-6-0-backward-option', isset( $astra_settings['v4-6-0-backward-option'] ) ? false : true ); } /** * In 4.6.2 version we are having new stylings. * 1. Keeping meta featured image disable option useless for old users. * * @return bool true|false. * @since 4.6.2 */ public static function astra_4_6_2_compatibility() { $astra_settings = astra_get_options(); return apply_filters( 'astra_get_option_v4-6-2-backward-option', isset( $astra_settings['v4-6-2-backward-option'] ) ? false : true ); } /** * Upgrade Astra default button stylings & compatibility with Spectra buttons. * * @return bool true|false. * @since 4.6.4 */ public static function astra_4_6_4_compatibility() { $astra_settings = astra_get_options(); return apply_filters( 'astra_get_option_btn-stylings-upgrade', isset( $astra_settings['btn-stylings-upgrade'] ) ? false : true ); } /** * Handle backward compatibility for heading `clear:both` css in single posts and pages. * * @return bool true|false If returns true then set `clear:none`. * @since 4.6.12 */ public static function astra_headings_clear_compatibility() { $astra_settings = astra_get_options(); /** * If `single_posts_pages_heading_clear_none` is set then this user is probably old user * so in that case, we will not convert the "clear:both" to "clear:none" for old users. */ return apply_filters( 'astra_get_option_single_posts_pages_heading_clear_none', isset( $astra_settings['single_posts_pages_heading_clear_none'] ) ? false : true ); } /** * Single post outside padding was not working. * * @return bool true|false. * @since 4.8.2 */ public static function astra_4_8_2_compatibility() { $astra_settings = astra_get_options(); return apply_filters( 'astra_get_option_v4-8-2-backward-option', isset( $astra_settings['v4-8-2-backward-option'] ) ? false : true ); } /** * Restrict unitless support to body font by default. * * 1. Unitless line-height support. * 2. Font-size of h5-h6 default update. * * @since 4.6.14 * @return bool true|false. */ public static function astra_4_6_14_compatibility() { $astra_settings = astra_get_options(); return apply_filters( 'astra_get_option_enable-4-6-14-compatibility', isset( $astra_settings['enable-4-6-14-compatibility'] ) ? false : true ); } /** * Upgrade Astra secondary button border to look style guide in sync. * * @return bool true|false. * @since 4.8.0 */ public static function astra_4_8_0_compatibility() { $astra_settings = astra_get_options(); return apply_filters( 'astra_get_option_enable-4-8-0-compatibility', isset( $astra_settings['enable-4-8-0-compatibility'] ) ? false : true ); } /** * Added compatibility for alignwide Spectra container width. * * @return bool true|false. * @since 4.8.4 */ public static function astra_4_8_4_compatibility() { $astra_settings = astra_get_options(); return apply_filters( 'astra_get_option_enable-4-8-4-compatibility', isset( $astra_settings['enable-4-8-4-compatibility'] ) ? false : true ); } /** * In 4.8.9 version we are having following compatibilities. * 1. Color sequence & tooltips updated (AST-3809). * * @return bool true|false. * @since 4.8.9 */ public static function astra_4_8_9_compatibility() { $astra_settings = get_option( ASTRA_THEME_SETTINGS ); return apply_filters( 'astra_get_option_enable-4-8-9-compatibility', isset( $astra_settings['enable-4-8-9-compatibility'] ) ? false : true ); } } } PKVmZ <<&schema/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(); PKVmZ9ii*schema/class-astra-creativework-schema.phpnu[schema_enabled() ) { return false; } add_filter( 'astra_attr_article-blog', array( $this, 'creative_work_schema' ) ); add_filter( 'astra_attr_article-page', array( $this, 'creative_work_schema' ) ); add_filter( 'astra_attr_article-single', array( $this, 'creative_work_schema' ) ); add_filter( 'astra_attr_article-content', array( $this, 'creative_work_schema' ) ); add_filter( 'astra_attr_article-title-blog', array( $this, 'article_title_blog_schema_prop' ) ); add_filter( 'astra_attr_article-title-blog-single', array( $this, 'article_title_blog_single_schema_prop' ) ); add_filter( 'astra_attr_article-title-content-page', array( $this, 'article_title_content_page_schema_prop' ) ); add_filter( 'astra_attr_article-title-content', array( $this, 'article_title_content_schema_prop' ) ); add_filter( 'astra_attr_article-entry-content-blog-layout', array( $this, 'article_content_blog_layout_schema_prop' ) ); add_filter( 'astra_attr_article-entry-content-page', array( $this, 'article_content_page_schema_prop' ) ); add_filter( 'astra_attr_article-entry-content', array( $this, 'article_content_schema_prop' ) ); add_filter( 'astra_attr_article-entry-content-blog-layout-2', array( $this, 'article_content_blog_layout_2_schema_prop' ) ); add_filter( 'astra_attr_article-entry-content-blog-layout-3', array( $this, 'article_content_blog_layout_3_schema_prop' ) ); add_filter( 'astra_attr_article-entry-content-single-layout', array( $this, 'article_content_single_layout_schema_prop' ) ); add_filter( 'astra_post_thumbnail_itemprop', array( $this, 'article_image_schema_prop' ) ); add_filter( 'astra_attr_article-image-blog-archive', array( $this, 'article_image_blog_archive_schema_prop' ) ); add_filter( 'astra_attr_article-image-blog-single-post', array( $this, 'article_image_blog_single_post_schema_prop' ) ); } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function creative_work_schema( $attr ) { $attr['itemtype'] = 'https://schema.org/CreativeWork'; $attr['itemscope'] = 'itemscope'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function article_title_blog_schema_prop( $attr ) { $attr['itemprop'] = 'headline'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function article_title_blog_single_schema_prop( $attr ) { $attr['itemprop'] = 'headline'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function article_title_content_page_schema_prop( $attr ) { $attr['itemprop'] = 'headline'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function article_title_content_schema_prop( $attr ) { $attr['itemprop'] = 'headline'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function article_content_blog_layout_schema_prop( $attr ) { $attr['itemprop'] = 'text'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function article_content_page_schema_prop( $attr ) { $attr['itemprop'] = 'text'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function article_content_schema_prop( $attr ) { $attr['itemprop'] = 'text'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function article_content_blog_layout_2_schema_prop( $attr ) { $attr['itemprop'] = 'text'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function article_content_blog_layout_3_schema_prop( $attr ) { $attr['itemprop'] = 'text'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function article_content_single_layout_schema_prop( $attr ) { $attr['itemprop'] = 'text'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function article_image_schema_prop( $attr ) { $attr = 'itemprop=image'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function article_image_blog_archive_schema_prop( $attr ) { $attr['itemprop'] = 'image'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function article_image_blog_single_post_schema_prop( $attr ) { $attr['itemprop'] = 'image'; return $attr; } /** * Enabled schema * * @since 2.1.3 */ protected function schema_enabled() { return apply_filters( 'astra_creativework_schema_enabled', parent::schema_enabled() ); } } new Astra_CreativeWork_Schema(); PKVmZ + + *schema/class-astra-organization-schema.phpnu[schema_enabled() ) { return false; } add_filter( 'astra_attr_site-identity', array( $this, 'organization_Schema' ) ); add_filter( 'astra_attr_site-title', array( $this, 'site_title_attr' ) ); add_filter( 'astra_attr_site-title-link', array( $this, 'site_title_link_attr' ) ); add_filter( 'astra_attr_site-title-custom-link', array( $this, 'site_title_custom_link_attr' ) ); add_filter( 'astra_attr_site-title-sticky-custom-link', array( $this, 'site_title_sticky_custom_link_attr' ) ); add_filter( 'astra_attr_site-title-none-sticky-custom-link', array( $this, 'site_title_none_sticky_custom_link_attr' ) ); add_filter( 'astra_attr_site-title-sticky-custom-logo-link', array( $this, 'site_title_sticky_custom_logo_link_attr' ) ); } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function organization_Schema( $attr ) { $attr['itemtype'] = 'https://schema.org/Organization'; $attr['itemscope'] = 'itemscope'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function site_title_attr( $attr ) { $attr['itemprop'] = 'name'; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function site_title_link_attr( $attr ) { $attr['itemprop'] = 'url'; $attr['class'] = ''; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function site_title_custom_link_attr( $attr ) { $attr['itemprop'] = 'url'; $attr['class'] = ''; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function site_title_sticky_custom_link_attr( $attr ) { $attr['itemprop'] = 'url'; $attr['class'] = ''; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function site_title_none_sticky_custom_link_attr( $attr ) { $attr['itemprop'] = 'url'; $attr['class'] = ''; return $attr; } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function site_title_sticky_custom_logo_link_attr( $attr ) { $attr['itemprop'] = 'url'; $attr['class'] = ''; return $attr; } /** * Enabled schema * * @since 2.1.3 */ protected function schema_enabled() { return apply_filters( 'astra_organization_schema_enabled', parent::schema_enabled() ); } } new Astra_Organization_Schema(); PKVmZk$schema/class-astra-person-schema.phpnu[schema_enabled() ) { return false; } add_filter( 'astra_attr_post-meta-author', array( $this, 'person_Schema' ) ); add_filter( 'astra_attr_comment-meta-author', array( $this, 'author_schema_class' ) ); add_filter( 'astra_attr_archive-meta-author', array( $this, 'author_schema_class' ) ); 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 author schema markup class attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup class attribute. * * @since 4.8.2 */ public function author_schema_class( $attr ) { $attr['class'] = isset( $attr['class'] ) ? $attr['class'] : ''; $attr['class'] .= ' vcard'; 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(); PKVmZDDschema/class-astra-schema.phpnu[include_schemas(); add_action( 'wp', array( $this, 'setup_schema' ) ); } /** * Setup schema * * @since 2.1.3 */ public function setup_schema() { } /** * Include schema files. * * @since 2.1.3 */ private function include_schemas() { // @codingStandardsIgnoreStart WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound require_once ASTRA_THEME_DIR . 'inc/schema/class-astra-creativework-schema.php'; require_once ASTRA_THEME_DIR . 'inc/schema/class-astra-wpheader-schema.php'; require_once ASTRA_THEME_DIR . 'inc/schema/class-astra-wpfooter-schema.php'; require_once ASTRA_THEME_DIR . 'inc/schema/class-astra-wpsidebar-schema.php'; require_once ASTRA_THEME_DIR . 'inc/schema/class-astra-person-schema.php'; require_once ASTRA_THEME_DIR . 'inc/schema/class-astra-organization-schema.php'; require_once ASTRA_THEME_DIR . 'inc/schema/class-astra-site-navigation-schema.php'; require_once ASTRA_THEME_DIR . 'inc/schema/class-astra-breadcrumb-schema.php'; // @codingStandardsIgnoreEnd WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound } /** * Enabled schema * * @since 2.1.3 */ protected function schema_enabled() { return apply_filters( 'astra_schema_enabled', true ); } } new Astra_Schema(); PKVmZ}]  'schema/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(); PKWmZ0 ==&schema/class-astra-wpheader-schema.phpnu[schema_enabled() ) { return false; } add_filter( 'astra_attr_header', array( $this, 'wpheader_Schema' ) ); } /** * Update Schema markup attribute. * * @param array $attr An array of attributes. * * @return array Updated embed markup. */ public function wpheader_Schema( $attr ) { $attr['itemtype'] = 'https://schema.org/WPHeader'; $attr['itemscope'] = 'itemscope'; $attr['itemid'] = '#masthead'; return $attr; } /** * Enabled schema * * @since 2.1.3 */ protected function schema_enabled() { return apply_filters( 'astra_wpheader_schema_enabled', parent::schema_enabled() ); } } new Astra_WPHeader_Schema(); PKWmZ=M(schema/class-astra-breadcrumb-schema.phpnu[schema_enabled() ) ) { add_filter( 'astra_breadcrumb_trail_args', array( $this, 'breadcrumb_schema' ) ); } } /** * Disable schema by passing false to the 'schema' param to the filter. * * @since 2.1.3 * * @param array $args An array of default values. * * @return array Updated schema param. */ public function breadcrumb_schema( $args ) { $args['schema'] = false; return $args; } /** * Enabled schema * * @since 2.1.3 */ protected function schema_enabled() { return apply_filters( 'astra_breadcrumb_schema_enabled', parent::schema_enabled() ); } } new Astra_Breadcrumb_Schema(); PKWmZRR-schema/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(); PKWmZPy%compatibility/class-astra-ubermeu.phpnu[ array( 'width' => '100%', ), 'body.fl-theme-builder-header.fl-theme-builder-part.fl-theme-builder-part-part #page' => array( 'display' => 'block', ), ); // Parse CSS from array. $parse_css = astra_parse_css( $beaver_themer_styles ); // Appended parsed CSS. $dynamic_css .= $parse_css; } return $dynamic_css; } /** * Remove theme post's default classes * * @param array $classes Post Classes. * @return array * @since 1.0.2 */ public function render_post_class( $classes ) { $post_class = array( 'fl-post-grid-post', 'fl-post-gallery-post', 'fl-post-feed-post' ); $result = array_intersect( $classes, $post_class ); if ( count( $result ) > 0 ) { $classes = array_diff( $classes, array( // Astra common grid. 'ast-col-xs-1', 'ast-col-xs-2', 'ast-col-xs-3', 'ast-col-xs-4', 'ast-col-xs-5', 'ast-col-xs-6', 'ast-col-xs-7', 'ast-col-xs-8', 'ast-col-xs-9', 'ast-col-xs-10', 'ast-col-xs-11', 'ast-col-xs-12', 'ast-col-sm-1', 'ast-col-sm-2', 'ast-col-sm-3', 'ast-col-sm-4', 'ast-col-sm-5', 'ast-col-sm-6', 'ast-col-sm-7', 'ast-col-sm-8', 'ast-col-sm-9', 'ast-col-sm-10', 'ast-col-sm-11', 'ast-col-sm-12', 'ast-col-md-1', 'ast-col-md-2', 'ast-col-md-3', 'ast-col-md-4', 'ast-col-md-5', 'ast-col-md-6', 'ast-col-md-7', 'ast-col-md-8', 'ast-col-md-9', 'ast-col-md-10', 'ast-col-md-11', 'ast-col-md-12', 'ast-col-lg-1', 'ast-col-lg-2', 'ast-col-lg-3', 'ast-col-lg-4', 'ast-col-lg-5', 'ast-col-lg-6', 'ast-col-lg-7', 'ast-col-lg-8', 'ast-col-lg-9', 'ast-col-lg-10', 'ast-col-lg-11', 'ast-col-lg-12', 'ast-col-xl-1', 'ast-col-xl-2', 'ast-col-xl-3', 'ast-col-xl-4', 'ast-col-xl-5', 'ast-col-xl-6', 'ast-col-xl-7', 'ast-col-xl-8', 'ast-col-xl-9', 'ast-col-xl-10', 'ast-col-xl-11', 'ast-col-xl-12', // Astra Blog / Single Post. 'ast-article-post', 'ast-article-single', 'ast-separate-posts', 'remove-featured-img-padding', 'ast-featured-post', // Astra Woocommerce. 'ast-product-gallery-layout-vertical', 'ast-product-gallery-layout-horizontal', 'ast-product-gallery-with-no-image', 'ast-product-tabs-layout-vertical', 'ast-product-tabs-layout-horizontal', 'ast-qv-disabled', 'ast-qv-on-image', 'ast-qv-on-image-click', 'ast-qv-after-summary', 'astra-woo-hover-swap', 'box-shadow-0', 'box-shadow-0-hover', 'box-shadow-1', 'box-shadow-1-hover', 'box-shadow-2', 'box-shadow-2-hover', 'box-shadow-3', 'box-shadow-3-hover', 'box-shadow-4', 'box-shadow-4-hover', 'box-shadow-5', 'box-shadow-5-hover', ) ); add_filter( 'astra_post_link_enabled', '__return_false' ); } return $classes; } /** * Function to add Theme Support * * @since 1.0.0 */ public function header_footer_support() { add_theme_support( 'fl-theme-builder-headers' ); add_theme_support( 'fl-theme-builder-footers' ); add_theme_support( 'fl-theme-builder-parts' ); } /** * Function to update Atra header/footer with Beaver template * * @since 1.0.0 */ public function theme_header_footer_render() { // Get the header ID. $header_ids = FLThemeBuilderLayoutData::get_current_page_header_ids(); // If we have a header, remove the theme header and hook in Theme Builder's. if ( ! empty( $header_ids ) ) { remove_action( 'astra_header', 'astra_header_markup' ); add_action( 'astra_header', 'FLThemeBuilderLayoutRenderer::render_header' ); } // Get the footer ID. $footer_ids = FLThemeBuilderLayoutData::get_current_page_footer_ids(); // If we have a footer, remove the theme footer and hook in Theme Builder's. if ( ! empty( $footer_ids ) ) { remove_action( 'astra_footer', array( Astra_Builder_Footer::get_instance(), 'footer_markup' ) ); remove_action( 'astra_footer', 'astra_footer_markup' ); add_action( 'astra_footer', 'FLThemeBuilderLayoutRenderer::render_footer' ); } // BB Themer Support. $template_ids = FLThemeBuilderLayoutData::get_current_page_content_ids(); if ( ! empty( $template_ids ) ) { $template_id = $template_ids[0]; $template_type = get_post_meta( $template_id, '_fl_theme_layout_type', true ); if ( 'archive' === $template_type || 'singular' === $template_type || '404' === $template_type ) { $sidebar = get_post_meta( $template_id, 'site-sidebar-layout', true ); if ( 'default' !== $sidebar ) { add_filter( 'astra_page_layout', function( $page_layout ) use ( $sidebar ) { // phpcs:ignore PHPCompatibility.FunctionDeclarations.NewClosure.Found return $sidebar; } ); } $content_layout = get_post_meta( $template_id, 'site-content-layout', true ); if ( 'default' !== $content_layout ) { add_filter( 'astra_get_content_layout', function( $layout ) use ( $content_layout ) {// phpcs:ignore PHPCompatibility.FunctionDeclarations.NewClosure.Found return $content_layout; } ); } $main_header_display = get_post_meta( $template_id, 'ast-main-header-display', true ); if ( 'disabled' === $main_header_display ) { if ( 'archive' === $template_type ) { remove_action( 'astra_masthead', 'astra_masthead_primary_template' ); } else { add_filter( 'astra_main_header_display', function( $display_header ) {// phpcs:ignore PHPCompatibility.FunctionDeclarations.NewClosure.Found return 'disabled'; } ); } } $footer_layout = get_post_meta( $template_id, 'footer-sml-layout', true ); if ( 'disabled' === $footer_layout ) { add_filter( 'astra_footer_sml_layout', function( $is_footer ) {// phpcs:ignore PHPCompatibility.FunctionDeclarations.NewClosure.Found return 'disabled'; } ); } // Override! Footer Widgets. $footer_widgets = get_post_meta( $template_id, 'footer-adv-display', true ); if ( 'disabled' === $footer_widgets ) { add_filter( 'astra_advanced_footer_disable', '__return_true' ); } } } } /** * Function to Astra theme parts * * @since 1.0.0 */ public function register_part_hooks() { return array( array( 'label' => 'Page', 'hooks' => array( 'astra_body_top' => __( 'Before Page', 'astra' ), 'astra_body_bottom' => __( 'After Page', 'astra' ), ), ), array( 'label' => 'Header', 'hooks' => array( 'astra_header_before' => __( 'Before Header', 'astra' ), 'astra_header_after' => __( 'After Header', 'astra' ), ), ), array( 'label' => 'Content', 'hooks' => array( 'astra_primary_content_top' => __( 'Before Content', 'astra' ), 'astra_primary_content_bottom' => __( 'After Content', 'astra' ), ), ), array( 'label' => 'Footer', 'hooks' => array( 'astra_footer_before' => __( 'Before Footer', 'astra' ), 'astra_footer_after' => __( 'After Footer', 'astra' ), ), ), array( 'label' => 'Sidebar', 'hooks' => array( 'astra_sidebars_before' => __( 'Before Sidebar', 'astra' ), 'astra_sidebars_after' => __( 'After Sidebar', 'astra' ), ), ), array( 'label' => 'Posts', 'hooks' => array( 'loop_start' => __( 'Loop Start', 'astra' ), 'astra_entry_top' => __( 'Before Post', 'astra' ), 'astra_entry_content_before' => __( 'Before Post Content', 'astra' ), 'astra_entry_content_after' => __( 'After Post Content', 'astra' ), 'astra_entry_bottom' => __( 'After Post', 'astra' ), 'astra_comments_before' => __( 'Before Comments', 'astra' ), 'astra_comments_after' => __( 'After Comments', 'astra' ), 'loop_end' => __( 'Loop End', 'astra' ), ), ), ); } /** * Function to theme before render content * * @param int $post_id Post ID. * @since 1.0.28 */ public function builder_before_render_content( $post_id ) { ?>
>
span, body #learndash_lesson_topics_list span a, body #learndash_profile a, body #learndash_profile a span' => array( 'font-family' => astra_get_font_family( $body_font_family ), ), 'body #ld_course_list .btn, body a.btn-blue, body a.btn-blue:visited, body a#quiz_continue_link, body .btn-join, body .learndash_checkout_buttons input.btn-join[type="button"], body #btn-join, body .learndash_checkout_buttons input.btn-join[type="submit"], body .wpProQuiz_content .wpProQuiz_button2' => array( 'color' => $btn_color, 'border-color' => $btn_bg_color, 'background-color' => $btn_bg_color, 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'desktop' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'desktop' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'desktop' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'desktop' ), ), 'body #ld_course_list .btn:hover, body #ld_course_list .btn:focus, body a.btn-blue:hover, body a.btn-blue:focus, body a#quiz_continue_link:hover, body a#quiz_continue_link:focus, body .btn-join:hover, body .learndash_checkout_buttons input.btn-join[type="button"]:hover, body .btn-join:focus, body .learndash_checkout_buttons input.btn-join[type="button"]:focus, .wpProQuiz_content .wpProQuiz_button2:hover, .wpProQuiz_content .wpProQuiz_button2:focus, body #btn-join:hover, body .learndash_checkout_buttons input.btn-join[type="submit"]:hover, body #btn-join:focus, body .learndash_checkout_buttons input.btn-join[type="submit"]:focus' => array( 'color' => $btn_h_color, 'border-color' => $btn_bg_h_color, 'background-color' => $btn_bg_h_color, ), 'body dd.course_progress div.course_progress_blue, body .wpProQuiz_content .wpProQuiz_time_limit .wpProQuiz_progress' => array( 'background-color' => $theme_color, ), 'body #learndash_lessons a, body #learndash_quizzes a, body .expand_collapse a, body .learndash_topic_dots a, body .learndash_topic_dots a > span, body #learndash_lesson_topics_list span a, body #learndash_profile a, #learndash_profile .profile_edit_profile a, body #learndash_profile .expand_collapse a, body #learndash_profile a span, #lessons_list .list-count, #quiz_list .list-count' => array( 'color' => $link_color, ), '.learndash .notcompleted:before, #learndash_profile .notcompleted:before, .learndash_topic_dots ul .topic-notcompleted span:before, .learndash_navigation_lesson_topics_list .topic-notcompleted span:before, .learndash_navigation_lesson_topics_list ul .topic-notcompleted span:before, .learndash .topic-notcompleted span:before' => array( 'color' => astra_hex_to_rgba( $text_color, .5 ), ), 'body .thumbnail.course .ld_course_grid_price, body .thumbnail.course .ld_course_grid_price.ribbon-enrolled, body #learndash_lessons #lesson_heading, body #learndash_profile .learndash_profile_heading, body #learndash_quizzes #quiz_heading, body #learndash_lesson_topics_list div > strong, body .learndash-pager span a, body #learndash_profile .learndash_profile_quiz_heading' => array( 'background-color' => $theme_color, 'color' => $theme_forground_color, ), '.learndash .completed:before, #learndash_profile .completed:before, .learndash_topic_dots ul .topic-completed span:before, .learndash_navigation_lesson_topics_list .topic-completed span:before, .learndash_navigation_lesson_topics_list ul .topic-completed span:before, .learndash .topic-completed span:before, body .list_arrow.lesson_completed:before' => array( 'color' => $theme_color, ), 'body .thumbnail.course .ld_course_grid_price:before' => array( 'border-top-color' => astra_hex_to_rgba( $theme_color, .75 ), 'border-right-color' => astra_hex_to_rgba( $theme_color, .75 ), ), 'body .wpProQuiz_loadQuiz, body .wpProQuiz_lock' => array( 'border-color' => astra_hex_to_rgba( $link_color, .5 ), 'background-color' => astra_hex_to_rgba( $link_color, .1 ), ), '#ld_course_list .entry-title' => array( 'font-size' => astra_responsive_font( $archive_post_title_font_size, 'desktop' ), ), ); if ( ! astra_get_option( 'learndash-lesson-serial-number' ) ) { $css_output['body #course_list .list-count, body #lessons_list .list-count, body #quiz_list .list-count'] = array( 'display' => 'none', ); $css_output['body #course_list > div h4 > a, body #lessons_list > div h4 > a, body #quiz_list > div h4 > a, body #learndash_course_content .learndash_topic_dots ul > li a'] = array( 'padding-left' => '.75em', 'margin-left' => 'auto', ); } if ( ! astra_get_option( 'learndash-differentiate-rows' ) ) { $css_output['body #course_list > div:nth-of-type(odd), body #lessons_list > div:nth-of-type(odd), body #quiz_list > div:nth-of-type(odd), body #learndash_lesson_topics_list .learndash_topic_dots ul > li.nth-of-type-odd'] = array( 'background' => 'none', ); } /* Parse CSS from array() */ $css_output = astra_parse_css( $css_output ); $tablet_typography = array( 'body #ld_course_list .btn, body a.btn-blue, body a.btn-blue:visited, body a#quiz_continue_link, body .btn-join, body .learndash_checkout_buttons input.btn-join[type="button"], body #btn-join, body .learndash_checkout_buttons input.btn-join[type="submit"], body .wpProQuiz_content .wpProQuiz_button2' => array( 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'tablet' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'tablet' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'tablet' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'tablet' ), ), '#ld_course_list .entry-title' => array( 'font-size' => astra_responsive_font( $archive_post_title_font_size, 'tablet', 30 ), ), ); /* Parse CSS from array()*/ $css_output .= astra_parse_css( $tablet_typography, '', astra_get_tablet_breakpoint() ); if ( $is_site_rtl ) { $mobile_min_width_css = array( 'body #learndash_profile .profile_edit_profile' => array( 'position' => 'absolute', 'top' => '15px', 'left' => '15px', ), ); } else { $mobile_min_width_css = array( 'body #learndash_profile .profile_edit_profile' => array( 'position' => 'absolute', 'top' => '15px', 'right' => '15px', ), ); } /* Parse CSS from array() -> min-width: (mobile-breakpoint + 1) px */ $css_output .= astra_parse_css( $mobile_min_width_css, astra_get_mobile_breakpoint( '', 1 ) ); $mobile_typography = array( 'body #ld_course_list .btn, body a.btn-blue, body a.btn-blue:visited, body a#quiz_continue_link, body .btn-join, body .learndash_checkout_buttons input.btn-join[type="button"], body #btn-join, body .learndash_checkout_buttons input.btn-join[type="submit"], body .wpProQuiz_content .wpProQuiz_button2' => array( 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'mobile' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'mobile' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'mobile' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'mobile' ), ), '#ld_course_list .entry-title' => array( 'font-size' => astra_responsive_font( $archive_post_title_font_size, 'mobile', 30 ), ), '#learndash_next_prev_link a' => array( 'width' => '100%', ), '#learndash_next_prev_link a.prev-link' => array( 'margin-bottom' => '1em', ), '#ld_course_info_mycourses_list .ld-course-info-my-courses .ld-entry-title' => array( 'margin' => '0 0 20px', ), ); /* Parse CSS from array() -> max-width: (mobile-breakpoint) px */ $css_output .= astra_parse_css( $mobile_typography, '', astra_get_mobile_breakpoint() ); if ( $is_site_rtl ) { $mobile_typography_lang_direction_css = array( '#ld_course_info_mycourses_list .ld-course-info-my-courses img' => array( 'display' => 'block', 'margin-right' => 'initial', 'max-width' => '100%', 'margin' => '10px 0', ), ); } else { $mobile_typography_lang_direction_css = array( '#ld_course_info_mycourses_list .ld-course-info-my-courses img' => array( 'display' => 'block', 'margin-left' => 'initial', 'max-width' => '100%', 'margin' => '10px 0', ), ); } /* Parse CSS from array() -> max-width: (mobile-breakpoint) px */ $css_output .= astra_parse_css( $mobile_typography_lang_direction_css, '', astra_get_mobile_breakpoint() ); $dynamic_css .= apply_filters( 'astra_theme_learndash_dynamic_css', $css_output ); return $dynamic_css; } /** * Register Customizer sections and panel for learndash. * * @since 1.3.0 * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function customize_register( $wp_customize ) { $active_ld_theme = ''; if ( is_callable( 'LearnDash_Theme_Register::get_active_theme_key' ) ) { $active_ld_theme = LearnDash_Theme_Register::get_active_theme_key(); } // @codingStandardsIgnoreStart WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound /** * Register Sections & Panels */ require ASTRA_THEME_DIR . 'inc/compatibility/learndash/customizer/class-astra-customizer-register-learndash-section.php'; /** * Sections */ require ASTRA_THEME_DIR . 'inc/compatibility/learndash/customizer/sections/class-astra-learndash-container-configs.php'; require ASTRA_THEME_DIR . 'inc/compatibility/learndash/customizer/sections/class-astra-learndash-sidebar-configs.php'; if ( 'ld30' !== $active_ld_theme ) { require ASTRA_THEME_DIR . 'inc/compatibility/learndash/customizer/sections/layout/class-astra-learndash-general-configs.php'; } // @codingStandardsIgnoreEnd WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound } /** * Theme Defaults. * * @since 1.3.0 * @param array $defaults Array of options value. * @return array */ public function theme_defaults( $defaults ) { // General. $defaults['learndash-lesson-serial-number'] = false; $defaults['learndash-differentiate-rows'] = true; // Container. $defaults['learndash-ast-content-layout'] = 'normal-width-container'; // Sidebar. $defaults['learndash-sidebar-layout'] = 'default'; return $defaults; } /** * Add assets in theme * * @since 1.3.0 * @param array $assets list of theme assets (JS & CSS). * @return array List of updated assets. */ public function add_styles( $assets ) { $assets['css']['astra-learndash'] = 'compatibility/learndash'; return $assets; } /** * LeanDash Sidebar * * @since 1.3.0 * @param string $layout Layout type. * @return string $layout Layout type. */ public function sidebar_layout( $layout ) { if ( is_singular( 'sfwd-courses' ) || is_singular( 'sfwd-lessons' ) || is_singular( 'sfwd-topic' ) || is_singular( 'sfwd-quiz' ) || is_singular( 'sfwd-certificates' ) || is_singular( 'sfwd-assignment' ) ) { $learndash_sidebar = astra_get_option( 'learndash-sidebar-layout' ); if ( 'default' !== $learndash_sidebar ) { $layout = $learndash_sidebar; } $supported_post_types = Astra_Posts_Structure_Loader::get_supported_post_types(); $post_type = astra_get_post_type(); if ( in_array( $post_type, $supported_post_types ) ) { $dynamic_sidebar_layout = ''; if ( is_singular() ) { $dynamic_sidebar_layout = astra_get_option( 'single-' . $post_type . '-sidebar-layout' ); } if ( is_archive() ) { $dynamic_sidebar_layout = astra_get_option( 'archive-' . $post_type . '-sidebar-layout' ); } if ( ! empty( $dynamic_sidebar_layout ) && 'default' !== $dynamic_sidebar_layout ) { $layout = $dynamic_sidebar_layout; } } $sidebar = astra_get_option_meta( 'site-sidebar-layout', '', true ); if ( 'default' !== $sidebar && ! empty( $sidebar ) ) { $layout = $sidebar; } } // When Learhdash shortoce is used on the Page. // Applied only to the pages which uses the learndash shortcode. global $learndash_shortcode_used; if ( $learndash_shortcode_used && ! ( is_singular( 'sfwd-courses' ) || is_singular( 'sfwd-lessons' ) || is_singular( 'sfwd-topic' ) || is_singular( 'sfwd-quiz' ) || is_singular( 'sfwd-certificates' ) || is_singular( 'sfwd-assignment' ) ) ) { // Added check if the shortcode is used in the header. if ( ! did_action( 'astra_header' ) ) { // Page Meta Sidebar. $layout = astra_get_option_meta( 'site-sidebar-layout', '', true ); if ( empty( $layout ) ) { // Page Sidebar. $layout = astra_get_option( 'single-page-sidebar-layout' ); // Default Site Sidebar. if ( 'default' == $layout || empty( $layout ) ) { // Get the global sidebar value. // NOTE: Here not used `true` in the below function call. $layout = astra_get_option( 'site-sidebar-layout' ); } } } } return $layout; } /** * LeanDash Container * * @since 1.3.0 * @param string $layout Layout type. * @return string $layout Layout type. */ public function content_layout( $layout ) { if ( is_singular( 'sfwd-courses' ) || is_singular( 'sfwd-lessons' ) || is_singular( 'sfwd-topic' ) || is_singular( 'sfwd-quiz' ) || is_singular( 'sfwd-certificates' ) || is_singular( 'sfwd-assignment' ) ) { $learndash_layout = astra_toggle_layout( 'learndash-ast-content-layout', 'global', false ); if ( 'default' !== $learndash_layout ) { $layout = $learndash_layout; } $supported_post_types = Astra_Posts_Structure_Loader::get_supported_post_types(); $post_type = astra_get_post_type(); if ( in_array( $post_type, $supported_post_types ) ) { $dynamic_sidebar_layout = ''; if ( is_singular() ) { $dynamic_sidebar_layout = astra_toggle_layout( 'single-' . $post_type . '-ast-content-layout', 'single', false ); } if ( is_archive() ) { $dynamic_sidebar_layout = astra_toggle_layout( 'archive-' . $post_type . '-ast-content-layout', 'archive', false ); } if ( ! empty( $dynamic_sidebar_layout ) && 'default' !== $dynamic_sidebar_layout ) { $layout = $dynamic_sidebar_layout; } } $learndash_layout = astra_get_option_meta( 'site-content-layout', '', true ); if ( isset( $learndash_layout ) ) { $learndash_layout = astra_toggle_layout( 'ast-site-content-layout', 'meta', false, $learndash_layout ); } else { $learndash_layout = astra_toggle_layout( 'ast-site-content-layout', 'meta', false ); } if ( 'default' !== $learndash_layout && ! empty( $learndash_layout ) ) { $layout = $learndash_layout; } } return $layout; } /** * LearnDash Static CSS. * * @since 3.3.0 * @return string */ public static function ld_static_css() { $ld_static_css = ' .learndash .completed:before, .learndash .notcompleted:before, #learndash_profile .completed:before, #learndash_profile .notcompleted:before { content: "\e903"; display: inline-block; font-family: "Astra"; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; float: left; text-indent: 0; font-size: 1.5em; line-height: 1; } .learndash .completed:before, #learndash_profile .completed:before { content: "\e901"; font-weight: bold; } .learndash .completed:before, .learndash .notcompleted:before { position: absolute; top: 8px; right: .75em; width: 1.75em; text-align: center; line-height: 1.2; } .learndash .topic-completed span, .learndash .topic-notcompleted span { background: none; padding: 0; } .learndash .topic-completed span:before, .learndash .topic-notcompleted span:before { content: "\e903"; display: inline-block; font-family: "Astra"; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 1.25em; } .learndash .topic-completed span:before { content: "\e901"; font-weight: bold; } body .learndash .completed, body .learndash .notcompleted, body #learndash_profile .completed, body #learndash_profile .notcompleted { line-height: 1.7; background: none; } body .learndash_profile_heading, body #learndash_profile a, body #learndash_profile div { ont-size: 1em; font-weight: inherit; } body #lessons_list > div h4, body #course_list > div h4, body #quiz_list > div h4, body #learndash_lesson_topics_list ul > li > span.topic_item { font-size: 1em; } body #learndash_lessons #lesson_heading, body #learndash_profile .learndash_profile_heading, body #learndash_quizzes #quiz_heading, body #learndash_lesson_topics_list div > strong { padding: 10px .75em; font-weight: 600; text-transform: uppercase; border-radius: 0; } body #learndash_lessons .right, body #learndash_quizzes .right { width: auto; } body .expand_collapse .expand_collapse, body #learndash_profile .expand_collapse { top: -1em; } body .expand_collapse .expand_collapse a, body #learndash_profile .expand_collapse a { font-size: .8em; } body .expand_collapse .list_arrow.collapse, body .expand_collapse .list_arrow.expand, body #learndash_profile .list_arrow.collapse, body #learndash_profile .list_arrow.expand { vertical-align: top; } body .expand_collapse .list_arrow.collapse:before, body .expand_collapse .list_arrow.expand:before, body #learndash_profile .list_arrow.collapse:before, body #learndash_profile .list_arrow.expand:before { content: "\e900"; transform: rotate(270deg); font-weight: bold; } body .expand_collapse .list_arrow.expand:before, body #learndash_profile .list_arrow.expand:before { transform: rotate(0deg); } body #learndash_lessons #lesson_heading, body #learndash_profile .learndash_profile_heading, body #learndash_quizzes #quiz_heading, body #learndash_lesson_topics_list div > strong { padding: 10px .75em; font-weight: 600; text-transform: uppercase; border-radius: 0; } body #learndash_lesson_topics_list ul > li > span.topic_item:hover { background: none; } body #learndash_lesson_topics_list .learndash_topic_dots { order: none; box-shadow: none; } body #learndash_lesson_topics_list .learndash_topic_dots ul { border: 1px solid #e2e2e2; border-top: none; overflow: hidden; } body #learndash_lesson_topics_list .learndash_topic_dots ul > li:last-child a { border-bottom: none; } body #learndash_lesson_topics_list .learndash_topic_dots ul > li.nth-of-type-odd { background: #fbfbfb; } body #learndash_lesson_topics_list .learndash_topic_dots .topic-completed, body #learndash_lesson_topics_list .learndash_topic_dots .topic-notcompleted { padding: 8px .75em; border-bottom: 1px solid #ddd; } body #learndash_lesson_topics_list .learndash_topic_dots .topic-completed span, body #learndash_lesson_topics_list .learndash_topic_dots .topic-notcompleted span { margin: 0 auto; display: inline; } body #learndash_lesson_topics_list ul > li > span.topic_item { font-size: 1em; } .learndash .completed:before, .learndash .notcompleted:before { position: absolute; top: 8px; right: .75em; width: 1.75em; text-align: center; line-height: 1.2; } .learndash .topic-completed span, .learndash .topic-notcompleted span { background: none; padding: 0; } .learndash .topic-completed span:before, .learndash .topic-notcompleted span:before { content: "\e903"; display: inline-block; font-family: "Astra"; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 1.25em; } .learndash .topic-completed span:before { content: "\e901"; font-weight: bold; } .widget_ldcoursenavigation .learndash_topic_widget_list .topic-completed span:before, .widget_ldcoursenavigation .learndash_topic_widget_list .topic-notcompleted span:before { margin-left: 1px; margin-right: 9px; } body .learndash_navigation_lesson_topics_list .topic-notcompleted span, body .learndash_navigation_lesson_topics_list ul .topic-notcompleted span, body .learndash_topic_dots .topic-notcompleted span, body .learndash_topic_dots ul .topic-notcompleted span { margin: 5px 0; } body .learndash_navigation_lesson_topics_list .topic-completed span, body .learndash_navigation_lesson_topics_list .topic-notcompleted span, body .learndash_navigation_lesson_topics_list ul .topic-completed span, body .learndash_navigation_lesson_topics_list ul .topic-notcompleted span, body .learndash_topic_dots .topic-completed span, body .learndash_topic_dots .topic-notcompleted span, body .learndash_topic_dots ul .topic-completed span, body .learndash_topic_dots ul .topic-notcompleted span { padding-left: 0; background: none; margin: 5px 0; } body .learndash_navigation_lesson_topics_list .topic-completed span:before, body .learndash_navigation_lesson_topics_list .topic-notcompleted span:before, body .learndash_navigation_lesson_topics_list ul .topic-completed span:before, body .learndash_navigation_lesson_topics_list ul .topic-notcompleted span:before, body .learndash_topic_dots .topic-completed span:before, body .learndash_topic_dots .topic-notcompleted span:before, body .learndash_topic_dots ul .topic-completed span:before, body .learndash_topic_dots ul .topic-notcompleted span:before { content: "\e903"; display: inline-block; font-family: "Astra"; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 1em; font-weight: normal; margin-right: 10px; } body .learndash_navigation_lesson_topics_list .topic-completed span:before, body .learndash_navigation_lesson_topics_list ul .topic-completed span:before, body .learndash_topic_dots .topic-completed span:before, body .learndash_topic_dots ul .topic-completed span:before { content: "\e901"; font-weight: bold; } .widget_ldcoursenavigation .learndash_topic_widget_list .topic-completed span:before, .widget_ldcoursenavigation .learndash_topic_widget_list .topic-notcompleted span:before { margin-left: 1px; margin-right: 9px; } body .learndash .topic-completed span, body .learndash .topic-notcompleted span { background: none; padding: 0; } #learndash_next_prev_link { margin: 0; padding: 2em 0 0; border-top: 1px solid #eeeeee; overflow: hidden; line-height: 0; } #learndash_next_prev_link a { margin: 2px; display: inline-block; padding: 0 1.5em; height: 2.33333em; line-height: 2.33333em; text-align: center; font-size: 16px; font-size: 1.06666rem; }'; return Astra_Enqueue_Scripts::trim_css( $ld_static_css ); } } endif; if ( apply_filters( 'astra_enable_learndash_integration', true ) ) { /** * Kicking this off by calling 'get_instance()' method */ Astra_LearnDash::get_instance(); } PKWmZ#ʐ Wcompatibility/learndash/customizer/sections/class-astra-learndash-container-configs.phpnu[ ASTRA_THEME_SETTINGS . '[learndash-ast-content-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => 'section-leandash-general', 'default' => astra_get_option( 'learndash-ast-content-layout' ), 'priority' => 5, 'title' => __( 'Container Layout', 'astra' ), 'choices' => array( 'default' => array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'normal-width-container' => array( 'label' => __( 'Normal', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'normal-width-container', false ) : '', ), 'full-width-container' => array( 'label' => __( 'Full Width', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'full-width-container', false ) : '', ), ), 'divider' => array( 'ast_class' => 'ast-bottom-divider ast-bottom-spacing' ), ), /** * Option: LearnDash Content Style Option. */ array( 'name' => ASTRA_THEME_SETTINGS . '[learndash-content-style]', 'type' => 'control', 'control' => 'ast-selector', 'section' => 'section-leandash-general', 'default' => astra_get_option( 'learndash-content-style', 'default' ), 'priority' => 5, 'title' => __( 'Container Style', 'astra' ), 'description' => __( 'Container style will apply only when layout is set to either normal or narrow.', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ), 'renderAs' => 'text', 'responsive' => false, 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Learndash_Container_Configs(); PKWmZmee\compatibility/learndash/customizer/sections/layout/class-astra-learndash-general-configs.phpnu[ ASTRA_THEME_SETTINGS . '[learndash-lesson-serial-number]', 'section' => 'section-leandash-general', 'type' => 'control', 'control' => 'ast-toggle-control', 'default' => astra_get_option( 'learndash-lesson-serial-number' ), 'title' => __( 'Display Serial Number', 'astra' ), 'priority' => 25, 'divider' => array( 'ast_class' => 'ast-top-divider', 'ast_title' => __( 'Course Content Table', 'astra' ), ), ), /** * Option: Differentiate Rows */ array( 'name' => ASTRA_THEME_SETTINGS . '[learndash-differentiate-rows]', 'default' => astra_get_option( 'learndash-differentiate-rows' ), 'type' => 'control', 'control' => 'ast-toggle-control', 'section' => 'section-leandash-general', 'title' => __( 'Differentiate Rows', 'astra' ), 'priority' => 30, ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Learndash_General_Configs(); PKWmZI  Ucompatibility/learndash/customizer/sections/class-astra-learndash-sidebar-configs.phpnu[ ASTRA_THEME_SETTINGS . '[learndash-sidebar-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => 'section-leandash-general', 'default' => astra_get_option( 'learndash-sidebar-layout' ), 'priority' => 5, 'title' => __( 'Sidebar Layout', 'astra' ), 'choices' => array( 'default' => array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'no-sidebar' => array( 'label' => __( 'No Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'no-sidebar', false ) : '', ), 'left-sidebar' => array( 'label' => __( 'Left Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'left-sidebar', false ) : '', ), 'right-sidebar' => array( 'label' => __( 'Right Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'right-sidebar', false ) : '', ), ), 'description' => __( 'Sidebar will only apply when container layout is set to normal.', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), /** * Option: Learndash Sidebar Style. */ array( 'name' => ASTRA_THEME_SETTINGS . '[learndash-sidebar-style]', 'type' => 'control', 'control' => 'ast-selector', 'section' => 'section-leandash-general', 'default' => astra_get_option( 'learndash-sidebar-style', 'default' ), 'priority' => 5, 'title' => __( 'Sidebar Style', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ), 'responsive' => false, 'renderAs' => 'text', 'divider' => array( 'ast_class' => 'ast-top-divider ast-top-spacing' ), ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Learndash_Sidebar_Configs(); PKWmZ.#Xcompatibility/learndash/customizer/class-astra-customizer-register-learndash-section.phpnu[ 'section', 'name' => 'section-learndash', 'priority' => 65, 'title' => __( 'LearnDash', 'astra' ), ), array( 'name' => 'section-leandash-general', 'title' => __( 'General', 'astra' ), 'type' => 'section', 'section' => 'section-learndash', 'priority' => 10, ), ); return array_merge( $configurations, $configs ); } } } new Astra_Customizer_Register_Learndash_Section(); PKWmZN#??'compatibility/class-astra-gutenberg.phpnu[]*wp-block-group(\s|")[^>]*>)(\s*]*wp-block-group__inner-container(\s|")[^>]*>)((.|\S|\s)*)/'; if ( ( isset( $block['blockName'] ) && 'core/group' !== $block['blockName'] ) || 1 === preg_match( $group_with_inner_container_regex, $block_content ) ) { return $block_content; } /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( ( isset( $block['blockName'] ) && 'core/group' === $block['blockName'] ) && ! empty( $block['attrs'] ) && isset( $block['attrs']['layout'] ) && isset( $block['attrs']['layout']['type'] ) && 'flex' === $block['attrs']['layout']['type'] ) { return $block_content; } $replace_regex = '/(^\s*]*wp-block-group[^>]*>)(.*)(<\/div>\s*$)/ms'; $updated_content = preg_replace_callback( $replace_regex, array( $this, 'group_block_replace_regex' ), $block_content ); return $updated_content; } /** * Add Group block custom class when "Inherit default layout" toggle enabled. * * @since 3.8.3 * * @param string $block_content Rendered block content. * @param array $block Block object. * * @return string Filtered block content. */ public function add_inherit_width_group_class( $block_content, $block ) { if ( isset( $block['blockName'] ) && isset( $block['attrs']['layout']['inherit'] ) && $block['attrs']['layout']['inherit'] ) { $block_content = preg_replace( '/' . preg_quote( 'class="', '/' ) . '/', 'class="inherit-container-width ', $block_content, 1 ); } return $block_content; } /** * Update the block content with inner div. * * @since 3.7.1 * * @param mixed $matches block content. * * @return string New block content. */ public function group_block_replace_regex( $matches ) { return $matches[1] . '
' . $matches[2] . '
' . $matches[3]; } /** * Add iframe wrapper for videos. * * @since 4.4.0 * * @param string $block_content Rendered block content. * @param array $block Block object. * * @return string Filtered block content. */ public function add_iframe_wrapper( $block_content, $block ) { $yt_wrapper_with_inner_iframe_regex = '/(ast-oembed-container)/'; if ( isset( $block['blockName'] ) && 'core/embed' !== $block['blockName'] && 'core/youtube' !== $block['blockName'] ) { return $block_content; } /** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( ( ! empty( $block['blockName'] ) && ( 'core/embed' === $block['blockName'] || 'core/youtube' === $block['blockName'] ) ) && ! empty( $block['attrs'] ) && empty( $block['attrs']['url'] ) ) { return $block_content; } if ( 1 === preg_match( $yt_wrapper_with_inner_iframe_regex, $block_content ) ) { return $block_content; } $video_url = ! empty( $block['attrs']['url'] ) ? esc_url( $block['attrs']['url'] ) : ''; $replace_regex = '/(.*?)<\/div>/s'; $updated_content = preg_replace_callback( $replace_regex, /** * Add iframe wrapper for videos. * * @param array $matches Matches. * @return mixed Updated content. */ function ( $matches ) use ( $video_url, $block_content, $block ) { return Astra_After_Setup_Theme::get_instance()->responsive_oembed_wrapper( $matches[1], $video_url, array(), true ); }, $block_content ); return $updated_content; } } /** * Kicking this off by object */ new Astra_Gutenberg(); PKWmZ (compatibility/class-astra-bne-flyout.phpnu[ 'ast-surecart', 'type' => 'section', 'priority' => 68, 'title' => __( 'SureCart', 'astra' ), ), ); $surecart_post_types = array( 'sc_product' => array( 'name' => 'section-posttype-sc_product', 'type' => 'section', 'section' => 'ast-surecart', 'title' => __( 'Products', 'astra' ), 'priority' => 69, ), 'sc_collection' => array( 'name' => 'section-posttype-sc_collection', 'type' => 'section', 'section' => 'ast-surecart', 'title' => __( 'Collections', 'astra' ), 'priority' => 70, ), 'sc_upsell' => array( 'name' => 'section-posttype-sc_upsell', 'type' => 'section', 'section' => 'ast-surecart', 'title' => __( 'Upsells', 'astra' ), 'priority' => 71, ), ); $configurations = array_merge( $configurations, $_configs, array_values( $surecart_post_types ) ); return $configurations; } } } new Astra_Customizer_Register_Surecart_Section(); PKWmZyC;C;/compatibility/surecart/class-astra-surecart.phpnu[shop_page_id = absint( get_option( 'surecart_shop_page_id' ) ); add_action( 'astra_header_after', array( $this, 'astra_surecart_archive_page_banner_support' ) ); add_action( 'astra_entry_top', array( $this, 'revert_surecart_support' ) ); add_filter( 'astra_page_layout', array( $this, 'sc_shop_sidebar_layout' ) ); add_filter( 'astra_get_content_layout', array( $this, 'sc_shop_content_layout' ) ); add_action( 'wp', array( $this, 'remove_navigation_for_sc_product' ) ); // Boxed layout support. add_filter( 'astra_is_content_layout_boxed', array( $this, 'sc_shop_content_boxed_layout' ) ); add_filter( 'astra_is_sidebar_layout_boxed', array( $this, 'sc_shop_sidebar_boxed_layout' ) ); add_action( 'customize_register', array( $this, 'customize_register' ), 2 ); add_filter( 'astra_theme_defaults', array( $this, 'astra_surecart_default_options' ) ); add_filter( 'astra_archive_post_title', array( $this, 'customize_surecart_archive_title_area' ), 10, 2 ); add_filter( 'astra_single_post_title', array( $this, 'customize_surecart_single_title_area' ), 10, 2 ); add_action( 'admin_bar_menu', array( $this, 'customize_admin_bar' ), 999 ); } /** * Register Customizer sections and panel for SureCart. * * @since 4.6.13 * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function customize_register( $wp_customize ) { // @codingStandardsIgnoreStart WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound /** * Register Sections & Panels */ require ASTRA_THEME_DIR . 'inc/compatibility/surecart/customizer/class-astra-customizer-register-surecart-section.php'; } /** * Check is SureCart Shop Page. * * @return bool True if SureCart Shop Page. * @since 4.4.0 */ public function astra_is_surecart_shop_page() { if ( ! is_customize_preview() && ! is_null( $this->shop_page_status ) ) { return $this->shop_page_status; } $this->shop_page_status = false; $supported_post_types = Astra_Posts_Structure_Loader::get_supported_post_types(); if ( ! in_array( $this->post_type, $supported_post_types ) ) { $this->shop_page_status = false; } if ( ! is_page() || ! $this->shop_page_id ) { $this->shop_page_status = false; } $page_id = absint( astra_get_post_id() ); if ( $page_id === $this->shop_page_id ) { $this->shop_page_status = true; } return $this->shop_page_status; } /** * SureCart Shop Sidebar Layout * * @param string $sidebar_layout Layout type. * @return string $sidebar_layout Layout type. * @since 4.4.0 */ public function sc_shop_sidebar_layout( $sidebar_layout ) { if ( $this->astra_is_surecart_shop_page() ) { $sc_shop_sidebar = astra_get_option( 'archive-' . $this->post_type . '-sidebar-layout', 'default' ); if ( 'default' !== $sc_shop_sidebar && ! empty( $sc_shop_sidebar ) ) { $sidebar_layout = $sc_shop_sidebar; } } return apply_filters( 'astra_get_surecart_shop_sidebar_layout', $sidebar_layout ); } /** * SureCart Shop Container * * @param string $content_layout Layout type. * @return string $content_layout Layout type. * @since 4.4.0 */ public function sc_shop_content_layout( $content_layout ) { if ( $this->astra_is_surecart_shop_page() ) { $sc_shop_layout = astra_toggle_layout( 'archive-' . $this->post_type . '-ast-content-layout', 'single', false ); if ( 'default' !== $sc_shop_layout && ! empty( $sc_shop_layout ) ) { $content_layout = $sc_shop_layout; } } return apply_filters( 'astra_get_store_content_layout', $content_layout ); } /** * SureCart Shop Container Style * * @param string $is_style_boxed Layout style. * @return string $is_style_boxed Layout style. * @since 4.4.0 */ public function sc_shop_content_boxed_layout( $is_style_boxed ) { if ( $this->astra_is_surecart_shop_page() ) { $sc_shop_layout_style = astra_get_option( 'archive-' . $this->post_type . '-content-style', 'default' ); if ( 'boxed' === $sc_shop_layout_style ) { $is_style_boxed = true; } } return apply_filters( 'astra_get_store_layout_style', $is_style_boxed ); } /** * SureCart Shop Sidebar Style * * @param string $is_style_boxed Layout style. * @return string $is_style_boxed Layout style. * @since 4.4.0 */ public function sc_shop_sidebar_boxed_layout( $is_style_boxed ) { if ( $this->astra_is_surecart_shop_page() ) { $sc_shop_layout_style = astra_get_option( 'archive-' . $this->post_type . '-sidebar-style', 'default' ); if ( 'boxed' === $sc_shop_layout_style ) { $is_style_boxed = true; } } return apply_filters( 'astra_get_store_sidebar_style', $is_style_boxed ); } /** * SureCart Archive Banner Support. * Making 'Shop Page' as archive of SureCart Products. * * @since 4.4.0 */ public function astra_surecart_archive_page_banner_support() { if ( false === $this->astra_is_surecart_shop_page() ) { return; } $page_id = absint( astra_get_post_id() ); $visibility = get_post_meta( $page_id, 'ast-banner-title-visibility', true ); $visibility = apply_filters( 'astra_banner_title_area_visibility', $visibility ); if ( 'disabled' === $visibility ) { $this->disable_page_loaded_banner_area(); return; } $banner_layout = astra_get_option( 'ast-dynamic-archive-sc_product-layout', 'layout-1' ); add_filter( 'astra_banner_elements_structure', array( $this, 'update_astra_banner_elements_structure' ) ); add_filter( 'astra_banner_elements_post_type', array( $this, 'update_astra_banner_elements_post_type' ) ); add_filter( 'astra_banner_elements_prefix', array( $this, 'update_astra_banner_elements_prefix' ) ); add_filter( 'the_title', array( $this, 'update_the_title' ), 10, 2 ); $title_area_enabled = astra_get_option( 'ast-archive-sc_product-title' ); if ( $title_area_enabled ) { if ( 'layout-2' === $banner_layout ) { $astra_banner_hook = apply_filters( 'astra_banner_hook', 'astra_content_before' ); add_action( $astra_banner_hook, array( $this, 'astra_surecart_hero_section' ), 20 ); } else { add_filter( 'astra_single_layout_one_banner_visibility', '__return_false' ); add_filter( 'astra_apply_hero_header_banner', '__return_false' ); add_action( 'astra_primary_content_top', array( $this, 'astra_force_render_banner_layout_1' ) ); } } } /** * Enable layout 1 for some cases. Ex. SureCart Product. * * @since 4.4.0 * @return void */ public function astra_force_render_banner_layout_1() { add_filter( 'astra_remove_entry_header_content', '__return_false' ); ?>
$this->post_type ); do_action( 'astra_before_archive_' . $this->post_type . '_banner_content' ); get_template_part( 'template-parts/archive', 'banner', $args ); do_action( 'astra_after_archive_' . $this->post_type . '_banner_content' ); $this->disable_page_loaded_banner_area(); } /** * SureCart Section banner element structure. * * @param array $structure Elements structure. * @since 4.4.0 */ public function update_astra_banner_elements_structure( $structure ) { return astra_get_option( 'ast-dynamic-archive-' . $this->post_type . '-structure', array( 'ast-dynamic-archive-' . $this->post_type . '-title', 'ast-dynamic-archive-' . $this->post_type . '-description' ) ); } /** * SureCart Section banner reference post type. * * @param string $post_type Post type. * @since 4.4.0 */ public function update_astra_banner_elements_post_type( $post_type ) { return $this->post_type; } /** * SureCart Section banner prefix. * * @param string $prefix Prefix. * @since 4.4.0 */ public function update_astra_banner_elements_prefix( $prefix ) { return 'archive'; } /** * Support custom title & description support for archive. * * @param string $title Default archive title. * @param int $post_id Post ID. * @since 4.4.0 * @return string */ public function update_the_title( $title, $post_id ) { if ( $this->shop_page_id !== $post_id ) { return $title; } $custom_title = astra_get_option( 'ast-dynamic-archive-' . $this->post_type . '-custom-title', '' ); $title = ! empty( $custom_title ) ? $custom_title : $title; return $title; } /** * Disable Astra's next page's banner as we already loaded. * * @since 4.4.0 */ public function disable_page_loaded_banner_area() { add_filter( 'astra_apply_hero_header_banner', '__return_false' ); add_filter( 'astra_remove_entry_header_content', '__return_true' ); add_filter( 'astra_single_layout_one_banner_visibility', '__return_false' ); } /** * Removed Astra's navigation markup from SureCart single product page. * * @since 4.8.2 */ public function remove_navigation_for_sc_product() { if ( is_singular( 'sc_product' ) ) { remove_action( 'astra_entry_after', 'astra_single_post_navigation_markup' ); } } /** * Revert SureCart Support, after banner loaded. * * @since 4.4.0 */ public function revert_surecart_support() { if ( false === $this->astra_is_surecart_shop_page() ) { return; } remove_filter( 'astra_is_content_layout_boxed', array( $this, 'sc_shop_content_boxed_layout' ) ); remove_filter( 'astra_is_sidebar_layout_boxed', array( $this, 'sc_shop_sidebar_boxed_layout' ) ); remove_filter( 'astra_banner_elements_structure', array( $this, 'update_astra_banner_elements_structure' ) ); remove_filter( 'astra_banner_elements_post_type', array( $this, 'update_astra_banner_elements_post_type' ) ); remove_filter( 'astra_banner_elements_prefix', array( $this, 'update_astra_banner_elements_prefix' ) ); remove_filter( 'the_title', array( $this, 'update_the_title' ), 10 ); } /** * Astra SureCart default options. * * @param array $defaults Array of Astra's options. * @return array Filtered options array. * * @since 4.7.3 */ public function astra_surecart_default_options( $defaults ) { $surecart_post_types = array( 'sc_product', 'sc_collection', 'sc_upsell' ); // Remove the default left and right padding to make it align properly. $surecart_banner_padding = Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-padding' ); if ( isset( $surecart_banner_padding['desktop']['right'] ) ) { $surecart_banner_padding['desktop']['right'] = 0; } if ( isset( $surecart_banner_padding['desktop']['left'] ) ) { $surecart_banner_padding['desktop']['left'] = 0; } foreach ( $surecart_post_types as $post_type ) { $defaults['ast-archive-' . $post_type . '-title'] = false; $defaults['ast-single-' . $post_type . '-title'] = false; $defaults['single-' . $post_type . '-ast-content-layout'] = 'normal-width-container'; $defaults['single-' . $post_type . '-sidebar-layout'] = 'no-sidebar'; $defaults['ast-dynamic-archive-' . $post_type . '-banner-padding'] = $surecart_banner_padding; } return $defaults; } /** * Method to customize SureCart single title area. * * @param string $title Title Area label. * @param string $post_type Current post type. * @param boolean $singular Whether singular or plural. * * @since 4.7.3 * @return string Returns customized label for title area. */ public function customize_surecart_title_area( $title, $post_type, $singular = false ) { $surecart_titles = array( 'sc_product' => array( 'single' => __( 'Product', 'astra' ), 'archive' => __( 'Products', 'astra' ), ), 'sc_collection' => array( 'single' => __( 'Collection', 'astra' ), 'archive' => __( 'Collections', 'astra' ), ), 'sc_upsell' => array( 'single' => __( 'Upsell', 'astra' ), 'archive' => __( 'Upsells', 'astra' ), ), ); $type = $singular ? 'single' : 'archive'; // Check for SureCart's post types and customize the title. if ( isset( $surecart_titles[ $post_type ][ $type ] ) ) { $title_area_suffix = ' ' . __( 'Title Area', 'astra' ); return $surecart_titles[ $post_type ][ $type ] . $title_area_suffix; } return $title; } /** * Method to customize SureCart archive title area. * * @param string $title Title Area label. * @param string $post_type Current post type. * * @since 4.7.3 * @return string Returns customized label for archive title area. */ public function customize_surecart_archive_title_area( $title, $post_type ) { return $this->customize_surecart_title_area( $title, $post_type ); } /** * Method to customize SureCart single title area. * * @param string $title Title Area label. * @param string $post_type Current post type. * * @since 4.7.3 * @return string Returns customized label for single title area. */ public function customize_surecart_single_title_area( $title, $post_type ) { return $this->customize_surecart_title_area( $title, $post_type, true ); } /** * Method to add autoFocus query parameter to customize link. * * @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance. * * @since 4.7.3 * @return void */ public function customize_admin_bar( $wp_admin_bar ) { if ( is_admin() || ! is_admin_bar_showing() ) { return; } // Show only when the user is a member of this site, or they're a super admin. if ( ! is_user_member_of_blog() && ! is_super_admin() ) { return; } // Get the customize node by ID. $node = $wp_admin_bar->get_node( 'customize' ); if ( $node ) { $post_type = get_post_type(); $page = is_singular() ? 'single' : 'archive'; // If the current page is SureCart shop page. if ( 'page' === $post_type && get_the_ID() == get_option( 'surecart_shop_page_id' ) ) { $page = 'archive'; $post_type = 'sc_product'; } // Check for surecart post type. if ( in_array( $post_type, array( 'sc_product', 'sc_collection', 'sc_upsell' ) ) ) { // Add custom parameter to the URL. $node->href = add_query_arg( 'autofocus[section]', "{$page}-posttype-{$post_type}", $node->href ); // Update the node with the modified URL. $wp_admin_bar->add_node( (array) $node ); } } } } /** * Kicking this off by object. * * @since 4.4.0 */ new Astra_SureCart(); PKWmZl`Г'compatibility/class-astra-yoast-seo.phpnu[is_elementor_editor() && class_exists( 'WooCommerce' ) && astra_check_elementor_pro_3_5_version() ) { add_action( 'init', array( $this, 'update_woocommerce_checkout' ) ); } add_filter( 'astra_shop_add_to_cart_js_localize', array( $this, 'astra_shop_add_to_cart_js_localize' ), 10, 1 ); } /** * Append Elementor preview status. * * @param Array $localize_data * * @since 4.1.6 * @return Array */ public function astra_shop_add_to_cart_js_localize( $localize_data ) { $elementor_preview_active = false; if ( class_exists( 'Elementor\Plugin' ) ) { $elementor_preview_active = \Elementor\Plugin::$instance->preview->is_preview_mode(); } $localize_data['elementor_preview_active'] = $elementor_preview_active; return $localize_data; } /** * Check if Elementor Editor is open. * * @since 3.8.0 * * @return boolean true iF Elementor Editor is loaded, false If Elementor Editor is not loaded. */ public function is_elementor_editor() { if ( ( isset( $_REQUEST['action'] ) && 'elementor' == $_REQUEST['action'] ) || isset( $_REQUEST['elementor-preview'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended return true; } return false; } /** * Remove actions of WooCommerce for shipping form fields, as it needs only in 'col-1'. * * Case: Theme's 'woocommerce_checkout' action conflicting with Elementor Pro's checkout widget. On frontend billing + shipping details wrapper comes under col-1 div because of theme's above action. But in Elementor editor, billing + shipping wrappers comes in two different cols, i.e. col-1 & col-2. Due to this, styling looks inappropriate in editor only. * * @since 3.8.0 * @return void */ public function update_woocommerce_checkout() { if ( ! apply_filters( 'astra_woo_shop_product_structure_override', false ) ) { add_action( 'woocommerce_checkout_billing', array( WC()->checkout(), 'checkout_form_shipping' ) ); } remove_action( 'woocommerce_checkout_shipping', array( WC()->checkout(), 'checkout_form_shipping' ) ); } /** * Compatibility CSS for Elementor Pro's WooCommerce widgets releasing in their v3.6.0 * * @param string $css_output CSS stylesheet. * @return string $css_output CSS stylesheet. * * @since 3.7.5 */ public function elementor_wc_widgets_compatibility_styles( $css_output ) { if ( ! astra_check_elementor_pro_3_5_version() ) { return $css_output; } $woo_widgets_desktop_css = array( '.woocommerce.woocommerce-checkout .elementor-widget-woocommerce-checkout-page #customer_details.col2-set, .woocommerce-page.woocommerce-checkout .elementor-widget-woocommerce-checkout-page #customer_details.col2-set' => array( 'width' => '100%', ), '.woocommerce.woocommerce-checkout .elementor-widget-woocommerce-checkout-page #order_review, .woocommerce.woocommerce-checkout .elementor-widget-woocommerce-checkout-page #order_review_heading, .woocommerce-page.woocommerce-checkout .elementor-widget-woocommerce-checkout-page #order_review, .woocommerce-page.woocommerce-checkout .elementor-widget-woocommerce-checkout-page #order_review_heading' => array( 'width' => '100%', 'float' => 'inherit', ), '.elementor-widget-woocommerce-checkout-page .select2-container .select2-selection--single, .elementor-widget-woocommerce-cart .select2-container .select2-selection--single' => array( 'padding' => '0', ), '.elementor-widget-woocommerce-checkout-page .woocommerce form .woocommerce-additional-fields, .elementor-widget-woocommerce-checkout-page .woocommerce form .shipping_address, .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation-link, .elementor-widget-woocommerce-cart .woocommerce a.remove' => array( 'border' => 'none', ), '.elementor-widget-woocommerce-cart .cart-collaterals .cart_totals > h2' => array( 'background-color' => 'inherit', 'border-bottom' => '0px', 'margin' => '0px', ), '.elementor-widget-woocommerce-cart .cart-collaterals .cart_totals' => array( 'padding' => '0', 'border-color' => 'inherit', 'border-radius' => '0', 'margin-bottom' => '0px', 'border-width' => '0px', ), '.elementor-widget-woocommerce-cart .woocommerce-cart-form .e-apply-coupon' => array( 'line-height' => 'initial', ), '.elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content .woocommerce-Address-title h3' => array( 'margin-bottom' => 'var(--myaccount-section-title-spacing, 0px)', ), '.elementor-widget-woocommerce-my-account .woocommerce-Addresses .woocommerce-Address-title, .elementor-widget-woocommerce-my-account table.shop_table thead, .elementor-widget-woocommerce-my-account .woocommerce-page table.shop_table thead, .elementor-widget-woocommerce-cart table.shop_table thead' => array( 'background' => 'inherit', ), '.elementor-widget-woocommerce-cart .e-apply-coupon, .elementor-widget-woocommerce-cart #coupon_code, .elementor-widget-woocommerce-checkout-page .e-apply-coupon, .elementor-widget-woocommerce-checkout-page #coupon_code' => array( 'height' => '100%', ), '.elementor-widget-woocommerce-cart td.product-name dl.variation dt' => array( 'font-weight' => 'inherit', ), '.elementor-element.elementor-widget-woocommerce-checkout-page .e-checkout__container #customer_details .col-1' => array( 'margin-bottom' => '0', ), ); $css_output .= astra_parse_css( $woo_widgets_desktop_css ); return $css_output; } /** * Register Locations * * @since 1.2.7 * @param object $manager Location manager. * @return void */ public function register_locations( $manager ) { $manager->register_all_core_location(); } /** * Template Parts Support * * @since 1.2.7 * @return void */ public function do_template_parts() { // Is Archive? $did_location = Module::instance()->get_locations_manager()->do_location( 'archive' ); if ( $did_location ) { // Search and default. remove_action( 'astra_template_parts_content', array( \Astra_Loop::get_instance(), 'template_parts_search' ) );// phpcs:ignore PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound remove_action( 'astra_template_parts_content', array( \Astra_Loop::get_instance(), 'template_parts_default' ) );// phpcs:ignore PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound // Remove pagination. remove_action( 'astra_pagination', 'astra_number_pagination' ); remove_action( 'astra_entry_after', 'astra_single_post_navigation_markup' ); // Content. remove_action( 'astra_entry_content_single', 'astra_entry_content_single_template' ); } // IS Single? $did_location = Module::instance()->get_locations_manager()->do_location( 'single' ); if ( $did_location ) { // @codingStandardsIgnoreStart PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound remove_action( 'astra_page_template_parts_content', array( \Astra_Loop::get_instance(), 'template_parts_page' ) ); remove_action( 'astra_template_parts_content', array( \Astra_Loop::get_instance(), 'template_parts_post' ) ); remove_action( 'astra_template_parts_content', array( \Astra_Loop::get_instance(), 'template_parts_comments' ), 15 ); remove_action( 'astra_page_template_parts_content', array( \Astra_Loop::get_instance(), 'template_parts_comments' ), 15 ); // @codingStandardsIgnoreEnd PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound } } /** * Override 404 page * * @since 1.2.7 * @return void */ public function do_template_part_404() { if ( is_404() ) { // Is Single? $did_location = Module::instance()->get_locations_manager()->do_location( 'single' ); if ( $did_location ) { remove_action( 'astra_entry_content_404_page', 'astra_entry_content_404_page_template' ); } } } /** * Override sidebar, title etc with post meta * * @since 1.2.7 * @return void */ public function override_meta() { // don't override meta for `elementor_library` post type. if ( 'elementor_library' == get_post_type() ) { return; } // Override post meta for single pages. $documents_single = Module::instance()->get_conditions_manager()->get_documents_for_location( 'single' ); if ( $documents_single ) { foreach ( $documents_single as $document ) { $this->override_with_post_meta( $document->get_post()->ID ); } } // Override post meta for archive pages. $documents_archive = Module::instance()->get_conditions_manager()->get_documents_for_location( 'archive' ); if ( $documents_archive ) { foreach ( $documents_archive as $document ) { $this->override_with_post_meta( $document->get_post()->ID ); } } } /** * Override sidebar, title etc with post meta * * @since 1.2.7 * @param integer $post_id Post ID. * @return void */ public function override_with_post_meta( $post_id = 0 ) { // Override! Page Title. $title = get_post_meta( $post_id, 'site-post-title', true ); if ( 'disabled' === $title ) { // Archive page. add_filter( 'astra_the_title_enabled', '__return_false', 99 ); // Single page. add_filter( 'astra_the_title_enabled', '__return_false' ); remove_action( 'astra_archive_header', 'astra_archive_page_info' ); } // Override! Sidebar. $sidebar = get_post_meta( $post_id, 'site-sidebar-layout', true ); if ( '' === $sidebar ) { $sidebar = 'default'; } // @codingStandardsIgnoreStart PHPCompatibility.FunctionDeclarations.NewClosure.Found if ( 'default' !== $sidebar ) { add_filter( 'astra_page_layout', function( $page_layout ) use ( $sidebar ) { return $sidebar; } ); } // Override! Content Layout. $content_layout = get_post_meta( $post_id, 'site-content-layout', true ); if ( '' === $content_layout ) { $content_layout = 'default'; } if ( 'default' !== $content_layout ) { add_filter( 'astra_get_content_layout', function( $layout ) use ( $content_layout ) { return $content_layout; } ); } // Override! Footer Bar. $footer_layout = get_post_meta( $post_id, 'footer-sml-layout', true ); if ( '' === $footer_layout ) { $footer_layout = 'default'; } if ( 'disabled' === $footer_layout ) { add_filter( 'astra_footer_sml_layout', function( $is_footer ) { return 'disabled'; } ); } // Override! Footer Widgets. $footer_widgets = get_post_meta( $post_id, 'footer-adv-display', true ); if ( '' === $footer_widgets ) { $footer_widgets = 'default'; } if ( 'disabled' === $footer_widgets ) { add_filter( 'astra_advanced_footer_disable', function() { return true; } ); } // Override! Header. $main_header_display = get_post_meta( $post_id, 'ast-main-header-display', true ); if ( '' === $main_header_display ) { $main_header_display = 'default'; } if ( 'disabled' === $main_header_display ) { remove_action( 'astra_masthead', 'astra_masthead_primary_template' ); add_filter( 'astra_main_header_display', function( $display_header ) { return 'disabled'; } ); } // @codingStandardsIgnoreEnd PHPCompatibility.FunctionDeclarations.NewClosure.Found } /** * Header Support * * @since 1.2.7 * @return void */ public function do_header() { $did_location = Module::instance()->get_locations_manager()->do_location( 'header' ); if ( $did_location ) { remove_action( 'astra_header', 'astra_header_markup' ); if ( true === \Astra_Builder_Helper::$is_header_footer_builder_active ) { // phpcs:ignore PHPCompatibility.Keywords.NewKeywords.t_namespaceFound, PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound remove_action( 'astra_header', array( \Astra_Builder_Header::get_instance(), 'header_builder_markup' ) ); // phpcs:ignore PHPCompatibility.Keywords.NewKeywords.t_namespaceFound, PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound } } } /** * Footer Support * * @since 1.2.7 * @return void */ public function do_footer() { $did_location = Module::instance()->get_locations_manager()->do_location( 'footer' ); if ( $did_location ) { remove_action( 'astra_footer', 'astra_footer_markup' ); if ( true === \Astra_Builder_Helper::$is_header_footer_builder_active ) { // phpcs:ignore PHPCompatibility.Keywords.NewKeywords.t_namespaceFound, PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound remove_action( 'astra_footer', array( \Astra_Builder_Footer::get_instance(), 'footer_markup' ) ); // phpcs:ignore PHPCompatibility.Keywords.NewKeywords.t_namespaceFound, PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound } } } /** * Remove theme post's default classes when Elementor's template builder is activated. * * @param array $classes Post Classes. * @return array * @since 1.4.9 */ public function render_post_class( $classes ) { $post_class = array( 'elementor-post elementor-grid-item', 'elementor-portfolio-item' ); $result = array_intersect( $classes, $post_class ); if ( count( $result ) > 0 ) { $classes = array_diff( $classes, array( // Astra common grid. 'ast-col-xs-1', 'ast-col-xs-2', 'ast-col-xs-3', 'ast-col-xs-4', 'ast-col-xs-5', 'ast-col-xs-6', 'ast-col-xs-7', 'ast-col-xs-8', 'ast-col-xs-9', 'ast-col-xs-10', 'ast-col-xs-11', 'ast-col-xs-12', 'ast-col-sm-1', 'ast-col-sm-2', 'ast-col-sm-3', 'ast-col-sm-4', 'ast-col-sm-5', 'ast-col-sm-6', 'ast-col-sm-7', 'ast-col-sm-8', 'ast-col-sm-9', 'ast-col-sm-10', 'ast-col-sm-11', 'ast-col-sm-12', 'ast-col-md-1', 'ast-col-md-2', 'ast-col-md-3', 'ast-col-md-4', 'ast-col-md-5', 'ast-col-md-6', 'ast-col-md-7', 'ast-col-md-8', 'ast-col-md-9', 'ast-col-md-10', 'ast-col-md-11', 'ast-col-md-12', 'ast-col-lg-1', 'ast-col-lg-2', 'ast-col-lg-3', 'ast-col-lg-4', 'ast-col-lg-5', 'ast-col-lg-6', 'ast-col-lg-7', 'ast-col-lg-8', 'ast-col-lg-9', 'ast-col-lg-10', 'ast-col-lg-11', 'ast-col-lg-12', 'ast-col-xl-1', 'ast-col-xl-2', 'ast-col-xl-3', 'ast-col-xl-4', 'ast-col-xl-5', 'ast-col-xl-6', 'ast-col-xl-7', 'ast-col-xl-8', 'ast-col-xl-9', 'ast-col-xl-10', 'ast-col-xl-11', 'ast-col-xl-12', // Astra Blog / Single Post. 'ast-article-post', 'ast-article-single', 'ast-separate-posts', 'remove-featured-img-padding', 'ast-featured-post', // Astra Woocommerce. 'ast-product-gallery-layout-vertical', 'ast-product-gallery-layout-horizontal', 'ast-product-gallery-with-no-image', 'ast-product-tabs-layout-vertical', 'ast-product-tabs-layout-horizontal', 'ast-qv-disabled', 'ast-qv-on-image', 'ast-qv-on-image-click', 'ast-qv-after-summary', 'astra-woo-hover-swap', 'box-shadow-0', 'box-shadow-0-hover', 'box-shadow-1', 'box-shadow-1-hover', 'box-shadow-2', 'box-shadow-2-hover', 'box-shadow-3', 'box-shadow-3-hover', 'box-shadow-4', 'box-shadow-4-hover', 'box-shadow-5', 'box-shadow-5-hover', ) ); } return $classes; } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Elementor_Pro::get_instance(); endif; PKZmZoM=KFF+compatibility/class-astra-gravity-forms.phpnu[ 'main', 'render' => array( $this, 'infinite_scroll_render' ), 'footer' => 'page', ) ); } // end function jetpack_setup /** * Custom render function for Infinite Scroll. */ public function infinite_scroll_render() { while ( have_posts() ) { the_post(); get_template_part( 'template-parts/content', astra_get_post_format() ); } } // end function infinite_scroll_render } endif; /** * Kicking this off by calling 'get_instance()' method */ Astra_Jetpack::get_instance(); PK\mZ)y)y5compatibility/woocommerce/class-astra-woocommerce.phpnu[=' ) ) { add_filter( 'woocommerce_add_to_cart_fragments', array( $this, 'cart_link_fragment' ), 11 ); } else { add_filter( 'add_to_cart_fragments', array( $this, 'cart_link_fragment' ), 11 ); } add_filter( 'woocommerce_subcategory_count_html', array( $this, 'subcategory_count_markup' ), 10, 2 ); add_action( 'customize_register', array( $this, 'customize_register' ), 2 ); add_filter( 'woocommerce_get_stock_html', 'astra_woo_product_in_stock', 10, 2 ); add_filter( 'astra_schema_body', array( $this, 'remove_body_schema' ) ); // Header Cart Icon. add_action( 'astra_woo_header_cart_icons_before', array( $this, 'header_cart_icon_markup' ) ); add_action( 'astra_cart_in_menu_class', array( $this, 'header_cart_icon_class' ), 99 ); // WooCommerce Store Notice. add_filter( 'woocommerce_demo_store', array( $this, 'astra_woocommerce_update_store_notice_atts' ) ); add_filter( 'astra_dynamic_theme_css', array( $this, 'astra_woocommerce_store_dynamic_css' ) ); // Single Product Free shipping. add_action( 'astra_woo_single_price_after', array( $this, 'woocommerce_shipping_text' ) ); // Register Dynamic Sidebars. if ( is_customize_preview() ) { add_action( 'widgets_init', array( $this, 'store_widgets_dynamic' ), 15 ); add_action( 'wp', array( $this, 'store_widgets_dynamic' ), 15 ); } else { add_action( 'widgets_init', array( $this, 'store_widgets_dynamic' ), 15 ); } add_filter( 'woocommerce_cart_item_remove_link', array( $this, 'change_cart_close_icon' ), 10, 2 ); add_action( 'wp', array( $this, 'woocommerce_proceed_to_checkout_button' ) ); if ( self::load_theme_side_woocommerce_strcture() ) { // Remove Default actions. remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); /* Add single product content */ add_action( 'woocommerce_single_product_summary', array( $this, 'single_product_content_structure' ), 10 ); } add_action( 'admin_bar_menu', array( $this, 'astra_update_customize_admin_bar_link' ), 45 ); if ( self::load_theme_side_woocommerce_strcture() ) { // Sticky add to cart. add_action( 'wp_footer', array( $this, 'single_product_sticky_add_to_cart' ) ); add_filter( 'post_class', array( $this, 'post_class' ) ); } if ( ! defined( 'ASTRA_EXT_VER' ) || ( defined( 'ASTRA_EXT_VER' ) && ! Astra_Ext_Extension::is_active( 'woocommerce' ) ) ) { add_filter( 'woocommerce_sale_flash', array( $this, 'sale_flash' ), 10, 3 ); add_action( 'woocommerce_after_shop_loop_item', array( $this, 'add_modern_triggers_on_image' ), 5 ); } add_filter( 'render_block_woocommerce/active-filters', array( $this, 'add_active_filter_widget_class' ), 10, 2 ); add_filter( 'option_woocommerce_enable_ajax_add_to_cart', array( $this, 'option_woocommerce_enable_ajax_add_to_cart' ) ); add_filter( 'option_woocommerce_cart_redirect_after_add', array( $this, 'option_woocommerce_cart_redirect_after_add' ) ); } /** * Add active filter widget class when "chip" toggle enabled. * * @since 3.9.4 * * @param string $block_content Rendered block content. * @param array $block Block object. * * @return string Active filter block content. */ public function add_active_filter_widget_class( $block_content, $block ) { if ( isset( $block['blockName'] ) && isset( $block['attrs']['displayStyle'] ) && 'chips' === $block['attrs']['displayStyle'] ) { $block_content = preg_replace( '/' . preg_quote( 'class="', '/' ) . '/', 'class="ast-woo-active-filter-widget ', $block_content, 1 ); } return $block_content; } /** * As WooCommerce-Astra pro options moved to theme, decide here to load from theme's end after 3.9.2 version. * * @since 3.9.2 * @return bool true|false. */ public static function load_theme_side_woocommerce_strcture() { return ! defined( 'ASTRA_EXT_VER' ) || astra_addon_check_version( '3.9.2', '>=' ); } /** * Post Class * * @param array $classes Default argument array. * @return array */ public function post_class( $classes ) { if ( is_shop() || is_product_taxonomy() || ( post_type_exists( 'product' ) && 'product' === get_post_type() ) ) { // Shop page summary box alignment. $shop_product_alignment = astra_get_option( 'shop-product-align-responsive' ); $desktop_alignment = ( isset( $shop_product_alignment['desktop'] ) ) ? $shop_product_alignment['desktop'] : ''; $tablet_alignment = ( isset( $shop_product_alignment['tablet'] ) ) ? $shop_product_alignment['tablet'] : ''; $mobile_alignment = ( isset( $shop_product_alignment['mobile'] ) ) ? $shop_product_alignment['mobile'] : ''; $classes[] = 'desktop-' . esc_attr( $desktop_alignment ); $classes[] = 'tablet-' . esc_attr( $tablet_alignment ); $classes[] = 'mobile-' . esc_attr( $mobile_alignment ); } return $classes; } /** * Modern Design Add to cart Markup * * @since 3.9.2 * @return mixed HTML markup. */ public function modern_add_to_cart() { global $product; $markup = ''; // Product link markup. $header_woo_cart = astra_get_option( 'woo-header-cart-icon', 'default' ); $cart_icon = ( true === Astra_Icons::is_svg_icons() ) ? Astra_Icons::get_icons( 'default' === $header_woo_cart ? 'bag' : $header_woo_cart ) : Astra_Builder_UI_Controller::fetch_svg_icon( 'shopping-' . $header_woo_cart, false ); $classes = implode( ' ', array_filter( array( 'ast-on-card-button', 'ast-select-options-trigger', 'product_type_' . $product->get_type(), $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '', $product->supports( 'ajax_add_to_cart' ) && $product->is_purchasable() && $product->is_in_stock() ? 'ajax_add_to_cart' : '', ) ) ); $attributes = array( 'data-product_id' => $product->get_id(), 'data-product_sku' => $product->get_sku(), 'aria-label' => $product->add_to_cart_description(), 'rel' => 'nofollow', ); $markup .= sprintf( ' %s %s ', esc_url( $product->add_to_cart_url() ), esc_attr( 1 ), esc_attr( $classes ), wc_implode_html_attributes( $attributes ), esc_html( $product->add_to_cart_text() ), $cart_icon ); return $markup; } /** * Modern shop page's triggers on product image. * * @since 3.9.2 */ public function add_modern_triggers_on_image() { /** @psalm-suppress UndefinedFunction */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( astra_is_shop_page_modern_style() ) { /** @psalm-suppress InvalidGlobal */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort global $product; $markup = ''; // Sale bubble markup. if ( $product->is_on_sale() ) { $markup .= $this->get_sale_flash_markup( 'default', $product ); } $markup .= $this->modern_add_to_cart(); /** @psalm-suppress TooManyArguments */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $html = apply_filters( 'astra_addon_shop_cards_buttons_html', $markup, $product ); /** @psalm-suppress TooManyArguments */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort echo do_shortcode( $html ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } /** * Astra Sale flash markup. * * @param string $sale_notification sale bubble type. * @param string $product Product. * @since 3.9.2 * @return mixed HTML markup. */ public function get_sale_flash_markup( $sale_notification, $product ) { $text = __( 'Sale!', 'astra' ); // Default text. // CSS classes. $classes = array(); /** @psalm-suppress UndefinedFunction */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $classes[] = ( astra_is_shop_page_modern_style() ) ? 'ast-on-card-button ast-onsale-card' : 'onsale'; /** @psalm-suppress UndefinedFunction */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $classes = implode( ' ', $classes ); // Generate markup. return ' $classes, 'data-sale' => array(), 'data-notification' => 'default', ) ) . '>' . esc_html( $text ) . ''; } /** * Sale bubble flash * * @param mixed $markup HTML markup of the the sale bubble / flash. * @param string $post Post. * @param string $product Product. * @since 3.9.2 * @return string bubble markup. */ public function sale_flash( $markup, $post, $product ) { /** @psalm-suppress UndefinedFunction */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( ( ! is_singular( 'product' ) && astra_is_shop_page_modern_style() ) ) { /** @psalm-suppress UndefinedFunction */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort return ''; } return $this->get_sale_flash_markup( 'default', $product ); } /** * Change cart close icon. * * @since 3.9.0 * * @param string $string Close button html. * * @return string $string Close button html. */ public function change_cart_close_icon( $string ) { $string = str_replace( '×', Astra_Builder_UI_Controller::fetch_svg_icon( 'close', false ), $string ); return $string; } /** * Dynamic Store widgets. */ public function store_widgets_dynamic() { $shop_filter_array = array( 'name' => esc_html__( 'WooCommerce Sidebar', 'astra' ), 'id' => 'astra-woo-shop-sidebar', 'description' => __( 'This sidebar will be used on Product archive, Cart, Checkout and My Account pages.', 'astra' ), 'before_widget' => '
', 'after_widget' => '
', ); /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( astra_has_pro_woocommerce_addon() && astra_get_option( 'shop-filter-accordion' ) ) { $shop_filter_array['before_title'] = '

'; $shop_filter_array['after_title'] = Astra_Builder_UI_Controller::fetch_svg_icon( 'angle-down', false ) . '

'; $shop_filter_array['before_sidebar'] = '
'; $shop_filter_array['after_sidebar'] = '
'; } else { $shop_filter_array['before_title'] = '

'; $shop_filter_array['after_title'] = '

'; $shop_filter_array['before_sidebar'] = '
'; $shop_filter_array['after_sidebar'] = '
'; } register_sidebar( apply_filters( 'astra_woocommerce_shop_sidebar_init', $shop_filter_array ) ); } /** * Update WooCommerce store notice. Extending this function to add custom data-attr as per Astra's configuration. * * @since 3.9.0 * * @param string $notice Store notice markup. * @return string $notice Store notice markup. */ public function astra_woocommerce_update_store_notice_atts( $notice ) { $store_notice_position = astra_get_option( 'store-notice-position' ); $notice = str_replace( 'data-notice-id', 'data-position="' . $store_notice_position . '" data-notice-id', $notice ); return $notice; } /** * Adds shipping text after price. * * @since 3.9.0 */ public function woocommerce_shipping_text() { if ( astra_get_option( 'single-product-enable-shipping' ) ) { $shipping_text = astra_get_i18n_option( 'single-product-shipping-text', _x( '%astra%', 'WooCommerce Single Product: Shipping Text', 'astra' ), false ); /** @psalm-suppress RedundantCondition */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( false !== $shipping_text ) { echo ' ' . esc_html( $shipping_text ) . ''; } } } /** * Dynamic CSS for store notice config. * * @since 3.9.0 * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * * @return string $dynamic_css Generated dynamic CSS for WooCommerce store. */ public function astra_woocommerce_store_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { if ( is_checkout() ) { $checkout_compatibility_css = ' .wc-block-checkout .wc-block-components-order-summary .wc-block-components-panel__button, .wc-block-checkout .wc-block-components-order-summary .wc-block-components-panel__button:hover, .wc-block-checkout .wc-block-components-order-summary .wc-block-components-panel__button:focus { background: transparent; color: inherit; font-family: inherit; font-size: inherit; line-height: inherit; font-weight: inherit; padding: inherit; } '; $dynamic_css .= $checkout_compatibility_css; } if ( false === is_store_notice_showing() ) { return $dynamic_css; } $store_notice_color = astra_get_option( 'store-notice-text-color' ); $store_notice_bg_color = astra_get_option( 'store-notice-background-color' ); /** * WooCommerce store CSS. */ $css_output_desktop = array( 'body p.demo_store, body .woocommerce-store-notice, body p.demo_store a, body .woocommerce-store-notice a' => array( 'color' => esc_attr( $store_notice_color ), 'background-color' => esc_attr( $store_notice_bg_color ), 'transition' => 'none', ), ); // Checking if the store notice is hidden or not! $notice_hidden = false; if ( ! is_customize_preview() ) { $notice = get_option( 'woocommerce_demo_store_notice' ); if ( empty( $notice ) ) { $notice = __( 'This is a demo store for testing purposes — no orders shall be fulfilled.', 'astra' ); } // deepcode ignore InsecureHash: WooCommerce uses the md5 function to generate the store notice ID. This is an acceptable risk due to the WooCommerce dependency. $notice_id = md5( $notice ); $notice_hidden = isset( $_COOKIE[ "store_notice{$notice_id}" ] ) && 'hidden' === $_COOKIE[ "store_notice{$notice_id}" ]; } if ( ! $notice_hidden && 'hang-over-top' === astra_get_option( 'store-notice-position' ) ) { $css_output_desktop['.ast-woocommerce-store-notice-hanged'] = array( 'margin-top' => '57px', ); } /* Parse CSS from array() */ $dynamic_css .= astra_parse_css( $css_output_desktop ); if ( is_user_logged_in() ) { $admin_bar_desktop_css = array( '.admin-bar .demo_store[data-position="top"], .admin-bar .demo_store[data-position="hang-over-top"]' => array( 'top' => '32px', ), ); /* Min width 763px because below to this point admin-bar height converts to 46px. */ $dynamic_css .= astra_parse_css( $admin_bar_desktop_css, '783' ); $admin_bar_responsive_css = array( '.admin-bar .demo_store[data-position="top"], .admin-bar .demo_store[data-position="hang-over-top"]' => array( 'top' => '46px', ), ); /* Max width 762px because below to this point admin-bar height converts to 46px. */ $dynamic_css .= astra_parse_css( $admin_bar_responsive_css, '', '782' ); } return $dynamic_css; } /** * Header Cart icon * * @param string $cart_total_label_position Cart total label position. * @param string $cart_label_markup Cart label markup. * @param string $cart_info_markup Cart info markup. * @param string $cart_icon Cart icon. * @return void */ public function svg_cart_icon( $cart_total_label_position, $cart_label_markup, $cart_info_markup, $cart_icon ) { // Remove Default cart icon added by theme. add_filter( 'astra_woo_default_header_cart_icon', '__return_false' ); /* translators: 1: Cart Title Markup, 2: Cart Icon Markup */ /** @psalm-suppress InvalidArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort printf( '
%4$s %5$s
', ( $cart_total_label_position['desktop'] ) ? $cart_total_label_position['desktop'] : '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ( $cart_total_label_position['mobile'] ) ? $cart_total_label_position['mobile'] : '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ( $cart_total_label_position['tablet'] ) ? $cart_total_label_position['tablet'] : '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ( '' !== $cart_label_markup ) ? $cart_info_markup : '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ( $cart_icon ) ? $cart_icon : '' // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ); } /** * Header Cart Extra Icons markup * * @return void; */ public function header_cart_icon_markup() { $woo_cart_icon_new_user = astra_get_option( 'astra-woocommerce-cart-icons-flag', true ); /** @psalm-suppress DocblockTypeContradiction */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( apply_filters( 'astra_woocommerce_cart_icon', $woo_cart_icon_new_user ) ) { if ( false === Astra_Builder_Helper::$is_header_footer_builder_active ) { return; } } else { if ( false === Astra_Builder_Helper::$is_header_footer_builder_active && ! defined( 'ASTRA_EXT_VER' ) ) { return; } } $defaults = apply_filters( 'astra_woocommerce_cart_icon', $woo_cart_icon_new_user ) ? 'bag' : 'default'; $icon = astra_get_option( 'woo-header-cart-icon', $defaults ); $cart_count_display = apply_filters( 'astra_header_cart_count', true ); $cart_title = apply_filters( 'astra_header_cart_title', __( 'Cart', 'astra' ) ); $cart_title_markup = '' . esc_html( $cart_title ) . ''; $cart_total_label_position = astra_get_option( 'woo-header-cart-icon-total-label-position' ); $cart_total_markup = ''; $cart_total_only_markup = ''; /** @psalm-suppress RedundantConditionGivenDocblockType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $cart_check_total = astra_get_option( 'woo-header-cart-total-label' ) && null !== WC()->cart ? intval( WC()->cart->get_cart_contents_total() ) > 0 : true; /** @psalm-suppress RedundantConditionGivenDocblockType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( null !== WC()->cart ) { if ( $cart_check_total ) { $cart_total_markup = '' . WC()->cart->get_cart_subtotal() . ''; $cart_total_only_markup = '' . WC()->cart->get_cart_contents_total() . ''; } } $cart_cur_name_markup = ''; if ( function_exists( 'get_woocommerce_currency' ) && $cart_check_total ) { $cart_cur_name_markup = '' . get_woocommerce_currency() . ''; } $cart_cur_sym_markup = ''; if ( function_exists( 'get_woocommerce_currency_symbol' ) && $cart_check_total ) { $cart_cur_sym_markup = '' . get_woocommerce_currency_symbol() . ''; } $display_cart_label = astra_get_i18n_option( 'woo-header-cart-label-display', _x( '%astra%', 'Header Builder: Cart Widget - Cart Label', 'astra' ) ); $shortcode_label = array( '{cart_total_currency_symbol}', '{cart_title}', '{cart_total}', '{cart_currency_name}', '{cart_currency_symbol}' ); $shortcode_label_value = array( $cart_total_markup, $cart_title_markup, $cart_total_only_markup, $cart_cur_name_markup, $cart_cur_sym_markup ); $cart_label_markup = ''; $cart_label_markup = str_replace( $shortcode_label, $shortcode_label_value, $display_cart_label ); // Cart Title & Cart Cart total markup. $cart_info_markup = sprintf( ' %1$s ', $cart_label_markup ); $cart_contents_count = 0; if ( null !== WC()->cart ) { $cart_contents_count = WC()->cart->get_cart_contents_count(); } // Cart Icon markup with total number of items. $cart_icon = sprintf( '%4$s', ( $icon ) ? $icon : '', ( $cart_count_display ) ? '' : 'no-cart-total', ( $cart_count_display ) ? 'data-cart-total="' . $cart_contents_count . '"' : '', ( $icon ) ? ( ( false !== Astra_Icons::is_svg_icons() ) ? Astra_Icons::get_icons( $icon ) : '' ) : '' ); // Theme's default icon with cart title and cart total. /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( 'default' === $icon ) { // Cart Total or Cart Title enable then only add markup. if ( '' !== $cart_label_markup ) { echo $cart_info_markup; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } else { self::svg_cart_icon( $cart_total_label_position, $cart_label_markup, $cart_info_markup, $cart_icon ); } } /** * Header Cart Icon Class * * @param array $classes Default argument array. * * @return array; */ public function header_cart_icon_class( $classes ) { if ( false === Astra_Builder_Helper::$is_header_footer_builder_active && ! defined( 'ASTRA_EXT_VER' ) ) { return $classes; } $header_cart_icon_style = astra_get_option( 'woo-header-cart-icon-style' ); $classes[] = 'ast-menu-cart-' . $header_cart_icon_style; $header_cart_icon_has_color = astra_get_option( 'woo-header-cart-icon-color' ); if ( ! empty( $header_cart_icon_has_color ) && ( 'none' !== $header_cart_icon_style ) ) { $classes[] = 'ast-menu-cart-has-color'; } return $classes; } /** * Remove body schema when using WooCommerce template. * WooCommerce adds it's own product schema hence schema data from Astra should be disabled here. * * @since 1.8.0 * @param String $schema Schema markup. * @return String */ public function remove_body_schema( $schema ) { if ( is_woocommerce() ) { $schema = ''; } return $schema; } /** * Rating Markup * * @since 1.2.2 * @param string $html Rating Markup. * @param float $rating Rating being shown. * @param int $count Total number of ratings. * @return string */ public function rating_markup( $html, $rating, $count ) { /** @psalm-suppress InvalidGlobal */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $product = wc_get_product(); // Get the review count if the product exists, otherwise set it to 0 $review_count = $product ? $product->get_review_count() : 0; // Check if the rating is valid if ( $rating >= 0 ) { $html = '
'; $html .= '
'; $html .= wc_get_star_rating_html( $rating, $count ); $html .= '
'; if ( $review_count > 0 && astra_get_option( 'shop-ratings-product-archive' ) === 'count_string' && ! is_product() ) { $single_caption = __( ' review', 'astra' ); $plural_caption = __( ' reviews', 'astra' ); $counter_html = sprintf( _n( '%1$s' . $single_caption, '%1$s' . $plural_caption, $review_count, 'astra' ), $review_count ); $html .= '
'; $html .= $counter_html; $html .= '
'; } $html .= '
'; } return $html; } /** * Cart Page Upselles products. * * @return void */ public function cart_page_upselles() { $upselles_enabled = astra_get_option( 'enable-cart-upsells' ); if ( ! $upselles_enabled ) { remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' ); } } /** * Subcategory Count Markup * * @param array $styles Css files. * * @return array */ public function woo_filter_style( $styles ) { /* Directory and Extension */ $file_prefix = '.min'; $dir_name = 'minified'; $css_uri = ASTRA_THEME_URI . 'assets/css/' . $dir_name . '/compatibility/woocommerce/'; // Register & Enqueue Styles. // Generate CSS URL. if ( ! Astra_Builder_Helper::apply_flex_based_css() ) { $styles = array( 'woocommerce-layout' => array( 'src' => $css_uri . 'woocommerce-layout' . $file_prefix . '.css', 'deps' => '', 'version' => ASTRA_THEME_VERSION, 'media' => 'all', 'has_rtl' => true, ), 'woocommerce-smallscreen' => array( 'src' => $css_uri . 'woocommerce-smallscreen' . $file_prefix . '.css', 'deps' => 'woocommerce-layout', 'version' => ASTRA_THEME_VERSION, 'media' => 'only screen and (max-width: ' . apply_filters( 'woocommerce_style_smallscreen_breakpoint', astra_get_tablet_breakpoint() . 'px' ) . ')', // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound 'has_rtl' => true, ), 'woocommerce-general' => array( 'src' => $css_uri . 'woocommerce' . $file_prefix . '.css', 'deps' => '', 'version' => ASTRA_THEME_VERSION, 'media' => 'all', 'has_rtl' => true, ), ); } else { $styles = array( 'woocommerce-layout' => array( 'src' => $css_uri . 'woocommerce-layout-grid' . $file_prefix . '.css', 'deps' => '', 'version' => ASTRA_THEME_VERSION, 'media' => 'all', 'has_rtl' => true, ), 'woocommerce-smallscreen' => array( 'src' => $css_uri . 'woocommerce-smallscreen-grid' . $file_prefix . '.css', 'deps' => 'woocommerce-layout', 'version' => ASTRA_THEME_VERSION, 'media' => 'only screen and (max-width: ' . apply_filters( 'woocommerce_style_smallscreen_breakpoint', astra_get_tablet_breakpoint() . 'px' ) . ')', // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound 'has_rtl' => true, ), 'woocommerce-general' => array( 'src' => $css_uri . 'woocommerce-grid' . $file_prefix . '.css', 'deps' => '', 'version' => ASTRA_THEME_VERSION, 'media' => 'all', 'has_rtl' => true, ), ); } if ( is_product() && astra_get_option( 'single-product-sticky-add-to-cart' ) ) { $styles['sticky-add-to-cart'] = array( 'src' => $css_uri . 'sticky-add-to-cart' . $file_prefix . '.css', 'deps' => '', 'version' => ASTRA_THEME_VERSION, 'media' => 'all', 'has_rtl' => true, ); } // Check if the current post/page content contains the WooCommerce Cart or Checkout block. if ( has_block( 'woocommerce/cart' ) || has_block( 'woocommerce/checkout' ) ) { $styles['astra-woocommerce-blocks'] = array( 'src' => $css_uri . 'woocommerce-blocks' . $file_prefix . '.css', 'deps' => '', 'version' => ASTRA_THEME_VERSION, 'media' => 'all', 'has_rtl' => true, ); } // Check if Dokan plugin is installed and specific pages are active. if ( ( function_exists( 'dokan_is_seller_dashboard' ) && dokan_is_seller_dashboard() ) || ( function_exists( 'dokan_is_store_page' ) && dokan_is_store_page() ) || ( function_exists( 'dokan_is_store_listing' ) && dokan_is_store_listing() ) ) { $styles['astra-wc-dokan-compatibility'] = array( 'src' => $css_uri . 'dokan-compatibility' . $file_prefix . '.css', 'deps' => '', 'version' => ASTRA_THEME_VERSION, 'media' => 'all', 'has_rtl' => true, ); } return $styles; } /** * Subcategory Count Markup * * @param mixed $content Count Markup. * @param object $category Object of Category. * @return mixed */ public function subcategory_count_markup( $content, $category ) { $content = sprintf( // WPCS: XSS OK. /* translators: 1: number of products */ _nx( '%1$s Product', '%1$s Products', $category->count, 'product categories', 'astra' ), number_format_i18n( $category->count ) ); return '' . $content . ''; } /** * Theme Defaults. * * @param array $defaults Array of options value. * @return array */ public function theme_defaults( $defaults ) { $theme_options = get_option( 'astra-settings' ); // Backward compatibility. $defaults['astra-woocommerce-cart-icons-flag'] = true; // Container. $defaults['woocommerce-ast-content-layout'] = 'normal-width-container'; $defaults['archive-product-content-layout'] = 'default'; $defaults['single-product-content-layout'] = 'default'; // Content Style. $defaults['woocommerce-content-style'] = 'unboxed'; $defaults['woocommerce-sidebar-style'] = 'unboxed'; // Sidebar. $defaults['woocommerce-sidebar-layout'] = 'no-sidebar'; $defaults['archive-product-sidebar-layout'] = 'default'; $defaults['single-product-sidebar-layout'] = 'default'; /* Shop */ $defaults['shop-grids'] = array( 'desktop' => 4, 'tablet' => 3, 'mobile' => 2, ); $defaults['shop-no-of-products'] = '12'; $defaults['shop-product-structure'] = array( 'category', 'title', 'ratings', 'price', 'add_cart', ); $defaults['shop-hover-style'] = ''; /* Single */ $defaults['single-product-breadcrumb-disable'] = true; $defaults['single-product-cart-button-width'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); /* Cart */ $defaults['enable-cart-upsells'] = true; /* Store Notice */ $defaults['store-notice-text-color'] = ''; $defaults['store-notice-background-color'] = ''; $defaults['store-notice-position'] = 'top'; $defaults['shop-archive-width'] = 'default'; $defaults['shop-archive-max-width'] = 1200; $defaults['shop-add-to-cart-action'] = 'default'; /* Free shipping */ $defaults['single-product-tabs-display'] = false; $defaults['single-product-shipping-text'] = __( '& Free Shipping', 'astra' ); $defaults['single-product-variation-tabs-layout'] = 'vertical'; /* Cart button*/ $defaults['woo-enable-cart-button-text'] = false; $defaults['woo-cart-button-text'] = __( 'Proceed to checkout', 'astra' ); /* Single product */ $defaults['single-product-structure'] = array( 'category', 'title', 'ratings', 'price', 'short_desc', 'add_cart', 'meta', ); // Sticky add to cart. $defaults['single-product-sticky-add-to-cart'] = false; $defaults['single-product-sticky-add-to-cart-position'] = 'top'; $defaults['shop-ratings-product-archive'] = 'default'; /* Shop alignment */ $defaults['shop-product-align-responsive'] = array( 'desktop' => 'align-left', 'tablet' => 'align-left', 'mobile' => 'align-left', ); /* Hide cart label */ $defaults['woo-header-cart-total-label'] = false; /* Shop style */ $defaults['shop-style'] = isset( $theme_options['woo-shop-style-flag'] ) && $theme_options['woo-shop-style-flag'] ? 'shop-page-grid-style' : 'shop-page-modern-style'; $defaults['woo-header-cart-product-count-color'] = ''; $defaults['woo-header-cart-product-count-h-color'] = ''; // Add to cart Plus minus button type. $defaults['single-product-plus-minus-button'] = astra_has_pro_woocommerce_addon() ? true : false; $defaults['cart-plus-minus-button-type'] = 'normal'; // Single Product Payments. $defaults['single-product-payment-icon-color'] = 'inherit'; $defaults['single-product-payment-text'] = __( 'Guaranteed Safe Checkout', 'astra' ); $defaults['single-product-payment-list'] = array( 'items' => array( array( 'id' => 'item-1', 'enabled' => true, 'source' => 'icon', 'icon' => 'cc-visa', 'image' => '', 'label' => __( 'Visa', 'astra' ), ), array( 'id' => 'item-2', 'enabled' => true, 'source' => 'icon', 'icon' => 'cc-mastercard', 'image' => '', 'label' => __( 'Mastercard', 'astra' ), ), array( 'id' => 'item-3', 'enabled' => true, 'source' => 'icon', 'icon' => 'cc-amex', 'image' => '', 'label' => __( 'Amex', 'astra' ), ), array( 'id' => 'item-4', 'enabled' => true, 'source' => 'icon', 'icon' => 'cc-discover', 'image' => '', 'label' => __( 'Discover', 'astra' ), ), ), ); return $defaults; } /** * Update Shop page grid * * @param int $col Shop Column. * @return int */ public function shop_columns( $col ) { $astra_shop_col = astra_get_option( 'shop-grids', array( 'desktop' => 4, 'tablet' => 3, 'mobile' => 2, ) ); return $astra_shop_col['desktop']; } /** * Check if the current page is a Product Subcategory page or not. * * @param integer $category_id Current page Category ID. * @return boolean */ public function astra_woo_is_subcategory( $category_id = null ) { if ( is_tax( 'product_cat' ) ) { if ( empty( $category_id ) ) { $category_id = get_queried_object_id(); } $category = get_term( get_queried_object_id(), 'product_cat' ); if ( empty( $category->parent ) ) { return false; } return true; } return false; } /** * Update Shop page grid * * @return int */ public function shop_no_of_products() { $taxonomy_page_display = get_option( 'woocommerce_category_archive_display', false ); if ( is_product_taxonomy() && 'subcategories' === $taxonomy_page_display ) { $products = astra_get_option( 'shop-no-of-products' ); if ( $this->astra_woo_is_subcategory() ) { return $products; } elseif ( is_product_taxonomy() ) { return $products; } $products = wp_count_posts( 'product' )->publish; } else { $products = astra_get_option( 'shop-no-of-products' ); } return $products; } /** * Add products item class on shop page * * @param Array $classes product classes. * * @return array. */ public function shop_page_products_item_class( $classes = '' ) { if ( is_shop() || is_product_taxonomy() ) { $shop_grid = astra_get_option( 'shop-grids', array( 'desktop' => 4, 'tablet' => 3, 'mobile' => 2, ) ); $classes[] = 'columns-' . $shop_grid['desktop']; $classes[] = 'tablet-columns-' . $shop_grid['tablet']; $classes[] = 'mobile-columns-' . $shop_grid['mobile']; $classes[] = 'ast-woo-shop-archive'; } // Cart menu is emabled. $rt_section = astra_get_option( 'header-main-rt-section' ); if ( 'woocommerce' === $rt_section ) { $classes[] = 'ast-woocommerce-cart-menu'; } if ( is_store_notice_showing() && 'hang-over-top' === astra_get_option( 'store-notice-position' ) ) { $classes[] = 'ast-woocommerce-store-notice-hanged'; } return $classes; } /** * Get grid columns for either Archive|Single product. * Introducing this function to reduce lot of CSS we write for 'grid-template-columns' for every count (till 6). * * @param string $type - WooCommerce page type Archive/Single. * @param string $device - Device specific grid option. * @param int $default - Default grid count (fallback basically). * * @return int grid count. * @since 3.4.3 */ public function get_grid_column_count( $type = 'archive', $device = 'desktop', $default = 2 ) { if ( 'archive' === $type ) { $products_grid = astra_get_option( 'shop-grids', array( 'desktop' => 4, 'tablet' => 3, 'mobile' => 2, ) ); } else { $products_grid = astra_get_option( 'single-product-related-upsell-grid' ); } return isset( $products_grid[ $device ] ) ? absint( $products_grid[ $device ] ) : $default; } /** * Add class on single product page * * @param Array $classes product classes. * * @return array. */ public function single_product_class( $classes ) { if ( is_product() && 0 == get_post_meta( get_the_ID(), '_wc_review_count', true ) ) { $classes[] = 'ast-woo-product-no-review'; } return $classes; } /** * Update woocommerce related product numbers * * @param array $args Related products array. * @return array */ public function related_products_args( $args ) { $col = astra_get_option( 'shop-grids', array( 'desktop' => 4, 'tablet' => 3, 'mobile' => 2, ) ); $args['posts_per_page'] = $col['desktop']; return $args; } /** * Setup theme * * @since 1.0.3 */ public function setup_theme() { // WooCommerce. add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); } /** * Store widgets init. */ public function store_widgets_init() { register_sidebar( apply_filters( 'astra_woocommerce_shop_sidebar_init', array( 'name' => esc_html__( 'WooCommerce Sidebar', 'astra' ), 'id' => 'astra-woo-shop-sidebar', 'description' => __( 'This sidebar will be used on Product archive, Cart, Checkout and My Account pages.', 'astra' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ) ); register_sidebar( apply_filters( 'astra_woocommerce_single_sidebar_init', array( 'name' => esc_html__( 'Product Sidebar', 'astra' ), 'id' => 'astra-woo-single-sidebar', 'description' => __( 'This sidebar will be used on Single Product page.', 'astra' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ) ); } /** * Assign shop sidebar for store page. * * @param String $sidebar Sidebar. * * @return String $sidebar Sidebar. */ public function replace_store_sidebar( $sidebar ) { if ( is_shop() || is_product_taxonomy() || is_checkout() || is_cart() || is_account_page() ) { $sidebar = 'astra-woo-shop-sidebar'; } elseif ( is_product() ) { $sidebar = 'astra-woo-single-sidebar'; } return $sidebar; } /** * WooCommerce Container * * @param String $sidebar_layout Layout type. * * @return String $sidebar_layout Layout type. */ public function store_sidebar_layout( $sidebar_layout ) { if ( is_shop() || is_product_taxonomy() || is_checkout() || is_cart() || is_account_page() || is_product() ) { $woo_sidebar = astra_get_option( 'woocommerce-sidebar-layout' ); $astra_with_modern_ecommerce = astra_get_option( 'modern-ecommerce-setup', true ); if ( 'default' !== $woo_sidebar ) { $sidebar_layout = $woo_sidebar; } $global_page_specific_layout = 'default'; if ( is_shop() || is_product_taxonomy() ) { $global_page_specific_layout = astra_get_option( 'archive-product-sidebar-layout', 'default' ); } if ( is_product() ) { $single_product_fallback_sidebar = ( false === $astra_with_modern_ecommerce ) ? astra_get_option( 'site-sidebar-layout' ) : astra_get_option( 'woocommerce-sidebar-layout' ); $single_product_sidebar = astra_get_option( 'single-product-sidebar-layout', 'default' ); $global_page_specific_layout = 'default' === $single_product_sidebar ? $single_product_fallback_sidebar : $single_product_sidebar; } if ( 'default' !== $global_page_specific_layout ) { $sidebar_layout = $global_page_specific_layout; } if ( is_shop() ) { $shop_page_id = get_option( 'woocommerce_shop_page_id' ); $shop_sidebar = get_post_meta( $shop_page_id, 'site-sidebar-layout', true ); } elseif ( is_product_taxonomy() ) { $shop_sidebar = 'default'; } else { $shop_sidebar = astra_get_option_meta( 'site-sidebar-layout', '', true ); } if ( 'default' !== $shop_sidebar && ! empty( $shop_sidebar ) ) { $sidebar_layout = $shop_sidebar; } } return apply_filters( 'astra_get_store_sidebar_layout', $sidebar_layout ); } /** * WooCommerce Container * * @param String $layout Layout type. * * @return String $layout Layout type. */ public function store_content_layout( $layout ) { if ( is_woocommerce() || is_checkout() || is_cart() || is_account_page() ) { $woo_layout = astra_toggle_layout( 'woocommerce-ast-content-layout', 'global', false ); // If not default override with woocommerce global container settings. if ( 'default' !== $woo_layout ) { $layout = $woo_layout; } $global_page_specific_layout = 'default'; if ( is_shop() || is_product_taxonomy() ) { $global_page_specific_layout = astra_toggle_layout( 'archive-product-ast-content-layout', 'archive', false ); } if ( is_product() ) { $global_page_specific_layout = astra_toggle_layout( 'single-product-ast-content-layout', 'single', false ); } // If page specific is not default, overide with page specific layout. if ( 'default' !== $global_page_specific_layout ) { $layout = $global_page_specific_layout; } if ( is_shop() ) { $shop_page_id = get_option( 'woocommerce_shop_page_id' ); $shop_layout = astra_toggle_layout( 'ast-site-content-layout', 'meta', $shop_page_id ); } elseif ( is_product_taxonomy() ) { $shop_layout = 'default'; } else { $old_meta_layout = astra_get_option_meta( 'site-content-layout', '', true ); if ( isset( $old_meta_layout ) ) { $shop_layout = astra_toggle_layout( 'ast-site-content-layout', 'meta', false, $old_meta_layout ); } else { $shop_layout = astra_toggle_layout( 'ast-site-content-layout', 'meta', false ); } } // If meta is not default, overide with meta container layout settings. if ( 'default' !== $shop_layout && ! empty( $shop_layout ) ) { $layout = $shop_layout; } } return apply_filters( 'astra_get_store_content_layout', $layout ); } /** * Shop Page Meta * * @return void */ public function shop_meta_option() { // Page Title. if ( is_shop() ) { $shop_page_id = get_option( 'woocommerce_shop_page_id' ); $shop_title = get_post_meta( $shop_page_id, 'site-post-title', true ); $main_header_display = get_post_meta( $shop_page_id, 'ast-main-header-display', true ); $footer_layout = get_post_meta( $shop_page_id, 'footer-sml-layout', true ); if ( 'disabled' === $shop_title ) { add_filter( 'woocommerce_show_page_title', '__return_false' ); } if ( 'disabled' === $main_header_display ) { remove_action( 'astra_masthead', 'astra_masthead_primary_template' ); } if ( 'disabled' === $footer_layout ) { remove_action( 'astra_footer_content', 'astra_footer_small_footer_template', 5 ); } } } /** * Shop customization. * * @return void */ public function shop_customization() { if ( ! apply_filters( 'astra_woo_shop_product_structure_override', false ) ) { add_action( 'woocommerce_before_shop_loop_item', 'astra_woo_shop_thumbnail_wrap_start', 6 ); /** * Add sale flash before shop loop. */ add_action( 'woocommerce_before_shop_loop_item', 'woocommerce_show_product_loop_sale_flash', 9 ); add_action( 'woocommerce_after_shop_loop_item', 'astra_woo_shop_thumbnail_wrap_end', 8 ); /** * Add Out of Stock to the Shop page */ add_action( 'woocommerce_shop_loop_item_title', 'astra_woo_shop_out_of_stock', 8 ); remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); /** * Shop Page Product Content Sorting */ add_action( 'woocommerce_after_shop_loop_item', 'astra_woo_woocommerce_shop_product_content' ); } } /** * Checkout customization. * * @return void */ public function woocommerce_checkout() { if ( is_admin() ) { return; } if ( ! apply_filters( 'astra_woo_shop_product_structure_override', false ) ) { /** * Checkout Page */ add_action( 'woocommerce_checkout_billing', array( WC()->checkout(), 'checkout_form_shipping' ) ); } // Checkout Page. remove_action( 'woocommerce_checkout_shipping', array( WC()->checkout(), 'checkout_form_shipping' ) ); } /** * Single product customization. * * @return void */ public function single_product_customization() { if ( ! is_product() ) { return; } add_filter( 'woocommerce_product_description_heading', '__return_false' ); add_filter( 'woocommerce_product_additional_information_heading', '__return_false' ); // Breadcrumb. remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 ); if ( astra_get_option( 'single-product-breadcrumb-disable' ) ) { add_action( 'woocommerce_single_product_summary', 'woocommerce_breadcrumb', 2 ); } } /** * Remove Woo-Commerce Default actions */ public function woocommerce_init() { add_action( 'woocommerce_after_mini_cart', array( $this, 'astra_update_flyout_cart_layout' ) ); remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 ); remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 ); remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 ); remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10 ); remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 ); remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 ); } /** * Add start of wrapper */ public function before_main_content_start() { $site_sidebar = astra_page_layout(); if ( 'left-sidebar' == $site_sidebar ) { get_sidebar(); } ?>
astra_get_font_css_value( $theme_btn_font_size['tablet'], $theme_btn_font_size['tablet-unit'] ), ); $woo_btn_compatibility_mobile = array( 'font-size' => astra_get_font_css_value( $theme_btn_font_size['mobile'], $theme_btn_font_size['mobile-unit'] ), ); } $css_desktop_output = array( '#customer_details h3:not(.elementor-widget-woocommerce-checkout-page h3)' => array( 'font-size' => $font_style_updates ? '' : '1.2rem', 'padding' => '20px 0 14px', 'margin' => '0 0 20px', 'border-bottom' => '1px solid var(--ast-border-color)', 'font-weight' => $font_style_updates ? '' : '700', ), 'form #order_review_heading:not(.elementor-widget-woocommerce-checkout-page #order_review_heading)' => array( 'border-width' => '2px 2px 0 2px', 'border-style' => 'solid', 'font-size' => $font_style_updates ? '' : '1.2rem', 'margin' => '0', 'padding' => '1.5em 1.5em 1em', 'border-color' => 'var(--ast-border-color)', 'font-weight' => $font_style_updates ? '' : '700', ), '.woocommerce-Address h3, .cart-collaterals h2' => array( 'font-size' => $font_style_updates ? '' : '1.2rem', 'padding' => '.7em 1em', ), '.woocommerce-cart .cart-collaterals .cart_totals>h2' => array( 'font-weight' => $font_style_updates ? '' : '700', ), 'form #order_review:not(.elementor-widget-woocommerce-checkout-page #order_review)' => array( 'padding' => '0 2em', 'border-width' => '0 2px 2px', 'border-style' => 'solid', 'border-color' => 'var(--ast-border-color)', ), 'ul#shipping_method li:not(.elementor-widget-woocommerce-cart #shipping_method li)' => array( 'margin' => '0', 'padding' => '0.25em 0 0.25em 22px', 'text-indent' => '-22px', 'list-style' => 'none outside', ), '.woocommerce span.onsale, .wc-block-grid__product .wc-block-grid__product-onsale' => array( 'background-color' => $theme_color, 'color' => astra_get_foreground_color( $theme_color ), ), '.woocommerce-message, .woocommerce-info' => array( 'border-top-color' => $link_color, ), '.woocommerce-message::before,.woocommerce-info::before' => array( 'color' => $link_color, ), '.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price, .widget_layered_nav_filters ul li.chosen a, .woocommerce-page ul.products li.product .ast-woo-product-category, .wc-layered-nav-rating a' => array( 'color' => $text_color, ), // Form Fields, Pagination border Color. '.woocommerce nav.woocommerce-pagination ul,.woocommerce nav.woocommerce-pagination ul li' => array( 'border-color' => $link_color, ), '.woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current' => array( 'background' => $link_color, 'color' => $btn_color, ), '.woocommerce-MyAccount-navigation-link.is-active a' => array( 'color' => $link_h_color, ), '.woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce .widget_price_filter .ui-slider .ui-slider-handle' => array( 'background-color' => $link_color, ), '.woocommerce .star-rating, .woocommerce .comment-form-rating .stars a, .woocommerce .star-rating::before' => array( 'color' => 'var(--ast-global-color-3)', ), '.woocommerce div.product .woocommerce-tabs ul.tabs li.active:before, .woocommerce div.ast-product-tabs-layout-vertical .woocommerce-tabs ul.tabs li:hover::before' => array( 'background' => $single_product_heading_tab_active_color ? $single_product_heading_tab_active_color : $link_color, ), ); // Check if star rating compatibility is not enabled and apply star rating styles. if ( ! astra_wc_is_star_rating_compatibility() ) { $css_desktop_output['.woocommerce .star-rating'] = [ 'width' => 'calc( 5.4em + 5px )', 'letter-spacing' => '2px', ]; $css_desktop_output['.woocommerce .star-rating, .woocommerce .comment-form-rating .stars a, .woocommerce .star-rating::before'] = [ 'color' => '#FDA256', ]; } if ( false === Astra_Builder_Helper::$is_header_footer_builder_active ) { $compat_css_desktop = array( /** * Cart in menu */ '.ast-site-header-cart a' => array( 'color' => esc_attr( $text_color ), ), '.ast-site-header-cart a:focus, .ast-site-header-cart a:hover, .ast-site-header-cart .current-menu-item a' => array( 'color' => esc_attr( $link_color ), ), '.ast-cart-menu-wrap .count, .ast-cart-menu-wrap .count:after' => array( 'border-color' => esc_attr( $link_color ), 'color' => esc_attr( $link_color ), ), '.ast-cart-menu-wrap:hover .count' => array( 'color' => esc_attr( $cart_h_color ), 'background-color' => esc_attr( $link_color ), ), '.ast-site-header-cart .widget_shopping_cart .total .woocommerce-Price-amount' => array( 'color' => esc_attr( $link_color ), ), '.woocommerce a.remove:hover, .ast-woocommerce-cart-menu .main-header-menu .woocommerce-custom-menu-item .menu-item:hover > .menu-link.remove:hover' => array( 'color' => esc_attr( $link_color ), 'border-color' => esc_attr( $link_color ), 'background-color' => esc_attr( '#ffffff' ), ), /** * Checkout button color for widget */ '.ast-site-header-cart .widget_shopping_cart .buttons .button.checkout, .woocommerce .widget_shopping_cart .woocommerce-mini-cart__buttons .checkout.wc-forward' => array( 'color' => $btn_h_color, 'border-color' => $btn_bg_h_color, 'background-color' => $btn_bg_h_color, ), '.site-header .ast-site-header-cart-data .button.wc-forward, .site-header .ast-site-header-cart-data .button.wc-forward:hover' => array( 'color' => $btn_color, ), '.below-header-user-select .ast-site-header-cart .widget, .ast-above-header-section .ast-site-header-cart .widget a, .below-header-user-select .ast-site-header-cart .widget_shopping_cart a' => array( 'color' => $text_color, ), '.below-header-user-select .ast-site-header-cart .widget_shopping_cart a:hover, .ast-above-header-section .ast-site-header-cart .widget_shopping_cart a:hover, .below-header-user-select .ast-site-header-cart .widget_shopping_cart a.remove:hover, .ast-above-header-section .ast-site-header-cart .widget_shopping_cart a.remove:hover' => array( 'color' => esc_attr( $link_color ), ), ); $css_desktop_output = array_merge( $css_desktop_output, $compat_css_desktop ); } // WooCommerce global button compatibility for new users only. if ( ! $astra_support_woo_btns_global ) { $css_desktop_output['.woocommerce .woocommerce-cart-form button[name="update_cart"]:disabled'] = array( 'color' => esc_attr( $btn_color ), ); $css_desktop_output['.woocommerce #content table.cart .button[name="apply_coupon"], .woocommerce-page #content table.cart .button[name="apply_coupon"]'] = array( 'padding' => '10px 40px', ); $css_desktop_output['.woocommerce table.cart td.actions .button, .woocommerce #content table.cart td.actions .button, .woocommerce-page table.cart td.actions .button, .woocommerce-page #content table.cart td.actions .button'] = array( 'line-height' => '1', 'border-width' => '1px', 'border-style' => 'solid', ); $css_desktop_output['.woocommerce ul.products li.product .button, .woocommerce-page ul.products li.product .button'] = array( 'line-height' => '1.3', ); $css_desktop_output['.woocommerce-js a.button, .woocommerce button.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce-js a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled], .woocommerce input.button:disabled:hover, .woocommerce input.button:disabled[disabled]:hover, .woocommerce #respond input#submit, .woocommerce button.button.alt.disabled, .wc-block-grid__products .wc-block-grid__product .wp-block-button__link, .wc-block-grid__product-onsale'] = array( 'color' => $btn_color, 'border-color' => $btn_bg_color, 'background-color' => $btn_bg_color, ); $css_desktop_output['.woocommerce-js a.button:hover, .woocommerce button.button:hover, .woocommerce .woocommerce-message a.button:hover,.woocommerce #respond input#submit:hover,.woocommerce #respond input#submit.alt:hover, .woocommerce-js a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce input.button:hover, .woocommerce button.button.alt.disabled:hover, .wc-block-grid__products .wc-block-grid__product .wp-block-button__link:hover'] = array( 'color' => $btn_h_color, 'border-color' => $btn_bg_h_color, 'background-color' => $btn_bg_h_color, ); $css_desktop_output['.woocommerce-js a.button, .woocommerce button.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce-js a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce-cart table.cart td.actions .button, .woocommerce form.checkout_coupon .button, .woocommerce #respond input#submit, .wc-block-grid__products .wc-block-grid__product .wp-block-button__link'] = array_merge( $woo_btn_compatibility_desktop, array( 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'desktop' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'desktop' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'desktop' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'desktop' ), 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'desktop' ), ) ); $css_desktop_output['.woocommerce ul.products li.product a, .woocommerce-js a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover'] = array( 'text-decoration' => 'none', ); } if ( Astra_Dynamic_CSS::v4_block_editor_compat() ) { $css_desktop_output['.entry-content .woocommerce-message, .entry-content .woocommerce-error, .entry-content .woocommerce-info'] = array( 'padding-top' => '1em', 'padding-bottom' => '1em', 'padding-' . $ltr_left => '3.5em', 'padding-' . $ltr_right => '2em', ); } if ( Astra_Builder_Helper::apply_flex_based_css() ) { $css_desktop_output['.woocommerce[class*="rel-up-columns-"] .site-main div.product .related.products ul.products li.product, .woocommerce-page .site-main ul.products li.product'] = array( 'width' => '100%', ); } if ( is_cart() && false === Astra_Builder_Helper::apply_flex_based_css() && true === astra_get_option( 'cart-modern-layout' ) && true === astra_get_option( 'enable-cart-upsells' ) ) { $css_desktop_output['.woocommerce[class*="rel-up-columns-"] .site-main div.product .related.products ul.products li.product, .woocommerce-page .site-main ul.products li.product'] = array( 'width' => '100%', ); } // Backward compatibility for old users for h2 tag global fonts. if ( apply_filters( 'astra_theme_woocommerce_global_h2_font', astra_get_option( 'woo_support_global_settings', false ) ) ) { $css_desktop_output['.woocommerce .up-sells h2, .woocommerce .related.products h2, .woocommerce .woocommerce-tabs h2'] = array( 'font-size' => '1.5rem', ); $css_desktop_output['.woocommerce h2, .woocommerce-account h2'] = array( 'font-size' => '1.625rem', ); } if ( false === Astra_Icons::is_svg_icons() ) { $css_desktop_output['.woocommerce ul.product-categories > li ul li:before'] = array( 'content' => '"\e900"', 'padding' => '0 5px 0 5px', 'display' => 'inline-block', 'font-family' => 'Astra', 'transform' => 'rotate(-90deg)', 'font-size' => '11px', 'font-size' => '0.7rem', ); $css_desktop_output['.ast-site-header-cart i.astra-icon:before'] = array( 'font-family' => 'Astra', ); $css_desktop_output['.ast-icon-shopping-cart:before'] = array( 'content' => '"\f07a"', ); $css_desktop_output['.ast-icon-shopping-bag:before'] = array( 'content' => '"\f290"', ); $css_desktop_output['.ast-icon-shopping-basket:before'] = array( 'content' => '"\f291"', ); } else { $css_desktop_output['.woocommerce ul.product-categories > li ul li'] = array( 'position' => 'relative', ); if ( $is_site_rtl ) { $css_desktop_output['.woocommerce ul.product-categories > li ul li:before'] = array( 'content' => '""', 'border-width' => '1px 0 0 1px', 'border-style' => 'solid', 'display' => 'inline-block', 'width' => '6px', 'height' => '6px', 'position' => 'absolute', 'top' => '50%', 'margin-top' => '-2px', '-webkit-transform' => 'rotate(45deg)', 'transform' => 'rotate(45deg)', ); $css_desktop_output['.woocommerce ul.product-categories > li ul li a'] = array( 'margin-right' => '15px', ); } else { $css_desktop_output['.woocommerce ul.product-categories > li ul li:before'] = array( 'content' => '""', 'border-width' => '1px 1px 0 0', 'border-style' => 'solid', 'display' => 'inline-block', 'width' => '6px', 'height' => '6px', 'position' => 'absolute', 'top' => '50%', 'margin-top' => '-2px', '-webkit-transform' => 'rotate(45deg)', 'transform' => 'rotate(45deg)', ); $css_desktop_output['.woocommerce ul.product-categories > li ul li a'] = array( 'margin-left' => '15px', ); } } $css_desktop_output['.ast-icon-shopping-cart svg'] = array( 'height' => '.82em', ); $css_desktop_output['.ast-icon-shopping-bag svg'] = array( 'height' => '1em', 'width' => '1em', ); $css_desktop_output['.ast-icon-shopping-basket svg'] = array( 'height' => '1.15em', 'width' => '1.2em', ); $css_desktop_output['.ast-site-header-cart.ast-menu-cart-outline .ast-addon-cart-wrap, .ast-site-header-cart.ast-menu-cart-fill .ast-addon-cart-wrap '] = array( 'line-height' => '1', ); $css_desktop_output['.ast-site-header-cart.ast-menu-cart-fill i.astra-icon'] = array( ' font-size' => '1.1em', ); $css_desktop_output['.ast-site-header-cart.ast-menu-cart-fill i.astra-icon'] = array( ' font-size' => '1.1em', ); $css_desktop_output['li.woocommerce-custom-menu-item .ast-site-header-cart i.astra-icon:after'] = array( ' padding-left' => '2px', ); $css_desktop_output['.ast-hfb-header .ast-addon-cart-wrap'] = array( ' padding' => '0.4em', ); $css_desktop_output['.ast-header-break-point.ast-header-custom-item-outside .ast-woo-header-cart-info-wrap'] = array( ' display' => 'none', ); $css_desktop_output['.ast-site-header-cart i.astra-icon:after'] = array( ' background' => $header_cart_count_color, ); if ( is_account_page() && false === astra_get_option( 'modern-woo-account-view', false ) ) { $css_output .= ' body .woocommerce-MyAccount-navigation-link { list-style: none; border: 1px solid var(--ast-border-color); border-bottom-width: 0; } body .woocommerce-MyAccount-navigation-link:last-child { border-bottom-width: 1px; } body .woocommerce-MyAccount-navigation-link.is-active a { background-color: #fbfbfb; } body .woocommerce-MyAccount-navigation-link a { display: block; padding: .5em 1em; } body .woocommerce form.login, body .woocommerce form.checkout_coupon, body .woocommerce form.register { border: 1px solid var(--ast-border-color); padding: 20px; margin: 2em 0; text-align: left; border-radius: 5px; } '; } // If Off canvas cart is enabled then we should not show view cart link. if ( 'flyout' === astra_get_option( 'woo-header-cart-click-action' ) ) { $css_output .= '.woocommerce a.added_to_cart { display: none; }'; } /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( ! ( defined( 'ASTRA_EXT_VER' ) && class_exists( 'Astra_Ext_Extension' ) && Astra_Ext_Extension::is_active( 'woocommerce' ) ) ) { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $css_output .= ' .woocommerce .woocommerce-result-count, .woocommerce-page .woocommerce-result-count { float: left; } .woocommerce .woocommerce-ordering { float: right; margin-bottom: 2.5em; } '; } if ( true === astra_check_is_structural_setup() ) { $css_desktop_output['.ast-separate-container .ast-woocommerce-container'] = array( 'padding' => '3em', ); } if ( ! $astra_support_woo_btns_global ) { $css_output .= ' .woocommerce-js a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { font-size: 100%; line-height: 1; text-decoration: none; overflow: visible; padding: 0.5em 0.75em; font-weight: 700; border-radius: 3px; color: $secondarytext; background-color: $secondary; border: 0; } .woocommerce-js a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover { background-color: #dad8da; background-image: none; color: #515151; } '; } /* Parse WooCommerce General CSS from array() */ $css_output .= astra_parse_css( $css_desktop_output ); if ( ! Astra_Builder_Helper::apply_flex_based_css() ) { $tablet_css_shop_page_grid = array( '.woocommerce.tablet-columns-6 ul.products li.product, .woocommerce-page.tablet-columns-6 ul.products li.product' => array( 'width' => '12.7%', 'width' => 'calc(16.66% - 16.66px)', ), '.woocommerce.tablet-columns-5 ul.products li.product, .woocommerce-page.tablet-columns-5 ul.products li.product' => array( 'width' => '16.2%', 'width' => 'calc(20% - 16px)', ), '.woocommerce.tablet-columns-4 ul.products li.product, .woocommerce-page.tablet-columns-4 ul.products li.product' => array( 'width' => '21.5%', 'width' => 'calc(25% - 15px)', ), '.woocommerce.tablet-columns-3 ul.products li.product, .woocommerce-page.tablet-columns-3 ul.products li.product' => array( 'width' => '30.2%', 'width' => 'calc(33.33% - 14px)', ), '.woocommerce.tablet-columns-2 ul.products li.product, .woocommerce-page.tablet-columns-2 ul.products li.product' => array( 'width' => '47.6%', 'width' => 'calc(50% - 10px)', ), '.woocommerce.tablet-columns-1 ul.products li.product, .woocommerce-page.tablet-columns-1 ul.products li.product' => array( 'width' => '100%', ), '.woocommerce div.product .related.products ul.products li.product' => array( 'width' => '30.2%', 'width' => 'calc(33.33% - 14px)', ), ); } else { $archive_tablet_grid = $this->get_grid_column_count( 'archive', 'tablet' ); $tablet_css_shop_page_grid = array( '.woocommerce.tablet-columns-' . $archive_tablet_grid . ' ul.products li.product, .woocommerce-page.tablet-columns-' . $archive_tablet_grid . ' ul.products:not(.elementor-grid)' => array( 'grid-template-columns' => 'repeat(' . $archive_tablet_grid . ', minmax(0, 1fr))', ), ); } $css_output .= astra_parse_css( $tablet_css_shop_page_grid, astra_get_mobile_breakpoint( '', 1 ), astra_get_tablet_breakpoint() ); if ( ! Astra_Builder_Helper::apply_flex_based_css() ) { if ( $is_site_rtl ) { $tablet_shop_page_grid_lang_direction_css = array( '.woocommerce[class*="columns-"].columns-3 > ul.products li.product, .woocommerce[class*="columns-"].columns-4 > ul.products li.product, .woocommerce[class*="columns-"].columns-5 > ul.products li.product, .woocommerce[class*="columns-"].columns-6 > ul.products li.product' => array( 'width' => '30.2%', 'width' => 'calc(33.33% - 14px)', 'margin-left' => '20px', ), '.woocommerce[class*="columns-"].columns-3 > ul.products li.product:nth-child(3n), .woocommerce[class*="columns-"].columns-4 > ul.products li.product:nth-child(3n), .woocommerce[class*="columns-"].columns-5 > ul.products li.product:nth-child(3n), .woocommerce[class*="columns-"].columns-6 > ul.products li.product:nth-child(3n)' => array( 'margin-left' => 0, 'clear' => 'left', ), '.woocommerce[class*="columns-"].columns-3 > ul.products li.product:nth-child(3n+1), .woocommerce[class*="columns-"].columns-4 > ul.products li.product:nth-child(3n+1), .woocommerce[class*="columns-"].columns-5 > ul.products li.product:nth-child(3n+1), .woocommerce[class*="columns-"].columns-6 > ul.products li.product:nth-child(3n+1)' => array( 'clear' => 'right', ), '.woocommerce[class*="columns-"] ul.products li.product:nth-child(n), .woocommerce-page[class*="columns-"] ul.products li.product:nth-child(n)' => array( 'margin-left' => '20px', 'clear' => 'none', ), '.woocommerce.tablet-columns-2 ul.products li.product:nth-child(2n), .woocommerce-page.tablet-columns-2 ul.products li.product:nth-child(2n), .woocommerce.tablet-columns-3 ul.products li.product:nth-child(3n), .woocommerce-page.tablet-columns-3 ul.products li.product:nth-child(3n), .woocommerce.tablet-columns-4 ul.products li.product:nth-child(4n), .woocommerce-page.tablet-columns-4 ul.products li.product:nth-child(4n), .woocommerce.tablet-columns-5 ul.products li.product:nth-child(5n), .woocommerce-page.tablet-columns-5 ul.products li.product:nth-child(5n), .woocommerce.tablet-columns-6 ul.products li.product:nth-child(6n), .woocommerce-page.tablet-columns-6 ul.products li.product:nth-child(6n)' => array( 'margin-left' => '0', 'clear' => 'left', ), '.woocommerce.tablet-columns-2 ul.products li.product:nth-child(2n+1), .woocommerce-page.tablet-columns-2 ul.products li.product:nth-child(2n+1), .woocommerce.tablet-columns-3 ul.products li.product:nth-child(3n+1), .woocommerce-page.tablet-columns-3 ul.products li.product:nth-child(3n+1), .woocommerce.tablet-columns-4 ul.products li.product:nth-child(4n+1), .woocommerce-page.tablet-columns-4 ul.products li.product:nth-child(4n+1), .woocommerce.tablet-columns-5 ul.products li.product:nth-child(5n+1), .woocommerce-page.tablet-columns-5 ul.products li.product:nth-child(5n+1), .woocommerce.tablet-columns-6 ul.products li.product:nth-child(6n+1), .woocommerce-page.tablet-columns-6 ul.products li.product:nth-child(6n+1)' => array( 'clear' => 'right', ), '.woocommerce div.product .related.products ul.products li.product:nth-child(3n), .woocommerce-page.tablet-columns-1 .site-main ul.products li.product' => array( 'margin-left' => 0, 'clear' => 'left', ), '.woocommerce div.product .related.products ul.products li.product:nth-child(3n+1)' => array( 'clear' => 'right', ), ); } else { $tablet_shop_page_grid_lang_direction_css = array( '.woocommerce[class*="columns-"].columns-3 > ul.products li.product, .woocommerce[class*="columns-"].columns-4 > ul.products li.product, .woocommerce[class*="columns-"].columns-5 > ul.products li.product, .woocommerce[class*="columns-"].columns-6 > ul.products li.product' => array( 'width' => '30.2%', 'width' => 'calc(33.33% - 14px)', 'margin-right' => '20px', ), '.woocommerce[class*="columns-"].columns-3 > ul.products li.product:nth-child(3n), .woocommerce[class*="columns-"].columns-4 > ul.products li.product:nth-child(3n), .woocommerce[class*="columns-"].columns-5 > ul.products li.product:nth-child(3n), .woocommerce[class*="columns-"].columns-6 > ul.products li.product:nth-child(3n)' => array( 'margin-right' => 0, 'clear' => 'right', ), '.woocommerce[class*="columns-"].columns-3 > ul.products li.product:nth-child(3n+1), .woocommerce[class*="columns-"].columns-4 > ul.products li.product:nth-child(3n+1), .woocommerce[class*="columns-"].columns-5 > ul.products li.product:nth-child(3n+1), .woocommerce[class*="columns-"].columns-6 > ul.products li.product:nth-child(3n+1)' => array( 'clear' => 'left', ), '.woocommerce[class*="columns-"] ul.products li.product:nth-child(n), .woocommerce-page[class*="columns-"] ul.products li.product:nth-child(n)' => array( 'margin-right' => '20px', 'clear' => 'none', ), '.woocommerce.tablet-columns-2 ul.products li.product:nth-child(2n), .woocommerce-page.tablet-columns-2 ul.products li.product:nth-child(2n), .woocommerce.tablet-columns-3 ul.products li.product:nth-child(3n), .woocommerce-page.tablet-columns-3 ul.products li.product:nth-child(3n), .woocommerce.tablet-columns-4 ul.products li.product:nth-child(4n), .woocommerce-page.tablet-columns-4 ul.products li.product:nth-child(4n), .woocommerce.tablet-columns-5 ul.products li.product:nth-child(5n), .woocommerce-page.tablet-columns-5 ul.products li.product:nth-child(5n), .woocommerce.tablet-columns-6 ul.products li.product:nth-child(6n), .woocommerce-page.tablet-columns-6 ul.products li.product:nth-child(6n)' => array( 'margin-right' => '0', 'clear' => 'right', ), '.woocommerce.tablet-columns-2 ul.products li.product:nth-child(2n+1), .woocommerce-page.tablet-columns-2 ul.products li.product:nth-child(2n+1), .woocommerce.tablet-columns-3 ul.products li.product:nth-child(3n+1), .woocommerce-page.tablet-columns-3 ul.products li.product:nth-child(3n+1), .woocommerce.tablet-columns-4 ul.products li.product:nth-child(4n+1), .woocommerce-page.tablet-columns-4 ul.products li.product:nth-child(4n+1), .woocommerce.tablet-columns-5 ul.products li.product:nth-child(5n+1), .woocommerce-page.tablet-columns-5 ul.products li.product:nth-child(5n+1), .woocommerce.tablet-columns-6 ul.products li.product:nth-child(6n+1), .woocommerce-page.tablet-columns-6 ul.products li.product:nth-child(6n+1)' => array( 'clear' => 'left', ), '.woocommerce div.product .related.products ul.products li.product:nth-child(3n), .woocommerce-page.tablet-columns-1 .site-main ul.products li.product' => array( 'margin-right' => 0, 'clear' => 'right', ), '.woocommerce div.product .related.products ul.products li.product:nth-child(3n+1)' => array( 'clear' => 'left', ), ); } $css_output .= astra_parse_css( $tablet_shop_page_grid_lang_direction_css, astra_get_mobile_breakpoint( '', 1 ), astra_get_tablet_breakpoint() ); } /** * Global button CSS - Tablet = min-wdth: (tablet + 1)px */ if ( $is_site_rtl ) { $min_tablet_css = array( '.woocommerce form.checkout_coupon' => array( 'width' => '50%', ), ); if ( ! Astra_Builder_Helper::apply_flex_based_css() ) { $min_tablet_css['.woocommerce #reviews #comments']['float'] = 'right'; $min_tablet_css['.woocommerce #reviews #review_form_wrapper']['float'] = 'left'; } } else { $min_tablet_css = array( '.woocommerce form.checkout_coupon' => array( 'width' => '50%', ), ); if ( ! Astra_Builder_Helper::apply_flex_based_css() ) { $min_tablet_css['.woocommerce #reviews #comments']['float'] = 'left'; $min_tablet_css['.woocommerce #reviews #review_form_wrapper']['float'] = 'right'; } } $css_output .= astra_parse_css( $min_tablet_css, astra_get_tablet_breakpoint( '', 1 ) ); /** * Global button CSS - Tablet = max-width: (tab-breakpoint)px. */ $css_global_button_tablet = array( '.ast-header-break-point.ast-woocommerce-cart-menu .header-main-layout-1.ast-mobile-header-stack.ast-no-menu-items .ast-site-header-cart, .ast-header-break-point.ast-woocommerce-cart-menu .header-main-layout-3.ast-mobile-header-stack.ast-no-menu-items .ast-site-header-cart' => array( 'padding-right' => 0, 'padding-left' => 0, ), '.ast-header-break-point.ast-woocommerce-cart-menu .header-main-layout-1.ast-mobile-header-stack .main-header-bar' => array( 'text-align' => 'center', ), '.ast-header-break-point.ast-woocommerce-cart-menu .header-main-layout-1.ast-mobile-header-stack .ast-site-header-cart, .ast-header-break-point.ast-woocommerce-cart-menu .header-main-layout-1.ast-mobile-header-stack .ast-mobile-menu-buttons' => array( 'display' => 'inline-block', ), '.ast-header-break-point.ast-woocommerce-cart-menu .header-main-layout-2.ast-mobile-header-inline .site-branding' => array( 'flex' => 'auto', ), '.ast-header-break-point.ast-woocommerce-cart-menu .header-main-layout-3.ast-mobile-header-stack .site-branding' => array( 'flex' => '0 0 100%', ), '.ast-header-break-point.ast-woocommerce-cart-menu .header-main-layout-3.ast-mobile-header-stack .main-header-container' => array( 'display' => 'flex', 'justify-content' => 'center', ), '.woocommerce-cart .woocommerce-shipping-calculator .button' => array( 'width' => '100%', ), '.woocommerce div.product div.images, .woocommerce div.product div.summary, .woocommerce #content div.product div.images, .woocommerce #content div.product div.summary, .woocommerce-page div.product div.images, .woocommerce-page div.product div.summary, .woocommerce-page #content div.product div.images, .woocommerce-page #content div.product div.summary' => array( 'float' => 'none', 'width' => '100%', ), '.woocommerce-cart table.cart td.actions .ast-return-to-shop' => array( 'display' => 'block', 'text-align' => 'center', 'margin-top' => '1em', ), ); if ( ! $astra_support_woo_btns_global ) { $css_global_button_tablet['.woocommerce-js a.button, .woocommerce button.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce-js a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce-cart table.cart td.actions .button, .woocommerce form.checkout_coupon .button, .woocommerce #respond input#submit, .wc-block-grid__products .wc-block-grid__product .wp-block-button__link'] = array_merge( $woo_btn_compatibility_tablet, array( 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'tablet' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'tablet' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'tablet' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'tablet' ), 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'tablet' ), ) ); } if ( Astra_Builder_Helper::apply_flex_based_css() ) { $archive_tablet_grid = $this->get_grid_column_count( 'archive', 'tablet' ); $css_global_button_tablet[ '.ast-container .woocommerce ul.products:not(.elementor-grid), .woocommerce-page ul.products:not(.elementor-grid), .woocommerce.tablet-columns-' . $archive_tablet_grid . ' ul.products:not(.elementor-grid)' ] = array( 'grid-template-columns' => 'repeat(' . $archive_tablet_grid . ', minmax(0, 1fr))', ); if ( is_shop() || is_product_taxonomy() ) { $css_global_button_tablet['.woocommerce[class*="tablet-columns-"] .site-main div.product .related.products ul.products li.product'] = array( 'width' => '100%', ); } if ( is_product() ) { $single_tablet_grid = $this->get_grid_column_count( 'single', 'tablet' ); $css_global_button_tablet[ '.woocommerce.tablet-rel-up-columns-' . $single_tablet_grid . ' ul.products' ] = array( 'grid-template-columns' => 'repeat(' . $single_tablet_grid . ', minmax(0, 1fr))', ); $css_global_button_tablet['.woocommerce[class*="tablet-rel-up-columns-"] .site-main div.product .related.products ul.products li.product'] = array( 'width' => '100%', ); } } $css_output .= astra_parse_css( $css_global_button_tablet, '', astra_get_tablet_breakpoint() ); /** * Global button CSS - Mobile = max-width: (mobile-breakpoint)px. */ $css_global_button_mobile = array( '.ast-separate-container .ast-woocommerce-container' => array( 'padding' => '.54em 1em 1.33333em', ), '.woocommerce-message, .woocommerce-error, .woocommerce-info' => array( 'display' => 'flex', 'flex-wrap' => 'wrap', ), '.woocommerce-message a.button, .woocommerce-error a.button, .woocommerce-info a.button' => array( 'order' => '1', 'margin-top' => '.5em', ), '.woocommerce .woocommerce-ordering, .woocommerce-page .woocommerce-ordering' => array( 'float' => 'none', 'margin-bottom' => '2em', ), '.woocommerce table.cart td.actions .button, .woocommerce #content table.cart td.actions .button, .woocommerce-page table.cart td.actions .button, .woocommerce-page #content table.cart td.actions .button' => array( 'padding-left' => '1em', 'padding-right' => '1em', ), '.woocommerce #content table.cart .button, .woocommerce-page #content table.cart .button' => array( 'width' => '100%', ), '.woocommerce #content table.cart td.actions .coupon, .woocommerce-page #content table.cart td.actions .coupon' => array( 'float' => 'none', ), '.woocommerce #content table.cart td.actions .coupon .button, .woocommerce-page #content table.cart td.actions .coupon .button' => array( 'flex' => '1', ), '.woocommerce #content div.product .woocommerce-tabs ul.tabs li a, .woocommerce-page #content div.product .woocommerce-tabs ul.tabs li a' => array( 'display' => 'block', ), ); if ( ! $astra_support_woo_btns_global ) { $css_global_button_mobile['.woocommerce ul.products a.button, .woocommerce-page ul.products a.button'] = array( 'padding' => '0.5em 0.75em', ); $css_global_button_mobile['.woocommerce-js a.button, .woocommerce button.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce-js a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce-cart table.cart td.actions .button, .woocommerce form.checkout_coupon .button, .woocommerce #respond input#submit, .wc-block-grid__products .wc-block-grid__product .wp-block-button__link'] = array_merge( $woo_btn_compatibility_mobile, array( 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'mobile' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'mobile' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'mobile' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'mobile' ), 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'mobile' ), ) ); } if ( ! Astra_Builder_Helper::apply_flex_based_css() ) { $css_global_button_mobile['.woocommerce div.product .related.products ul.products li.product, .woocommerce.mobile-columns-2 ul.products li.product, .woocommerce-page.mobile-columns-2 ul.products li.product'] = array( 'width' => '46.1%', 'width' => 'calc(50% - 10px)', ); $css_global_button_mobile['.woocommerce.mobile-columns-6 ul.products li.product, .woocommerce-page.mobile-columns-6 ul.products li.product'] = array( 'width' => '10.2%', 'width' => 'calc(16.66% - 16.66px)', ); $css_global_button_mobile['.woocommerce.mobile-columns-5 ul.products li.product, .woocommerce-page.mobile-columns-5 ul.products li.product'] = array( 'width' => '13%', 'width' => 'calc(20% - 16px)', ); $css_global_button_mobile['.woocommerce.mobile-columns-4 ul.products li.product, .woocommerce-page.mobile-columns-4 ul.products li.product'] = array( 'width' => '19%', 'width' => 'calc(25% - 15px)', ); $css_global_button_mobile['.woocommerce.mobile-columns-3 ul.products li.product, .woocommerce-page.mobile-columns-3 ul.products li.product'] = array( 'width' => '28.2%', 'width' => 'calc(33.33% - 14px)', ); $css_global_button_mobile['.woocommerce.mobile-columns-1 ul.products li.product, .woocommerce-page.mobile-columns-1 ul.products li.product'] = array( 'width' => '100%', ); } else { $archive_mobile_grid = $this->get_grid_column_count( 'archive', 'mobile' ); $single_mobile_grid = $this->get_grid_column_count( 'single', 'mobile' ); $css_global_button_mobile[ '.ast-container .woocommerce ul.products:not(.elementor-grid), .woocommerce-page ul.products:not(.elementor-grid), .woocommerce.mobile-columns-' . $archive_mobile_grid . ' ul.products:not(.elementor-grid), .woocommerce-page.mobile-columns-' . $archive_mobile_grid . ' ul.products:not(.elementor-grid)' ] = array( 'grid-template-columns' => 'repeat(' . $archive_mobile_grid . ', minmax(0, 1fr))', ); $css_global_button_mobile[ '.woocommerce.mobile-rel-up-columns-' . $single_mobile_grid . ' ul.products::not(.elementor-grid)' ] = array( 'grid-template-columns' => 'repeat(' . $single_mobile_grid . ', minmax(0, 1fr))', ); } $css_output .= astra_parse_css( $css_global_button_mobile, '', astra_get_mobile_breakpoint() ); if ( $is_site_rtl ) { $global_button_mobile_lang_direction_css = array( '.woocommerce ul.products a.button.loading::after, .woocommerce-page ul.products a.button.loading::after' => array( 'display' => 'inline-block', 'margin-right' => '5px', 'position' => 'initial', ), '.woocommerce.mobile-columns-1 .site-main ul.products li.product:nth-child(n), .woocommerce-page.mobile-columns-1 .site-main ul.products li.product:nth-child(n)' => array( 'margin-left' => 0, ), '.woocommerce #content div.product .woocommerce-tabs ul.tabs li, .woocommerce-page #content div.product .woocommerce-tabs ul.tabs li' => array( 'display' => 'block', 'margin-left' => 0, ), ); if ( ! Astra_Builder_Helper::apply_flex_based_css() ) { $global_button_mobile_lang_direction_css['.woocommerce[class*="columns-"].columns-3 > ul.products li.product, .woocommerce[class*="columns-"].columns-4 > ul.products li.product, .woocommerce[class*="columns-"].columns-5 > ul.products li.product, .woocommerce[class*="columns-"].columns-6 > ul.products li.product'] = array( 'width' => 'calc(50% - 10px)', 'margin-left' => '20px', ); $global_button_mobile_lang_direction_css['.woocommerce[class*="columns-"] ul.products li.product:nth-child(n), .woocommerce-page[class*="columns-"] ul.products li.product:nth-child(n)'] = array( 'margin-left' => '20px', 'clear' => 'none', ); $global_button_mobile_lang_direction_css['.woocommerce-page[class*=columns-].columns-3>ul.products li.product:nth-child(2n), .woocommerce-page[class*=columns-].columns-4>ul.products li.product:nth-child(2n), .woocommerce-page[class*=columns-].columns-5>ul.products li.product:nth-child(2n), .woocommerce-page[class*=columns-].columns-6>ul.products li.product:nth-child(2n), .woocommerce[class*=columns-].columns-3>ul.products li.product:nth-child(2n), .woocommerce[class*=columns-].columns-4>ul.products li.product:nth-child(2n), .woocommerce[class*=columns-].columns-5>ul.products li.product:nth-child(2n), .woocommerce[class*=columns-].columns-6>ul.products li.product:nth-child(2n)'] = array( 'margin-left' => 0, 'clear' => 'left', ); $global_button_mobile_lang_direction_css['.woocommerce[class*="columns-"].columns-3 > ul.products li.product:nth-child(2n+1), .woocommerce[class*="columns-"].columns-4 > ul.products li.product:nth-child(2n+1), .woocommerce[class*="columns-"].columns-5 > ul.products li.product:nth-child(2n+1), .woocommerce[class*="columns-"].columns-6 > ul.products li.product:nth-child(2n+1)'] = array( 'clear' => 'right', ); $global_button_mobile_lang_direction_css['.woocommerce-page[class*=columns-] ul.products li.product:nth-child(n), .woocommerce[class*=columns-] ul.products li.product:nth-child(n)'] = array( 'margin-left' => '20px', 'clear' => 'none', ); $global_button_mobile_lang_direction_css['.woocommerce.mobile-columns-6 ul.products li.product:nth-child(6n), .woocommerce-page.mobile-columns-6 ul.products li.product:nth-child(6n), .woocommerce.mobile-columns-5 ul.products li.product:nth-child(5n), .woocommerce-page.mobile-columns-5 ul.products li.product:nth-child(5n), .woocommerce.mobile-columns-4 ul.products li.product:nth-child(4n), .woocommerce-page.mobile-columns-4 ul.products li.product:nth-child(4n), .woocommerce.mobile-columns-3 ul.products li.product:nth-child(3n), .woocommerce-page.mobile-columns-3 ul.products li.product:nth-child(3n), .woocommerce.mobile-columns-2 ul.products li.product:nth-child(2n), .woocommerce-page.mobile-columns-2 ul.products li.product:nth-child(2n), .woocommerce div.product .related.products ul.products li.product:nth-child(2n)'] = array( 'margin-left' => 0, 'clear' => 'left', ); $global_button_mobile_lang_direction_css['.woocommerce.mobile-columns-6 ul.products li.product:nth-child(6n+1), .woocommerce-page.mobile-columns-6 ul.products li.product:nth-child(6n+1), .woocommerce.mobile-columns-5 ul.products li.product:nth-child(5n+1), .woocommerce-page.mobile-columns-5 ul.products li.product:nth-child(5n+1), .woocommerce.mobile-columns-4 ul.products li.product:nth-child(4n+1), .woocommerce-page.mobile-columns-4 ul.products li.product:nth-child(4n+1), .woocommerce.mobile-columns-3 ul.products li.product:nth-child(3n+1), .woocommerce-page.mobile-columns-3 ul.products li.product:nth-child(3n+1), .woocommerce.mobile-columns-2 ul.products li.product:nth-child(2n+1), .woocommerce-page.mobile-columns-2 ul.products li.product:nth-child(2n+1), .woocommerce div.product .related.products ul.products li.product:nth-child(2n+1)'] = array( 'clear' => 'right', ); } } else { $global_button_mobile_lang_direction_css = array( '.woocommerce ul.products a.button.loading::after, .woocommerce-page ul.products a.button.loading::after' => array( 'display' => 'inline-block', 'margin-left' => '5px', 'position' => 'initial', ), '.woocommerce.mobile-columns-1 .site-main ul.products li.product:nth-child(n), .woocommerce-page.mobile-columns-1 .site-main ul.products li.product:nth-child(n)' => array( 'margin-right' => 0, ), '.woocommerce #content div.product .woocommerce-tabs ul.tabs li, .woocommerce-page #content div.product .woocommerce-tabs ul.tabs li' => array( 'display' => 'block', 'margin-right' => 0, ), ); if ( ! Astra_Builder_Helper::apply_flex_based_css() ) { $global_button_mobile_lang_direction_css['.woocommerce[class*="columns-"].columns-3 > ul.products li.product, .woocommerce[class*="columns-"].columns-4 > ul.products li.product, .woocommerce[class*="columns-"].columns-5 > ul.products li.product, .woocommerce[class*="columns-"].columns-6 > ul.products li.product'] = array( 'width' => 'calc(50% - 10px)', 'margin-right' => '20px', ); $global_button_mobile_lang_direction_css['.woocommerce[class*="columns-"] ul.products li.product:nth-child(n), .woocommerce-page[class*="columns-"] ul.products li.product:nth-child(n)'] = array( 'margin-right' => '20px', 'clear' => 'none', ); $global_button_mobile_lang_direction_css['.woocommerce-page[class*=columns-].columns-3>ul.products li.product:nth-child(2n), .woocommerce-page[class*=columns-].columns-4>ul.products li.product:nth-child(2n), .woocommerce-page[class*=columns-].columns-5>ul.products li.product:nth-child(2n), .woocommerce-page[class*=columns-].columns-6>ul.products li.product:nth-child(2n), .woocommerce[class*=columns-].columns-3>ul.products li.product:nth-child(2n), .woocommerce[class*=columns-].columns-4>ul.products li.product:nth-child(2n), .woocommerce[class*=columns-].columns-5>ul.products li.product:nth-child(2n), .woocommerce[class*=columns-].columns-6>ul.products li.product:nth-child(2n)'] = array( 'margin-right' => 0, 'clear' => 'right', ); $global_button_mobile_lang_direction_css['.woocommerce[class*="columns-"].columns-3 > ul.products li.product:nth-child(2n+1), .woocommerce[class*="columns-"].columns-4 > ul.products li.product:nth-child(2n+1), .woocommerce[class*="columns-"].columns-5 > ul.products li.product:nth-child(2n+1), .woocommerce[class*="columns-"].columns-6 > ul.products li.product:nth-child(2n+1)'] = array( 'clear' => 'left', ); $global_button_mobile_lang_direction_css['.woocommerce-page[class*=columns-] ul.products li.product:nth-child(n), .woocommerce[class*=columns-] ul.products li.product:nth-child(n)'] = array( 'margin-right' => '20px', 'clear' => 'none', ); $global_button_mobile_lang_direction_css['.woocommerce.mobile-columns-6 ul.products li.product:nth-child(6n), .woocommerce-page.mobile-columns-6 ul.products li.product:nth-child(6n), .woocommerce.mobile-columns-5 ul.products li.product:nth-child(5n), .woocommerce-page.mobile-columns-5 ul.products li.product:nth-child(5n), .woocommerce.mobile-columns-4 ul.products li.product:nth-child(4n), .woocommerce-page.mobile-columns-4 ul.products li.product:nth-child(4n), .woocommerce.mobile-columns-3 ul.products li.product:nth-child(3n), .woocommerce-page.mobile-columns-3 ul.products li.product:nth-child(3n), .woocommerce.mobile-columns-2 ul.products li.product:nth-child(2n), .woocommerce-page.mobile-columns-2 ul.products li.product:nth-child(2n), .woocommerce div.product .related.products ul.products li.product:nth-child(2n)'] = array( 'margin-right' => 0, 'clear' => 'right', ); $global_button_mobile_lang_direction_css['.woocommerce.mobile-columns-6 ul.products li.product:nth-child(6n+1), .woocommerce-page.mobile-columns-6 ul.products li.product:nth-child(6n+1), .woocommerce.mobile-columns-5 ul.products li.product:nth-child(5n+1), .woocommerce-page.mobile-columns-5 ul.products li.product:nth-child(5n+1), .woocommerce.mobile-columns-4 ul.products li.product:nth-child(4n+1), .woocommerce-page.mobile-columns-4 ul.products li.product:nth-child(4n+1), .woocommerce.mobile-columns-3 ul.products li.product:nth-child(3n+1), .woocommerce-page.mobile-columns-3 ul.products li.product:nth-child(3n+1), .woocommerce.mobile-columns-2 ul.products li.product:nth-child(2n+1), .woocommerce-page.mobile-columns-2 ul.products li.product:nth-child(2n+1), .woocommerce div.product .related.products ul.products li.product:nth-child(2n+1)'] = array( 'clear' => 'left', ); } } $css_output .= astra_parse_css( $global_button_mobile_lang_direction_css, '', astra_get_mobile_breakpoint() ); if ( 'page-builder' !== astra_get_content_layout() ) { /* Woocommerce Shop Archive width */ if ( 'custom' === $woo_shop_archive_width ) : // Woocommerce shop archive custom width. $site_width = array( '.ast-woo-shop-archive .site-content > .ast-container' => array( 'max-width' => astra_get_css_value( $woo_shop_archive_max_width, 'px' ), ), ); $css_output .= astra_parse_css( $site_width, astra_get_tablet_breakpoint( '', 1 ) ); else : // Woocommerce shop archive default width. $site_width = array( '.ast-woo-shop-archive .site-content > .ast-container' => array( 'max-width' => astra_get_css_value( $site_content_width + 40, 'px' ), ), ); /* Parse CSS from array()*/ $css_output .= astra_parse_css( $site_width, astra_get_tablet_breakpoint( '', 1 ) ); endif; } $woo_product_css = array( '.woocommerce #content .ast-woocommerce-container div.product div.images, .woocommerce .ast-woocommerce-container div.product div.images, .woocommerce-page #content .ast-woocommerce-container div.product div.images, .woocommerce-page .ast-woocommerce-container div.product div.images' => array( 'width' => '50%', ), '.woocommerce #content .ast-woocommerce-container div.product div.summary, .woocommerce .ast-woocommerce-container div.product div.summary, .woocommerce-page #content .ast-woocommerce-container div.product div.summary, .woocommerce-page .ast-woocommerce-container div.product div.summary' => array( 'width' => '46%', ), '.woocommerce.woocommerce-checkout form #customer_details.col2-set .col-1, .woocommerce.woocommerce-checkout form #customer_details.col2-set .col-2, .woocommerce-page.woocommerce-checkout form #customer_details.col2-set .col-1, .woocommerce-page.woocommerce-checkout form #customer_details.col2-set .col-2' => array( 'float' => 'none', 'width' => 'auto', ), ); /* Parse CSS from array()*/ $css_output .= astra_parse_css( $woo_product_css, astra_get_tablet_breakpoint( '', 1 ) ); /* * global button settings not working for woocommerce button on shop and single page. * check if the current user is existing user or new user. * if new user load the CSS bty default if existing provide a filter */ if ( self::astra_global_btn_woo_comp() ) { if ( ! $astra_support_woo_btns_global ) { $woo_global_button_css = array( '.woocommerce-js a.button , .woocommerce button.button.alt ,.woocommerce-page table.cart td.actions .button, .woocommerce-page #content table.cart td.actions .button , .woocommerce-js a.button.alt ,.woocommerce .woocommerce-message a.button , .ast-site-header-cart .widget_shopping_cart .buttons .button.checkout, .woocommerce button.button.alt.disabled , .wc-block-grid__products .wc-block-grid__product .wp-block-button__link ' => array( 'border' => 'solid', 'border-top-width' => ( isset( $global_custom_button_border_size['top'] ) && '' !== $global_custom_button_border_size['top'] ) ? astra_get_css_value( $global_custom_button_border_size['top'], 'px' ) : '0', 'border-right-width' => ( isset( $global_custom_button_border_size['right'] ) && '' !== $global_custom_button_border_size['right'] ) ? astra_get_css_value( $global_custom_button_border_size['right'], 'px' ) : '0', 'border-left-width' => ( isset( $global_custom_button_border_size['left'] ) && '' !== $global_custom_button_border_size['left'] ) ? astra_get_css_value( $global_custom_button_border_size['left'], 'px' ) : '0', 'border-bottom-width' => ( isset( $global_custom_button_border_size['bottom'] ) && '' !== $global_custom_button_border_size['bottom'] ) ? astra_get_css_value( $global_custom_button_border_size['bottom'], 'px' ) : '0', 'border-color' => $btn_border_color ? $btn_border_color : $btn_bg_color, ), '.woocommerce-js a.button:hover , .woocommerce button.button.alt:hover , .woocommerce-page table.cart td.actions .button:hover, .woocommerce-page #content table.cart td.actions .button:hover, .woocommerce-js a.button.alt:hover ,.woocommerce .woocommerce-message a.button:hover , .ast-site-header-cart .widget_shopping_cart .buttons .button.checkout:hover , .woocommerce button.button.alt.disabled:hover , .wc-block-grid__products .wc-block-grid__product .wp-block-button__link:hover' => array( 'border-color' => $btn_border_h_color ? $btn_border_h_color : $btn_bg_h_color, ), ); $css_output .= astra_parse_css( $woo_global_button_css ); } if ( $if_free_shipping ) { $woo_free_shipping_text = array( '.summary .price' => array( 'display' => 'inline-block', ), '.ast-shipping-text' => array( 'display' => 'inline', ), ); $css_output .= astra_parse_css( $woo_free_shipping_text ); } } if ( ! is_shop() && ! is_product() ) { $css_output .= astra_parse_css( array( '.widget_product_search button' => array( 'flex' => '0 0 auto', 'padding' => '10px 20px', ), ) ); } if ( $is_site_rtl ) { $woo_product_lang_direction_css = array( '.woocommerce.woocommerce-checkout form #customer_details.col2-set, .woocommerce-page.woocommerce-checkout form #customer_details.col2-set' => array( 'width' => '55%', 'float' => 'right', 'margin-left' => '4.347826087%', ), '.woocommerce.woocommerce-checkout form #order_review, .woocommerce.woocommerce-checkout form #order_review_heading, .woocommerce-page.woocommerce-checkout form #order_review, .woocommerce-page.woocommerce-checkout form #order_review_heading' => array( 'width' => '40%', 'float' => 'left', 'margin-left' => '0', 'clear' => 'left', ), ); } else { $woo_product_lang_direction_css = array( '.woocommerce.woocommerce-checkout form #customer_details.col2-set, .woocommerce-page.woocommerce-checkout form #customer_details.col2-set' => array( 'width' => '55%', 'float' => 'left', 'margin-right' => '4.347826087%', ), '.woocommerce.woocommerce-checkout form #order_review, .woocommerce.woocommerce-checkout form #order_review_heading, .woocommerce-page.woocommerce-checkout form #order_review, .woocommerce-page.woocommerce-checkout form #order_review_heading' => array( 'width' => '40%', 'float' => 'right', 'margin-right' => '0', 'clear' => 'right', ), ); } /* Parse CSS from array()*/ /** @psalm-suppress InvalidScalarArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $css_output .= astra_parse_css( $woo_product_lang_direction_css, astra_get_tablet_breakpoint( '', 1 ) ); /** @psalm-suppress InvalidScalarArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** * Single page cart button size. */ $single_product_cart_button_width = astra_get_option( 'single-product-cart-button-width' ); $single_product_cart_button_width_desktop = ( ! empty( $single_product_cart_button_width['desktop'] ) ) ? $single_product_cart_button_width['desktop'] : ''; $single_product_cart_button_width_tablet = ( ! empty( $single_product_cart_button_width['tablet'] ) ) ? $single_product_cart_button_width['tablet'] : ''; $single_product_cart_button_width_mobile = ( ! empty( $single_product_cart_button_width['mobile'] ) ) ? $single_product_cart_button_width['mobile'] : ''; $single_cart_button = '.woocommerce div.product form.cart .button.single_add_to_cart_button'; $css_output_cart_button_width_desktop = array( $single_cart_button => array( 'width' => astra_get_css_value( $single_product_cart_button_width_desktop, '%' ), ), ); $css_output .= astra_parse_css( $css_output_cart_button_width_desktop ); $css_output_cart_button_width_mobile = array( $single_cart_button => array( 'width' => astra_get_css_value( $single_product_cart_button_width_mobile, '%' ), ), ); $css_output_cart_button_width_tablet = array( $single_cart_button => array( 'width' => astra_get_css_value( $single_product_cart_button_width_tablet, '%' ), ), ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $css_output .= astra_parse_css( $css_output_cart_button_width_tablet, '', astra_get_tablet_breakpoint() ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $css_output .= astra_parse_css( $css_output_cart_button_width_mobile, '', astra_get_mobile_breakpoint() ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** * Select arrow styling */ $arrow_color = str_replace( '#', '%23', $global_palette['palette'][3] ); $arrow_bg = "data:image/svg+xml,%3Csvg class='ast-arrow-svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' x='0px' y='0px' width='26px' height='16.043px' fill='" . $arrow_color . "' viewBox='57 35.171 26 16.043' enable-background='new 57 35.171 26 16.043' xml:space='preserve' %3E%3Cpath d='M57.5,38.193l12.5,12.5l12.5-12.5l-2.5-2.5l-10,10l-10-10L57.5,38.193z'%3E%3C/path%3E%3C/svg%3E"; $css_output_woo_select_default = array( 'select, .select2-container .select2-selection--single' => array( 'background-image' => 'url("' . $arrow_bg . '")', 'background-size' => '.8em', 'background-repeat' => 'no-repeat', 'background-position-x' => 'calc( 100% - 10px )', 'background-position-y' => 'center', '-webkit-appearance' => 'none', '-moz-appearance' => 'none', 'padding-right' => '2em', ), ); $css_output .= astra_parse_css( $css_output_woo_select_default ); $is_sticky_add_to_cart_position_active = astra_get_option( 'single-product-sticky-add-to-cart' ); if ( is_product() && $is_sticky_add_to_cart_position_active ) { /** * Sticky add to cart variables. */ $sticky_add_to_cart_position = astra_get_option( 'single-product-sticky-add-to-cart-position' ); $sticky_add_to_cart_text_color = astra_get_option( 'single-product-sticky-add-to-cart-text-color' ); $sticky_add_to_cart_bg_color = astra_get_option( 'single-product-sticky-add-to-cart-bg-color' ); $sticky_add_to_cart_btn_text_color = astra_get_option( 'single-product-sticky-add-to-cart-btn-n-color' ); $sticky_add_to_cart_btn_text_color_h = astra_get_option( 'single-product-sticky-add-to-cart-btn-h-color' ); $sticky_add_to_cart_btn_bg_color = astra_get_option( 'single-product-sticky-add-to-cart-btn-bg-n-color' ); $sticky_add_to_cart_btn_bg_color_h = astra_get_option( 'single-product-sticky-add-to-cart-btn-bg-h-color' ); /** * Single product sticky add to cart. */ $sticky_add_to_cart = array( '.woocommerce .ast-sticky-add-to-cart .button.alt' => array( 'border-color' => $sticky_add_to_cart_btn_bg_color, 'color' => $sticky_add_to_cart_btn_text_color, 'background' => $sticky_add_to_cart_btn_bg_color, ), '.woocommerce .ast-sticky-add-to-cart .button.alt:hover' => array( 'border-color' => $sticky_add_to_cart_btn_bg_color_h, 'color' => $sticky_add_to_cart_btn_text_color_h, 'background' => $sticky_add_to_cart_btn_bg_color_h, ), '.ast-sticky-add-to-cart .ast-container .ast-sticky-add-to-cart-content' => array( 'color' => $sticky_add_to_cart_text_color ? $sticky_add_to_cart_text_color : 'var(--ast-global-color-3)', ), 'div.ast-sticky-add-to-cart' => array( 'background-color' => $sticky_add_to_cart_bg_color, ), ); if ( 'top' === $sticky_add_to_cart_position ) { $sticky_add_to_cart_p = array( 'div.ast-sticky-add-to-cart' => array( 'top' => '0', 'bottom' => 'initial', 'transform' => 'translate(0, -100%)', 'box-shadow' => '0px 1px 10px rgba(0, 0, 0, 0.1), 0px 1px 9px rgba(0, 0, 0, 0.06)', ), ); } else { $sticky_add_to_cart_p = array( 'div.ast-sticky-add-to-cart' => array( 'bottom' => '0', 'top' => 'initial', 'transform' => 'translate(0, 100%)', 'box-shadow' => '0px -1px 10px rgba(0, 0, 0, 0.1), 0px -1px 9px rgba(0, 0, 0, 0.06)', ), ); } $sticky_add_to_cart_responsive_mobile = array( '.ast-sticky-add-to-cart .ast-sticky-add-to-cart-content div.ast-sticky-add-to-cart-title-wrap, .ast-sticky-add-to-cart-action-price' => array( 'display' => 'none', ), '.ast-quantity-add-to-cart, .ast-sticky-add-to-cart-action-wrap, .ast-sticky-add-to-cart-action-wrap > form' => array( 'width' => '100%', ), ); $sticky_add_to_cart_responsive_tablet = array( '.ast-sticky-add-to-cart-title-wrap > img' => array( 'display' => 'none', ), 'div.ast-sticky-add-to-cart .ast-sticky-add-to-cart-content .ast-sticky-add-to-cart-title-wrap .ast-sticky-add-to-cart-title' => array( 'padding-' . $ltr_left . '' => '0', ), ); if ( is_admin_bar_showing() ) { $sticky_add_to_cart_admin_bar = array( '.admin-bar .ast-sticky-add-to-cart.top' => array( 'top' => '32px', ), ); $css_output .= astra_parse_css( $sticky_add_to_cart_admin_bar, '601' ); } /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $css_output .= astra_parse_css( $sticky_add_to_cart_responsive_tablet, '', astra_get_tablet_breakpoint() ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $css_output .= astra_parse_css( $sticky_add_to_cart_responsive_mobile, '', astra_get_mobile_breakpoint() ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $css_output .= astra_parse_css( $sticky_add_to_cart_p ); $css_output .= astra_parse_css( $sticky_add_to_cart ); } $astra_add_to_cart_quantity_btn_enabled = astra_add_to_cart_quantity_btn_enabled(); // Add to cart quantity button. if ( $astra_add_to_cart_quantity_btn_enabled ) { $add_to_cart_quantity_btn_css = ''; $add_to_cart_quantity_btn_css .= ' .woocommerce-js .quantity.buttons_added { display: inline-flex; } .woocommerce-js .quantity.buttons_added + .button.single_add_to_cart_button { margin-' . $ltr_left . ': unset; } .woocommerce-js .quantity .qty { width: 2.631em; margin-' . $ltr_left . ': 38px; } .woocommerce-js .quantity .minus, .woocommerce-js .quantity .plus { width: 38px; display: flex; justify-content: center; background-color: transparent; border: 1px solid var(--ast-border-color); color: var(--ast-global-color-3); align-items: center; outline: 0; font-weight: 400; z-index: 3; } .woocommerce-js .quantity .minus { border-' . $ltr_right . '-width: 0; margin-' . $ltr_right . ': -38px; } .woocommerce-js .quantity .plus { border-' . $ltr_left . '-width: 0; margin-' . $ltr_right . ': 6px; } .woocommerce-js input[type=number] { max-width: 58px; min-height: 36px; } .woocommerce-js input[type=number].qty::-webkit-inner-spin-button, .woocommerce input[type=number].qty::-webkit-outer-spin-button { -webkit-appearance: none; } .woocommerce-js input[type=number].qty { -webkit-appearance: none; -moz-appearance: textfield; } '; $css_output .= $add_to_cart_quantity_btn_css; } // Modern archive layout. if ( 'shop-page-modern-style' === astra_get_option( 'shop-style' ) ) { $modern_shop_page_css = ''; if ( 'none' !== astra_get_option( 'product-sale-notification', 'default' ) ) { $modern_shop_page_css .= ' .ast-onsale-card { position: absolute; top: 1.5em; ' . esc_attr( $ltr_left ) . ': 1.5em; color: var(--ast-global-color-3); background-color: var(--ast-global-color-primary, var(--ast-global-color-5)); width: fit-content; border-radius: 20px; padding: 0.4em 0.8em; font-size: .87em; font-weight: 500; line-height: normal; letter-spacing: normal; box-shadow: 0 4px 4px rgba(0,0,0,0.15); opacity: 1; visibility: visible; z-index: 4; } @media(max-width: 420px) { .mobile-columns-3 .ast-onsale-card { top: 1em; ' . esc_attr( $ltr_left ) . ': 1em; } } '; } $modern_shop_page_css .= ' .ast-on-card-button { position: absolute; ' . esc_attr( $ltr_right ) . ': 1em; visibility: hidden; opacity: 0; transition: all 0.2s; z-index: 5; cursor: pointer; } .ast-on-card-button.ast-onsale-card { opacity: 1; visibility: visible; } .ast-on-card-button:hover .ast-card-action-tooltip, .ast-on-card-button:focus .ast-card-action-tooltip { opacity: 1; visibility: visible; } .ast-on-card-button:hover .ahfb-svg-iconset { opacity: 1; color: var(--ast-global-color-2); } .ast-on-card-button .ahfb-svg-iconset { border-radius: 50%; color: var(--ast-global-color-2); background: var(--ast-global-color-primary, var(--ast-global-color-5)); opacity: 0.7; width: 2em; height: 2em; justify-content: center; box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15); } .ast-on-card-button .ahfb-svg-iconset .ast-icon { -js-display: inline-flex; display: inline-flex; align-self: center; } .ast-on-card-button svg { fill: currentColor; } .ast-select-options-trigger { top: 1em; } .ast-select-options-trigger.loading:after { display: block; content: " "; position: absolute; top: 50%; ' . esc_attr( $ltr_right ) . ': 50%; ' . esc_attr( $ltr_left ) . ': auto; width: 16px; height: 16px; margin-top: -12px; margin-' . esc_attr( $ltr_right ) . ': -8px; background-color: var(--ast-global-color-2); background-image: none; border-radius: 100%; -webkit-animation: dotPulse 0.65s 0s infinite cubic-bezier(0.21, 0.53, 0.56, 0.8); animation: dotPulse 0.65s 0s infinite cubic-bezier(0.21, 0.53, 0.56, 0.8); } .ast-select-options-trigger.loading .ast-icon { display: none; } .ast-card-action-tooltip { background-color: var(--ast-global-color-2); pointer-events: none; white-space: nowrap; padding: 8px 9px; padding: 0.7em 0.9em; color: var(--ast-global-color-primary, var(--ast-global-color-5)); margin-' . esc_attr( $ltr_right ) . ': 10px; border-radius: 3px; font-size: 0.8em; line-height: 1; font-weight: normal; position: absolute; ' . esc_attr( $ltr_right ) . ': 100%; top: auto; visibility: hidden; opacity: 0; transition: all 0.2s; } .ast-card-action-tooltip:after { content: ""; position: absolute; top: 50%; margin-top: -5px; ' . esc_attr( $ltr_right ) . ': -10px; width: 0; height: 0; border-style: solid; border-width: 5px; border-color: transparent transparent transparent var(--ast-global-color-2); } .astra-shop-thumbnail-wrap:hover .ast-on-card-button:not(.ast-onsale-card) { opacity: 1; visibility: visible; } @media (max-width: 420px) { .mobile-columns-3 .ast-select-options-trigger { top: 0.5em; ' . esc_attr( $ltr_right ) . ': 0.5em; } } '; $css_output .= $modern_shop_page_css; } if ( self::load_theme_side_woocommerce_strcture() ) { $css_output .= $this->astra_shop_summary_box_alignment(); } /** * Single page variation tab layout. */ $woo_variation_layout = astra_get_option( 'single-product-variation-tabs-layout' ); if ( 'horizontal' === $woo_variation_layout ) { $css_output_woo_variation_layout = array( '.woocommerce div.product form.cart .variations tr' => array( 'display' => 'flex', 'flex-wrap' => 'wrap', 'margin-bottom' => '1em', ), '.woocommerce div.product form.cart .variations td' => array( 'width' => 'calc( 100% - 70px )', ), '.woocommerce div.product form.cart .variations td.label, .woocommerce div.product form.cart .variations th.label' => array( 'width' => '70px', 'padding-right' => '1em', ), ); $css_output .= astra_parse_css( $css_output_woo_variation_layout ); } /** * Woocommerce Active Filter Styles */ $woo_active_filter_css = array( '.ast-woo-active-filter-widget .wc-block-active-filters' => array( 'display' => esc_attr( 'flex' ), 'align-items' => esc_attr( 'self-start' ), 'justify-content' => esc_attr( 'space-between' ), ), '.ast-woo-active-filter-widget .wc-block-active-filters__clear-all' => array( 'flex' => esc_attr( 'none' ), 'margin-top' => esc_attr( '2px' ), ), ); $css_output .= astra_parse_css( $woo_active_filter_css ); // Single product payment. $single_product_payment_array = astra_get_option( 'single-product-structure' ); if ( is_array( $single_product_payment_array ) && ! empty( $single_product_payment_array ) && in_array( 'single-product-payments', $single_product_payment_array ) ) { $css_output .= ' .ast-single-product-payments { margin-bottom: 1em; display: inline-block; margin-top: 0; padding: 13px 20px 18px; border: 1px solid var(--ast-border-color); border-radius: 0.25rem; width: 100%; } .ast-single-product-payments.ast-text-color-version svg { fill: var(--ast-global-color-3); } .ast-single-product-payments.ast-text-color-version img { filter: grayscale(100%); } .ast-single-product-payments legend { padding: 0 8px; margin-bottom: 0; font-size: 1em; font-weight: 600; text-align: center; color: var(--ast-global-color-3); } .ast-single-product-payments ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; justify-content: center; } .ast-single-product-payments ul li { display: flex; width: 48px; margin: 0 0.5em 0.5em 0.5em; } .ast-single-product-payments ul li svg, .ast-single-product-payments ul li img { height: 30px; width: 100%; } '; } // Enable Show Password Icon on Login Form on Woocommerce Account Page. if ( is_account_page() && ! is_user_logged_in() && astra_load_woocommerce_login_form_password_icon() ) { $ltr_left = $is_site_rtl ? esc_attr( 'right' ) : esc_attr( 'left' ); $ltr_right = $is_site_rtl ? esc_attr( 'left' ) : esc_attr( 'right' ); $css_output_show_password_icon = array( '.woocommerce form .password-input, .woocommerce-page form .password-input' => array( 'display' => 'flex', 'flex-direction' => 'column', 'justify-content' => 'center', 'position' => 'relative', ), '.woocommerce form .show-password-input, .woocommerce-page form .show-password-input' => array( 'position' => 'absolute', $ltr_right => '0.7em', 'cursor' => 'pointer', 'top' => '0.7em', ), '.woocommerce form .show-password-input::after, .woocommerce-page form .show-password-input::after' => array( 'font-family' => 'WooCommerce', 'speak' => 'never', 'font-weight' => '400', 'font-variant' => 'normal', 'text-transform' => 'none', 'line-height' => '1', '-webkit-font-smoothing' => 'antialiased', 'margin-' . $ltr_left => '0.618em', 'content' => '"\e010"', 'text-decoration' => 'none', ), ); $css_output .= astra_parse_css( $css_output_show_password_icon ); } wp_add_inline_style( 'woocommerce-general', apply_filters( 'astra_theme_woocommerce_dynamic_css', $css_output ) ); /** * YITH WooCommerce Wishlist Style */ $yith_wcwl_main_style = array( '.yes-js.js_active .ast-plain-container.ast-single-post #primary' => array( 'margin' => esc_attr( '4em 0' ), ), '.js_active .ast-plain-container.ast-single-post .entry-header' => array( 'margin-top' => esc_attr( '0' ), ), '.woocommerce table.wishlist_table' => array( 'font-size' => esc_attr( '100%' ), ), '.woocommerce table.wishlist_table tbody td.product-name' => array( 'font-weight' => esc_attr( '700' ), ), '.woocommerce table.wishlist_table thead th' => array( 'border-top' => esc_attr( '0' ), ), '.woocommerce table.wishlist_table tr td.product-remove' => array( 'padding' => esc_attr( '.7em 1em' ), ), '.woocommerce table.wishlist_table tbody td' => array( 'border-right' => esc_attr( '0' ), ), '.woocommerce .wishlist_table td.product-add-to-cart a' => array( 'display' => esc_attr( 'inherit !important' ), ), '.wishlist_table tr td, .wishlist_table tr th.wishlist-delete, .wishlist_table tr th.product-checkbox' => array( 'text-align' => esc_attr( 'left' ), ), '.woocommerce #content table.wishlist_table.cart a.remove' => array( 'display' => esc_attr( 'inline-block' ), 'vertical-align' => esc_attr( 'middle' ), 'font-size' => esc_attr( '18px' ), 'font-weight' => esc_attr( 'normal' ), 'width' => esc_attr( '24px' ), 'height' => esc_attr( '24px' ), 'line-height' => esc_attr( '21px' ), 'color' => esc_attr( '#ccc !important' ), 'text-align' => esc_attr( 'center' ), 'border' => esc_attr( '1px solid #ccc' ), ), '.woocommerce #content table.wishlist_table.cart a.remove:hover' => array( 'color' => esc_attr( $link_color . '!important' ), 'border-color' => esc_attr( $link_color ), 'background-color' => esc_attr( '#ffffff' ), ), ); /* Parse CSS from array() */ $yith_wcwl_main_style = astra_parse_css( $yith_wcwl_main_style ); $yith_wcwl_main_style_small = array( '.yes-js.js_active .ast-plain-container.ast-single-post #primary' => array( 'padding' => esc_attr( '1.5em 0' ), 'margin' => esc_attr( '0' ), ), ); /* Parse CSS from array()*/ /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $yith_wcwl_main_style .= astra_parse_css( $yith_wcwl_main_style_small, '', astra_get_tablet_breakpoint() ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort wp_add_inline_style( 'yith-wcwl-main', $yith_wcwl_main_style ); } /** * Shop summary box wrapper alignment. * * @since 3.9.2 * @return string */ public function astra_shop_summary_box_alignment() { $shop_product_alignment = astra_get_option( 'shop-product-align-responsive' ); $desktop_alignment = ( isset( $shop_product_alignment['desktop'] ) ) ? $shop_product_alignment['desktop'] : ''; $tablet_alignment = ( isset( $shop_product_alignment['tablet'] ) ) ? $shop_product_alignment['tablet'] : ''; $mobile_alignment = ( isset( $shop_product_alignment['mobile'] ) ) ? $shop_product_alignment['mobile'] : ''; $is_site_rtl = is_rtl(); $ltr_left = $is_site_rtl ? 'right' : 'left'; $ltr_right = $is_site_rtl ? 'left' : 'right'; $tablet_breakpoint = astra_get_tablet_breakpoint(); $mobile_breakpoint = astra_get_mobile_breakpoint(); $desktop_css = ''; $tablet_css = ''; $mobile_css = ''; switch ( $desktop_alignment ) { case 'align-left': $desktop_css = ' .woocommerce ul.products li.product.desktop-align-left, .woocommerce-page ul.products li.product.desktop-align-left { text-align: ' . $ltr_left . '; } .woocommerce ul.products li.product.desktop-align-left .star-rating, .woocommerce ul.products li.product.desktop-align-left .button, .woocommerce-page ul.products li.product.desktop-align-left .star-rating, .woocommerce-page ul.products li.product.desktop-align-left .button { margin-left: 0; margin-right: 0; } '; break; case 'align-center': $desktop_css = ' .woocommerce ul.products li.product.desktop-align-center, .woocommerce-page ul.products li.product.desktop-align-center { text-align: center; } .woocommerce ul.products li.product.desktop-align-center .star-rating, .woocommerce-page ul.products li.product.desktop-align-center .star-rating { margin-left: auto; margin-right: auto; } '; break; case 'align-right': $desktop_css = ' .woocommerce ul.products li.product.desktop-align-right, .woocommerce-page ul.products li.product.desktop-align-right { text-align: ' . $ltr_right . '; } .woocommerce ul.products li.product.desktop-align-right .button, .woocommerce-page ul.products li.product.desktop-align-right .button { margin-left: 0; margin-right: 0; } .woocommerce ul.products li.product.desktop-align-right .star-rating, .woocommerce-page ul.products li.product.desktop-align-right .star-rating { margin-' . $ltr_left . ': auto; margin-' . $ltr_right . ': 0; } '; break; default: // code... break; } switch ( $tablet_alignment ) { case 'align-left': $tablet_css = ' .woocommerce ul.products li.product.tablet-align-left, .woocommerce-page ul.products li.product.tablet-align-left { text-align: ' . $ltr_left . '; } .woocommerce ul.products li.product.tablet-align-left .star-rating, .woocommerce ul.products li.product.tablet-align-left .button, .woocommerce-page ul.products li.product.tablet-align-left .star-rating, .woocommerce-page ul.products li.product.tablet-align-left .button { margin-left: 0; margin-right: 0; } '; break; case 'align-center': $tablet_css = ' .woocommerce ul.products li.product.tablet-align-center, .woocommerce-page ul.products li.product.tablet-align-center { text-align: center; } .woocommerce ul.products li.product.tablet-align-center .star-rating, .woocommerce-page ul.products li.product.tablet-align-center .star-rating { margin-left: auto; margin-right: auto; } '; break; case 'align-right': $tablet_css = ' .woocommerce ul.products li.product.tablet-align-right, .woocommerce-page ul.products li.product.tablet-align-right { text-align: ' . $ltr_right . '; } .woocommerce ul.products li.product.tablet-align-right .button, .woocommerce-page ul.products li.product.tablet-align-right .button { margin-left: 0; margin-right: 0; } .woocommerce ul.products li.product.tablet-align-right .star-rating, .woocommerce-page ul.products li.product.tablet-align-right .star-rating { margin-' . $ltr_left . ': auto; margin-' . $ltr_right . ': 0; } '; break; default: // code... break; } switch ( $mobile_alignment ) { case 'align-left': $mobile_css = ' .woocommerce ul.products li.product.mobile-align-left, .woocommerce-page ul.products li.product.mobile-align-left { text-align: ' . $ltr_left . '; } .woocommerce ul.products li.product.mobile-align-left .star-rating, .woocommerce ul.products li.product.mobile-align-left .button, .woocommerce-page ul.products li.product.mobile-align-left .star-rating, .woocommerce-page ul.products li.product.mobile-align-left .button { margin-left: 0; margin-right: 0; } '; break; case 'align-center': $mobile_css = ' .woocommerce ul.products li.product.mobile-align-center, .woocommerce-page ul.products li.product.mobile-align-center { text-align: center; } .woocommerce ul.products li.product.mobile-align-center .star-rating, .woocommerce-page ul.products li.product.mobile-align-center .star-rating { margin-left: auto; margin-right: auto; } '; break; case 'align-right': $mobile_css = ' .woocommerce ul.products li.product.mobile-align-right, .woocommerce-page ul.products li.product.mobile-align-right { text-align: ' . $ltr_right . '; } .woocommerce ul.products li.product.mobile-align-right .button, .woocommerce-page ul.products li.product.mobile-align-right .button { margin-left: 0; margin-right: 0; } .woocommerce ul.products li.product.mobile-align-right .star-rating, .woocommerce-page ul.products li.product.mobile-align-right .star-rating { margin-' . $ltr_left . ': auto; margin-' . $ltr_right . ': 0; } '; break; default: // code... break; } /** @psalm-suppress InvalidOperand */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort return $desktop_css . '@media(max-width: ' . $tablet_breakpoint . 'px){' . $tablet_css . '}' . '@media(max-width: ' . $mobile_breakpoint . 'px){' . $mobile_css . '}'; // phpcs:ignore Generic.Strings.UnnecessaryStringConcat.Found /** @psalm-suppress InvalidOperand */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort } /** * Register Customizer sections and panel for woocommerce * * @since 1.0.0 * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function customize_register( $wp_customize ) { // @codingStandardsIgnoreStart WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound /** * Register Sections & Panels */ require ASTRA_THEME_DIR . 'inc/compatibility/woocommerce/customizer/class-astra-customizer-register-woo-section.php'; /** * Sections */ require ASTRA_THEME_DIR . 'inc/compatibility/woocommerce/customizer/sections/class-astra-woo-shop-container-configs.php'; require ASTRA_THEME_DIR . 'inc/compatibility/woocommerce/customizer/sections/class-astra-woo-shop-sidebar-configs.php'; require ASTRA_THEME_DIR . 'inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-layout-configs.php'; require ASTRA_THEME_DIR . 'inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-single-layout-configs.php'; require ASTRA_THEME_DIR . 'inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-cart-layout-configs.php'; require ASTRA_THEME_DIR . 'inc/compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-misc-layout-configs.php'; require ASTRA_THEME_DIR . 'inc/compatibility/woocommerce/customizer/sections/class-astra-woo-store-notice-configs.php'; // @codingStandardsIgnoreEnd WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound } /** * Add Cart icon markup * * @param String $output Markup. * @param String $section Section name. * @param String $section_type Section selected option. * @return Markup String. * * @since 1.0.0 */ public function astra_header_cart( $output, $section, $section_type ) { if ( 'woocommerce' === $section_type && apply_filters( 'astra_woo_header_cart_icon', true ) ) { $output = $this->woo_mini_cart_markup(); } return $output; } /** * Woocommerce mini cart markup markup * * @param string $device Either 'mobile' or 'desktop' option. * * @since 1.2.2 * @return html */ public function woo_mini_cart_markup( $device = 'desktop' ) { $class = is_cart() ? 'current-menu-item' : ''; $cart_click_action = astra_get_option( 'woo-header-cart-click-action', 'default' ); $desktop_cart_flyout = 'flyout' === $cart_click_action ? 'ast-desktop-cart-flyout' : ''; $cart_menu_classes = apply_filters( 'astra_cart_in_menu_class', array( 'ast-menu-cart-with-border', $desktop_cart_flyout ) ); ob_start(); if ( is_customize_preview() && true === Astra_Builder_Helper::$is_header_footer_builder_active ) { Astra_Builder_UI_Controller::render_customizer_edit_button(); } ?>
astra_get_cart_link(); ?>
cart ? WC()->cart->get_cart_contents_count() : 0; /** @psalm-suppress RedundantConditionGivenDocblockType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $aria_label = $cart_count > 0 ? "View Shopping Cart, {$cart_count} items" : 'View Shopping Cart, empty'; $cart_total_label_position = astra_get_option( 'woo-header-cart-icon-total-label-position' ); ?>
cart ) { echo WC()->cart->get_cart_contents_count(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } ?>
astra_get_cart_link(); $fragments['a.cart-container'] = ob_get_clean(); ob_start(); woocommerce_mini_cart(); $mini_cart = ob_get_clean(); remove_filter( 'woocommerce_get_cart_url', 'astra_woocommerce_get_cart_url' ); $fragments['div.widget_shopping_cart_content'] = '
' . $mini_cart . '
'; return $fragments; } /** * Add shopping CTA in cart flyout. * * @since 3.9.0 */ public function astra_update_flyout_cart_layout() { if ( WC()->cart->is_empty() ) { do_action( 'astra_empty_cart_before' ); ?>

get_nodes(); if ( ! is_admin() && class_exists( 'WooCommerce' ) && isset( $admin_bar_nodes['customize'] ) ) { $customize_link = isset( $admin_bar_nodes['customize']->href ) ? $admin_bar_nodes['customize']->href : wp_customize_url(); /** @psalm-suppress PossiblyFalseOperand */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $current_url = substr( $customize_link, strpos( $customize_link, '?url=' ) + 1 ); /** @psalm-suppress PossiblyFalseOperand */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $wp_admin_bar->remove_node( 'customize' ); if ( is_product() ) { $customize_link = admin_url( 'customize.php' ) . '?autofocus[section]=section-woo-shop-single&' . $current_url; } if ( is_cart() ) { $customize_link = admin_url( 'customize.php' ) . '?autofocus[section]=section-woo-shop-cart&' . $current_url; } if ( is_checkout() ) { $customize_link = admin_url( 'customize.php' ) . '?autofocus[section]=woocommerce_checkout&' . $current_url; } if ( is_account_page() ) { $customize_link = admin_url( 'customize.php' ) . '?autofocus[section]=section-ast-woo-my-account&' . $current_url; } if ( is_shop() || is_product_taxonomy() ) { $customize_link = admin_url( 'customize.php' ) . '?autofocus[section]=woocommerce_product_catalog&' . $current_url; } $customize_node = array( 'id' => 'customize', 'title' => __( 'Customize', 'astra' ), 'href' => $customize_link, 'meta' => array( 'class' => 'hide-if-no-customize', ), ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $wp_admin_bar->add_node( $customize_node ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort } } /** * For existing users, do not load the wide/full width image CSS by default. * * @since 2.5.0 * @return boolean false if it is an existing user , true if not. */ public static function astra_global_btn_woo_comp() { $astra_settings = astra_get_options(); return apply_filters( 'astra_global_btn_woo_comp', isset( $astra_settings['global-btn-woo-css'] ) ? false : true ); } /** * Show the product title in the product loop. * * @param string $product_type product type. */ public function astra_woo_woocommerce_template_product_title( $product_type ) { if ( 'quick-view' === $product_type ) { /** @psalm-suppress PossiblyFalseArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort echo ''; /** @psalm-suppress PossiblyFalseArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort } woocommerce_template_single_title(); if ( 'quick-view' === $product_type ) { echo ''; } } /** * Show the product catagories in the product loop. */ public function single_product_category() { /** @psalm-suppress InvalidGlobal */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort global $product; echo '' . wp_kses_post( wc_get_product_category_list( $product->get_id(), ', ' ) ) . ''; } /** * Single Product Payments. * * @since 3.9.2 * @return void */ public function woocommerce_product_single_payments() { $section_title = astra_get_i18n_option( 'single-product-payment-text', _x( '%astra%', 'WooCommerce Single Product: Payments - Payment Title.', 'astra' ) ); $if_color_version = astra_get_option( 'single-product-payment-icon-color' ); ob_start(); ?>
  • <?php echo esc_attr( $image_alt ); ?>
astra_woo_woocommerce_template_product_title( $product_type ); do_action( 'astra_woo_single_title_after' ); break; case 'price': /** * Add Product Price on single product page for all products. */ do_action( 'astra_woo_single_price_before' ); woocommerce_template_single_price(); do_action( 'astra_woo_single_price_after' ); break; case 'ratings': /** * Add rating on single product page for all products. */ do_action( 'astra_woo_single_rating_before' ); woocommerce_template_single_rating(); do_action( 'astra_woo_single_rating_after' ); break; case 'short_desc': do_action( 'astra_woo_single_short_description_before' ); woocommerce_template_single_excerpt(); do_action( 'astra_woo_single_short_description_after' ); break; case 'add_cart': do_action( 'astra_woo_single_add_to_cart_before' ); woocommerce_template_single_add_to_cart(); do_action( 'astra_woo_single_add_to_cart_after' ); break; case 'summary-extras': /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( $astra_addons_condition && is_callable( array( ASTRA_Ext_WooCommerce_Markup::get_instance(), 'single_product_extras' ) ) ) { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort do_action( 'astra_woo_single_extras_before' ); ASTRA_Ext_WooCommerce_Markup::get_instance()->single_product_extras(); do_action( 'astra_woo_single_extras_after' ); } break; case 'single-product-payments': /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort do_action( 'astra_woo_single_product_payments_before' ); $this->woocommerce_product_single_payments(); do_action( 'astra_woo_single_product_payments_after' ); break; case 'meta': do_action( 'astra_woo_single_category_before' ); woocommerce_template_single_meta(); do_action( 'astra_woo_single_category_after' ); break; case 'category': do_action( 'astra_woo_single_product_category_before' ); $this->single_product_category(); do_action( 'astra_woo_single_product_category_after' ); break; default: break; } } // Product single tabs accordion. if ( $astra_addons_condition && astra_get_option( 'accordion-inside-woo-summary' ) && 'accordion' === astra_get_option( 'single-product-tabs-layout' ) && astra_get_option( 'single-product-tabs-display' ) ) { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort ASTRA_Ext_WooCommerce_Markup::get_instance()->woo_product_tabs_layout_output(); } } } /** * Single product sticky add to cart. * * @return void * @since 3.9.0 */ public function single_product_sticky_add_to_cart() { if ( is_product() && astra_get_option( 'single-product-sticky-add-to-cart' ) ) { /** @psalm-suppress InvalidGlobal */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort global $post; $product = wc_get_product( $post->ID ); $sticky_position = astra_get_option( 'single-product-sticky-add-to-cart-position' ); $add_to_cart_ajax = astra_get_option( 'single-product-ajax-add-to-cart' ); // @codingStandardsIgnoreStart /** * @psalm-suppress PossiblyNullReference * @psalm-suppress PossiblyFalseReference */ if ( ( $product->is_purchasable() && ( $product->is_in_stock() || $product->backorders_allowed() ) ) || $product->is_type( 'external' ) ) { // @codingStandardsIgnoreEnd if ( is_customize_preview() ) { echo '
'; /** @psalm-suppress TooManyArguments */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort Astra_Builder_UI_Controller::render_customizer_edit_button( 'row-editor-shortcut' ); } else { echo '
'; } echo '
'; echo '
'; echo '
'; echo wp_kses_post( woocommerce_get_product_thumbnail() ); echo '' . wp_kses_post( get_the_title() ) . ''; echo '
'; echo '
'; // @codingStandardsIgnoreStart /** * @psalm-suppress PossiblyNullReference * @psalm-suppress PossiblyFalseReference */ if ( $product->is_type( 'simple' ) || $product->is_type( 'external' ) || $product->is_type( 'subscription' ) ) { // @codingStandardsIgnoreEnd /** @psalm-suppress PossiblyFalseReference */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort echo '' . wp_kses_post( $product->get_price_html() ) . ''; /** @psalm-suppress PossiblyFalseReference */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( $add_to_cart_ajax ) { echo '
'; } woocommerce_template_single_add_to_cart(); if ( $add_to_cart_ajax ) { echo '
'; } } else { /** @psalm-suppress PossiblyNullReference */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort echo '' . wp_kses_post( $product->get_price_html() ) . ''; /** @psalm-suppress InvalidScalarArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort echo '' . esc_html( $product->add_to_cart_text() ) . ''; /** @psalm-suppress InvalidScalarArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort } echo '
'; echo '
'; echo '
'; echo '
'; } } } /** * Enable ajax add to cart for shop page. * * @param string $value ajax add to cart value. * @return string yes | no enable / disable ajax add to cart. * @since 4.1.0 */ public function option_woocommerce_enable_ajax_add_to_cart( $value ) { $astra_shop_add_to_cart = astra_get_option( 'shop-add-to-cart-action' ); if ( $astra_shop_add_to_cart && 'default' !== $astra_shop_add_to_cart ) { return 'yes'; } return $value; } /** * Enable ajax add to cart redirect. * * @param string $value cart redirect after add value. * @return string yes | no enable / disable cart redirect after add. * @since 4.1.0 */ public function option_woocommerce_cart_redirect_after_add( $value ) { $astra_shop_add_to_cart = astra_get_option( 'shop-add-to-cart-action' ); if ( $astra_shop_add_to_cart && 'default' !== $astra_shop_add_to_cart ) { return 'no'; } return $value; } } endif; if ( apply_filters( 'astra_enable_woocommerce_integration', true ) ) { Astra_Woocommerce::get_instance(); } PK\mZȆy//:compatibility/woocommerce/woocommerce-common-functions.phpnu['; echo '

' . esc_html( get_the_title() ) . '

'; echo ''; } endif; /** * Shop page - Parent Category */ if ( ! function_exists( 'astra_woo_shop_parent_category' ) ) : /** * Add and/or Remove Categories from shop archive page. * * @hooked woocommerce_after_shop_loop_item - 9 * * @since 1.1.0 */ function astra_woo_shop_parent_category() { if ( apply_filters( 'astra_woo_shop_parent_category', true ) ) : ?> get_categories( ';', '', '' ); $product_categories = html_entity_decode( wp_strip_all_tags( $product_categories ) ); if ( $product_categories ) { list( $parent_cat ) = explode( ';', $product_categories ); echo apply_filters( 'astra_woo_shop_product_categories', esc_html( $parent_cat ), get_the_ID() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } ?>
get_availability(); $stock_quantity = $product->get_stock_quantity(); $availability = $product_avail['availability']; $avail_class = $product_avail['class']; if ( ! empty( $availability ) && $stock_quantity ) { ob_start(); ?>

'; woocommerce_template_loop_product_title(); echo ''; } else { woocommerce_template_loop_product_title(); } } } if ( ! function_exists( 'astra_woo_woocommerce_shop_product_content' ) ) { /** * Show the product title in the product loop. By default this is an H2. */ function astra_woo_woocommerce_shop_product_content() { $shop_structure = apply_filters( 'astra_woo_shop_product_structure', astra_get_option( 'shop-product-structure' ) ); if ( is_array( $shop_structure ) && ! empty( $shop_structure ) ) { do_action( 'astra_woo_shop_before_summary_wrap' ); echo '
'; do_action( 'astra_woo_shop_summary_wrap_top' ); foreach ( $shop_structure as $value ) { switch ( $value ) { case 'title': /** * Add Product Title on shop page for all products. */ do_action( 'astra_woo_shop_title_before' ); astra_woo_woocommerce_template_loop_product_title(); do_action( 'astra_woo_shop_title_after' ); break; case 'price': /** * Add Product Price on shop page for all products. */ do_action( 'astra_woo_shop_price_before' ); woocommerce_template_loop_price(); do_action( 'astra_woo_shop_price_after' ); break; case 'ratings': /** * Add rating on shop page for all products. */ do_action( 'astra_woo_shop_rating_before' ); woocommerce_template_loop_rating(); do_action( 'astra_woo_shop_rating_after' ); break; case 'short_desc': do_action( 'astra_woo_shop_short_description_before' ); astra_woo_shop_product_short_description(); do_action( 'astra_woo_shop_short_description_after' ); break; case 'add_cart': do_action( 'astra_woo_shop_add_to_cart_before' ); woocommerce_template_loop_add_to_cart(); do_action( 'astra_woo_shop_add_to_cart_after' ); break; case 'category': /** * Add and/or Remove Categories from shop archive page. */ do_action( 'astra_woo_shop_category_before' ); astra_woo_shop_parent_category(); do_action( 'astra_woo_shop_category_after' ); break; default: break; } } do_action( 'astra_woo_shop_summary_wrap_bottom' ); echo '
'; do_action( 'astra_woo_shop_after_summary_wrap' ); } } } if ( ! function_exists( 'astra_woo_shop_thumbnail_wrap_start' ) ) { /** * Thumbnail wrap start. */ function astra_woo_shop_thumbnail_wrap_start() { echo '
'; } } if ( ! function_exists( 'astra_woo_shop_thumbnail_wrap_end' ) ) { /** * Thumbnail wrap end. */ function astra_woo_shop_thumbnail_wrap_end() { echo '
'; } } /** * Woocommerce filter - Widget Products Tags */ if ( ! function_exists( 'astra_widget_product_tag_cloud_args' ) ) { /** * Woocommerce filter - Widget Products Tags * * @param array $args Tag arguments. * @return array Modified tag arguments. */ function astra_widget_product_tag_cloud_args( $args = array() ) { $sidebar_link_font_size = astra_get_option( 'font-size-body' ); $sidebar_link_font_size['desktop'] = ( '' != $sidebar_link_font_size['desktop'] ) ? $sidebar_link_font_size['desktop'] : 15; $args['smallest'] = intval( $sidebar_link_font_size['desktop'] ) - 2; $args['largest'] = intval( $sidebar_link_font_size['desktop'] ) + 3; $args['unit'] = 'px'; return apply_filters( 'astra_widget_product_tag_cloud_args', $args ); } add_filter( 'woocommerce_product_tag_cloud_widget_args', 'astra_widget_product_tag_cloud_args', 90 ); } /** * Woocommerce shop/product div close tag. */ if ( ! function_exists( 'astra_woocommerce_div_wrapper_close' ) ) : /** * Woocommerce shop/product div close tag. * * @return void */ function astra_woocommerce_div_wrapper_close() { echo '
'; } endif; /** * Checking whether shop page style is selected as modern layout. */ if ( ! function_exists( 'astra_is_shop_page_modern_style' ) ) : /** * Checking whether shop page style is selected as modern layout. * * @return bool true|false. */ function astra_is_shop_page_modern_style() { return ( 'shop-page-modern-style' === astra_get_option( 'shop-style' ) ) ? true : false; } endif; /** * Check if Woocommerce pro addons is enabled. * * @return bool true|false. */ function astra_has_pro_woocommerce_addon() { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort return ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'woocommerce' ) ) ? true : false; /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort } /** * Support cart color setting to default cart icon, till now with other cart icons have this color compatibility but default one don't have this. * This case is only for old header layout. * * @since 3.9.2 * @return boolean false if it is an existing user, true if not. */ function astra_cart_color_default_icon_old_header() { $astra_settings = astra_get_options(); return apply_filters( 'astra_support_default_cart_color_in_old_header', isset( $astra_settings['can-reflect-cart-color-in-old-header'] ) ? false : true ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound } /** * Function to check the Add to Cart quantity buttons. * * @return bool true|false. * @since 3.9.2 */ function astra_add_to_cart_quantity_btn_enabled() { return apply_filters( 'astra_add_to_cart_quantity_btn_enabled', astra_get_option( 'single-product-plus-minus-button' ) ); } /** * Woocommerce MyAccount Page Endpoint. */ if ( ! function_exists( 'astra_get_wc_endpoints_title' ) ) { /** * Woocommerce MyAccount Page Endpoint. * * @param string $title for MyAccount title endpoint. * @return string * * @since 4.3.0 */ function astra_get_wc_endpoints_title( $title ) { if ( class_exists( 'WooCommerce' ) && is_wc_endpoint_url() && is_account_page() ) { $endpoint = WC()->query->get_current_endpoint(); $action = isset( $_GET['action'] ) && is_string( $_GET['action'] ) ? sanitize_text_field( wp_unslash( $_GET['action'] ) ) : ''; $ep_title = $endpoint ? WC()->query->get_endpoint_title( $endpoint, $action ) : ''; if ( $ep_title ) { return $ep_title; } } return $title; } add_filter( 'astra_the_title', 'astra_get_wc_endpoints_title' ); } if ( ! function_exists( 'astra_woocommerce_get_cart_url' ) ) { /** * Filters and returns the WooCommerce cart URL for compatibility with WooCommerce 9.3.0. * * @param null|string $cart_url WooCommerce cart page URL. * * @return string Returns the filtered WooCommerce cart page URL. * * @since 4.8.3 */ function astra_woocommerce_get_cart_url( $cart_url = null ) { // Check if WooCommerce function exists. if ( function_exists( 'wc_get_page_permalink' ) ) { $cart_url = wc_get_page_permalink( 'cart' ); } if ( $cart_url === null ) { $cart_url = wc_get_cart_url(); } /** * Applies filters to the WooCommerce cart URL and returns the filtered URL. * * @param string $cart_url The WooCommerce cart URL. * * @return string The filtered WooCommerce cart URL. * * @since 4.8.10 */ return apply_filters( 'astra_woocommerce_get_cart_url', $cart_url ); } } if ( ! function_exists( 'astra_wc_is_star_rating_compatibility' ) ) { /** * Checks if star rating compatibility is enabled. * * @return bool Returns true if star rating compatibility is enabled, false otherwise. * * @since 4.8.10 */ function astra_wc_is_star_rating_compatibility() { $astra_settings = astra_get_options(); return apply_filters( 'astra_get_option_star-rating-comp', isset( $astra_settings['star-rating-comp'] ) ); } } PK\mZK Xcompatibility/woocommerce/customizer/sections/class-astra-woo-shop-container-configs.phpnu[ ASTRA_THEME_SETTINGS . '[woocommerce-ast-content-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => 'section-woo-general', 'default' => astra_get_option( 'woocommerce-ast-content-layout' ), 'priority' => 5, 'title' => __( 'Container Layout', 'astra' ), 'choices' => array( 'default' => array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'normal-width-container' => array( 'label' => __( 'Normal', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'normal-width-container', false ) : '', ), 'full-width-container' => array( 'label' => __( 'Full Width', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'full-width-container', false ) : '', ), ), 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-spacing' ), ), /** * Option: Content Style Option. */ array( 'name' => ASTRA_THEME_SETTINGS . '[woocommerce-content-style]', 'type' => 'control', 'control' => 'ast-selector', 'section' => 'section-woo-general', 'default' => astra_get_option( 'woocommerce-content-style', 'default' ), 'priority' => 5, 'title' => __( 'Container Style', 'astra' ), 'description' => __( 'Container style will apply only when layout is set to either normal or narrow.', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ), 'renderAs' => 'text', 'responsive' => false, 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Woo_Shop_Container_Configs(); PK`mZXXccompatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-single-layout-configs.phpnu[ false, 'is_parent' => true, 'main_index' => 'summary-extras', 'clone_limit' => 2, 'title' => __( 'Extras', 'astra' ), ); } /** * Single product add to cart control. */ $add_to_cart_attr['add_cart'] = array( 'clone' => false, 'is_parent' => true, 'main_index' => 'add_cart', 'clone_limit' => 2, 'title' => __( 'Add To Cart', 'astra' ), ); /** * Single product payment control. */ $clonning_attr['single-product-payments'] = array( 'clone' => false, 'is_parent' => true, 'main_index' => 'single-product-payments', 'clone_limit' => 2, 'title' => __( 'Payments', 'astra' ), ); $_configs = array( array( 'name' => 'section-woo-shop-single-ast-context-tabs', 'section' => 'section-woo-shop-single', 'type' => 'control', 'control' => 'ast-builder-header-control', 'priority' => 0, 'description' => '', ), /** * Option: Divider. */ array( 'name' => ASTRA_THEME_SETTINGS . '[woo-single-product-structure-divider]', 'section' => 'section-woo-shop-single', 'title' => __( 'Single Product Structure', 'astra' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 15, 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Single Post Meta */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-structure]', 'default' => astra_get_option( 'single-product-structure' ), 'type' => 'control', 'control' => 'ast-sortable', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_multi_choices' ), 'section' => 'section-woo-shop-single', 'priority' => 15, 'choices' => array_merge( array( 'title' => __( 'Title', 'astra' ), 'price' => __( 'Price', 'astra' ), 'ratings' => __( 'Ratings', 'astra' ), ), $add_to_cart_attr, array( 'short_desc' => __( 'Short Description', 'astra' ), 'meta' => __( 'Meta', 'astra' ), 'category' => __( 'Category', 'astra' ), ), $clonning_attr ), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Divider. */ array( 'name' => ASTRA_THEME_SETTINGS . '[woo-single-product-structure-fields-divider]', 'section' => 'section-woo-shop-single', 'title' => $product_divider_title, 'type' => 'control', 'control' => 'ast-heading', 'priority' => 16, 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Disable Breadcrumb */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-breadcrumb-disable]', 'section' => 'section-woo-shop-single', 'type' => 'control', 'control' => 'ast-toggle-control', 'default' => astra_get_option( 'single-product-breadcrumb-disable' ), 'title' => __( 'Enable Breadcrumb', 'astra' ), 'priority' => 16, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Enable free shipping */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-enable-shipping]', 'default' => astra_get_option( 'single-product-enable-shipping' ), 'type' => 'control', 'section' => 'section-woo-shop-single', 'title' => __( 'Enable Shipping Text', 'astra' ), 'description' => __( 'Adds shipping text next to the product price.', 'astra' ), 'control' => 'ast-toggle-control', 'priority' => 16, ), /** * Option: Single page variation tab layout. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-variation-tabs-layout]', 'default' => astra_get_option( 'single-product-variation-tabs-layout' ), 'type' => 'control', 'section' => 'section-woo-shop-single', 'title' => __( 'Product Variation Layout', 'astra' ), 'description' => __( 'Changes single product variation layout to be displayed inline or stacked.', 'astra' ), 'context' => array( Astra_Builder_Helper::$general_tab_config, ), 'control' => 'ast-selector', 'priority' => 17, 'choices' => array( 'horizontal' => __( 'Inline', 'astra' ), 'vertical' => __( 'Stack', 'astra' ), ), 'renderAs' => 'text', 'responsive' => false, ), /** * Option: Disable Transparent Header on WooCommerce Product pages */ array( 'name' => ASTRA_THEME_SETTINGS . '[transparent-header-disable-woo-products]', 'default' => astra_get_option( 'transparent-header-disable-woo-products' ), 'type' => 'control', 'section' => 'section-transparent-header', 'title' => __( 'Disable on WooCommerce Product Pages?', 'astra' ), 'context' => array( Astra_Builder_Helper::$general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[transparent-header-enable]', 'operator' => '==', 'value' => '1', ), ), 'priority' => 26, 'control' => 'ast-toggle-control', ), /** * Option: Free shipping text */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-shipping-text]', 'default' => astra_get_option( 'single-product-shipping-text' ), 'type' => 'control', 'section' => 'section-woo-shop-single', 'title' => __( 'Shipping Text', 'astra' ), 'context' => array( Astra_Builder_Helper::$general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-product-enable-shipping]', 'operator' => '==', 'value' => true, ), ), 'control' => 'text', 'priority' => 16, 'divider' => array( 'ast_class' => 'ast-bottom-spacing' ), ), /** * Option: Divider. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart-divider]', 'section' => 'section-woo-shop-single', 'title' => __( 'Sticky Add To Cart', 'astra' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 76, 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Sticky add to cart. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart]', 'default' => astra_get_option( 'single-product-sticky-add-to-cart' ), 'type' => 'control', 'section' => 'section-woo-shop-single', 'title' => __( 'Enable Sticky Add to Cart', 'astra' ), 'control' => 'ast-toggle-control', 'priority' => 76, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Sticky add to cart position. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart-position]', 'default' => astra_get_option( 'single-product-sticky-add-to-cart-position' ), 'type' => 'control', 'control' => 'ast-selector', 'section' => 'section-woo-shop-single', 'priority' => 76, 'title' => __( 'Sticky Placement ', 'astra' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), ), 'transport' => 'postMessage', 'renderAs' => 'text', 'responsive' => false, 'context' => array( Astra_Builder_Helper::$general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart]', 'operator' => '==', 'value' => true, ), ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), /** * Option: Divider. */ array( 'name' => ASTRA_THEME_SETTINGS . '[woo-single-product-sticky-color-divider]', 'section' => 'section-woo-shop-single', 'title' => __( 'Sticky Add To Cart Colors', 'astra' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 82, 'settings' => array(), 'context' => array( Astra_Builder_Helper::$design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart]', 'operator' => '==', 'value' => true, ), ), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Sticky add to cart text color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart-text-color]', 'default' => astra_get_option( 'single-product-sticky-add-to-cart-text-color' ), 'type' => 'control', 'section' => 'section-woo-shop-single', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'transport' => 'postMessage', 'title' => __( 'Text Color', 'astra' ), 'context' => array( Astra_Builder_Helper::$design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart]', 'operator' => '==', 'value' => true, ), ), 'priority' => 82, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Sticky add to cart background color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart-bg-color]', 'default' => astra_get_option( 'single-product-sticky-add-to-cart-bg-color' ), 'type' => 'control', 'section' => 'section-woo-shop-single', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'transport' => 'postMessage', 'title' => __( 'Background Color', 'astra' ), 'context' => array( Astra_Builder_Helper::$design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart]', 'operator' => '==', 'value' => true, ), ), 'priority' => 82, ), /** * Option: Sticky add to cart button text color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart-btn-color]', 'default' => astra_get_option( 'single-product-sticky-add-to-cart-btn-color' ), 'type' => 'control', 'control' => 'ast-color-group', 'title' => __( 'Button Text', 'astra' ), 'section' => 'section-woo-shop-single', 'transport' => 'postMessage', 'priority' => 82, 'context' => array( Astra_Builder_Helper::$design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart]', 'operator' => '==', 'value' => true, ), ), ), /** * Option: Link Color. */ array( 'type' => 'sub-control', 'priority' => 76, 'parent' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart-btn-color]', 'section' => 'section-woo-shop-single', 'control' => 'ast-color', 'default' => astra_get_option( 'single-product-sticky-add-to-cart-btn-n-color' ), 'name' => 'single-product-sticky-add-to-cart-btn-n-color', 'title' => __( 'Normal', 'astra' ), 'tab' => __( 'Normal', 'astra' ), ), /** * Option: Link Hover Color. */ array( 'type' => 'sub-control', 'priority' => 82, 'parent' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart-btn-color]', 'section' => 'section-woo-shop-single', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'default' => astra_get_option( 'single-product-sticky-add-to-cart-btn-h-color' ), 'transport' => 'postMessage', 'name' => 'single-product-sticky-add-to-cart-btn-h-color', 'title' => __( 'Hover', 'astra' ), 'tab' => __( 'Hover', 'astra' ), ), /** * Option: Sticky add to cart button background color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart-btn-bg-color]', 'default' => astra_get_option( 'single-product-sticky-add-to-cart-btn-bg-color' ), 'type' => 'control', 'control' => 'ast-color-group', 'title' => __( 'Button Background', 'astra' ), 'section' => 'section-woo-shop-single', 'transport' => 'postMessage', 'priority' => 82, 'context' => array( Astra_Builder_Helper::$design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart]', 'operator' => '==', 'value' => true, ), ), ), /** * Option: Link Color. */ array( 'type' => 'sub-control', 'priority' => 82, 'parent' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart-btn-bg-color]', 'section' => 'section-woo-shop-single', 'control' => 'ast-color', 'default' => astra_get_option( 'single-product-sticky-add-to-cart-btn-bg-n-color' ), 'name' => 'single-product-sticky-add-to-cart-btn-bg-n-color', 'title' => __( 'Normal', 'astra' ), 'tab' => __( 'Normal', 'astra' ), ), /** * Option: Link Hover Color. */ array( 'type' => 'sub-control', 'priority' => 82, 'parent' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart-btn-bg-color]', 'section' => 'section-woo-shop-single', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'default' => astra_get_option( 'single-product-sticky-add-to-cart-btn-bg-h-color' ), 'transport' => 'postMessage', 'name' => 'single-product-sticky-add-to-cart-btn-bg-h-color', 'title' => __( 'Hover', 'astra' ), 'tab' => __( 'Hover', 'astra' ), ), /** * Single product payment icon color style. */ array( 'name' => 'single-product-payment-icon-color', 'parent' => ASTRA_THEME_SETTINGS . '[single-product-structure]', 'default' => astra_get_option( 'single-product-payment-icon-color' ), 'linked' => 'single-product-payments', 'type' => 'sub-control', 'control' => 'ast-selector', 'section' => 'section-woo-shop-single', 'priority' => 5, 'title' => __( 'Choose Icon Colors', 'astra' ), 'choices' => array( 'inherit' => __( 'Default', 'astra' ), 'inherit_text_color' => __( 'Grayscale', 'astra' ), ), 'transport' => 'postMessage', 'responsive' => false, 'renderAs' => 'text', ), /** * Single product payment heading text. */ array( 'name' => 'single-product-payment-text', 'parent' => ASTRA_THEME_SETTINGS . '[single-product-structure]', 'default' => astra_get_option( 'single-product-payment-text' ), 'linked' => 'single-product-payments', 'type' => 'sub-control', 'control' => 'ast-text-input', 'section' => 'section-woo-shop-single', 'priority' => 5, 'transport' => 'postMessage', 'title' => __( 'Payment Title', 'astra' ), 'settings' => array(), ), ); /** * Single product extras list. */ $_configs[] = array( 'name' => 'single-product-payment-list', 'parent' => ASTRA_THEME_SETTINGS . '[single-product-structure]', 'default' => astra_get_option( 'single-product-payment-list' ), 'linked' => 'single-product-payments', 'type' => 'sub-control', 'control' => 'ast-list-icons', 'section' => 'section-woo-shop-single', 'priority' => 10, 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), 'disable' => false, 'input_attrs' => array( 'text_control_label' => __( 'Payment Title', 'astra' ), 'text_control_placeholder' => __( 'Add payment title', 'astra' ), ), ); /** * Option: Button width option */ $_configs[] = array( 'name' => 'single-product-cart-button-width', 'parent' => ASTRA_THEME_SETTINGS . '[single-product-structure]', 'default' => astra_get_option( 'single-product-cart-button-width' ), 'linked' => 'add_cart', 'type' => 'sub-control', 'control' => 'ast-responsive-slider', 'responsive' => true, 'section' => 'section-woo-shop-single', 'priority' => 11, 'title' => __( 'Button Width', 'astra' ), 'transport' => 'postMessage', 'suffix' => '%', 'input_attrs' => array( 'min' => 1, 'step' => 1, 'max' => 100, ), ); /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( astra_has_pro_woocommerce_addon() ) { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $_configs[] = array( 'name' => 'single-product-cart-button-width', 'parent' => ASTRA_THEME_SETTINGS . '[single-product-structure]', 'default' => astra_get_option( 'single-product-cart-button-width' ), 'linked' => 'add_cart', 'type' => 'sub-control', 'control' => 'ast-responsive-slider', 'responsive' => true, 'section' => 'section-woo-shop-single', 'priority' => 11, 'title' => __( 'Button Width', 'astra' ), 'transport' => 'postMessage', 'suffix' => '%', 'input_attrs' => array( 'min' => 1, 'step' => 1, 'max' => 100, ), ); } else { $_configs[] = array( 'name' => ASTRA_THEME_SETTINGS . '[single-product-cart-button-width]', 'default' => astra_get_option( 'single-product-cart-button-width' ), 'type' => 'control', 'transport' => 'postMessage', 'responsive' => true, 'control' => 'ast-responsive-slider', 'section' => 'section-woo-shop-single', 'title' => __( 'Button Width', 'astra' ), 'suffix' => '%', 'priority' => 16, 'input_attrs' => array( 'min' => 1, 'step' => 1, 'max' => 100, ), 'divider' => array( 'ast_class' => 'ast-top-section-divider ast-bottom-section-divider' ), ); } if ( ! defined( 'ASTRA_EXT_VER' ) ) { $_configs[] = array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-add-to-cart-notice]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-woo-shop-single', 'priority' => 5, 'label' => '', 'help' => __( 'Note: To get design settings make sure to enable sticky add to cart.', 'astra' ), 'context' => array( Astra_Builder_Helper::$design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-product-sticky-add-to-cart]', 'operator' => '==', 'value' => false, ), ), ); if ( astra_showcase_upgrade_notices() ) { // Learn More link if Astra Pro is not activated. $_configs[] = array( 'name' => ASTRA_THEME_SETTINGS . '[ast-woo-single-product-pro-items]', 'type' => 'control', 'control' => 'ast-upgrade', 'campaign' => 'woocommerce', 'renderAs' => 'list', 'choices' => array( 'two' => array( 'title' => __( 'More product galleries', 'astra' ), ), 'three' => array( 'title' => __( 'Sticky product summary', 'astra' ), ), 'five' => array( 'title' => __( 'Product description layouts', 'astra' ), ), 'six' => array( 'title' => __( 'Related, Upsell product controls', 'astra' ), ), 'seven' => array( 'title' => __( 'Extras option for product structure', 'astra' ), ), 'eight' => array( 'title' => __( 'More typography options', 'astra' ), ), 'nine' => array( 'title' => __( 'More color options', 'astra' ), ), 'one' => array( 'title' => __( 'More design controls', 'astra' ), ), ), 'section' => 'section-woo-shop-single', 'default' => '', 'priority' => 999, 'title' => __( 'Extra conversion options for store product pages means extra profit!', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), 'context' => array(), ); } } return array_merge( $configurations, $_configs ); } } } new Astra_Woo_Shop_Single_Layout_Configs(); PK`mZa#77\compatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-layout-configs.phpnu[ __( 'Redirect To Cart Page', 'astra' ), 'redirect_checkout_page' => __( 'Redirect To Checkout Page', 'astra' ), ); } /** * Shop product add to cart control. */ $add_to_cart_attr['add_cart'] = array( 'clone' => false, 'is_parent' => true, 'main_index' => 'add_cart', 'clone_limit' => 2, 'title' => __( 'Add To Cart', 'astra' ), ); /** * Shop product total review count. */ $ratings['ratings'] = array( 'clone' => false, 'is_parent' => true, 'main_index' => 'ratings', 'clone_limit' => 2, 'title' => __( 'Ratings', 'astra' ), ); if ( $astra_addon_with_woo ) { $current_shop_layouts = array( 'shop-page-grid-style' => array( 'label' => __( 'Design 1', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'shop-grid-view', false ) : '', ), 'shop-page-modern-style' => array( 'label' => __( 'Design 2', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'shop-modern-view', false ) : '', ), 'shop-page-list-style' => array( 'label' => __( 'Design 3', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'shop-list-view', false ) : '', ), ); } else { $current_shop_layouts = array( 'shop-page-grid-style' => array( 'label' => __( 'Design 1', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'shop-grid-view', false ) : '', ), 'shop-page-modern-style' => array( 'label' => __( 'Design 2', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'shop-modern-view', false ) : '', ), ); } $_configs = array( /** * Option: Context for shop archive section. */ array( 'name' => 'section-woocommerce-shop-context-tabs', 'section' => 'woocommerce_product_catalog', 'type' => 'control', 'control' => 'ast-builder-header-control', 'priority' => 0, 'description' => '', ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[shop-box-styling]', 'section' => 'woocommerce_product_catalog', 'title' => __( 'Shop Card Styling', 'astra' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 229, 'settings' => array(), 'context' => array( Astra_Builder_Helper::$design_tab_config, ), ), /** * Option: Content Alignment */ array( 'name' => ASTRA_THEME_SETTINGS . '[shop-product-align-responsive]', 'default' => astra_get_option( 'shop-product-align-responsive' ), 'type' => 'control', 'control' => 'ast-selector', 'section' => 'woocommerce_product_catalog', 'priority' => 229, 'title' => __( 'Horizontal Content Alignment', 'astra' ), 'responsive' => true, 'choices' => array( 'align-left' => 'align-left', 'align-center' => 'align-center', 'align-right' => 'align-right', ), 'context' => array( Astra_Builder_Helper::$design_tab_config, ), 'divider' => ! defined( 'ASTRA_EXT_VER' ) ? array( 'ast_class' => 'ast-section-spacing' ) : array( 'ast_class' => 'ast-bottom-section-divider ast-section-spacing' ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[woo-shop-structure-divider]', 'section' => 'woocommerce_product_catalog', 'title' => __( 'Shop Card Structure', 'astra' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 15, 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Single Post Meta */ array( 'name' => ASTRA_THEME_SETTINGS . '[shop-product-structure]', 'type' => 'control', 'control' => 'ast-sortable', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_multi_choices' ), 'section' => 'woocommerce_product_catalog', 'default' => astra_get_option( 'shop-product-structure' ), 'priority' => 15, 'choices' => array_merge( array( 'title' => __( 'Title', 'astra' ), 'price' => __( 'Price', 'astra' ), 'short_desc' => __( 'Short Description', 'astra' ), ), $add_to_cart_attr, array( 'category' => __( 'Category', 'astra' ), ), $ratings, ), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[woo-shop-skin-divider]', 'section' => 'woocommerce_product_catalog', 'title' => __( 'Shop Layout', 'astra' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 7, 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Choose Product Style */ array( 'name' => ASTRA_THEME_SETTINGS . '[shop-style]', 'default' => astra_get_option( 'shop-style' ), 'type' => 'control', 'section' => 'woocommerce_product_catalog', 'title' => __( 'Shop Card Design', 'astra' ), 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'priority' => 8, 'choices' => $current_shop_layouts, 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-section-divider' ), ), /** * Option: Shop Columns */ array( 'name' => ASTRA_THEME_SETTINGS . '[shop-grids]', 'type' => 'control', 'control' => 'ast-responsive-slider', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'section' => 'woocommerce_product_catalog', 'default' => astra_get_option( 'shop-grids', array( 'desktop' => 4, 'tablet' => 3, 'mobile' => 2, ) ), 'priority' => 9, 'title' => __( 'Shop Columns', 'astra' ), 'input_attrs' => array( 'step' => 1, 'min' => 1, 'max' => 6, ), 'divider' => array( 'ast_class' => 'ast-bottom-section-divider' ), ), /** * Option: Products Per Page */ array( 'name' => ASTRA_THEME_SETTINGS . '[shop-no-of-products]', 'type' => 'control', 'section' => 'woocommerce_product_catalog', 'title' => __( 'Products Per Page', 'astra' ), 'default' => astra_get_option( 'shop-no-of-products' ), 'control' => 'number', 'priority' => 9, 'input_attrs' => array( 'min' => 1, 'step' => 1, 'max' => 100, ), ), /** * Option: Shop Archive Content Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[shop-archive-width]', 'type' => 'control', 'control' => 'ast-selector', 'section' => 'woocommerce_product_catalog', 'default' => astra_get_option( 'shop-archive-width' ), 'priority' => 9, 'title' => __( 'Shop Archive Content Width', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'custom' => __( 'Custom', 'astra' ), ), 'transport' => 'refresh', 'renderAs' => 'text', 'responsive' => false, 'divider' => $astra_addon_with_woo ? array( 'ast_class' => 'ast-top-section-divider' ) : array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Enter Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[shop-archive-max-width]', 'type' => 'control', 'control' => 'ast-slider', 'section' => 'woocommerce_product_catalog', 'default' => astra_get_option( 'shop-archive-max-width' ), 'priority' => 9, 'title' => __( 'Custom Width', 'astra' ), 'transport' => 'postMessage', 'suffix' => 'px', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), 'context' => array( Astra_Builder_Helper::$general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[shop-archive-width]', 'operator' => '===', 'value' => 'custom', ), ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), ); /** * Option: Shop add to cart action. */ $_configs[] = array( 'name' => 'shop-add-to-cart-action', 'parent' => ASTRA_THEME_SETTINGS . '[shop-product-structure]', 'default' => astra_get_option( 'shop-add-to-cart-action' ), 'section' => 'woocommerce_product_catalog', 'title' => __( 'Add To Cart Action', 'astra' ), 'type' => 'sub-control', 'control' => 'ast-select', 'linked' => 'add_cart', 'priority' => 10, 'choices' => array_merge( array( 'default' => __( 'Default', 'astra' ), 'slide_in_cart' => __( 'Slide In Cart', 'astra' ), ), $astra_shop_page_pro_features ), 'responsive' => false, 'renderAs' => 'text', 'transport' => 'postMessage', ); /** * Total Review count option config. */ $_configs[] = array( 'name' => 'shop-ratings-product-archive', 'parent' => ASTRA_THEME_SETTINGS . '[shop-product-structure]', 'default' => astra_get_option( 'shop-ratings-product-archive' ), 'linked' => 'ratings', 'type' => 'sub-control', 'control' => 'ast-selector', 'section' => 'woocommerce_product_catalog', 'priority' => 10, 'title' => __( 'Review Count', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'count_string' => __( 'Count + Text', 'astra' ), ), 'transport' => 'postMessage', 'responsive' => false, 'renderAs' => 'text', ); /** * Option: Shop add to cart action notice. */ $_configs[] = array( 'name' => 'shop-add-to-cart-action-notice', 'parent' => ASTRA_THEME_SETTINGS . '[shop-product-structure]', 'type' => 'sub-control', 'control' => 'ast-description', 'section' => 'woocommerce_product_catalog', 'priority' => 10, 'label' => '', 'linked' => 'add_cart', 'help' => __( 'Please publish the changes and see result on the frontend.
[Slide in cart requires Cart added inside Header Builder]', 'astra' ), ); // Learn More link if Astra Pro is not activated. if ( astra_showcase_upgrade_notices() ) { $_configs[] = array( 'name' => ASTRA_THEME_SETTINGS . '[ast-woo-shop-pro-items]', 'type' => 'control', 'control' => 'ast-upgrade', 'campaign' => 'woocommerce', 'renderAs' => 'list', 'choices' => array( 'two' => array( 'title' => __( 'More shop design layouts', 'astra' ), ), 'three' => array( 'title' => __( 'Shop toolbar structure', 'astra' ), ), 'five' => array( 'title' => __( 'Offcanvas product filters', 'astra' ), ), 'six' => array( 'title' => __( 'Products quick view', 'astra' ), ), 'seven' => array( 'title' => __( 'Shop pagination', 'astra' ), ), 'eight' => array( 'title' => __( 'More typography options', 'astra' ), ), 'nine' => array( 'title' => __( 'More color options', 'astra' ), ), 'ten' => array( 'title' => __( 'More spacing options', 'astra' ), ), 'four' => array( 'title' => __( 'Box shadow design options', 'astra' ), ), 'one' => array( 'title' => __( 'More design controls', 'astra' ), ), ), 'section' => 'woocommerce_product_catalog', 'default' => '', 'priority' => 999, 'title' => __( 'Optimize your WooCommerce store for maximum profit with enhanced features', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), 'context' => array(), ); } $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Woo_Shop_Layout_Configs(); PK`mZ *acompatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-cart-layout-configs.phpnu[ ASTRA_THEME_SETTINGS . '[woo-enable-cart-button-text]', 'default' => astra_get_option( 'woo-enable-cart-button-text' ), 'type' => 'control', 'section' => 'section-woo-shop-cart', 'title' => __( 'Change Cart Button Text', 'astra' ), 'description' => __( 'Add custom text for cart button', 'astra' ), 'control' => 'ast-toggle-control', 'priority' => 2, ), /** * Option: Checkout */ array( 'name' => ASTRA_THEME_SETTINGS . '[woo-cart-button-text]', 'default' => astra_get_option( 'woo-cart-button-text' ), 'type' => 'control', 'section' => 'section-woo-shop-cart', 'title' => __( 'Cart Button Text', 'astra' ), 'context' => array( Astra_Builder_Helper::$general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[woo-enable-cart-button-text]', 'operator' => '==', 'value' => true, ), ), 'control' => 'text', 'priority' => 2, ), /** * Option: Cart upsells * * Enable Cross-sells - in the code it is refrenced as upsells rather than cross-sells. */ array( 'name' => ASTRA_THEME_SETTINGS . '[enable-cart-upsells]', 'section' => 'section-woo-shop-cart', 'type' => 'control', 'control' => 'ast-toggle-control', 'default' => astra_get_option( 'enable-cart-upsells' ), 'title' => __( 'Enable Cross-sells', 'astra' ), 'priority' => 2.7, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), ); if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '8.3', '>=' ) ) { $_configs[] = array( 'name' => ASTRA_THEME_SETTINGS . '[woo-block-incompatible-cart-notice]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-woo-shop-cart', 'priority' => 1, 'label' => '', 'help' => '

' . __( 'Note:', 'astra' ) . '' . __( ' Certain Cart page options may not work smoothly on the block editor based Cart page. For best results with these features, prefer using a shortcode based Cart page.', 'astra' ) . '

', ); $_configs[] = array( 'name' => ASTRA_THEME_SETTINGS . '[woo-block-incompatible-checkout-notice]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'woocommerce_checkout', 'priority' => 1, 'label' => '', 'help' => '

' . __( 'Note:', 'astra' ) . '' . __( ' Certain Checkout page options may not work smoothly on the block editor based Checkout page. For best results with these features, prefer using a shortcode-based Checkout page.', 'astra' ) . '

', ); } if ( astra_showcase_upgrade_notices() ) { // Learn More link if Astra Pro is not activated. $_configs[] = array( 'name' => ASTRA_THEME_SETTINGS . '[ast-woo-cart-pro-items]', 'type' => 'control', 'control' => 'ast-upgrade', 'campaign' => 'woocommerce', 'renderAs' => 'list', 'choices' => array( 'two' => array( 'title' => __( 'Modern cart layout', 'astra' ), ), 'one' => array( 'title' => __( 'Sticky cart totals', 'astra' ), ), 'three' => array( 'title' => __( 'Real-time quantity updater', 'astra' ), ), ), 'section' => 'section-woo-shop-cart', 'default' => '', 'priority' => 999, 'title' => __( 'Convert more, earn more with extensive cart conversion features', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), 'context' => array(), ); $_configs[] = array( 'name' => ASTRA_THEME_SETTINGS . '[ast-woo-checkout-pro-items]', 'type' => 'control', 'control' => 'ast-upgrade', 'campaign' => 'woocommerce', 'renderAs' => 'list', 'choices' => array( 'two' => array( 'title' => __( 'Modern layout', 'astra' ), ), 'one' => array( 'title' => __( 'Multi-column layouts', 'astra' ), ), 'three' => array( 'title' => __( 'Modern order received layout', 'astra' ), ), 'four' => array( 'title' => __( 'Sticky order review', 'astra' ), ), 'five' => array( 'title' => __( 'Two-step checkout', 'astra' ), ), 'six' => array( 'title' => __( 'Order note, Coupon field control', 'astra' ), ), 'seven' => array( 'title' => __( 'Distraction free checkout', 'astra' ), ), 'eight' => array( 'title' => __( 'Persistent checkout form data', 'astra' ), ), 'nine' => array( 'title' => __( 'Text form options', 'astra' ), ), 'ten' => array( 'title' => __( 'Summary, Payment background', 'astra' ), ), ), 'section' => 'woocommerce_checkout', 'default' => '', 'priority' => 999, 'title' => __( 'Encourage last-minute purchases with extra conversion options at checkout', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), 'context' => array(), ); } return array_merge( $configurations, $_configs ); } } } new Astra_Woo_Shop_Cart_Layout_Configs(); PK`mZua acompatibility/woocommerce/customizer/sections/layout/class-astra-woo-shop-misc-layout-configs.phpnu[ ASTRA_THEME_SETTINGS . '[single-product-plus-minus-button]', 'default' => astra_get_option( 'single-product-plus-minus-button' ), 'type' => 'control', 'section' => 'section-woo-misc', 'title' => __( 'Enable Quantity Plus and Minus', 'astra' ), 'description' => __( 'Adds plus and minus buttons besides product quantity', 'astra' ), 'priority' => 59, 'control' => 'ast-toggle-control', 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), ); /** * Option: Adds tabs only if astra addons is enabled. */ if ( astra_has_pro_woocommerce_addon() ) { $_configs[] = array( 'name' => 'section-woo-general-tabs', 'section' => 'section-woo-misc', 'type' => 'control', 'control' => 'ast-builder-header-control', 'priority' => 0, 'description' => '', ); } if ( astra_showcase_upgrade_notices() ) { // Learn More link if Astra Pro is not activated. $_configs[] = array( 'name' => ASTRA_THEME_SETTINGS . '[ast-woo-misc-pro-items]', 'type' => 'control', 'control' => 'ast-upgrade', 'campaign' => 'woocommerce', 'renderAs' => 'list', 'choices' => array( 'two' => array( 'title' => __( 'Modern input style', 'astra' ), ), 'one' => array( 'title' => __( 'Sale badge modifications', 'astra' ), ), 'three' => array( 'title' => __( 'Ecommerce steps navigation', 'astra' ), ), 'four' => array( 'title' => __( 'Quantity updater designs', 'astra' ), ), 'five' => array( 'title' => __( 'Modern my-account page', 'astra' ), ), 'six' => array( 'title' => __( 'Downloads, Orders grid view', 'astra' ), ), 'seven' => array( 'title' => __( 'Modern thank-you page design', 'astra' ), ), ), 'section' => 'section-woo-misc', 'default' => '', 'priority' => 999, 'title' => __( 'Access extra conversion tools to make more profit from your eCommerce store', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), 'context' => array(), ); } return array_merge( $configurations, $_configs ); } } } new Astra_Woo_Shop_Misc_Layout_Configs(); PK`mZ7KVcompatibility/woocommerce/customizer/sections/class-astra-woo-shop-sidebar-configs.phpnu[ ASTRA_THEME_SETTINGS . '[woocommerce-sidebar-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => 'section-woo-general', 'default' => astra_get_option( 'woocommerce-sidebar-layout' ), 'priority' => 5, 'title' => __( 'Sidebar Layout', 'astra' ), 'choices' => array( 'default' => array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'no-sidebar' => array( 'label' => __( 'No Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'no-sidebar', false ) : '', ), 'left-sidebar' => array( 'label' => __( 'Left Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'left-sidebar', false ) : '', ), 'right-sidebar' => array( 'label' => __( 'Right Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'right-sidebar', false ) : '', ), ), 'description' => __( 'Sidebar will only apply when container layout is set to normal.', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), /** * Option: Woocommerce Sidebar Style. */ array( 'name' => ASTRA_THEME_SETTINGS . '[woocommerce-sidebar-style]', 'type' => 'control', 'control' => 'ast-selector', 'section' => 'section-woo-general', 'default' => astra_get_option( 'woocommerce-sidebar-style', 'default' ), 'priority' => 5, 'title' => __( 'Sidebar Style', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ), 'responsive' => false, 'renderAs' => 'text', 'divider' => array( 'ast_class' => 'ast-top-divider' ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[shop-display-options-divider]', 'section' => 'woocommerce_product_catalog', 'title' => __( 'Shop Display Options', 'astra' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 9.5, 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-spacing' ), ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Woo_Shop_Sidebar_Configs(); PKbmZ955Vcompatibility/woocommerce/customizer/sections/class-astra-woo-store-notice-configs.phpnu[ ASTRA_THEME_SETTINGS . '[woo-store-notice-colors-group]', 'default' => astra_get_option( 'woo-store-notice-colors-group' ), 'type' => 'control', 'control' => 'ast-color-group', 'title' => __( 'Color', 'astra' ), 'section' => 'woocommerce_store_notice', 'transport' => 'postMessage', 'priority' => 50, 'context' => array( array( 'setting' => 'woocommerce_demo_store', 'operator' => '==', 'value' => true, ), ), 'divider' => array( 'ast_class' => 'ast-top-divider ast-bottom-divider' ), ), // Option: Text Color. array( 'name' => 'store-notice-text-color', 'default' => astra_get_option( 'store-notice-text-color' ), 'parent' => ASTRA_THEME_SETTINGS . '[woo-store-notice-colors-group]', 'type' => 'sub-control', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'section' => 'woocommerce_store_notice', 'transport' => 'postMessage', 'priority' => 1, 'title' => __( 'Text', 'astra' ), ), // Option: Background Color. array( 'name' => 'store-notice-background-color', 'default' => astra_get_option( 'store-notice-background-color' ), 'parent' => ASTRA_THEME_SETTINGS . '[woo-store-notice-colors-group]', 'type' => 'sub-control', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'section' => 'woocommerce_store_notice', 'transport' => 'postMessage', 'priority' => 2, 'title' => __( 'Background', 'astra' ), ), /** * Option: Notice Position */ array( 'name' => ASTRA_THEME_SETTINGS . '[store-notice-position]', 'default' => astra_get_option( 'store-notice-position' ), 'type' => 'control', 'control' => 'ast-selector', 'section' => 'woocommerce_store_notice', 'transport' => 'postMessage', 'priority' => 60, 'title' => __( 'Notice Position', 'astra' ), 'choices' => array( 'hang-over-top' => __( 'Hang Over Top', 'astra' ), 'top' => __( 'Top', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), ), 'context' => array( array( 'setting' => 'woocommerce_demo_store', 'operator' => '==', 'value' => true, ), ), 'renderAs' => 'text', 'responsive' => false, ), ); return array_merge( $configurations, $_configs ); } } new Astra_Woo_Store_Notice_Configs(); PKbmZamTcompatibility/woocommerce/customizer/class-astra-customizer-register-woo-section.phpnu[ 'section-woo-shop', 'title' => __( 'Shop', 'astra' ), 'type' => 'section', 'priority' => 20, 'panel' => 'woocommerce', ), array( 'name' => 'section-woo-shop-single', 'type' => 'section', 'title' => __( 'Single Product', 'astra' ), 'priority' => 12, 'panel' => 'woocommerce', ), array( 'name' => 'section-woo-shop-cart', 'type' => 'section', 'title' => __( 'Cart', 'astra' ), 'priority' => 20, 'panel' => 'woocommerce', ), array( 'name' => 'section-woo-general', 'title' => __( 'General', 'astra' ), 'type' => 'section', 'priority' => 10, 'panel' => 'woocommerce', ), array( 'name' => 'section-woo-misc', 'title' => __( 'Misc', 'astra' ), 'type' => 'section', 'priority' => 24.5, 'panel' => 'woocommerce', ), ); return array_merge( $configurations, $configs ); } } } new Astra_Customizer_Register_Woo_Section(); PKbmZH^BEBE'compatibility/class-astra-elementor.phpnu[is_elementor_activated( $id ) ) { $elementor_heading_margin_comp = array( '.elementor-widget-heading .elementor-heading-title' => array( 'margin' => '0', ), '.elementor-page .ast-menu-toggle' => array( 'color' => 'unset !important', 'background' => 'unset !important', ), ); /* Parse CSS from array() */ $parse_css = astra_parse_css( $elementor_heading_margin_comp ); $elementor_base_css = array( '.elementor-post.elementor-grid-item.hentry' => array( 'margin-bottom' => '0', ), '.woocommerce div.product .elementor-element.elementor-products-grid .related.products ul.products li.product, .elementor-element .elementor-wc-products .woocommerce[class*=\'columns-\'] ul.products li.product' => array( 'width' => 'auto', 'margin' => '0', 'float' => 'none', ), ); if ( astra_can_remove_elementor_toc_margin_space() ) { $elementor_base_css['.elementor-toc__list-wrapper'] = array( 'margin' => 0, ); } if ( astra_can_add_styling_for_hr() ) { $elementor_base_css['body .elementor hr'] = array( 'background-color' => '#ccc', 'margin' => '0', ); } // Load base static CSS when Elmentor is activated. $parse_css .= astra_parse_css( $elementor_base_css ); if ( is_rtl() ) { $elementor_rtl_support_css = array( '.ast-left-sidebar .elementor-section.elementor-section-stretched,.ast-right-sidebar .elementor-section.elementor-section-stretched' => array( 'max-width' => '100%', 'right' => '0 !important', ), ); } else { $elementor_rtl_support_css = array( '.ast-left-sidebar .elementor-section.elementor-section-stretched,.ast-right-sidebar .elementor-section.elementor-section-stretched' => array( 'max-width' => '100%', 'left' => '0 !important', ), ); } $parse_css .= astra_parse_css( $elementor_rtl_support_css ); $dynamic_css .= $parse_css; } // To visible proper column structure with elementor flexbox model. $elementor_posts_container_css = array( '.elementor-posts-container [CLASS*="ast-width-"]' => array( 'width' => '100%', ), ); $dynamic_css .= astra_parse_css( $elementor_posts_container_css ); $elementor_archive_page_css = array( '.elementor-template-full-width .ast-container' => array( 'display' => 'block', ), '.elementor-screen-only, .screen-reader-text, .screen-reader-text span, .ui-helper-hidden-accessible' => array( 'top' => '0 !important', ), ); $dynamic_css .= astra_parse_css( $elementor_archive_page_css ); $dynamic_css .= astra_parse_css( array( '.elementor-element .elementor-wc-products .woocommerce[class*="columns-"] ul.products li.product' => array( 'width' => 'auto', 'margin' => '0', ), '.elementor-element .woocommerce .woocommerce-result-count' => array( 'float' => 'none', ), ), '', astra_get_mobile_breakpoint() ); return $dynamic_css; } /** * Elementor Content layout set as Page Builder * * @return void * @since 1.0.2 */ public function elementor_default_setting() { if ( false === astra_enable_page_builder_compatibility() || 'post' == get_post_type() ) { return; } // don't modify post meta settings if we are not on Elementor's edit page. if ( ! $this->is_elementor_editor() ) { return; } global $post; $id = astra_get_post_id(); $page_builder_flag = get_post_meta( $id, '_astra_content_layout_flag', true ); if ( isset( $post ) && empty( $page_builder_flag ) && ( is_admin() || is_singular() ) ) { if ( empty( $post->post_content ) && $this->is_elementor_activated( $id ) ) { update_post_meta( $id, '_astra_content_layout_flag', 'disabled' ); update_post_meta( $id, 'site-post-title', 'disabled' ); update_post_meta( $id, 'ast-title-bar-display', 'disabled' ); update_post_meta( $id, 'ast-featured-img', 'disabled' ); // Compatibility with revamped layouts to update default layout to page builder. $migrated_user = ( ! Astra_Dynamic_CSS::astra_fullwidth_sidebar_support() ); if ( $migrated_user ) { $content_layout = get_post_meta( $id, 'site-content-layout', true ); } else { $content_layout = get_post_meta( $id, 'ast-site-content-layout', true ); } if ( empty( $content_layout ) || 'default' == $content_layout ) { if ( $migrated_user ) { update_post_meta( $id, 'site-content-layout', 'page-builder' ); } update_post_meta( $id, 'ast-site-content-layout', 'full-width-container' ); } $sidebar_layout = get_post_meta( $id, 'site-sidebar-layout', true ); if ( empty( $sidebar_layout ) || 'default' == $sidebar_layout ) { update_post_meta( $id, 'site-sidebar-layout', 'no-sidebar' ); } // In the preview mode, Apply the layouts using filters for Elementor Template Library. add_filter( 'astra_page_layout', function() { // phpcs:ignore PHPCompatibility.FunctionDeclarations.NewClosure.Found return 'no-sidebar'; } ); add_filter( 'astra_get_content_layout', function () { // phpcs:ignore PHPCompatibility.FunctionDeclarations.NewClosure.Found return 'page-builder'; } ); add_filter( 'astra_the_post_title_enabled', '__return_false' ); add_filter( 'astra_featured_image_enabled', '__return_false' ); } } } /** * Add z-index CSS for elementor's drag drop * * @return void * @since 1.4.0 */ public function elementor_overlay_zindex() { // return if we are not on Elementor's edit page. if ( ! $this->is_elementor_editor() ) { return; } ?> db->get_edit_mode( $id ) ); } else { $document = Plugin::$instance->documents->get( $id ); if ( $document ) { return $document->is_built_with_elementor(); } else { return false; } } } /** * Check if Elementor Editor is open. * * @since 1.2.7 * * @return boolean True IF Elementor Editor is loaded, False If Elementor Editor is not loaded. */ private function is_elementor_editor() { if ( ( isset( $_REQUEST['action'] ) && 'elementor' == $_REQUEST['action'] ) || isset( $_REQUEST['elementor-preview'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended return true; } return false; } /** * Display theme global colors to Elementor Global colors * * @since 3.7.0 * @param object $response rest request response. * @param array $handler Route handler used for the request. * @param WP_REST_Request $request Request used to generate the response. * @return object */ public function elementor_add_theme_colors( $response, $handler, $request ) { $route = $request->get_route(); if ( astra_maybe_disable_global_color_in_elementor() ) { return $response; } if ( '/elementor/v1/globals' != $route ) { return $response; } $global_palette = astra_get_option( 'global-color-palette' ); $data = $response->get_data(); $slugs = Astra_Global_Palette::get_palette_slugs(); $labels = Astra_Global_Palette::get_palette_labels(); foreach ( $global_palette['palette'] as $key => $color ) { $slug = $slugs[ $key ]; // Remove hyphens from slug. $no_hyphens = str_replace( '-', '', $slug ); $data['colors'][ $no_hyphens ] = array( 'id' => esc_attr( $no_hyphens ), 'title' => 'Theme ' . $labels[ $key ], 'value' => $color, ); } $response->set_data( $data ); return $response; } /** * Display global paltte colors on Elementor front end Page. * * @since 3.7.0 * @param object $response rest request response. * @param array $handler Route handler used for the request. * @param WP_REST_Request $request Request used to generate the response. * @return object */ public function display_global_colors_front_end( $response, $handler, $request ) { if ( astra_maybe_disable_global_color_in_elementor() ) { return $response; } $route = $request->get_route(); if ( 0 !== strpos( $route, '/elementor/v1/globals' ) ) { return $response; } $slug_map = array(); $palette_slugs = Astra_Global_Palette::get_palette_slugs(); foreach ( $palette_slugs as $key => $slug ) { // Remove hyphens as hyphens do not work with Elementor global styles. $no_hyphens = str_replace( '-', '', $slug ); $slug_map[ $no_hyphens ] = $key; } $rest_id = substr( $route, strrpos( $route, '/' ) + 1 ); if ( ! in_array( $rest_id, array_keys( $slug_map ), true ) ) { return $response; } $colors = astra_get_option( 'global-color-palette' ); $response = rest_ensure_response( array( 'id' => esc_attr( $rest_id ), 'title' => Astra_Global_Palette::get_css_variable_prefix() . esc_html( $slug_map[ $rest_id ] ), 'value' => $colors['palette'][ $slug_map[ $rest_id ] ], ) ); return $response; } /** * Generate CSS variable style for Elementor. * * @since 3.7.0 * @param string $dynamic_css Dynamic CSS. * @return object */ public function generate_global_elementor_style( $dynamic_css ) { if ( astra_maybe_disable_global_color_in_elementor() ) { return $dynamic_css; } $global_palette = astra_get_option( 'global-color-palette' ); $palette_style = array(); $slugs = Astra_Global_Palette::get_palette_slugs(); $style = array(); if ( isset( $global_palette['palette'] ) ) { foreach ( $global_palette['palette'] as $color_index => $color ) { $variable_key = '--e-global-color-' . str_replace( '-', '', $slugs[ $color_index ] ); $style[ $variable_key ] = $color; } $palette_style[':root'] = $style; $dynamic_css .= astra_parse_css( $palette_style ); } // Apply Astra Mini Cart CSS if Elementor Mini Cart Template is disabled. $is_site_rtl = is_rtl(); $ltr_left = $is_site_rtl ? 'right' : 'left'; $ltr_right = $is_site_rtl ? 'left' : 'right'; if ( defined( 'ELEMENTOR_PRO_VERSION' ) && 'no' === get_option( 'elementor_' . 'use_mini_cart_template' ) ) { $mini_cart_template_css = array( '.woocommerce-js .woocommerce-mini-cart' => array( 'margin-inline-start' => '0', 'list-style' => 'none', 'padding' => '1.3em', 'flex' => '1', 'overflow' => 'auto', 'position' => 'relative', ), '.woocommerce-js .widget_shopping_cart_content ul li.mini_cart_item' => array( 'min-height' => '60px', 'padding-top' => '1.2em', 'padding-bottom' => '1.2em', 'padding-' . $ltr_left => '5em', 'padding-' . $ltr_right => '0', ), '.woocommerce-js .woocommerce-mini-cart-item .ast-mini-cart-price-wrap' => array( 'float' => 'right', 'margin-top' => '0.5em', 'position' => 'absolute', $ltr_left => 'auto', $ltr_right => '0', 'top' => '3.5em', ), '.woocommerce-js .widget_shopping_cart_content a.remove' => array( 'position' => 'absolute', $ltr_left => 'auto', $ltr_right => '0', ), '.woocommerce-js .woocommerce-mini-cart__total' => array( 'display' => 'flex', 'justify-content' => 'space-between', 'padding' => '0.7em 0', 'margin-bottom' => '0', 'font-size' => '16px', 'border-top' => '1px solid var(--ast-border-color)', 'border-bottom' => '1px solid var(--ast-border-color)', ), '.woocommerce-mini-cart__buttons' => array( 'display' => 'flex', 'flex-direction' => 'column', 'gap' => '20px', 'padding-top' => '1.34em', ), '.woocommerce-mini-cart__buttons .button' => array( 'text-align' => 'center', 'font-weight' => '500', 'font-size' => '16px', ), '.woocommerce-js ul.product_list_widget li a img' => array( 'top' => '52%', ), '.ast-mini-cart-empty .ast-mini-cart-message' => array( 'display' => 'none', ), ); $dynamic_css .= astra_parse_css( $mini_cart_template_css ); } return $dynamic_css; } /** * Load style inside Elementor editor. * * @since 3.7.0 * @return void */ public function elementor_add_scripts() { $editor_preferences = SettingsManager::get_settings_managers( 'editorPreferences' ); $theme = $editor_preferences->get_model()->get_settings( 'ui_theme' ); $style = 'dark' == $theme ? '-dark' : ''; wp_enqueue_style( 'astra-elementor-editor-style', ASTRA_THEME_URI . 'inc/assets/css/ast-elementor-editor' . $style . '.css', array(), ASTRA_THEME_VERSION ); } } endif; /** * Kicking this off by calling 'get_instance()' method */ Astra_Elementor::get_instance(); PKbmZLYj j )compatibility/class-astra-web-stories.phpnu[ array( 'border-bottom' => '1px solid #ccc', 'padding' => '15px 0', 'margin-bottom' => '0', ), ); $dynamic_css .= astra_parse_css( $stories_css_array ); return $dynamic_css; } } new Astra_Web_Stories(); PKdmZ-compatibility/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 ); } } PKdmZ|~O -compatibility/class-astra-visual-composer.phpnu[ 0 && empty( $post->post_content ) ) { $this->vc_update_meta_setting( $id ); } } } /** * Set default setting. * * @since 1.0.13 * @return void */ public function vc_default_setting() { global $post; $id = astra_get_post_id(); $page_builder_flag = get_post_meta( $id, '_astra_content_layout_flag', true ); if ( isset( $post ) && empty( $page_builder_flag ) && ( is_admin() || is_singular() ) ) { $vc_active = get_post_meta( $id, '_wpb_vc_js_status', true ); if ( 'true' == $vc_active || has_shortcode( $post->post_content, 'vc_row' ) ) { $this->vc_update_meta_setting( $id ); } } } /** * Add assets in theme * * @param array $assets list of theme assets (JS & CSS). * @return array List of updated assets. * @since 3.5.0 */ public function add_styles( $assets ) { if ( ! empty( $assets['css'] ) ) { $assets['css'] = array( 'astra-vc-builder' => 'compatibility/page-builder/vc-plugin' ) + $assets['css']; } return $assets; } } endif; /** * Kicking this off by calling 'get_instance()' method */ Astra_Visual_Composer::get_instance(); PKdmZuK%compatibility/edd/class-astra-edd.phpnu[' . esc_html( $cart_title ) . ''; $cart_total_markup = '' . esc_html( edd_currency_filter( edd_format_amount( edd_get_cart_total() ) ) ) . ''; // Cart Title & Cart Cart total markup. $cart_info_markup = sprintf( ' %1$s %2$s %3$s ', ( $cart_title_display ) ? $cart_title_markup : '', ( $cart_total_display && $cart_title_display ) ? '/' : '', ( $cart_total_display ) ? $cart_total_markup : '' ); $cart_items = count( edd_get_cart_contents() ); $cart_contents_count = $cart_items; $cart_icon = sprintf( '%4$s', ( $icon ) ? $icon : '', ( $cart_count_display ) ? '' : 'no-cart-total', ( $cart_count_display ) ? 'data-cart-total="' . $cart_contents_count . '"' : '', ( $icon ) ? ( ( false !== Astra_Icons::is_svg_icons() ) ? Astra_Icons::get_icons( $icon ) : '' ) : '' ); // Theme's default icon with cart title and cart total. if ( 'default' == $icon || ! defined( 'ASTRA_EXT_VER' ) || ( defined( 'ASTRA_EXT_VER' ) && ! Astra_Ext_Extension::is_active( 'edd' ) ) ) { // Cart Total or Cart Title enable then only add markup. if ( $cart_title_display || $cart_total_display ) { echo $cart_info_markup; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } else { // Remove Default cart icon added by theme. add_filter( 'astra_edd_default_header_cart_icon', '__return_false' ); /* translators: 1: Cart Title Markup, 2: Cart Icon Markup */ printf( '
%1$s %2$s
', ( $cart_title_display || $cart_total_display ) ? $cart_info_markup : '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ( $cart_icon ) ? $cart_icon : '' // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ); } } /** * Header Cart Icon Class * * @param array $classes Default argument array. * * @return array; */ public function header_cart_icon_class( $classes ) { if ( false === Astra_Builder_Helper::$is_header_footer_builder_active && ! defined( 'ASTRA_EXT_VER' ) ) { return $classes; } $header_cart_icon_style = astra_get_option( 'edd-header-cart-icon-style' ); $classes[] = 'ast-edd-menu-cart-' . $header_cart_icon_style; $header_cart_icon_has_color = astra_get_option( 'edd-header-cart-icon-color' ); if ( ! empty( $header_cart_icon_has_color ) && ( 'none' !== $header_cart_icon_style ) ) { $classes[] = 'ast-menu-cart-has-color'; } return $classes; } /** * Disable EDD style only for the first time * * @return void */ public function edd_set_defaults_initialization() { $astra_theme_options = get_option( 'astra-settings' ); $edd_settings = get_option( 'edd_settings' ); // Set flag to set the EDD style disable only once for the very first time. if ( ! isset( $astra_theme_options['ast-edd-disable-styles'] ) ) { $astra_theme_options['ast-edd-disable-styles'] = true; $edd_settings['disable_styles'] = true; update_option( 'astra-settings', $astra_theme_options ); update_option( 'edd_settings', $edd_settings ); } } /** * Single Product Navigation * * @param array $args single products navigation arguments. * * @return array $args single products navigation arguments. */ public function edd_single_post_navigation( $args ) { $is_edd_single_product_page = astra_is_edd_single_product_page(); $disable_single_product_navigation = astra_get_option( 'disable-edd-single-product-nav' ); if ( $is_edd_single_product_page && ! $disable_single_product_navigation ) { $next_post = get_next_post(); $prev_post = get_previous_post(); $next_text = false; if ( $next_post ) { $next_text = sprintf( '%s ', $next_post->post_title ); } $prev_text = false; if ( $prev_post ) { $prev_text = sprintf( ' %s', $prev_post->post_title ); } $args['prev_text'] = $prev_text; $args['next_text'] = $next_text; } elseif ( $is_edd_single_product_page && $disable_single_product_navigation ) { $args['prev_text'] = false; $args['next_text'] = false; } return $args; } /** * EDD Initialization * * @return void */ public function edd_initialization() { $is_edd_archive_page = astra_is_edd_archive_page(); $is_edd_single_product_page = astra_is_edd_single_product_page(); if ( $is_edd_archive_page ) { add_action( 'astra_template_parts_content', array( $this, 'edd_content_loop' ) ); remove_action( 'astra_template_parts_content', array( Astra_Loop::get_instance(), 'template_parts_default' ) ); // Add edd wrapper. add_action( 'astra_template_parts_content_top', array( $this, 'astra_edd_templat_part_wrap_open' ), 25 ); add_action( 'astra_template_parts_content_bottom', array( $this, 'astra_edd_templat_part_wrap_close' ), 5 ); // Remove closing and ending div 'ast-row'. remove_action( 'astra_template_parts_content_top', array( Astra_Loop::get_instance(), 'astra_templat_part_wrap_open' ), 25 ); remove_action( 'astra_template_parts_content_bottom', array( Astra_Loop::get_instance(), 'astra_templat_part_wrap_close' ), 5 ); } if ( $is_edd_single_product_page ) { remove_action( 'astra_template_parts_content', array( Astra_Loop::get_instance(), 'template_parts_post' ) ); add_action( 'astra_template_parts_content', array( $this, 'edd_single_template' ) ); } } /** * Add wrapper for edd archive pages * * @return void */ public function astra_edd_templat_part_wrap_open() { ?>
>
>
0 ) { $classes = array_diff( $classes, array( // Astra common grid. 'ast-col-sm-12', 'ast-col-md-8', 'ast-col-md-6', 'ast-col-md-12', // Astra Blog / Single Post. 'ast-article-post', 'ast-article-single', 'ast-separate-posts', 'remove-featured-img-padding', 'ast-featured-post', ) ); } return $classes; } /** * Add Cart icon markup * * @param String $output Markup. * @param String $section Section name. * @param String $section_type Section selected option. * @return Markup String. * * @since 1.5.5 */ public function astra_header_cart( $output, $section, $section_type ) { if ( 'edd' === $section_type && apply_filters( 'astra_edd_header_cart_icon', true ) ) { $output = $this->edd_mini_cart_markup(); } return $output; } /** * Easy Digital DOwnloads mini cart markup markup * * @since 1.5.5 * @return html */ public function edd_mini_cart_markup() { $class = ''; if ( edd_is_checkout() ) { $class = 'current-menu-item'; } $cart_menu_classes = apply_filters( 'astra_edd_cart_in_menu_class', array( 'ast-menu-cart-with-border' ) ); ob_start(); if ( is_customize_preview() && ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) ) { Astra_Builder_UI_Controller::render_customizer_edit_button(); } ?>
astra_get_edd_cart(); ?>
array( 'width' => '100%', ), '.tablet-columns-2 .ast-edd-archive-article' => array( 'width' => '47.6%', 'width' => 'calc(50% - 10px)', ), '.tablet-columns-3 .ast-edd-archive-article, .edd_downloads_list[class*="edd_download_columns_"] .edd_download' => array( 'width' => '30.2%', 'width' => 'calc(33.33% - 14px)', ), '.tablet-columns-4 .ast-edd-archive-article' => array( 'width' => '21.5%', 'width' => 'calc(25% - 15px)', ), '.tablet-columns-5 .ast-edd-archive-article' => array( 'width' => '16.2%', 'width' => 'calc(20% - 16px)', ), '.tablet-columns-6 .ast-edd-archive-article' => array( 'width' => '12.7%', 'width' => 'calc(16.66% - 16.66px)', ), ); } else { $max_tablet_edd_css = array( '.tablet-columns-1 .ast-edd-container' => array( 'grid-template-columns' => 'repeat(1, 1fr)', ), '.tablet-columns-2 .ast-edd-container' => array( 'grid-template-columns' => 'repeat(2, 1fr)', ), '.tablet-columns-3 .ast-edd-container, .edd_downloads_list[class*="edd_download_columns_"] .edd_download' => array( 'grid-template-columns' => 'repeat(3, 1fr)', ), '.tablet-columns-4 .ast-edd-container' => array( 'grid-template-columns' => 'repeat(4, 1fr)', ), '.tablet-columns-5 .ast-edd-container' => array( 'grid-template-columns' => 'repeat(5, 1fr)', ), '.tablet-columns-6 .ast-edd-container' => array( 'grid-template-columns' => 'repeat(6, 1fr)', ), ); } /* Parse CSS from array() -> max-width: (tablet-breakpoint) px & min-width: (mobile-breakpoint + 1) px */ $edd_css_output = astra_parse_css( $max_tablet_edd_css, astra_get_mobile_breakpoint( '', 1 ), astra_get_tablet_breakpoint() ); if ( ! Astra_Builder_Helper::apply_flex_based_css() ) { if ( $is_site_rtl ) { $max_tablet_edd_lang_direction_css = array( '[class*="columns-"] .ast-edd-archive-article:nth-child(n)' => array( 'margin-left' => '20px', 'clear' => 'none', ), '.tablet-columns-2 .ast-edd-archive-article:nth-child(2n), .tablet-columns-3 .ast-edd-archive-article:nth-child(3n), .tablet-columns-4 .ast-edd-archive-article:nth-child(4n), .tablet-columns-5 .ast-edd-archive-article:nth-child(5n), .tablet-columns-6 .ast-edd-archive-article:nth-child(6n), .edd_downloads_list[class*="edd_download_columns_"] .edd_download:nth-child(3n)' => array( 'margin-left' => '0', 'clear' => 'left', ), '.tablet-columns-2 .ast-edd-archive-article:nth-child(2n+1), .tablet-columns-3 .ast-edd-archive-article:nth-child(3n+1), .tablet-columns-4 .ast-edd-archive-article:nth-child(4n+1), .tablet-columns-5 .ast-edd-archive-article:nth-child(5n+1), .tablet-columns-6 .ast-edd-archive-article:nth-child(6n+1), .edd_downloads_list[class*="edd_download_columns_"] .edd_download:nth-child(3n+1)' => array( 'clear' => 'right', ), ); } else { $max_tablet_edd_lang_direction_css = array( '[class*="columns-"] .ast-edd-archive-article:nth-child(n)' => array( 'margin-right' => '20px', 'clear' => 'none', ), '.tablet-columns-2 .ast-edd-archive-article:nth-child(2n), .tablet-columns-3 .ast-edd-archive-article:nth-child(3n), .tablet-columns-4 .ast-edd-archive-article:nth-child(4n), .tablet-columns-5 .ast-edd-archive-article:nth-child(5n), .tablet-columns-6 .ast-edd-archive-article:nth-child(6n), .edd_downloads_list[class*="edd_download_columns_"] .edd_download:nth-child(3n)' => array( 'margin-right' => '0', 'clear' => 'right', ), '.tablet-columns-2 .ast-edd-archive-article:nth-child(2n+1), .tablet-columns-3 .ast-edd-archive-article:nth-child(3n+1), .tablet-columns-4 .ast-edd-archive-article:nth-child(4n+1), .tablet-columns-5 .ast-edd-archive-article:nth-child(5n+1), .tablet-columns-6 .ast-edd-archive-article:nth-child(6n+1), .edd_downloads_list[class*="edd_download_columns_"] .edd_download:nth-child(3n+1)' => array( 'clear' => 'left', ), ); } /* Parse CSS from array() -> max-width: (tablet-breakpoint) px & min-width: (mobile-breakpoint + 1) px */ $edd_css_output .= astra_parse_css( $max_tablet_edd_lang_direction_css, astra_get_mobile_breakpoint( '', 1 ), astra_get_tablet_breakpoint() ); } if ( ! Astra_Builder_Helper::apply_flex_based_css() ) { $mobile_edd_css = array( '.mobile-columns-1 .ast-edd-archive-article' => array( 'width' => '100%', ), '.mobile-columns-3 .ast-edd-archive-article' => array( 'width' => '28.2%', 'width' => 'calc(33.33% - 14px)', ), '.mobile-columns-4 .ast-edd-archive-article' => array( 'width' => '19%', 'width' => 'calc(25% - 15px)', ), '.mobile-columns-5 .ast-edd-archive-article' => array( 'width' => '13%', 'width' => 'calc(20% - 16px)', ), '.mobile-columns-6 .ast-edd-archive-article' => array( 'width' => '10.2%', 'width' => 'calc(16.66% - 16.66px)', ), '.edd_downloads_list[class*="edd_download_columns_"] .edd_download, .edd_downloads_list[class*="edd_download_columns_"] .edd_download:nth-child(2n+1), .mobile-columns-2 .ast-edd-archive-article' => array( 'width' => '46.1%', 'width' => 'calc(50% - 10px)', ), ); } else { $mobile_edd_css = array( '.mobile-columns-1 .ast-edd-container' => array( 'grid-template-columns' => 'repeat(1, 1fr)', ), '.mobile-columns-3 .ast-edd-container' => array( 'grid-template-columns' => 'repeat(3, 1fr)', ), '.mobile-columns-4 .ast-edd-container' => array( 'grid-template-columns' => 'repeat(4, 1fr)', ), '.mobile-columns-5 .ast-edd-container' => array( 'grid-template-columns' => 'repeat(5, 1fr)', ), '.mobile-columns-6 .ast-edd-container' => array( 'grid-template-columns' => 'repeat(6, 1fr)', ), '.edd_downloads_list[class*="edd_download_columns_"] .edd_download, .edd_downloads_list[class*="edd_download_columns_"] .edd_download:nth-child(2n+1), .mobile-columns-2 .ast-edd-container' => array( 'grid-template-columns' => 'repeat(2, 1fr)', ), ); } /* Parse CSS from array() -> max-width: (mobile-breakpoint) px */ $edd_css_output .= astra_parse_css( $mobile_edd_css, '', astra_get_mobile_breakpoint() ); if ( $is_site_rtl ) { $mobile_edd_lang_direction_css = array( '[class*="columns-"] .ast-edd-archive-article:nth-child(n)' => array( 'margin-left' => '20px', 'clear' => 'none', ), '.mobile-columns-1 .ast-edd-archive-article:nth-child(n)' => array( 'margin-left' => '0', ), '.edd_downloads_list[class*="edd_download_columns_"] .edd_download:nth-child(2n), .mobile-columns-2 .ast-edd-archive-article:nth-child(2n), .mobile-columns-3 .ast-edd-archive-article:nth-child(3n), .mobile-columns-4 .ast-edd-archive-article:nth-child(4n), .mobile-columns-5 .ast-edd-archive-article:nth-child(5n), .mobile-columns-6 .ast-edd-archive-article:nth-child(6n)' => array( 'margin-left' => '0', 'clear' => 'left', ), '.mobile-columns-2 .ast-edd-archive-article:nth-child(2n+1), .mobile-columns-3 .ast-edd-archive-article:nth-child(3n+1), .mobile-columns-4 .ast-edd-archive-article:nth-child(4n+1), .mobile-columns-5 .ast-edd-archive-article:nth-child(5n+1), .mobile-columns-6 .ast-edd-archive-article:nth-child(6n+1)' => array( 'clear' => 'right', ), ); } else { $mobile_edd_lang_direction_css = array( '[class*="columns-"] .ast-edd-archive-article:nth-child(n)' => array( 'margin-right' => '20px', 'clear' => 'none', ), '.mobile-columns-1 .ast-edd-archive-article:nth-child(n)' => array( 'margin-right' => '0', ), '.edd_downloads_list[class*="edd_download_columns_"] .edd_download:nth-child(2n), .mobile-columns-2 .ast-edd-archive-article:nth-child(2n), .mobile-columns-3 .ast-edd-archive-article:nth-child(3n), .mobile-columns-4 .ast-edd-archive-article:nth-child(4n), .mobile-columns-5 .ast-edd-archive-article:nth-child(5n), .mobile-columns-6 .ast-edd-archive-article:nth-child(6n)' => array( 'margin-right' => '0', 'clear' => 'right', ), '.mobile-columns-2 .ast-edd-archive-article:nth-child(2n+1), .mobile-columns-3 .ast-edd-archive-article:nth-child(3n+1), .mobile-columns-4 .ast-edd-archive-article:nth-child(4n+1), .mobile-columns-5 .ast-edd-archive-article:nth-child(5n+1), .mobile-columns-6 .ast-edd-archive-article:nth-child(6n+1)' => array( 'clear' => 'left', ), ); } /* Parse CSS from array() -> max-width: (mobile-breakpoint) px */ $edd_css_output .= astra_parse_css( $mobile_edd_lang_direction_css, '', astra_get_mobile_breakpoint() ); wp_add_inline_style( 'astra-edd', apply_filters( 'astra_theme_edd_dynamic_css', $edd_css_output ) ); // Inline js for EDD Cart updates. wp_add_inline_script( 'edd-ajax', "jQuery( document ).ready( function($) { /** * Astra - Easy Digital Downloads Cart Quantity & Total Amount */ var cartQuantity = jQuery('.ast-edd-site-header-cart-wrap .count'), iconQuantity = jQuery('.ast-edd-site-header-cart-wrap .astra-icon'), cartTotalAmount = jQuery('.ast-edd-site-header-cart-wrap .ast-edd-header-cart-total'); jQuery('body').on('edd_cart_item_added', function( event, response ) { cartQuantity.html( response.cart_quantity ); iconQuantity.attr('data-cart-total', response.cart_quantity ); cartTotalAmount.html( response.total ); }); jQuery('body').on('edd_cart_item_removed', function( event, response ) { cartQuantity.html( response.cart_quantity ); iconQuantity.attr('data-cart-total', response.cart_quantity ); cartTotalAmount.html( response.total ); }); });" ); } /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @since 1.5.5 * @return string $dynamic_css */ public function add_inline_styles( $dynamic_css, $dynamic_css_filtered = '' ) { /** * - Variable Declaration */ $site_content_width = astra_get_option( 'site-content-width', 1200 ); $edd_archive_width = astra_get_option( 'edd-archive-width' ); $edd_archive_max_width = astra_get_option( 'edd-archive-max-width' ); $css_output = ''; $theme_color = astra_get_option( 'theme-color' ); $link_color = astra_get_option( 'link-color', $theme_color ); $text_color = astra_get_option( 'text-color' ); $link_h_color = astra_get_option( 'link-h-color' ); $btn_color = astra_get_option( 'button-color' ); if ( empty( $btn_color ) ) { $btn_color = astra_get_foreground_color( $theme_color ); } $btn_h_color = astra_get_option( 'button-h-color' ); if ( empty( $btn_h_color ) ) { $btn_h_color = astra_get_foreground_color( $link_h_color ); } $btn_bg_h_color = astra_get_option( 'button-bg-h-color', $link_h_color ); $btn_border_radius_fields = astra_get_option( 'button-radius-fields' ); $cart_h_color = astra_get_foreground_color( $link_h_color ); $css_output = array( // Loading effect color. 'a.edd-add-to-cart.white .edd-loading, .edd-discount-loader.edd-loading, .edd-loading-ajax.edd-loading' => array( 'border-left-color' => esc_attr( $cart_h_color ), ), ); if ( false === Astra_Builder_Helper::$is_header_footer_builder_active ) { $compat_css_desktop = array( /** * Cart in menu */ '.ast-edd-site-header-cart a' => array( 'color' => esc_attr( $text_color ), ), '.ast-edd-site-header-cart a:focus, .ast-edd-site-header-cart a:hover, .ast-edd-site-header-cart .current-menu-item a' => array( 'color' => esc_attr( $text_color ), ), '.ast-edd-cart-menu-wrap .count, .ast-edd-cart-menu-wrap .count:after' => array( 'border-color' => esc_attr( $link_color ), 'color' => esc_attr( $link_color ), ), '.ast-edd-cart-menu-wrap:hover .count' => array( 'color' => esc_attr( $cart_h_color ), 'background-color' => esc_attr( $link_color ), ), '.ast-edd-site-header-cart .widget_edd_cart_widget .cart-total' => array( 'color' => esc_attr( $link_color ), ), '.ast-edd-site-header-cart .widget_edd_cart_widget .edd_checkout a, .widget_edd_cart_widget .edd_checkout a' => array( 'color' => $btn_h_color, 'border-color' => $btn_bg_h_color, 'background-color' => $btn_bg_h_color, 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'desktop' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'desktop' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'desktop' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'desktop' ), ), '.site-header .ast-edd-site-header-cart .ast-edd-site-header-cart-widget .edd_checkout a, .site-header .ast-edd-site-header-cart .ast-edd-site-header-cart-widget .edd_checkout a:hover' => array( 'color' => $btn_color, ), '.below-header-user-select .ast-edd-site-header-cart .widget, .ast-above-header-section .ast-edd-site-header-cart .widget a, .below-header-user-select .ast-edd-site-header-cart .widget_edd_cart_widget a' => array( 'color' => $text_color, ), '.below-header-user-select .ast-edd-site-header-cart .widget_edd_cart_widget a:hover, .ast-above-header-section .ast-edd-site-header-cart .widget_edd_cart_widget a:hover, .below-header-user-select .ast-edd-site-header-cart .widget_edd_cart_widget a.remove:hover, .ast-above-header-section .ast-edd-site-header-cart .widget_edd_cart_widget a.remove:hover' => array( 'color' => esc_attr( $link_color ), ), '.widget_edd_cart_widget a.edd-remove-from-cart:hover:after' => array( 'color' => esc_attr( $link_color ), 'border-color' => esc_attr( $link_color ), 'background-color' => esc_attr( '#ffffff' ), ), ); $css_output = array_merge( $css_output, $compat_css_desktop ); } /* Parse CSS from array() */ $css_output = astra_parse_css( $css_output ); /* Easy Digital DOwnloads Shop Archive width */ if ( 'custom' === $edd_archive_width ) : // Easy Digital DOwnloads shop archive custom width. $site_width = array( '.ast-edd-archive-page .site-content > .ast-container' => array( 'max-width' => astra_get_css_value( $edd_archive_max_width, 'px' ), ), ); $css_output .= astra_parse_css( $site_width, astra_get_tablet_breakpoint( '', 1 ) ); else : // Easy Digital DOwnloads shop archive default width. $site_width = array( '.ast-edd-archive-page .site-content > .ast-container' => array( 'max-width' => astra_get_css_value( $site_content_width + 40, 'px' ), ), ); /* Parse CSS from array()*/ $css_output .= astra_parse_css( $site_width, astra_get_tablet_breakpoint( '', 1 ) ); endif; $dynamic_css .= apply_filters( 'astra_theme_edd_dynamic_css', $css_output ); return $dynamic_css; } /** * Theme Defaults. * * @param array $defaults Array of options value. * @return array */ public function theme_defaults( $defaults ) { // Container. $defaults['edd-ast-content-layout'] = 'normal-width-container'; // Sidebar. $defaults['edd-general-sidebar-layout'] = 'default'; // Edd Archive. $defaults['edd-archive-grids'] = array( 'desktop' => 4, 'tablet' => 3, 'mobile' => 2, ); $defaults['edd-archive-product-structure'] = array( 'image', 'category', 'title', 'price', 'add_cart', ); $defaults['edd-archive-add-to-cart-button-text'] = __( 'Add To Cart', 'astra' ); $defaults['edd-archive-variable-button'] = 'button'; $defaults['edd-archive-variable-button-text'] = __( 'View Details', 'astra' ); $defaults['edd-archive-width'] = 'default'; $defaults['edd-archive-max-width'] = 1200; $defaults['disable-edd-single-product-nav'] = false; return $defaults; } /** * Add products item class to the body * * @param Array $classes product classes. * * @return array. */ public function edd_products_item_class( $classes = '' ) { $is_edd_archive_page = astra_is_edd_archive_page(); if ( $is_edd_archive_page ) { $shop_grid = astra_get_option( 'edd-archive-grids' ); $classes[] = 'columns-' . $shop_grid['desktop']; $classes[] = 'tablet-columns-' . $shop_grid['tablet']; $classes[] = 'mobile-columns-' . $shop_grid['mobile']; $classes[] = 'ast-edd-archive-page'; } return $classes; } /** * Add class on single product page * * @param Array $classes product classes. * * @return array. */ public function edd_single_product_class( $classes ) { $is_edd_archive_page = astra_is_edd_archive_page(); if ( $is_edd_archive_page ) { $classes[] = 'ast-edd-archive-article'; } return $classes; } /** * Store widgets init. */ public function store_widgets_init() { register_sidebar( apply_filters( 'astra_edd_sidebar_init', array( 'name' => esc_html__( 'Easy Digital Downloads Sidebar', 'astra' ), 'id' => 'astra-edd-sidebar', 'description' => __( 'This sidebar will be used on Product archive, Cart, Checkout and My Account pages.', 'astra' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ) ); register_sidebar( apply_filters( 'astra_edd_single_product_sidebar_init', array( 'name' => esc_html__( 'EDD Single Product Sidebar', 'astra' ), 'id' => 'astra-edd-single-product-sidebar', 'description' => __( 'This sidebar will be used on EDD Single Product page.', 'astra' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ) ); } /** * Assign shop sidebar for store page. * * @param String $sidebar Sidebar. * * @return String $sidebar Sidebar. */ public function replace_store_sidebar( $sidebar ) { $is_edd_page = astra_is_edd_page(); $is_edd_single_product_page = astra_is_edd_single_product_page(); if ( $is_edd_page && ! $is_edd_single_product_page ) { $sidebar = 'astra-edd-sidebar'; } elseif ( $is_edd_single_product_page ) { $sidebar = 'astra-edd-single-product-sidebar'; } return $sidebar; } /** * Easy Digital Downloads Container * * @param String $sidebar_layout Layout type. * * @return String $sidebar_layout Layout type. */ public function store_sidebar_layout( $sidebar_layout ) { $is_edd_page = astra_is_edd_page(); $is_edd_single_product_page = astra_is_edd_single_product_page(); $is_edd_archive_page = astra_is_edd_archive_page(); if ( $is_edd_page ) { // Global. $edd_sidebar = astra_get_option( 'site-sidebar-layout' ); if ( 'default' !== $edd_sidebar ) { $sidebar_layout = $edd_sidebar; } // Customizer General. $edd_customizer_sidebar = astra_get_option( 'edd-general-sidebar-layout' ); if ( 'default' !== $edd_customizer_sidebar ) { $sidebar_layout = $edd_customizer_sidebar; } if ( $is_edd_single_product_page ) { $edd_single_product_sidebar = astra_get_option( 'single-download-sidebar-layout' ); if ( 'default' !== $edd_single_product_sidebar ) { $sidebar_layout = $edd_single_product_sidebar; } $page_id = get_the_ID(); $edd_sidebar_layout = get_post_meta( $page_id, 'site-sidebar-layout', true ); } elseif ( $is_edd_archive_page ) { $edd_sidebar_layout = astra_get_option( 'archive-download-sidebar-layout' ); } else { $edd_sidebar_layout = astra_get_option_meta( 'site-sidebar-layout', '', true ); } if ( 'default' !== $edd_sidebar_layout && ! empty( $edd_sidebar_layout ) ) { $sidebar_layout = $edd_sidebar_layout; } } return $sidebar_layout; } /** * Easy Digital Downloads Container * * @param String $layout Layout type. * * @return String $layout Layout type. */ public function store_content_layout( $layout ) { $is_edd_page = astra_is_edd_page(); $is_edd_single_page = astra_is_edd_single_page(); $is_edd_archive_page = astra_is_edd_archive_page(); if ( $is_edd_page ) { // Global. $edd_layout = astra_toggle_layout( 'ast-site-content-layout', 'global', false ); if ( 'default' !== $edd_layout ) { $layout = $edd_layout; } // Customizer General. $edd_customizer_layout = astra_toggle_layout( 'edd-ast-content-layout', 'global', false ); if ( 'default' !== $edd_customizer_layout ) { $layout = $edd_customizer_layout; } if ( $is_edd_single_page ) { $edd_single_product_layout = astra_toggle_layout( 'single-download-ast-content-layout', 'single', false ); if ( 'default' !== $edd_single_product_layout ) { $layout = $edd_single_product_layout; } $page_id = get_the_ID(); $edd_page_layout = get_post_meta( $page_id, 'site-content-layout', true ); } elseif ( $is_edd_archive_page ) { $edd_page_layout = astra_toggle_layout( 'archive-download-ast-content-layout', 'archive', false ); } else { $edd_page_layout = astra_get_option_meta( 'site-content-layout', '', true ); if ( isset( $edd_page_layout ) ) { $edd_page_layout = astra_toggle_layout( 'ast-site-content-layout', 'meta', false, $edd_page_layout ); } else { $edd_page_layout = astra_toggle_layout( 'ast-site-content-layout', 'meta', false ); } } if ( 'default' !== $edd_page_layout && ! empty( $edd_page_layout ) ) { $layout = $edd_page_layout; } } return $layout; } /** * Register Customizer sections and panel for Easy Digital Downloads. * * @since 1.5.5 * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function customize_register( $wp_customize ) { // @codingStandardsIgnoreStart WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound /** * Register Sections & Panels */ require ASTRA_THEME_DIR . 'inc/compatibility/edd/customizer/class-astra-customizer-register-edd-section.php'; /** * Sections */ require ASTRA_THEME_DIR . 'inc/compatibility/edd/customizer/sections/class-astra-edd-container-configs.php'; require ASTRA_THEME_DIR . 'inc/compatibility/edd/customizer/sections/class-astra-edd-sidebar-configs.php'; require ASTRA_THEME_DIR . 'inc/compatibility/edd/customizer/sections/layout/class-astra-edd-archive-layout-configs.php'; require ASTRA_THEME_DIR . 'inc/compatibility/edd/customizer/sections/layout/class-astra-edd-single-product-layout-configs.php'; // @codingStandardsIgnoreEnd WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound } } endif; if ( apply_filters( 'astra_enable_edd_integration', true ) ) { Astra_Edd::get_instance(); } PKdmZ;Z&7@ @ Kcompatibility/edd/customizer/sections/class-astra-edd-container-configs.phpnu[ ASTRA_THEME_SETTINGS . '[edd-ast-content-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => 'section-edd-general', 'default' => astra_get_option( 'edd-ast-content-layout' ), 'priority' => 5, 'title' => __( 'Container Layout', 'astra' ), 'choices' => array( 'default' => array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'normal-width-container' => array( 'label' => __( 'Normal', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'normal-width-container', false ) : '', ), 'full-width-container' => array( 'label' => __( 'Full Width', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'full-width-container', false ) : '', ), ), 'divider' => array( 'ast_class' => 'ast-bottom-spacing ast-bottom-divider' ), ), /** * Option: Content Style Option. */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-content-style]', 'type' => 'control', 'control' => 'ast-selector', 'section' => 'section-edd-general', 'default' => astra_get_option( 'edd-content-style', 'default' ), 'description' => __( 'Container style will apply only when layout is set to either normal or narrow.', 'astra' ), 'priority' => 5, 'title' => __( 'Container Style', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ), 'renderAs' => 'text', 'responsive' => false, ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Edd_Container_Configs(); PKemZdx) ) Icompatibility/edd/customizer/sections/class-astra-edd-sidebar-configs.phpnu[ ASTRA_THEME_SETTINGS . '[edd-general-sidebar-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => 'section-edd-general', 'default' => astra_get_option( 'edd-general-sidebar-layout' ), 'priority' => 6, 'title' => __( 'Sidebar Layout', 'astra' ), 'choices' => array( 'default' => array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'no-sidebar' => array( 'label' => __( 'No Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'no-sidebar', false ) : '', ), 'left-sidebar' => array( 'label' => __( 'Left Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'left-sidebar', false ) : '', ), 'right-sidebar' => array( 'label' => __( 'Right Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'right-sidebar', false ) : '', ), ), 'description' => __( 'Sidebar will only apply when container layout is set to normal.', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), /** * Option: EDD Sidebar Style. */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-sidebar-style]', 'type' => 'control', 'control' => 'ast-selector', 'section' => 'section-edd-general', 'default' => astra_get_option( 'edd-sidebar-style', 'default' ), 'priority' => 6, 'title' => __( 'Sidebar Style', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ), 'responsive' => false, 'renderAs' => 'text', 'divider' => array( 'ast_class' => 'ast-top-divider ast-top-spacing' ), ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Edd_Sidebar_Configs(); PKemZ.}^compatibility/edd/customizer/sections/layout/class-astra-edd-single-product-layout-configs.phpnu[ ASTRA_THEME_SETTINGS . '[disable-edd-single-product-nav]', 'section' => 'section-edd-single', 'type' => 'control', 'control' => 'ast-toggle-control', 'default' => astra_get_option( 'disable-edd-single-product-nav' ), 'title' => __( 'Disable Product Navigation', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), 'priority' => 10, ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Edd_Single_Product_Layout_Configs(); PKemZ z"z"Wcompatibility/edd/customizer/sections/layout/class-astra-edd-archive-layout-configs.phpnu[ 'ast-top-section-divider' ); /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $_configs = array( /** * Option: Shop Columns */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-grids]', 'type' => 'control', 'control' => 'ast-responsive-slider', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'section' => 'section-edd-archive', 'default' => astra_get_option( 'edd-archive-grids', array( 'desktop' => 4, 'tablet' => 3, 'mobile' => 2, ) ), 'priority' => 10, 'title' => __( 'Archive Columns', 'astra' ), 'input_attrs' => array( 'step' => 1, 'min' => 1, 'max' => 6, ), 'divider' => $grid_ast_divider, 'transport' => 'postMessage', ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure-divider]', 'section' => 'section-edd-archive', 'title' => __( 'Product Structure', 'astra' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 30, 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: EDD Archive Post Meta */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'type' => 'control', 'control' => 'ast-sortable', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_multi_choices' ), 'section' => 'section-edd-archive', 'divider' => array( 'ast_class' => 'ast-section-spacing' ), 'default' => astra_get_option( 'edd-archive-product-structure' ), 'priority' => 30, 'title' => __( 'Product Structure', 'astra' ), 'description' => __( 'The Image option cannot be sortable if the Product Style is selected to the List Style ', 'astra' ), 'choices' => array( 'image' => __( 'Image', 'astra' ), 'category' => __( 'Category', 'astra' ), 'title' => __( 'Title', 'astra' ), 'price' => __( 'Price', 'astra' ), 'short_desc' => __( 'Short Description', 'astra' ), 'add_cart' => __( 'Add To Cart', 'astra' ), ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-button-divider]', 'section' => 'section-edd-archive', 'title' => __( 'Buttons', 'astra' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 31, 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-spacing' ), ), /** * Option: Add to Cart button text */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-add-to-cart-button-text]', 'type' => 'control', 'control' => 'text', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'edd-archive-add-to-cart-button-text' ), 'priority' => 31, 'title' => __( 'Cart Button Text', 'astra' ), 'context' => array( Astra_Builder_Helper::$general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'operator' => 'contains', 'value' => 'add_cart', ), ), 'divider' => array( 'ast_class' => 'ast-top-spacing ast-bottom-section-divider' ), ), /** * Option: Variable product button */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-variable-button]', 'default' => astra_get_option( 'edd-archive-variable-button' ), 'section' => 'section-edd-archive', 'type' => 'control', 'control' => 'ast-selector', 'title' => __( 'Variable Product Button', 'astra' ), 'priority' => 31, 'choices' => array( 'button' => __( 'Button', 'astra' ), 'options' => __( 'Options', 'astra' ), ), 'transport' => 'refresh', 'renderAs' => 'text', 'responsive' => false, 'context' => array( Astra_Builder_Helper::$general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'operator' => 'contains', 'value' => 'add_cart', ), ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), /** * Option: Variable product button text */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-variable-button-text]', 'type' => 'control', 'control' => 'text', 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), 'section' => 'section-edd-archive', 'default' => astra_get_option( 'edd-archive-variable-button-text' ), 'context' => array( Astra_Builder_Helper::$general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-variable-button]', 'operator' => '==', 'value' => 'button', ), ), 'priority' => 31, 'title' => __( 'Variable Product Button Text', 'astra' ), ), /** * Option: Archive Content Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-width]', 'default' => astra_get_option( 'edd-archive-width' ), 'section' => 'section-edd-archive', 'type' => 'control', 'control' => 'ast-selector', 'title' => __( 'Archive Content Width', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), 'priority' => 220, 'choices' => array( 'default' => __( 'Default', 'astra' ), 'custom' => __( 'Custom', 'astra' ), ), 'transport' => 'postMessage', 'renderAs' => 'text', 'responsive' => false, ), /** * Option: Enter Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-max-width]', 'type' => 'control', 'control' => 'ast-slider', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'edd-archive-max-width' ), 'priority' => 225, 'context' => array( Astra_Builder_Helper::$general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-width]', 'operator' => '===', 'value' => 'custom', ), ), 'title' => __( 'Custom Width', 'astra' ), 'transport' => 'postMessage', 'suffix' => 'px', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), ); // Learn More link if Astra Pro is not activated. if ( astra_showcase_upgrade_notices() ) { $_configs[] = /** * Option: Learn More about Contant Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-product-archive-button-link]', 'type' => 'control', 'control' => 'ast-button-link', 'section' => 'section-edd-archive', 'priority' => 999, 'title' => __( 'View Astra Pro Features', 'astra' ), 'url' => astra_get_pro_url( '/pricing/', 'free-theme', 'customizer', 'edd' ), 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ); } $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Edd_Archive_Layout_Configs(); PKemZ :Lcompatibility/edd/customizer/class-astra-customizer-register-edd-section.phpnu[ 'section-edd-group', 'type' => 'section', 'title' => __( 'Easy Digital Downloads', 'astra' ), 'priority' => 60, ), array( 'name' => 'section-edd-general', 'title' => __( 'General', 'astra' ), 'type' => 'section', 'section' => 'section-edd-group', 'priority' => 10, ), array( 'name' => 'section-edd-archive', 'title' => __( 'Product Archive', 'astra' ), 'type' => 'section', 'section' => 'section-edd-group', 'priority' => 10, ), array( 'name' => 'section-edd-single', 'type' => 'section', 'title' => __( 'Single Product', 'astra' ), 'section' => 'section-edd-group', 'priority' => 15, ), ); return array_merge( $configurations, $configs ); } } } new Astra_Customizer_Register_Edd_Section(); PKemZ8#8#*compatibility/edd/edd-common-functions.phpnu['; do_action( 'astra_edd_archive_block_wrap_top' ); foreach ( $edd_structure as $value ) { switch ( $value ) { case 'title': /** * Add Product Title on edd page for all products. */ do_action( 'astra_edd_archive_title_before' ); do_action( 'astra_edd_archive_title' ); do_action( 'astra_edd_archive_title_after' ); break; case 'image': /** * Add Product Title on edd page for all products. */ do_action( 'astra_edd_archive_image_before' ); do_action( 'astra_edd_archive_image' ); do_action( 'astra_edd_archive_image_after' ); break; case 'price': /** * Add Product Price on edd page for all products. */ do_action( 'astra_edd_archive_price_before' ); do_action( 'astra_edd_archive_price' ); do_action( 'astra_edd_archive_price_after' ); break; case 'short_desc': /** * Add Product short description on edd page for all products. */ do_action( 'astra_edd_archive_short_description_before' ); do_action( 'astra_edd_archive_short_description' ); do_action( 'astra_edd_archive_short_description_after' ); break; case 'add_cart': /** * Add to cart on edd page for all products. */ do_action( 'astra_edd_archive_add_to_cart_before' ); do_action( 'astra_edd_archive_add_to_cart' ); do_action( 'astra_edd_archive_add_to_cart_after' ); break; case 'category': /** * Add and/or Remove Categories from edd archive page. */ do_action( 'astra_edd_archive_category_before' ); do_action( 'astra_edd_archive_category' ); do_action( 'astra_edd_archive_category_after' ); break; default: break; } } do_action( 'astra_edd_archive_block_wrap_bottom' ); echo ''; do_action( 'astra_edd_archive_after_block_wrap' ); } } add_action( 'astra_edd_archive_product_content', 'astra_edd_archive_product_structure' ); } /** * Returns list of Easy Digital Downloads Terms */ if ( ! function_exists( 'astra_edd_terms_list' ) ) { /** * Show EDD product terms * * @param string $taxonomy_name Taxonomy name. * @return void */ function astra_edd_terms_list( $taxonomy_name ) { $product_id = get_the_ID(); if ( ! $product_id ) { return; } // Getting the terms related to the current products. $terms = get_the_terms( $product_id, $taxonomy_name ); if ( ! $terms || is_wp_error( $terms ) ) { return; } ?> '; $output .= '' . esc_html( $variable_button_text ) . ''; $output .= ''; } else { if ( ! empty( $add_to_cart_text ) ) { $output = edd_get_purchase_link( array( 'price' => false, 'text' => esc_html( $add_to_cart_text ), 'checkout' => esc_html( $add_to_cart_text ), // To display astra customizer add to cart text. ) ); } } return $output; } PKemZ=--/compatibility/class-astra-bb-ultimate-addon.phpnu[ $font_family[0], 'weight' => astra_get_option( 'font-weight-button' ), ); } /** * Button Font Size */ public function button_font_size() { return ''; } /** * Button Line Height */ public function button_line_height() { return ''; } /** * Default type : Button Font Size * * @since 2.2.0 */ public function default_type_button_font_size() { $font_size_arr = array(); $body_font_size = astra_get_option( 'font-size-body' ); $theme_btn_font_size = astra_get_option( 'font-size-button' ); $font_size_arr['desktop'] = astra_responsive_font( $theme_btn_font_size, 'desktop' ); $font_size_arr['tablet'] = astra_responsive_font( $theme_btn_font_size, 'tablet' ); $font_size_arr['mobile'] = astra_responsive_font( $theme_btn_font_size, 'mobile' ); if ( empty( $font_size_arr['desktop'] ) ) { $font_size_arr['desktop'] = astra_responsive_font( $body_font_size, 'desktop' ); } if ( empty( $font_size_arr['tablet'] ) ) { $font_size_arr['tablet'] = astra_responsive_font( $body_font_size, 'tablet' ); } if ( empty( $font_size_arr['mobile'] ) ) { $font_size_arr['mobile'] = astra_responsive_font( $body_font_size, 'mobile' ); } return $font_size_arr; } /** * Default type : Button Line Height * * @since 2.2.0 */ public function default_type_button_line_height() { $theme_btn_body_line_height = astra_get_option( 'body-line-height', 1.85714285714286 ); $theme_btn_line_height = astra_get_option( 'theme-btn-line-height', $theme_btn_body_line_height ); return $theme_btn_line_height; } /** * Button Letter Spacing */ public function button_letter_spacing() { return ''; } /** * Default type : Button Letter Spacing * * @since 2.2.0 */ public function default_type_button_letter_spacing() { $theme_btn_letter_spacing = astra_get_option( 'theme-btn-letter-spacing' ); return $theme_btn_letter_spacing; } /** * Button Text Transform */ public function button_text_transform() { return ''; } /** * Default type : Button Text Transform * * @since 2.2.0 */ public function default_type_button_text_transform() { $theme_btn_text_transform = astra_get_font_extras( astra_get_option( 'font-extras-button' ), 'text-transform' ); return $theme_btn_text_transform; } /** * Button Text Color */ public function button_text_color() { $theme_color = astra_get_option( 'theme-color' ); $link_color = astra_get_option( 'link-color', $theme_color ); $color = astra_get_option( 'button-color' ); if ( empty( $color ) ) { $color = astra_get_foreground_color( $link_color ); } return $color; } /** * Default type : Button Text Color * * @since 2.2.0 */ public function default_type_button_text_color() { $theme_color = astra_get_option( 'theme-color' ); $btn_text_color = astra_get_option( 'button-color' ); if ( empty( $btn_text_color ) ) { $btn_text_color = astra_get_foreground_color( $theme_color ); } return $btn_text_color; } /** * Button Text Hover Color */ public function button_text_hover_color() { $link_hover_color = astra_get_option( 'link-h-color' ); $btn_text_hover_color = astra_get_option( 'button-h-color' ); if ( empty( $btn_text_hover_color ) ) { $btn_text_hover_color = astra_get_foreground_color( $link_hover_color ); } return $btn_text_hover_color; } /** * Default type : Button Text Hover Color * * @since 2.2.0 */ public function default_type_button_text_hover_color() { $link_hover_color = astra_get_option( 'link-h-color' ); $btn_text_hover_color = astra_get_option( 'button-h-color' ); if ( empty( $btn_text_hover_color ) ) { $btn_text_hover_color = astra_get_foreground_color( $link_hover_color ); } return $btn_text_hover_color; } /** * Button Background Color */ public function button_bg_color() { return astra_get_option( 'button-bg-color' ); } /** * Default type : Button Background Color * * @since 2.2.0 */ public function default_type_button_bg_color() { $theme_color = astra_get_option( 'theme-color' ); $btn_bg_color = astra_get_option( 'button-bg-color', $theme_color ); return $btn_bg_color; } /** * Button Background Color */ public function button_bg_hover_color() { return astra_get_option( 'button-bg-h-color' ); } /** * Default type : Button Background Color * * @since 2.2.0 */ public function default_type_button_bg_hover_color() { $link_hover_color = astra_get_option( 'link-h-color' ); $btn_bg_hover_color = astra_get_option( 'button-bg-h-color', $link_hover_color ); return $btn_bg_hover_color; } /** * Button Border Radius */ public function button_border_radius() { return astra_get_option( 'button-radius' ); } /** * Button Padding */ public function button_padding() { $padding = ''; $v_padding = astra_get_option( 'button-v-padding' ); $h_padding = astra_get_option( 'button-h-padding' ); if ( '' != $v_padding && '' != $h_padding ) { $padding = $v_padding . 'px ' . $h_padding . 'px'; } return $padding; } /** * Default type : Button Padding * * @since 2.2.0 */ public function default_type_button_padding() { $padding = astra_get_option( 'theme-button-padding' ); return $padding; } /** * Button Border Width */ public function button_border_width() { $btn_width = array(); $get_btn_width = astra_get_option( 'theme-button-border-group-border-size' ); if ( ! empty( $get_btn_width ) ) { $btn_width = $get_btn_width; } return $btn_width; } /** * Button Border Color */ public function button_border_color() { $theme_color = astra_get_option( 'theme-color' ); $btn_bg_color = astra_get_option( 'button-bg-color', $theme_color ); $get_btn_border_color = astra_get_option( 'theme-button-border-group-border-color', $btn_bg_color ); return $get_btn_border_color; } /** * Button Border Hover Color */ public function button_border_hover_color() { $link_hover_color = astra_get_option( 'link-h-color' ); $btn_bg_hover_color = astra_get_option( 'button-bg-h-color', $link_hover_color ); $get_btn_border_h_color = astra_get_option( 'theme-button-border-group-border-h-color', $btn_bg_hover_color ); return $get_btn_border_h_color; } /** * Button Vertical Padding. * * @deprecated 2.2.0 */ public function button_vertical_padding() { $padding = ''; $v_padding = astra_get_option( 'button-v-padding' ); if ( '' != $v_padding ) { $padding = $v_padding; } return $padding; } /** * Button Horizontal Padding. * * @deprecated 2.2.0 */ public function button_horizontal_padding() { $padding = ''; $h_padding = astra_get_option( 'button-h-padding' ); if ( '' != $h_padding ) { $padding = $h_padding; } return $padding; } } endif; /** * Kicking this off by calling 'get_instance()' method */ Astra_BB_Ultimate_Addon::get_instance(); PKemZE!compatibility/class-astra-amp.phpnu[ array( 'display' => 'none', ), '#ast-mobile-header' => array( 'display' => 'block', ), '.ast-amp.ast-main-header-nav-open .ast-mobile-header-content' => array( 'display' => 'block', ), '.ast-mobile-header-content .ast-main-header-bar-alignment.toggle-on .main-header-bar-navigation' => array( 'display' => 'block', ), '.ast-amp .ast-mobile-header-content .main-navigation ul .menu-item .menu-link' => array( 'padding' => '0 20px', 'display' => 'inline-block', 'width' => '100%', 'border' => '0', 'border-bottom-width' => '1px', 'border-style' => 'solid', 'border-color' => '#eaeaea', ), '.ast-amp .ast-mobile-header-content .toggled-on .main-header-bar-navigation' => array( 'line-height' => '3', 'display' => 'none', ), '.ast-amp .ast-mobile-header-content .main-header-bar-navigation .sub-menu' => array( 'line-height' => '3', ), '.ast-amp .ast-mobile-header-content .main-header-bar-navigation .menu-item-has-children .sub-menu' => array( 'display' => 'none', ), '.ast-amp .ast-mobile-header-content .main-header-bar-navigation .menu-item-has-children .dropdown-open+ul.sub-menu' => array( 'display' => 'block', ), '.ast-amp .ast-mobile-header-content .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle' => array( 'display' => 'inline-block', 'position' => 'absolute', 'font-size' => 'inherit', 'top' => '-1px', 'right' => '20px', 'cursor' => 'pointer', 'webkit-font-smoothing' => 'antialiased', 'moz-osx-font-smoothing' => 'grayscale', 'padding' => '0 0.907em', 'font-weight' => 'normal', 'line-height' => 'inherit', 'transition' => 'all 0.2s', ), '.ast-amp .ast-mobile-header-content .main-header-bar-navigation .ast-submenu-expanded > .ast-menu-toggle::before' => array( '-webkit-transform' => 'rotateX(180deg)', 'transform' => 'rotateX(180deg)', ), '.ast-amp .ast-mobile-header-content .main-header-bar-navigation .main-header-menu' => array( 'border-top-width' => '1px', 'border-style' => 'solid', 'border-color' => '#eaeaea', ), '.ast-amp .ast-below-header-bar, .ast-amp .main-header-bar, .ast-amp .ast-above-header-bar' => array( 'display' => 'grid', ), ); if ( false === Astra_Icons::is_svg_icons() ) { $css['.ast-amp .ast-mobile-header-content .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle::before'] = array( 'font-weight' => 'bold', 'content' => '"\e900"', 'font-family' => '"Astra"', 'text-decoration' => 'inherit', 'display' => 'inline-block', ); } } else { $css = array( '.ast-mobile-menu-buttons' => array( 'text-align' => 'right', '-js-display' => 'flex', 'display' => '-webkit-box', 'display' => '-webkit-flex', 'display' => '-moz-box', 'display' => '-ms-flexbox', 'display' => 'flex', '-webkit-box-pack' => 'end', '-webkit-justify-content' => 'flex-end', '-moz-box-pack' => 'end', '-ms-flex-pack' => 'end', 'justify-content' => 'flex-end', '-webkit-align-self' => 'center', '-ms-flex-item-align' => 'center', 'align-self' => 'center', ), '.header-main-layout-1 .main-navigation' => array( 'padding' => '0', ), ); } $parse_css = $compiled_css . astra_parse_css( $css, '', astra_header_break_point() ); $css = array( '.site-header .main-header-bar-wrap .site-branding' => array( 'display' => '-webkit-box', 'display' => '-webkit-flex', 'display' => '-moz-box', 'display' => '-ms-flexbox', 'display' => 'flex', '-webkit-box-flex' => '1', '-webkit-flex' => '1', '-moz-box-flex' => '1', '-ms-flex' => '1', 'flex' => '1', '-webkit-align-self' => 'center', '-ms-flex-item-align' => 'center', 'align-self' => 'center', ), '.ast-main-header-bar-alignment.toggle-on .main-header-bar-navigation' => array( 'display' => 'block', ), '.main-navigation' => array( 'display' => 'block', 'width' => '100%', ), '.main-header-menu > .menu-item > .menu-link' => array( 'padding' => '0 20px', 'display' => 'inline-block', 'width' => '100%', 'border-bottom-width' => '1px', 'border-style' => 'solid', 'border-color' => '#eaeaea', ), '.ast-main-header-bar-alignment.toggle-on' => array( 'display' => 'block', 'width' => '100%', '-webkit-box-flex' => '1', '-webkit-flex' => 'auto', '-moz-box-flex' => '1', '-ms-flex' => 'auto', 'flex' => 'auto', '-webkit-box-ordinal-group' => '5', '-webkit-order' => '4', '-moz-box-ordinal-group' => '5', '-ms-flex-order' => '4', 'order' => '4', ), '.main-header-menu .menu-item' => array( 'width' => '100%', 'text-align' => 'left', 'border-top' => '0', ), '.main-header-bar-navigation' => array( 'width' => '-webkit-calc( 100% + 40px)', 'width' => 'calc( 100% + 40px)', 'margin' => '0 -20px', ), '.main-header-bar .main-header-bar-navigation .main-header-menu' => array( 'border-top-width' => '1px', 'border-style' => 'solid', 'border-color' => '#eaeaea', ), '.main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle' => array( 'display' => 'inline-block', 'position' => 'absolute', 'font-size' => 'inherit', 'top' => '-1px', 'right' => '20px', 'cursor' => 'pointer', '-webkit-font-smoothing' => 'antialiased', '-moz-osx-font-smoothing' => 'grayscale', 'padding' => '0 0.907em', 'font-weight' => 'normal', 'line-height' => 'inherit', '-webkit-transition' => 'all .2s', 'transition' => 'all .2s', ), ); if ( false === Astra_Icons::is_svg_icons() ) { $css['.main-header-bar-navigation .menu-item-has-children > .menu-link:after'] = array( 'content' => 'none', ); $css['.ast-button-wrap .menu-toggle.toggled .menu-toggle-icon:before'] = array( 'content' => "\e5cd", ); $css['.main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle::before'] = array( 'font-weight' => 'bold', 'content' => '"\e900"', 'font-family' => 'Astra', 'text-decoration' => 'inherit', 'display' => 'inline-block', ); } $parse_css .= astra_parse_css( $css, '', astra_header_break_point() ); if ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) { $astra_break_point_navigation = array( '.ast-amp .main-header-bar-navigation' => array( 'margin' => '0', ), ); } else { $astra_break_point_navigation = array( '.ast-amp .main-header-bar-navigation' => array( 'margin' => '0 -20px', ), '.ast-amp .ast-mobile-menu-buttons' => array( 'text-align' => 'right', '-js-display' => 'flex', 'display' => '-webkit-box', 'display' => '-webkit-flex', 'display' => '-moz-box', 'display' => '-ms-flexbox', 'display' => 'flex', '-webkit-box-pack' => 'end', '-webkit-justify-content' => 'flex-end', '-moz-box-pack' => 'end', '-ms-flex-pack' => 'end', 'justify-content' => 'flex-end', '-webkit-align-self' => 'center', '-ms-flex-item-align' => 'center', 'align-self' => 'center', ), '.ast-theme.ast-header-custom-item-outside .main-header-bar .ast-search-icon' => array( 'margin-right' => '1em', ), '.ast-theme.ast-header-custom-item-inside .main-header-bar .main-header-bar-navigation .ast-search-icon' => array( 'display' => 'none', ), '.ast-theme.ast-header-custom-item-inside .main-header-bar .ast-search-menu-icon .search-field, .ast-theme.ast-header-custom-item-inside .main-header-bar .ast-search-menu-icon.ast-inline-search .search-field' => array( 'width' => '100%', 'padding-right' => '5.5em', ), '.ast-theme.ast-header-custom-item-inside .main-header-bar .ast-search-menu-icon .search-submit' => array( 'display' => 'block', 'position' => 'absolute', 'height' => '100%', 'top' => '0', 'right' => '0', 'padding' => '0 1em', 'border-radius' => '0', ), '.ast-theme.ast-header-custom-item-inside .main-header-bar .ast-search-menu-icon .search-form' => array( 'padding' => '0', 'display' => 'block', 'overflow' => 'hidden', ), '.ast-amp .ast-header-custom-item' => array( 'background-color' => '#f9f9f9', ), '.ast-amp .ast-mobile-header-stack .site-description' => array( 'text-align' => 'center', ), '.ast-amp .ast-mobile-header-stack.ast-logo-title-inline .site-description' => array( 'text-align' => 'left', ), '.ast-theme.ast-header-custom-item-outside .ast-primary-menu-disabled .ast-mobile-menu-buttons' => array( 'display' => 'none', ), '.ast-amp .ast-hide-custom-menu-mobile .ast-masthead-custom-menu-items' => array( 'display' => 'none', ), '.ast-amp .ast-mobile-header-inline .site-branding' => array( 'text-align' => 'left', 'padding-bottom' => '0', ), '.ast-amp .ast-mobile-header-inline.header-main-layout-3 .site-branding' => array( 'text-align' => 'right', ), '.ast-amp ul li.ast-masthead-custom-menu-items a' => array( 'padding' => '0', 'width' => 'auto', 'display' => 'initial', ), '.ast-amp li.ast-masthead-custom-menu-items' => array( 'padding-left' => '20px', 'padding-right' => '20px', 'margin-bottom' => '1em', 'margin-top' => '1em', ), '.ast-theme.ast-header-custom-item-inside .ast-search-menu-icon' => array( 'position' => 'relative', 'display' => 'block', 'right' => 'auto', 'visibility' => 'visible', 'opacity' => '1', '-webkit-transform' => 'none', '-ms-transform' => 'none', 'transform' => 'none', ), '.ast-theme.ast-header-custom-item-outside .ast-mobile-menu-buttons' => array( '-webkit-box-ordinal-group' => '3', '-webkit-order' => '2', '-moz-box-ordinal-group' => '3', '-ms-flex-order' => '2', 'order' => '2', ), '.ast-theme.ast-header-custom-item-outside .main-header-bar-navigation' => array( '-webkit-box-ordinal-group' => '4', '-webkit-order' => '3', '-moz-box-ordinal-group' => '4', '-ms-flex-order' => '3', 'order' => '3', ), '.ast-theme.ast-header-custom-item-outside .ast-masthead-custom-menu-items' => array( '-webkit-box-ordinal-group' => '2', '-webkit-order' => '1', '-moz-box-ordinal-group' => '2', '-ms-flex-order' => '1', 'order' => '1', ), '.ast-theme.ast-header-custom-item-outside .header-main-layout-2 .ast-masthead-custom-menu-items' => array( 'text-align' => 'center', ), '.ast-theme.ast-header-custom-item-outside .ast-mobile-header-inline .site-branding, .ast-theme.ast-header-custom-item-outside .ast-mobile-header-inline .ast-mobile-menu-buttons' => array( '-js-display' => 'flex', 'display' => '-webkit-box', 'display' => '-webkit-flex', 'display' => '-moz-box', 'display' => '-ms-flexbox', 'display' => 'flex', ), '.ast-theme.ast-header-custom-item-outside.ast-header-custom-item-outside .header-main-layout-2 .ast-mobile-menu-buttons' => array( 'padding-bottom' => '0', ), '.ast-theme.ast-header-custom-item-outside .ast-mobile-header-inline .ast-site-identity' => array( 'width' => '100%', ), '.ast-theme.ast-header-custom-item-outside .ast-mobile-header-inline.header-main-layout-3 .ast-site-identity' => array( 'width' => 'auto', ), '.ast-theme.ast-header-custom-item-outside .ast-mobile-header-inline.header-main-layout-2 .site-branding' => array( '-webkit-box-flex' => '1', '-webkit-flex' => '1 1 auto', '-moz-box-flex' => '1', '-ms-flex' => '1 1 auto', 'flex' => '1 1 auto', ), '.ast-theme.ast-header-custom-item-outside .ast-mobile-header-inline .site-branding' => array( 'text-align' => 'left', ), '.ast-theme.ast-header-custom-item-outside .ast-mobile-header-inline .site-title' => array( '-webkit-box-pack' => 'left', '-webkit-justify-content' => 'left', '-moz-box-pack' => 'left', '-ms-flex-pack' => 'left', 'justify-content' => 'left', ), '.ast-theme.ast-header-custom-item-outside .header-main-layout-2 .ast-mobile-menu-buttons' => array( 'padding-bottom' => '1em', ), '.ast-amp .ast-mobile-header-stack .main-header-container, .ast-amp .ast-mobile-header-inline .main-header-container' => array( '-js-display' => 'flex', 'display' => '-webkit-box', 'display' => '-webkit-flex', 'display' => '-moz-box', 'display' => '-ms-flexbox', 'display' => 'flex', ), '.ast-amp .header-main-layout-1 .site-branding' => array( 'padding-right' => '1em', ), '.ast-amp .header-main-layout-1 .main-header-bar-navigation' => array( 'text-align' => 'left', ), '.ast-amp .header-main-layout-1 .main-navigation' => array( 'padding-left' => '0', ), '.ast-amp .ast-mobile-header-stack .ast-masthead-custom-menu-items' => array( '-webkit-box-flex' => '1', '-webkit-flex' => '1 1 100%', '-moz-box-flex' => '1', '-ms-flex' => '1 1 100%', 'flex' => '1 1 100%', ), '.ast-amp .ast-mobile-header-stack .site-branding' => array( 'padding-left' => '0', 'padding-right' => '0', 'padding-bottom' => '1em', '-webkit-box-flex' => '1', '-webkit-flex' => '1 1 100%', '-moz-box-flex' => '1', '-ms-flex' => '1 1 100%', 'flex' => '1 1 100%', ), '.ast-amp .ast-mobile-header-stack .ast-masthead-custom-menu-items, .ast-amp .ast-mobile-header-stack .site-branding, .ast-amp .ast-mobile-header-stack .site-title, .ast-amp .ast-mobile-header-stack .ast-site-identity' => array( '-webkit-box-pack' => 'center', '-webkit-justify-content' => 'center', '-moz-box-pack' => 'center', '-ms-flex-pack' => 'center', 'justify-content' => 'center', 'text-align' => 'center', ), '.ast-amp .ast-mobile-header-stack.ast-logo-title-inline .site-title' => array( 'text-align' => 'left', ), '.ast-amp .ast-mobile-header-stack .ast-mobile-menu-buttons' => array( '-webkit-box-flex' => '1', '-webkit-flex' => '1 1 100%', '-moz-box-flex' => '1', '-ms-flex' => '1 1 100%', 'flex' => '1 1 100%', 'text-align' => 'center', '-webkit-box-pack' => 'center', '-webkit-justify-content' => 'center', '-moz-box-pack' => 'center', '-ms-flex-pack' => 'center', 'justify-content' => 'center', ), '.ast-amp .ast-mobile-header-stack.header-main-layout-3 .main-header-container' => array( 'flex-direction' => 'initial', ), '.ast-amp .header-main-layout-2 .ast-mobile-menu-buttons' => array( '-js-display' => 'flex', 'display' => '-webkit-box', 'display' => '-webkit-flex', 'display' => '-moz-box', 'display' => '-ms-flexbox', 'display' => 'flex', '-webkit-box-pack' => 'center', '-webkit-justify-content' => 'center', '-moz-box-pack' => 'center', '-ms-flex-pack' => 'center', 'justify-content' => 'center', ), '.ast-amp .header-main-layout-2 .main-header-bar-navigation, .ast-amp .header-main-layout-2 .widget' => array( 'text-align' => 'left', ), '.ast-theme.ast-header-custom-item-outside .header-main-layout-3 .main-header-bar .ast-search-icon' => array( 'margin-right' => 'auto', 'margin-left' => '1em', ), '.ast-amp .header-main-layout-3 .main-header-bar .ast-search-menu-icon.slide-search .search-form' => array( 'right' => 'auto', 'left' => '0', ), '.ast-amp .header-main-layout-3.ast-mobile-header-inline .ast-mobile-menu-buttons' => array( '-webkit-box-pack' => 'start', '-webkit-justify-content' => 'flex-start', '-moz-box-pack' => 'start', '-ms-flex-pack' => 'start', 'justify-content' => 'flex-start', ), '.ast-amp .header-main-layout-3 li .ast-search-menu-icon' => array( 'left' => '0', ), '.ast-amp .header-main-layout-3 .site-branding' => array( 'padding-left' => '1em', '-webkit-box-pack' => 'end', '-webkit-justify-content' => 'flex-end', '-moz-box-pack' => 'end', '-ms-flex-pack' => 'end', 'justify-content' => 'flex-end', ), '.ast-amp .header-main-layout-3 .main-navigation' => array( 'padding-right' => '0', ), '.ast-amp .header-main-layout-1 .site-branding' => array( 'padding-right' => '1em', ), '.ast-amp .header-main-layout-1 .main-header-bar-navigation' => array( 'text-align' => 'left', ), '.ast-amp .header-main-layout-1 .main-navigation' => array( 'padding-left' => '0', ), '.ast-amp .ast-mobile-header-stack .ast-masthead-custom-menu-items' => array( '-webkit-box-flex' => '1', '-webkit-flex' => '1 1 100%', '-moz-box-flex' => '1', '-ms-flex' => '1 1 100%', 'flex' => '1 1 100%', ), '.ast-amp .ast-mobile-header-stack .site-branding' => array( 'padding-left' => '0', 'padding-right' => '0', 'padding-bottom' => '1em', '-webkit-box-flex' => '1', '-webkit-flex' => '1 1 100%', '-moz-box-flex' => '1', '-ms-flex' => '1 1 100%', 'flex' => '1 1 100%', ), '.ast-amp .ast-mobile-header-stack .ast-masthead-custom-menu-items, .ast-amp .ast-mobile-header-stack .site-branding, .ast-amp .ast-mobile-header-stack .site-title, .ast-amp .ast-mobile-header-stack .ast-site-identity' => array( '-webkit-box-pack' => 'center', '-webkit-justify-content' => 'center', '-moz-box-pack' => 'center', '-ms-flex-pack' => 'center', 'justify-content' => 'center', 'text-align' => 'center', ), '.ast-amp .ast-mobile-header-stack.ast-logo-title-inline .site-title' => array( 'text-align' => 'left', ), '.ast-amp .ast-mobile-header-stack .ast-mobile-menu-buttons' => array( 'flex' => '1 1 100%', 'text-align' => 'center', '-webkit-box-pack' => 'center', '-webkit-justify-content' => 'center', '-moz-box-pack' => 'center', '-ms-flex-pack' => 'center', 'justify-content' => 'center', ), '.ast-amp .ast-mobile-header-stack.header-main-layout-3 .main-header-container' => array( 'flex-direction' => 'initial', ), '.ast-amp .header-main-layout-2 .ast-mobile-menu-buttons' => array( 'display' => '-webkit-box', 'display' => '-webkit-flex', 'display' => '-moz-box', 'display' => '-ms-flexbox', 'display' => 'flex', '-webkit-box-pack' => 'center', '-webkit-justify-content' => 'center', '-moz-box-pack' => 'center', '-ms-flex-pack' => 'center', 'justify-content' => 'center', ), '.ast-amp .header-main-layout-2 .main-header-bar-navigation, .ast-amp .header-main-layout-2 .widget' => array( 'text-align' => 'left', ), '.ast-theme.ast-header-custom-item-outside .header-main-layout-3 .main-header-bar .ast-search-icon' => array( 'margin-right' => 'auto', 'margin-left' => '1em', ), '.ast-amp .header-main-layout-3 .main-header-bar .ast-search-menu-icon.slide-search .search-form' => array( 'right' => 'auto', 'left' => '0', ), '.ast-amp .header-main-layout-3.ast-mobile-header-inline .ast-mobile-menu-buttons' => array( '-webkit-box-pack' => 'start', '-webkit-justify-content' => 'flex-start', '-moz-box-pack' => 'start', '-ms-flex-pack' => 'start', 'justify-content' => 'flex-start', ), '.ast-amp .header-main-layout-3 li .ast-search-menu-icon' => array( 'left' => '0', ), '.ast-amp .header-main-layout-3 .site-branding' => array( 'padding-left' => '1em', '-webkit-box-pack' => 'end', '-webkit-justify-content' => 'flex-end', '-moz-box-pack' => 'end', '-ms-flex-pack' => 'end', 'justify-content' => 'flex-end', ), '.ast-amp .header-main-layout-3 .main-navigation' => array( 'padding-right' => '0', ), '.ast-amp .ast-header-custom-item' => array( 'border-top' => '1px solid #eaeaea', ), '.ast-amp .ast-header-custom-item .ast-masthead-custom-menu-items' => array( 'padding-left' => '20px', 'padding-right' => '20px', 'margin-bottom' => '1em', 'margin-top' => '1em', ), '.ast-amp .ast-header-custom-item .widget:last-child' => array( 'margin-bottom' => '1em', ), '.ast-header-custom-item-inside.ast-amp .button-custom-menu-item .menu-link' => array( 'display' => 'block', ), '.ast-header-custom-item-inside.ast-amp .button-custom-menu-item' => array( 'padding-left' => '0', 'padding-right' => '0', 'margin-top' => '0', 'margin-bottom' => '0', ), '.ast-header-custom-item-inside.ast-amp .button-custom-menu-item .ast-custom-button-link' => array( 'display' => 'none', ), '.ast-header-custom-item-inside.ast-amp .button-custom-menu-item .menu-link' => array( 'display' => 'block', ), '.ast-amp .woocommerce-custom-menu-item .ast-cart-menu-wrap' => array( 'width' => '2em', 'height' => '2em', 'font-size' => '1.4em', 'line-height' => '2', 'vertical-align' => 'middle', 'text-align' => 'right', ), '.ast-theme.ast-woocommerce-cart-menu .header-main-layout-3 .ast-site-header-cart' => array( 'padding' => '0 0 1em 1em', ), '.ast-theme.ast-woocommerce-cart-menu.ast-header-custom-item-outside .ast-site-header-cart' => array( 'padding' => '0', ), '.ast-amp .ast-masthead-custom-menu-items.woocommerce-custom-menu-item' => array( 'margin-bottom' => '0', 'margin-top' => '0', ), '.ast-amp .ast-masthead-custom-menu-items.woocommerce-custom-menu-item .ast-site-header-cart' => array( 'padding' => '0', ), '.ast-amp .ast-masthead-custom-menu-items.woocommerce-custom-menu-item .ast-site-header-cart a' => array( 'border' => 'none', 'display' => 'inline-block', ), '.ast-theme.ast-header-custom-item-inside .main-header-bar .ast-search-menu-icon .search-form' => array( 'visibility' => 'visible', 'opacity' => '1', 'position' => 'relative', 'right' => 'auto', 'top' => 'auto', 'transform' => 'none', ), '.ast-theme.ast-header-custom-item-outside .ast-mobile-header-stack .main-header-bar .ast-search-icon' => array( 'margin' => '0', ), '.ast-amp .ast-mobile-header-stack .main-header-bar .ast-search-menu-icon.slide-search .search-form' => array( 'right' => '-1em', ), '.ast-amp .ast-mobile-header-stack .site-branding, .ast-amp .ast-mobile-header-stack .ast-mobile-menu-buttons' => array( '-webkit-box-pack' => 'center', '-webkit-justify-content' => 'center', '-moz-box-pack' => 'center', '-ms-flex-pack' => 'center', 'justify-content' => 'center', 'text-align' => 'center', 'padding-bottom' => '0', ), '.ast-safari-browser-less-than-11.ast-woocommerce-cart-menu.ast-header-break-point .header-main-layout-2 .main-header-container' => array( 'display' => 'flex', ), ); // Tablet CSS. $astra_medium_break_point_navigation = array( '.ast-amp .footer-sml-layout-2 .ast-small-footer-section-2' => array( 'margin-top' => '1em', ), ); $parse_css .= astra_parse_css( $astra_medium_break_point_navigation, astra_get_tablet_breakpoint() ); // Mobile CSS. $astra_small_break_point_navigation = array( '.ast-theme.ast-woocommerce-cart-menu .header-main-layout-1.ast-mobile-header-stack.ast-no-menu-items .ast-site-header-cart, .ast-theme.ast-woocommerce-cart-menu .header-main-layout-3.ast-mobile-header-stack.ast-no-menu-items .ast-site-header-cart' => array( 'padding-right' => '0', 'padding-left' => '0', ), '.ast-theme.ast-woocommerce-cart-menu .header-main-layout-1.ast-mobile-header-stack .main-header-bar, .ast-theme.ast-woocommerce-cart-menu .header-main-layout-3.ast-mobile-header-stack .main-header-bar' => array( 'text-align' => 'center', ), '.ast-theme.ast-woocommerce-cart-menu .header-main-layout-1.ast-mobile-header-stack .ast-site-header-cart, .ast-theme.ast-woocommerce-cart-menu .header-main-layout-3.ast-mobile-header-stack .ast-site-header-cart' => array( 'display' => 'inline-block', ), '.ast-theme.ast-woocommerce-cart-menu .header-main-layout-1.ast-mobile-header-stack .ast-mobile-menu-buttons, .ast-theme.ast-woocommerce-cart-menu .header-main-layout-3.ast-mobile-header-stack .ast-mobile-menu-buttons' => array( 'display' => 'inline-block', ), '.ast-theme.ast-woocommerce-cart-menu .header-main-layout-2.ast-mobile-header-inline .site-branding' => array( 'flex' => 'auto', ), '.ast-theme.ast-woocommerce-cart-menu .header-main-layout-3.ast-mobile-header-stack .site-branding' => array( 'flex' => '0 0 100%', ), '.ast-theme.ast-woocommerce-cart-menu .header-main-layout-3.ast-mobile-header-stack .main-header-container' => array( 'display' => '-webkit-box', 'display' => '-webkit-flex', 'display' => '-moz-box', 'display' => '-ms-flexbox', 'display' => 'flex', '-webkit-box-pack' => 'center', '-webkit-justify-content' => 'center', '-moz-box-pack' => 'center', '-ms-flex-pack' => 'center', 'justify-content' => 'center', ), '.ast-amp .ast-mobile-header-stack .ast-mobile-menu-buttons' => array( 'width' => '100%', ), '.ast-amp .ast-mobile-header-stack .site-branding, .ast-amp .ast-mobile-header-stack .ast-mobile-menu-buttons' => array( '-webkit-box-pack' => 'center', '-webkit-justify-content' => 'center', '-moz-box-pack' => 'center', '-ms-flex-pack' => 'center', 'justify-content' => 'center', ), '.ast-amp .ast-mobile-header-stack.header-main-layout-1 .main-header-bar-wrap .site-branding' => array( '-webkit-box-flex' => '1', '-webkit-flex' => '1 1 auto', '-moz-box-flex' => '1', '-ms-flex' => '1 1 auto', '-webkit-box-flex' => '1', '-webkit-flex' => '1 1 auto', '-moz-box-flex' => '1', '-ms-flex' => '1 1 auto', 'flex' => '1 1 auto', ), '.ast-amp .ast-mobile-header-stack .ast-mobile-menu-buttons' => array( 'padding-top' => '0.8em', ), '.ast-amp .ast-mobile-header-stack.header-main-layout-2 .ast-mobile-menu-buttons' => array( 'padding-top' => '0.8em', ), '.ast-amp .ast-mobile-header-stack.header-main-layout-1 .site-branding' => array( 'padding-bottom' => '0', ), '.ast-header-custom-item-outside.ast-amp .ast-mobile-header-stack .ast-masthead-custom-menu-items' => array( 'padding' => '0.8em 1em 0 1em', 'text-align' => 'center', 'width' => '100%', ), '.ast-header-custom-item-outside.ast-amp .ast-mobile-header-stack.header-main-layout-3 .ast-mobile-menu-buttons, .ast-header-custom-item-outside.ast-amp .ast-mobile-header-stack.header-main-layout-3 .ast-masthead-custom-menu-items' => array( 'padding-top' => '0.8em', ), // Tablet CSS. '.ast-amp .footer-sml-layout-2 .ast-small-footer-section-2' => array( 'margin-top' => '1em', ), ); $parse_css .= astra_parse_css( $astra_small_break_point_navigation, '', astra_get_mobile_breakpoint() ); } $parse_css .= astra_parse_css( $astra_break_point_navigation, '', astra_header_break_point() ); // Move all header-break-point css from class based css to media query based CSS. $astra_break_point_navigation = array( '.ast-amp .entry-content .alignwide' => array( 'margin-left' => 'auto', 'margin-right' => 'auto', ), '.ast-amp .main-navigation' => array( 'padding-left' => '0', ), '.ast-amp .main-navigation ul .menu-item .menu-link, .ast-amp .main-navigation ul .button-custom-menu-item a' => array( 'padding' => '0 20px', 'display' => 'inline-block', 'width' => '100%', 'border-bottom-width' => '1px', 'border-style' => 'solid', 'border-color' => '#eaeaea', ), '.ast-amp .main-navigation .sub-menu .menu-item .menu-link' => array( 'padding-left' => '30px', ), '.ast-amp .main-navigation .sub-menu .menu-item .menu-item .menu-link' => array( 'padding-left' => '40px', ), '.ast-amp .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-link' => array(), '.ast-amp .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => '60px', ), '.ast-amp .main-header-menu' => array( 'background-color' => '#f9f9f9', ), '.ast-amp .main-header-menu ul' => array( 'background-color' => '#f9f9f9', 'position' => 'static', 'opacity' => '1', 'visibility' => 'visible', 'border' => '0', 'width' => 'auto', ), '.ast-amp .main-header-menu ul li.ast-left-align-sub-menu:hover > ul, .ast-amp .main-header-menu ul li.ast-left-align-sub-menu.focus > ul' => array( 'left' => '0', ), '.ast-amp .main-header-menu li.ast-sub-menu-goes-outside:hover > ul, .ast-amp .main-header-menu li.ast-sub-menu-goes-outside.focus > ul' => array( 'left' => '0', ), '.ast-amp .submenu-with-border .sub-menu' => array( 'border' => '0', ), '.ast-amp .user-select' => array( 'clear' => 'both', ), '.ast-amp .ast-mobile-menu-buttons' => array( 'display' => 'block', '-webkit-align-self' => 'center', '-ms-flex-item-align' => 'center', 'align-self' => 'center', ), '.ast-amp .main-header-bar-navigation' => array( '-webkit-box-flex' => '1', '-webkit-flex' => 'auto', '-moz-box-flex' => '1', '-ms-flex' => 'auto', 'flex' => 'auto', 'width' => '-webkit-calc( 100% + 40px)', 'width' => 'calc(100% + 40px )', ), '.ast-amp .ast-main-header-bar-alignment' => array( 'display' => 'block', 'width' => '100%', '-webkit-box-flex' => '1', '-webkit-flex' => 'auto', '-moz-box-flex' => '1', '-ms-flex' => 'auto', 'flex' => 'auto', '-webkit-box-ordinal-group' => '5', '-webkit-order' => '4', '-moz-box-ordinal-group' => '5', '-ms-flex-order' => '4', 'order' => '4', ), '.ast-amp .ast-mobile-menu-buttons' => array( 'text-align' => 'right', 'display' => '-webkit-box', 'display' => '-webkit-flex', 'display' => '-moz-box', 'display' => '-ms-flexbox', 'display' => 'flex', '-webkit-box-pack' => 'end', '-webkit-justify-content' => 'flex-end', '-moz-box-pack' => 'end', '-ms-flex-pack' => 'end', 'justify-content' => 'flex-end', ), '.ast-amp .site-header .main-header-bar-wrap .site-branding' => array( '-js-display' => 'flex', 'display' => '-webkit-box', 'display' => '-webkit-flex', 'display' => '-moz-box', 'display' => '-ms-flexbox', 'display' => 'flex', '-webkit-box-flex' => '1', '-webkit-flex' => '1', '-moz-box-flex' => '1', '-ms-flex' => '1', 'flex' => '1', '-webkit-align-self' => 'center', '-ms-flex-item-align' => 'center', 'align-self' => 'center', ), '.ast-amp .ast-site-identity' => array( 'width' => '100%', ), '.ast-amp .main-header-bar-navigation .menu-item-has-children > .menu-link .sub-arrow:after' => array( 'display' => 'none', ), '.ast-amp .main-header-bar' => array( 'display' => 'block', 'line-height' => '3', ), '.ast-main-header-bar-alignment .main-header-bar-navigation' => array( 'line-height' => '3', 'display' => 'none', ), '.ast-amp .main-header-bar .toggled-on .main-header-bar-navigation' => array( 'line-height' => '3', 'display' => 'none', ), '.ast-amp .main-header-bar .main-header-bar-navigation .sub-menu' => array( 'line-height' => '3', ), '.ast-amp .main-header-bar .main-header-bar-navigation .menu-item-has-children .sub-menu' => array( 'display' => 'none', ), '.ast-amp .main-header-bar .main-header-bar-navigation .menu-item-has-children .dropdown-open+ul.sub-menu' => array( 'display' => 'block', ), '.ast-amp .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle' => array( 'display' => 'inline-block', 'position' => 'absolute', 'font-size' => 'inherit', 'top' => '-1px', 'right' => '20px', 'cursor' => 'pointer', 'webkit-font-smoothing' => 'antialiased', 'moz-osx-font-smoothing' => 'grayscale', 'padding' => '0 0.907em', 'font-weight' => 'normal', 'line-height' => 'inherit', 'transition' => 'all 0.2s', ), '.ast-amp .main-header-bar .main-header-bar-navigation .ast-submenu-expanded > .ast-menu-toggle::before' => array( '-webkit-transform' => 'rotateX(180deg)', 'transform' => 'rotateX(180deg)', ), '.ast-amp .main-header-bar .main-header-bar-navigation .main-header-menu' => array( 'border-top-width' => '1px', 'border-style' => 'solid', 'border-color' => '#eaeaea', ), '.ast-amp .main-navigation' => array( 'display' => 'block', 'width' => '100%', ), '.ast-amp .main-navigation ul > li:first-child' => array( 'border-top' => '0', ), '.ast-amp .main-navigation ul ul' => array( 'left' => 'auto', 'right' => 'auto', ), '.ast-amp .main-navigation li' => array( 'width' => '100%', ), '.ast-amp .main-navigation .widget' => array( 'margin-bottom' => '1em', ), '.ast-amp .main-navigation .widget li' => array( 'width' => 'auto', ), '.ast-amp .main-navigation .widget:last-child' => array( 'margin-bottom' => '0', ), '.ast-amp .main-header-menu ul ul' => array( 'top' => '0', ), '.ast-amp .ast-has-mobile-header-logo .custom-logo-link, .ast-amp .ast-has-mobile-header-logo .astra-logo-svg' => array( 'display' => 'none', ), '.ast-amp .ast-has-mobile-header-logo .custom-mobile-logo-link' => array( 'display' => 'inline-block', ), '.ast-theme.ast-mobile-inherit-site-logo .ast-has-mobile-header-logo .custom-logo-link, .ast-theme.ast-mobile-inherit-site-logo .ast-has-mobile-header-logo .astra-logo-svg' => array( 'display' => 'block', ), '.ast-amp .ast-header-widget-area .widget' => array( 'margin' => '0.5em 0', 'display' => 'block', ), '.ast-amp .main-header-bar' => array( 'border' => '0', 'border-bottom-color' => '#eaeaea', 'border-bottom-style' => 'solid', ), '.ast-amp .nav-fallback-text' => array( 'float' => 'none', ), '.ast-amp .main-header-menu .woocommerce-custom-menu-item .ast-cart-menu-wrap' => array( 'height' => '3em', 'line-height' => '3', 'text-align' => 'left', ), '.ast-amp .ast-site-header-cart .widget_shopping_cart' => array( 'display' => 'none', ), '.ast-theme.ast-woocommerce-cart-menu .ast-site-header-cart' => array( 'order' => 'initial', 'line-height' => '3', 'padding' => '0 1em 1em 0', ), '.ast-amp .ast-edd-site-header-cart .widget_edd_cart_widget, .ast-amp .ast-edd-site-header-cart .ast-edd-header-cart-info-wrap' => array( 'display' => 'none', ), '.ast-amp div.ast-masthead-custom-menu-items.edd-custom-menu-item' => array( 'padding' => '0', ), '.ast-amp .main-header-bar .ast-search-menu-icon.slide-search .search-form' => array( 'right' => '0', ), '.ast-amp .main-header-menu .sub-menu' => array( 'box-shadow' => 'none', ), '.ast-amp .submenu-with-border .sub-menu a' => array( 'border-width' => '1px', ), '.ast-amp .submenu-with-border .sub-menu > li:last-child > a' => array( 'border-width' => '1px', ), ); if ( false === Astra_Icons::is_svg_icons() ) { $astra_break_point_navigation['.ast-amp .main-navigation ul.children li a:before, .ast-amp .main-navigation ul.sub-menu li a:before'] = array( 'content' => '"\e900"', 'font-family' => '"Astra"', 'font-size' => '0.65em', 'text-decoration' => 'inherit', 'display' => 'inline-block', 'transform' => 'translate(0, -2px) rotateZ(270deg)', 'margin-right' => '5px', ); $astra_break_point_navigation['.ast-amp .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle::before'] = array( 'font-weight' => 'bold', 'content' => '"\e900"', 'font-family' => '"Astra"', 'text-decoration' => 'inherit', 'display' => 'inline-block', ); } else { $astra_break_point_navigation['[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-buttons-minimal'] = array( 'background' => 'transparent', 'border' => 'none', ); } $parse_css .= astra_parse_css( $astra_break_point_navigation, '', astra_header_break_point() ); return $parse_css; } /** * Add AMP attributes to the nav menu wrapper. * * @since 1.7.0 * @param Array $attr HTML attributes to be added to the nav menu wrapper. * * @return Array updated HTML attributes. */ public function nav_menu_wrapper( $attr ) { $attr['[class]'] = '( astraAmpMenuExpanded ? \'ast-main-header-bar-alignment toggle-on\' : \'ast-main-header-bar-alignment\' )'; $attr['aria-expanded'] = 'false'; $attr['[aria-expanded]'] = '(astraAmpMenuExpanded ? \'true\' : \'false\')'; return $attr; } /** * Set AMP State for eeach sub menu toggle. * * @since 1.7.0 * @param String $item_output HTML markup for the menu item. * @param WP_Post $item Post object for the navigation menu. * * @return String HTML MArkup for the menu including the AML State. */ public function toggle_button_markup( $item_output, $item ) { $item_output .= ''; return $item_output; } /** * Add AMP attribites to the toggle button to add `.ast-submenu-expanded` class to parent li. * * @since 1.7.0 * @param array $attr Optional. Extra attributes to merge with defaults. * @param string $context The context, to build filter name. * @param array $args Optional. Custom data to pass to filter. * * @return Array updated HTML attributes. */ public function menu_toggle_button( $attr, $context, $args ) { $attr['[class]'] = '( astraNavMenuItemExpanded' . $args->ID . ' ? \' ast-menu-toggle dropdown-open\' : \'ast-menu-toggle\')'; $attr['on'] = 'tap:AMP.setState( { astraNavMenuItemExpanded' . $args->ID . ': ! astraNavMenuItemExpanded' . $args->ID . ' } )'; return $attr; } /** * Add amp states to the dom. */ public function render_amp_states() { echo ''; echo ''; echo ''; } /** * Add search slide data attributes. * * @param string $input the data attrs already existing in the nav. * * @return string */ public function add_search_slide_toggle_attrs( $input ) { $input .= ' on="tap:AMP.setState( { astraAmpSlideSearchMenuExpanded: ! astraAmpSlideSearchMenuExpanded } )" '; $input .= ' [class]="( astraAmpSlideSearchMenuExpanded ? \'ast-search-menu-icon slide-search ast-dropdown-active\' : \'ast-search-menu-icon slide-search\' )" '; $input .= ' aria-expanded="false" [aria-expanded]="astraAmpSlideSearchMenuExpanded ? \'true\' : \'false\'" '; return $input; } /** * Add search slide data attributes. * * @param string $input the data attrs already existing in the nav. * * @return string */ public function add_search_field_toggle_attrs( $input ) { $input .= ' on="tap:AMP.setState( { astraAmpSlideSearchMenuExpanded: astraAmpSlideSearchMenuExpanded } )" '; return $input; } /** * Add the nav toggle data attributes. * * @param string $input the data attrs already existing in nav toggle. * * @return string */ public function add_nav_toggle_attrs( $input ) { $input .= ' on="tap:AMP.setState( { astraAmpMenuExpanded: ! astraAmpMenuExpanded } ),astra-body.toggleClass(class=ast-main-header-nav-open)" '; $input .= ' [class]="\'menu-toggle main-header-menu-toggle ast-mobile-menu-buttons-minimal\' + ( astraAmpMenuExpanded ? \' toggled\' : \'\' )" '; $input .= ' aria-expanded="false" '; $input .= ' [aria-expanded]="astraAmpMenuExpanded ? \'true\' : \'false\'" '; return $input; } } endif; /** * Kicking this off by calling 'get_instance()' method */ Astra_AMP::get_instance(); PKemZ>H܏܏1compatibility/lifterlms/class-astra-lifterlms.phpnu[ 3, 'tablet' => 2, 'mobile' => 1, ); $defaults['llms-membership-grid'] = array( 'desktop' => 3, 'tablet' => 2, 'mobile' => 1, ); // Container. $defaults['lifterlms-ast-content-layout'] = 'normal-width-container'; // Sidebar. $defaults['lifterlms-sidebar-layout'] = 'no-sidebar'; $defaults['lifterlms-course-lesson-sidebar-layout'] = 'default'; return $defaults; } /** * This function handles the HTML output of the reviews and review form. * If the option is enabled, the review form will be output, * if not, nothing will happen. This function also checks to * see if a user is allowed to review more than once. * * @since 1.2.0 */ public function single_reviews() { /** * Check to see if we are supposed to output the code at all */ if ( get_post_meta( get_the_ID(), '_llms_display_reviews', true ) ) { ?>

get_post_meta( get_the_ID(), '_llms_num_reviews', true ), // phpcs:ignore WPThemeReview.CoreFunctionality.PostsPerPage.posts_per_page_posts_per_page, WordPress.WP.PostsPerPage.posts_per_page_posts_per_page 'post_type' => 'llms_review', 'post_status' => 'publish', 'post_parent' => get_the_ID(), 'suppress_filters' => true, // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.SuppressFiltersTrue -- Required for the query to work properly. ); /** @psalm-suppress ArgumentTypeCoercion */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $posts_array = get_posts( $args ); /** @psalm-suppress ArgumentTypeCoercion */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $styles = array( 'background-color' => '#EFEFEF', 'title-color' => 'inherit', 'text-color' => 'inherit', 'custom-css' => '', ); if ( has_filter( 'llms_review_custom_styles' ) ) { $styles = apply_filters( 'llms_review_custom_styles', $styles ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound } foreach ( $posts_array as $post ) { echo $styles['custom-css']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
ID ) ); ?>
ID ) ) ) ); ?>

ID ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>


1, 'post_type' => 'llms_review', 'post_status' => 'publish', 'post_parent' => get_the_ID(), 'author' => get_current_user_id(), 'suppress_filters' => true, // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.SuppressFiltersTrue -- Required for the query to work properly. ); $posts_array = get_posts( $args ); /** * Check to see if we are allowed to write more than one review. * If we are not, check to see if we have written a review already. */ if ( get_post_meta( get_the_ID(), '_llms_multiple_reviews_disabled', true ) && $posts_array ) { ?>

= 0 ) { unset( $classes[ $index ] ); } } $classes[] = 'cols-' . $llms_grid['desktop']; } } if ( ! empty( $llms_grid['tablet'] ) ) { $classes[] = 'llms-tablet-cols-' . $llms_grid['tablet']; } if ( ! empty( $llms_grid['mobile'] ) ) { $classes[] = 'llms-mobile-cols-' . $llms_grid['mobile']; } return $classes; } /** * Enqueue styles * * @since 1.2.0 * @return void */ public function add_dynamic_styles() { /** * - Variable Declaration */ $theme_color = astra_get_option( 'theme-color' ); $link_color = astra_get_option( 'link-color', $theme_color ); $link_h_color = astra_get_option( 'link-h-color' ); $theme_forground_color = astra_get_foreground_color( $link_color ); $btn_color = astra_get_option( 'button-color' ); if ( empty( $btn_color ) ) { $btn_color = $theme_forground_color; } $btn_h_color = astra_get_option( 'button-h-color' ); if ( empty( $btn_h_color ) ) { $btn_h_color = astra_get_foreground_color( $link_h_color ); } $btn_bg_color = astra_get_option( 'button-bg-color', '', $link_color ); $btn_bg_h_color = astra_get_option( 'button-bg-h-color', '', $link_h_color ); $btn_border_size = astra_get_option( 'theme-button-border-group-border-size' ); $btn_border_color = astra_get_option( 'theme-button-border-group-border-color', $link_color ); $btn_border_h_color = astra_get_option( 'theme-button-border-group-border-h-color', $link_h_color ); $btn_border_radius_fields = astra_get_option( 'button-radius-fields' ); $theme_btn_padding = astra_get_option( 'theme-button-padding' ); /** * Theme Button Typography */ $theme_btn_font_family = astra_get_option( 'font-family-button' ); $theme_btn_font_size = astra_get_option( 'font-size-button' ); $theme_btn_font_weight = astra_get_option( 'font-weight-button' ); $theme_btn_font_extras = astra_get_option( 'font-extras-button' ); $theme_btn_text_transform = astra_get_font_extras( $theme_btn_font_extras, 'text-transform' ); $theme_btn_line_height = astra_get_font_extras( $theme_btn_font_extras, 'line-height', 'line-height-unit' ); $theme_btn_letter_spacing = astra_get_font_extras( $theme_btn_font_extras, 'letter-spacing', 'letter-spacing-unit' ); $theme_btn_text_decoration = astra_get_font_extras( $theme_btn_font_extras, 'text-decoration' ); $css_output = array( '.lifterlms a.llms-button-primary, .lifterlms a.llms-button-secondary, .lifterlms .llms-button-action, .lifterlms button.llms-field-button, .lifterlms a.llms-field-button' => array( 'color' => $btn_color, 'background-color' => $btn_bg_color, 'border-style' => 'solid', 'border-color' => $btn_border_color, 'border-top-width' => ( isset( $btn_border_size['top'] ) && '' !== $btn_border_size['top'] ) ? astra_get_css_value( $btn_border_size['top'], 'px' ) : '0', 'border-right-width' => ( isset( $btn_border_size['right'] ) && '' !== $btn_border_size['right'] ) ? astra_get_css_value( $btn_border_size['right'], 'px' ) : '0', 'border-left-width' => ( isset( $btn_border_size['left'] ) && '' !== $btn_border_size['left'] ) ? astra_get_css_value( $btn_border_size['left'], 'px' ) : '0', 'border-bottom-width' => ( isset( $btn_border_size['bottom'] ) && '' !== $btn_border_size['bottom'] ) ? astra_get_css_value( $btn_border_size['bottom'], 'px' ) : '0', 'font-family' => astra_get_font_family( $theme_btn_font_family ), 'font-weight' => esc_attr( $theme_btn_font_weight ), 'line-height' => esc_attr( $theme_btn_line_height ), 'text-transform' => esc_attr( $theme_btn_text_transform ), 'text-decoration' => esc_attr( $theme_btn_text_decoration ), 'letter-spacing' => esc_attr( $theme_btn_letter_spacing ), 'font-size' => astra_responsive_font( $theme_btn_font_size, 'desktop' ), 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'desktop' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'desktop' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'desktop' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'desktop' ), 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'desktop' ), ), '.lifterlms a.llms-button-primary:hover, .lifterlms a.llms-button-primary:focus, .lifterlms a.llms-button-secondary:hover, .lifterlms a.llms-button-secondary:focus, .lifterlms .llms-button-action:hover, .lifterlms .llms-button-action:focus, .lifterlms button.llms-field-button:hover, .lifterlms button.llms-field-button:focus, .lifterlms a.llms-field-button:hover, .lifterlms a.llms-field-button:focus' => array( 'color' => $btn_h_color, 'border-color' => $btn_border_h_color, 'background-color' => $btn_bg_h_color, ), 'nav.llms-pagination ul li a:focus, nav.llms-pagination ul li a:hover, nav.llms-pagination ul li span.current' => array( 'background' => $link_color, 'color' => $btn_color, ), 'nav.llms-pagination ul, nav.llms-pagination ul li, .llms-instructor-info .llms-instructors .llms-author, .llms-instructor-info .llms-instructors .llms-author .avatar' => array( 'border-color' => $link_color, ), '.llms-progress .progress-bar-complete, .llms-instructor-info .llms-instructors .llms-author .avatar, h4.llms-access-plan-title, .llms-lesson-preview .llms-icon-free, .llms-access-plan .stamp, .llms-student-dashboard .llms-status.llms-active, .llms-student-dashboard .llms-status.llms-completed, .llms-student-dashboard .llms-status.llms-txn-succeeded, .color-full, body .llms-syllabus-wrapper .llms-section-title' => array( 'background' => $link_color, ), '.llms-lesson-preview.is-complete .llms-lesson-complete, .llms-lesson-preview.is-free .llms-lesson-complete, .llms-widget-syllabus .lesson-complete-placeholder.done, .llms-widget-syllabus .llms-lesson-complete.done, .single-llms_quiz .llms-quiz-results .llms-donut.passing, .llms-quiz-timer' => array( 'color' => $link_color, ), '.llms-quiz-timer' => array( 'border-color' => $link_color, ), '.single-llms_quiz .llms-quiz-results .llms-donut.passing svg path' => array( 'stroke' => $link_color, ), 'h4.llms-access-plan-title, .llms-instructor-info .llms-instructors .llms-author .avatar, h4.llms-access-plan-title, .llms-lesson-preview .llms-icon-free, .llms-access-plan .stamp, .llms-student-dashboard .llms-status.llms-active, .llms-student-dashboard .llms-status.llms-completed, .llms-student-dashboard .llms-status.llms-txn-succeeded, body .llms-syllabus-wrapper .llms-section-title' => array( 'color' => $theme_forground_color, ), 'body .progress-bar-complete:after' => array( 'color' => $theme_forground_color, ), ); /* Parse CSS from array() */ $css_output = astra_parse_css( $css_output ); if ( is_lesson() ) { $css_output .= $this->llms_single_lesson_css(); } /** * Global button CSS - Tablet. */ $css_global_button_tablet = array( '.lifterlms a.llms-button-primary, .lifterlms a.llms-button-secondary, .lifterlms .llms-button-action, .lifterlms button.llms-field-button, .lifterlms a.llms-field-button' => array( 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'tablet' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'tablet' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'tablet' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'tablet' ), 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'tablet' ), ), ); $css_output .= astra_parse_css( $css_global_button_tablet, '', astra_get_tablet_breakpoint() ); /** * Global button CSS - Mobile. */ $css_global_button_mobile = array( '.lifterlms a.llms-button-primary, .lifterlms a.llms-button-secondary, .lifterlms .llms-button-action, .lifterlms button.llms-field-button, .lifterlms a.llms-field-button' => array( 'border-top-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'top', 'mobile' ), 'border-top-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'right', 'mobile' ), 'border-bottom-right-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'bottom', 'mobile' ), 'border-bottom-left-radius' => astra_responsive_spacing( $btn_border_radius_fields, 'left', 'mobile' ), 'padding-top' => astra_responsive_spacing( $theme_btn_padding, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $theme_btn_padding, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $theme_btn_padding, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $theme_btn_padding, 'left', 'mobile' ), ), ); $css_output .= astra_parse_css( $css_global_button_mobile, '', astra_get_mobile_breakpoint() ); wp_add_inline_style( 'lifterlms-styles', apply_filters( 'astra_theme_lifterlms_dynamic_css', $css_output ) ); } /** * Add start of wrapper * * @since 1.2.0 * @return void */ public function before_main_content_start() { $site_sidebar = astra_page_layout(); if ( 'left-sidebar' == $site_sidebar ) { get_sidebar(); } ?>
'ast-main-header-display', 'id' => 'ast-main-header-display', 'label' => esc_html__( 'Disable Primary Header', 'astra' ), 'switch_on' => 'disabled', 'type' => 'switch', ); /** * Above Header */ $disable_fields[] = array( 'attribute' => 'ast-hfb-above-header-display', 'id' => 'ast-hfb-above-header-display', 'label' => esc_html__( 'Disable Above Header', 'astra' ), 'switch_on' => 'disabled', 'type' => 'switch', ); /** * Below Header */ $disable_fields[] = array( 'attribute' => 'ast-hfb-below-header-display', 'id' => 'ast-hfb-below-header-display', 'label' => esc_html__( 'Disable Below Header', 'astra' ), 'switch_on' => 'disabled', 'type' => 'switch', ); /** * Mobile Header */ $disable_fields[] = array( 'attribute' => 'ast-hfb-mobile-header-display', 'id' => 'ast-hfb-mobile-header-display', 'label' => esc_html__( 'Disable Mobile Header', 'astra' ), 'switch_on' => 'disabled', 'type' => 'switch', ); if ( $show_meta_field ) { $disable_fields[] = array( 'attribute' => 'site-post-title', 'id' => 'site-post-title', 'label' => esc_html__( 'Disable Title', 'astra' ), 'switch_on' => 'disabled', 'type' => 'switch', ); } if ( $show_meta_field && 'disabled' != astra_get_option( 'footer-adv' ) ) { $disable_fields[] = array( 'attribute' => 'footer-adv-display', 'id' => 'footer-adv-display', 'label' => esc_html__( 'Disable Footer Widgets', 'astra' ), 'switch_on' => 'disabled', 'type' => 'switch', ); } if ( 'disabled' != astra_get_option( 'footer-sml-layout' ) ) { $disable_fields[] = array( 'attribute' => 'footer-sml-layout', 'id' => 'footer-sml-layout', 'label' => esc_html__( 'Disable Footer', 'astra' ), 'switch_on' => 'disabled', 'type' => 'switch', ); } $fields['astra_theme_settings'] = array( 'title' => __( 'Astra Settings', 'astra' ), 'toggleable' => true, 'fields' => apply_filters( 'astra_theme_lifterlms_settings', array( array( array( 'attribute' => 'site-sidebar-layout', 'id' => 'site-sidebar-layout', 'label' => esc_html__( 'Sidebar', 'astra' ), 'type' => 'ast-select', 'options' => array( 'default' => esc_html__( 'Customizer Setting', 'astra' ), 'left-sidebar' => esc_html__( 'Left Sidebar', 'astra' ), 'right-sidebar' => esc_html__( 'Right Sidebar', 'astra' ), 'no-sidebar' => esc_html__( 'No Sidebar', 'astra' ), ), ), array( 'attribute' => 'site-content-layout', 'id' => 'site-content-layout', 'label' => esc_html__( 'Content Layout', 'astra' ), 'type' => 'ast-select', 'options' => array( 'default' => esc_html__( 'Customizer Setting', 'astra' ), 'boxed-container' => esc_html__( 'Boxed', 'astra' ), 'content-boxed-container' => esc_html__( 'Content Boxed', 'astra' ), 'plain-container' => esc_html__( 'Full Width / Contained', 'astra' ), 'page-builder' => esc_html__( 'Full Width / Stretched', 'astra' ), ), ), ), $disable_fields, ) ), ); $default_fields['assignment'] = $fields; $default_fields['lesson'] = $fields; $default_fields['quiz'] = $fields; return $default_fields; } /** * Llms single lesson static CSS move to dynamic to load conditionally. * * @since 3.3.0 * @return string */ public function llms_single_lesson_css() { $single_lesson_static_css = ' .single-lesson.ast-separate-container .llms-lesson-preview .llms-lesson-link { background: #fff; } .single-lesson.ast-separate-container .llms-lesson-preview .llms-lesson-link:hover { background: #fafafa; } .single-lesson .ast-article-single .llms-lesson-button-wrapper { font-weight: 600; } .single-lesson .ast-article-single .llms-lesson-button-wrapper .llms-complete-lesson-form .llms-field-button:before { content: "\2714"; margin-right: .5em; } .single-lesson .llms-course-navigation { padding: 2em 0 0; border-top: 1px solid #eeeeee; } .single-lesson .llms-course-navigation .llms-lesson-preview { vertical-align: top; margin-top: 0; } .single-lesson .llms-course-navigation .llms-lesson-preview .llms-lesson-link { padding-left: 20px; padding-right: 20px; } .single-lesson .llms-course-navigation .llms-prev-lesson h6.llms-pre-text:before { content: "\2190"; margin-right: .5em; } .single-lesson .llms-course-navigation .llms-back-to-course:first-child h6.llms-pre-text:before { content: "\2190"; margin-right: .5em; } .single-lesson .llms-course-navigation .llms-prev-lesson ~ .llms-back-to-course h6.llms-pre-text:after, .single-lesson .llms-course-navigation .llms-next-lesson h6.llms-pre-text:after { content: "\2192"; margin-left: 5px; } .single-lesson .llms-course-navigation .llms-prev-lesson ~ .llms-back-to-course .llms-lesson-title, .single-lesson .llms-course-navigation .llms-prev-lesson ~ .llms-back-to-course .llms-lesson-excerpt, .single-lesson .llms-course-navigation .llms-prev-lesson ~ .llms-back-to-course h6.llms-pre-text, .single-lesson .llms-course-navigation .llms-next-lesson .llms-lesson-title, .single-lesson .llms-course-navigation .llms-next-lesson .llms-lesson-excerpt, .single-lesson .llms-course-navigation .llms-next-lesson h6.llms-pre-text { text-align: right; } @media (max-width: 544px) { .single-lesson .llms-course-navigation { padding-top: 1.5em; } .single-lesson .llms-course-navigation .llms-course-nav { width: 100%; margin: 0; } .single-lesson .llms-course-navigation .llms-course-nav:first-child { margin-bottom: 1.5em; } }'; return Astra_Enqueue_Scripts::trim_css( $single_lesson_static_css ); } } endif; /** * Kicking this off by calling 'get_instance()' method */ if ( apply_filters( 'astra_enable_lifterlms_integration', true ) ) { Astra_LifterLMS::get_instance(); } PKemZRcompatibility/lifterlms/customizer/sections/class-astra-lifter-sidebar-configs.phpnu[ ASTRA_THEME_SETTINGS . '[lifterlms-sidebar-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => $section_general, 'default' => astra_get_option( 'lifterlms-sidebar-layout' ), 'priority' => 1, 'title' => $title_lifter_lms, 'choices' => array( 'default' => array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'no-sidebar' => array( 'label' => __( 'No Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'no-sidebar', false ) : '', ), 'left-sidebar' => array( 'label' => __( 'Left Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'left-sidebar', false ) : '', ), 'right-sidebar' => array( 'label' => __( 'Right Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'right-sidebar', false ) : '', ), ), 'description' => __( 'Sidebar will only apply when container layout is set to normal.', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), /** * Option: LifterLMS Sidebar Style. */ array( 'name' => ASTRA_THEME_SETTINGS . '[lifterlms-sidebar-style]', 'type' => 'control', 'control' => 'ast-selector', 'section' => $section_general, 'default' => astra_get_option( 'lifterlms-sidebar-style', 'default' ), 'priority' => 1, 'title' => $title_lifter_lms_sidebar_style, 'choices' => array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ), 'responsive' => false, 'renderAs' => 'text', 'divider' => array( 'ast_class' => 'ast-top-divider ast-top-spacing' ), ), /** * Option: Course/Lesson Sidebar Layout. */ array( 'name' => ASTRA_THEME_SETTINGS . '[lifterlms-course-lesson-sidebar-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => $section_courses, 'default' => astra_get_option( 'lifterlms-course-lesson-sidebar-layout' ), 'priority' => 1, 'title' => $title_lifter_lms_courses, 'choices' => array( 'default' => array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'no-sidebar' => array( 'label' => __( 'No Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'no-sidebar', false ) : '', ), 'left-sidebar' => array( 'label' => __( 'Left Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'left-sidebar', false ) : '', ), 'right-sidebar' => array( 'label' => __( 'Right Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'right-sidebar', false ) : '', ), ), 'description' => __( 'Sidebar will only apply when container layout is set to normal.', 'astra' ), 'divider' => $lifter_lms_section_divider ? array( 'ast_class' => 'ast-section-spacing ast-top-section-divider' ) : array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Course/Lesson Sidebar Style. */ array( 'name' => ASTRA_THEME_SETTINGS . '[lifterlms-course-lesson-sidebar-style]', 'type' => 'control', 'control' => 'ast-selector', 'section' => $section_courses, 'default' => astra_get_option( 'lifterlms-course-lesson-sidebar-style', 'default' ), 'priority' => 1, 'title' => $title_lifter_lms_courses_sidebar_style, 'choices' => array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ), 'responsive' => false, 'renderAs' => 'text', 'divider' => array( 'ast_class' => 'ast-top-divider ast-top-spacing' ), ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Lifter_Sidebar_Configs(); PKemZHz Ycompatibility/lifterlms/customizer/sections/layout/class-astra-lifter-general-configs.phpnu[ 'ast-bottom-divider' ); $section = 'section-lifterlms-general'; } else { $divider_array = array(); $section = 'section-lifterlms'; } $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[llms-course-grid-divider]', 'section' => $section, 'title' => __( 'Columns', 'astra' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 1, 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Course Columns */ array( 'name' => ASTRA_THEME_SETTINGS . '[llms-course-grid]', 'type' => 'control', 'control' => 'ast-responsive-slider', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'section' => $section, 'default' => astra_get_option( 'llms-course-grid', array( 'desktop' => 3, 'tablet' => 2, 'mobile' => 1, ) ), 'title' => __( 'Course Columns', 'astra' ), 'priority' => 1, 'input_attrs' => array( 'step' => 1, 'min' => 1, 'max' => 6, ), 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-section-divider' ), ), /** * Option: Membership Columns */ array( 'name' => ASTRA_THEME_SETTINGS . '[llms-membership-grid]', 'type' => 'control', 'control' => 'ast-responsive-slider', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'section' => $section, 'default' => astra_get_option( 'llms-membership-grid', array( 'desktop' => 3, 'tablet' => 2, 'mobile' => 1, ) ), 'title' => __( 'Membership Columns', 'astra' ), 'priority' => 1, 'input_attrs' => array( 'step' => 1, 'min' => 1, 'max' => 6, ), ), ); // Learn More link if Astra Pro is not activated. if ( astra_showcase_upgrade_notices() ) { $_configs[] = /** * Option: Learn More about Contant Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[llms-button-link]', 'type' => 'control', 'control' => 'ast-button-link', 'section' => $section, 'priority' => 999, 'title' => __( 'View Astra Pro Features', 'astra' ), 'url' => astra_get_pro_url( '/pricing/', 'free-theme', 'customizer', 'lifterlms' ), 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ); } return array_merge( $configurations, $_configs ); } } } new Astra_Lifter_General_Configs(); PKemZCD D Tcompatibility/lifterlms/customizer/sections/class-astra-lifter-container-configs.phpnu[ ASTRA_THEME_SETTINGS . '[lifterlms-ast-content-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => $section, 'default' => astra_get_option( 'lifterlms-ast-content-layout' ), 'priority' => 1, 'title' => __( 'Container Layout', 'astra' ), 'choices' => array( 'default' => array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'normal-width-container' => array( 'label' => __( 'Normal', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'normal-width-container', false ) : '', ), 'full-width-container' => array( 'label' => __( 'Full Width', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'full-width-container', false ) : '', ), ), 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-divider' ), ), /** * Option: Content Style Option. */ array( 'name' => ASTRA_THEME_SETTINGS . '[lifterlms-content-style]', 'type' => 'control', 'control' => 'ast-selector', 'section' => $section, 'default' => astra_get_option( 'lifterlms-content-style', 'default' ), 'priority' => 1, 'title' => __( 'Container Style', 'astra' ), 'description' => __( 'Container style will apply only when layout is set to either normal or narrow.', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ), 'renderAs' => 'text', 'responsive' => false, ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Lifter_Container_Configs(); PKemZRn)HHKcompatibility/lifterlms/customizer/class-astra-liferlms-section-configs.phpnu[ 'section-lifterlms', 'type' => 'section', 'priority' => 65, 'title' => __( 'LifterLMS', 'astra' ), ), /** * General Section */ array( 'name' => 'section-lifterlms-general', 'type' => 'section', 'title' => __( 'General', 'astra' ), 'section' => 'section-lifterlms', 'priority' => 0, ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Liferlms_Section_Configs(); PKhmZ&;;&compatibility/starter-content/home.phpnu[

Your Idea Matters!

Pulvinar enim ac tortor nulla facilisi tristique facilisi
elementum sollicitudin eget lorem.

Local Business

Lorem ipsum dolor consectetur adipiscing elit eiusmod.

Online Store

Lorem ipsum dolor consectetur adipiscing elit eiusmod.

Blogging

Lorem ipsum dolor consectetur adipiscing elit eiusmod.

Portfolio

Lorem ipsum dolor consectetur adipiscing elit eiusmod.

Our Services

Branding Design

Sem quis erat nibh id neque tincidunt molestie convallis ut nibh vel, lorem consequat ullamcorper.

Graphic Design

Sem quis erat nibh id neque tincidunt molestie convallis ut nibh vel, lorem consequat ullamcorper.

Web Development

Sem quis erat nibh id neque tincidunt molestie convallis ut nibh vel, lorem consequat ullamcorper.

We help teams build the business of their dreams

Et in risus egestas nec vitae odio ac nibh vestibulum volutpat aliquet aenean erat lobortis non.

Nibh egestas dictumst cursus est turpis quis tincidunt pulvinar maecenas eget massa vel, ante nam blandit egestas enim id quis sit maecenas id nunc tempus auctor orci, enim imperdiet proin nibh mattis.

“The best part is that Astra comes with hundreds of professionally designed templates for just about every industry, makes it super easy for non-techy users to build a website.”

Wade Warren

Why Choose Us

Passionate

Tempor ullamcorper urna, est, lectus amet sit tempor pretium mi sed morbi cras posuere sit ultrices bibendum augue sit ornare.

Professional

Tempor ullamcorper urna, est, lectus amet sit tempor pretium mi sed morbi cras posuere sit ultrices bibendum augue sit ornare.

Support

Tempor ullamcorper urna, est, lectus amet sit tempor pretium mi sed morbi cras posuere sit ultrices bibendum augue sit ornare.

Get a professional website today!

'; // @codingStandardsIgnoreEnd WordPressVIPMinimum.Security.Mustache.OutputNotation -- Required for starter content. return array( 'post_type' => 'page', 'post_title' => _x( 'Home', 'Theme starter content', 'astra' ), 'post_content' => $astra_default_home_content, ); PKjmZSaBB8compatibility/starter-content/astra-settings-export.jsonnu[{ "customizer-settings": { "astra-settings": { "theme-auto-version": "4.8.11", "blog-single-post-structure": [ "single-image", "single-title-meta" ], "blog-single-width": "default", "blog-single-max-width": 1200, "blog-single-meta": [ "comments", "category", "author" ], "blog-post-structure": [ "image", "category", "title", "title-meta", "excerpt" ], "blog-width": "default", "blog-max-width": 1200, "blog-post-content": "excerpt", "blog-meta": [ "comments", "category", "author" ], "text-color": "var(--ast-global-color-3)", "link-color": "var(--ast-global-color-0)", "theme-color": "var(--ast-global-color-0)", "link-h-color": "var(--ast-global-color-1)", "heading-base-color": "var(--ast-global-color-2)", "border-color": "var(--ast-global-color-6)", "footer-bg-obj": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll", "background-type": "", "background-media": "" }, "footer-color": "", "footer-link-color": "", "footer-link-h-color": "", "footer-adv-bg-obj": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll", "background-type": "", "background-media": "" }, "footer-adv-text-color": "", "footer-adv-link-color": "", "footer-adv-link-h-color": "", "footer-adv-wgt-title-color": "", "button-color": "var(--ast-global-color-2)", "secondary-button-color": "var(--ast-global-color-2)", "button-h-color": "var(--ast-global-color-2)", "secondary-button-h-color": "var(--ast-global-color-2)", "button-bg-color": "var(--ast-global-color-7)", "secondary-button-bg-color": "var(--ast-global-color-7)", "button-bg-h-color": "var(--ast-global-color-7)", "secondary-button-bg-h-color": "var(--ast-global-color-7)", "theme-button-padding": { "desktop": { "top": "20", "right": "40", "bottom": "20", "left": "40" }, "tablet": { "top": "18", "right": "32", "bottom": "18", "left": "32" }, "mobile": { "top": "15", "right": "28", "bottom": "15", "left": "28" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "secondary-theme-button-padding": { "desktop": { "top": "20", "right": "40", "bottom": "20", "left": "40" }, "tablet": { "top": "18", "right": "32", "bottom": "18", "left": "32" }, "mobile": { "top": "15", "right": "28", "bottom": "15", "left": "28" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "button-radius": 50, "theme-button-border-group-border-size": { "top": "0", "right": "0", "bottom": "0", "left": "0" }, "secondary-theme-button-border-group-border-size": { "top": "0", "right": "0", "bottom": "0", "left": "0" }, "footer-sml-layout": "footer-sml-layout-1", "footer-sml-section-1": "custom", "footer-sml-section-1-credit": "Copyright © [current_year] [site_title] | Powered by [theme_author]", "footer-sml-section-2": "", "footer-sml-section-2-credit": "Copyright © [current_year] [site_title] | Powered by [theme_author]", "footer-sml-dist-equal-align": true, "footer-sml-divider": 1, "footer-sml-divider-color": "#7a7a7a", "footer-layout-width": "content", "ast-header-retina-logo": "", "ast-header-logo-width": "", "ast-header-responsive-logo-width": { "desktop": "", "tablet": "", "mobile": "" }, "header-color-site-title": "", "header-color-h-site-title": "", "header-color-site-tagline": "", "display-site-title-responsive": { "desktop": false, "tablet": false, "mobile": false }, "display-site-tagline-responsive": { "desktop": false, "tablet": 0, "mobile": 0 }, "logo-title-inline": false, "disable-primary-nav": false, "header-layouts": "header-main-layout-1", "header-main-rt-section": "none", "header-display-outside-menu": false, "header-main-rt-section-html": "", "header-main-rt-section-button-text": "Button", "header-main-rt-section-button-link": "https://www.wpastra.com", "header-main-rt-section-button-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "header-main-rt-section-button-style": "theme-button", "header-main-rt-section-button-text-color": "", "header-main-rt-section-button-back-color": "", "header-main-rt-section-button-text-h-color": "", "header-main-rt-section-button-back-h-color": "", "header-main-rt-section-button-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" } }, "header-main-rt-section-button-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "header-main-sep": 1, "header-main-sep-color": "", "header-main-layout-width": "content", "primary-submenu-border": { "top": "2", "right": "0", "bottom": "0", "left": "0" }, "primary-submenu-item-border": false, "primary-submenu-b-color": "", "primary-submenu-item-b-color": "", "primary-header-button-font-family": "inherit", "primary-header-button-font-weight": "inherit", "primary-header-button-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "primary-header-button-text-transform": "", "primary-header-button-line-height": 1, "primary-header-button-letter-spacing": "", "header-main-menu-label": "", "header-main-menu-align": "inline", "header-main-submenu-container-animation": "", "mobile-header-breakpoint": "", "mobile-header-logo": "", "mobile-header-logo-width": "", "site-layout": "ast-full-width-layout", "site-content-width": 1200, "narrow-container-max-width": 750, "site-layout-outside-bg-obj-responsive": { "desktop": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll", "background-type": "", "background-media": "" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll", "background-type": "", "background-media": "" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll", "background-type": "", "background-media": "" } }, "content-bg-obj-responsive": { "desktop": { "background-color": "var(--ast-global-color-5)", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll", "background-type": "color", "background-media": "" }, "tablet": { "background-color": "var(--ast-global-color-5)", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll", "background-type": "color", "background-media": "" }, "mobile": { "background-color": "var(--ast-global-color-5)", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll", "background-type": "color", "background-media": "" } }, "wp-blocks-ui": "custom", "wp-blocks-global-padding": { "desktop": { "top": "100", "right": "80", "bottom": "100", "left": "80" }, "tablet": { "top": "50", "right": "50", "bottom": "50", "left": "50" }, "mobile": { "top": "50", "right": "30", "bottom": "50", "left": "30" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "site-content-layout": "content-boxed-container", "single-page-content-layout": "plain-container", "single-post-content-layout": "default", "archive-post-content-layout": "default", "body-font-family": "'Inter', sans-serif", "body-font-variant": "600", "body-font-weight": "inherit", "font-size-body": { "desktop": 18, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "body-line-height": "1.65", "para-margin-bottom": "", "underline-content-links": true, "body-text-transform": "", "headings-font-family": "'Plus Jakarta Sans', sans-serif", "headings-font-weight": "600", "headings-text-transform": "", "headings-line-height": "", "font-size-site-title": { "desktop": 35, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-size-site-tagline": { "desktop": 15, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-size-entry-title": { "desktop": 30, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "single-post-outside-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-size-archive-summary-title": { "desktop": 40, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-size-page-title": { "desktop": 20, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-size-h1": { "desktop": 64, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-size-h2": { "desktop": 48, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-size-h3": { "desktop": 24, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-size-h4": { "desktop": 20, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-size-h5": { "desktop": 18, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-size-h6": { "desktop": 15, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "site-sidebar-layout": "no-sidebar", "site-sidebar-width": 30, "single-page-sidebar-layout": "no-sidebar", "single-post-sidebar-layout": "default", "archive-post-sidebar-layout": "default", "footer-adv": "disabled", "footer-adv-border-width": "", "footer-adv-border-color": "#7a7a7a", "mobile-header-toggle-btn-style": "minimal", "hide-custom-menu-mobile": 1, "mobile-header-toggle-target": "icon", "load-google-fonts-locally": false, "preload-local-fonts": false, "enable-scroll-to-id": true, "enable-related-posts": false, "related-posts-title": "Related Posts", "releted-posts-title-alignment": "left", "related-posts-total-count": 2, "enable-related-posts-excerpt": false, "related-posts-excerpt-count": 25, "related-posts-based-on": "categories", "related-posts-order-by": "date", "related-posts-order": "asc", "related-posts-grid-responsive": { "desktop": "2-equal", "tablet": "2-equal", "mobile": "full" }, "related-posts-structure": [ "featured-image", "title-meta" ], "related-posts-meta-structure": [ "comments", "category", "author" ], "related-posts-text-color": "", "related-posts-link-color": "", "related-posts-title-color": "", "related-posts-background-color": "", "related-posts-meta-color": "", "related-posts-link-hover-color": "", "related-posts-meta-link-hover-color": "", "related-posts-section-title-font-family": "inherit", "related-posts-section-title-font-weight": "inherit", "related-posts-section-title-text-transform": "", "related-posts-section-title-line-height": "", "related-posts-section-title-font-size": { "desktop": "30", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "related-posts-title-font-family": "inherit", "related-posts-title-font-weight": "inherit", "related-posts-title-text-transform": "", "related-posts-title-line-height": "1", "related-posts-title-font-size": { "desktop": "20", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "related-posts-meta-font-family": "inherit", "related-posts-meta-font-weight": "inherit", "related-posts-meta-text-transform": "", "related-posts-meta-line-height": "", "related-posts-meta-font-size": { "desktop": "14", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "related-posts-content-font-family": "inherit", "related-posts-content-font-weight": "inherit", "related-posts-content-text-transform": "", "related-posts-content-line-height": "", "related-posts-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "transparent-header-logo": "", "transparent-header-retina-logo": "", "different-transparent-logo": 0, "different-transparent-retina-logo": 0, "transparent-header-logo-width": { "desktop": 150, "tablet": 120, "mobile": 100 }, "transparent-header-enable": 0, "transparent-header-disable-archive": 1, "transparent-header-disable-latest-posts-index": 1, "transparent-header-on-devices": "both", "transparent-header-main-sep": 0, "transparent-header-main-sep-color": "", "transparent-header-bg-color": "", "transparent-header-color-site-title": "", "transparent-header-color-h-site-title": "", "transparent-menu-bg-color": "", "transparent-menu-color": "", "transparent-menu-h-color": "", "transparent-submenu-bg-color": "", "transparent-submenu-color": "", "transparent-submenu-h-color": "", "transparent-header-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "transparent-header-color-site-title-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "transparent-header-color-h-site-title-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "transparent-menu-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "transparent-menu-color-responsive": { "desktop": "", "tablet": "var(--ast-global-color-2)", "mobile": "" }, "transparent-menu-h-color-responsive": { "desktop": "", "tablet": "var(--ast-global-color-0)", "mobile": "" }, "transparent-submenu-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "transparent-submenu-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "transparent-submenu-h-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "transparent-content-section-text-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "transparent-content-section-link-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "transparent-content-section-link-h-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "breadcrumb-font-family": "inherit", "breadcrumb-font-weight": "inherit", "breadcrumb-text-transform": "", "breadcrumb-text-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "breadcrumb-active-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "breadcrumb-hover-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "breadcrumb-separator-color": { "desktop": "", "tablet": "", "mobile": "" }, "breadcrumb-bg-color": { "desktop": "", "tablet": "", "mobile": "" }, "breadcrumb-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "breadcrumb-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "breadcrumb-separator-selector": "\\003E", "breadcrumb-separator": "\\00bb", "h1-color": "", "h2-color": "", "h3-color": "", "h4-color": "", "h5-color": "", "h6-color": "", "font-family-h1": "inherit", "font-weight-h1": "inherit", "font-extras-h1": { "line-height": "1.4", "line-height-unit": "em", "letter-spacing": "", "letter-spacing-unit": "px", "text-transform": "", "text-decoration": "" }, "font-family-h2": "inherit", "font-weight-h2": "inherit", "font-extras-h2": { "line-height": "1.3", "line-height-unit": "em", "letter-spacing": "", "letter-spacing-unit": "px", "text-transform": "", "text-decoration": "" }, "font-family-h3": "inherit", "font-weight-h3": "inherit", "font-extras-h3": { "line-height": "1.3", "line-height-unit": "em", "letter-spacing": "", "letter-spacing-unit": "px", "text-transform": "", "text-decoration": "" }, "font-family-h4": "inherit", "font-weight-h4": "inherit", "font-extras-h4": { "line-height": "1.2", "line-height-unit": "em", "letter-spacing": "", "letter-spacing-unit": "px", "text-transform": "", "text-decoration": "" }, "font-family-h5": "inherit", "font-weight-h5": "inherit", "font-extras-h5": { "line-height": "1.2", "line-height-unit": "em", "letter-spacing": "", "letter-spacing-unit": "px", "text-transform": "", "text-decoration": "" }, "font-family-h6": "inherit", "font-weight-h6": "inherit", "font-extras-h6": { "line-height": "1.25", "line-height-unit": "em", "letter-spacing": "", "letter-spacing-unit": "px", "text-transform": "", "text-decoration": "" }, "header-menu1-font-extras": { "line-height": "1.6", "line-height-unit": "em", "letter-spacing": "", "letter-spacing-unit": "px", "text-transform": "", "text-decoration": "" }, "font-weight-button": "600", "secondary-font-weight-button": "600", "font-family-button": "inherit", "secondary-font-family-button": "inherit", "font-size-button": { "desktop": 20, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "secondary-font-size-button": { "desktop": 20, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "text-transform-button": "", "theme-btn-line-height": 1, "theme-btn-letter-spacing": "", "header-desktop-items": { "popup": { "popup_content": [ "mobile-menu" ] }, "above": { "above_left": [], "above_left_center": [], "above_center": [], "above_right_center": [], "above_right": [] }, "primary": { "primary_left": [ "logo" ], "primary_left_center": [], "primary_center": [], "primary_right_center": [], "primary_right": [ "menu-1", "social-icons-1" ] }, "below": { "below_left": [], "below_left_center": [], "below_center": [], "below_right_center": [], "below_right": [] }, "flag": false }, "header-mobile-items": { "popup": { "popup_content": [ "mobile-menu" ] }, "above": { "above_left": [], "above_center": [], "above_right": [] }, "primary": { "primary_left": [ "logo" ], "primary_center": [], "primary_right": [ "mobile-trigger" ] }, "below": { "below_left": [], "below_center": [], "below_right": [] }, "flag": true }, "hb-header-main-layout-width": "content", "hb-header-height": { "desktop": 110, "tablet": 100, "mobile": 80 }, "hb-stack": { "desktop": "stack", "tablet": "stack", "mobile": "stack" }, "hb-header-main-sep": 0, "hb-header-main-sep-color": "#eaeaea", "hb-header-main-menu-align": "inline", "hb-header-bg-obj-responsive": { "desktop": { "background-color": "var(--ast-global-color-0)", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll", "background-type": "color" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "hb-header-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "1.5", "right": "", "bottom": "1.5", "left": "" }, "mobile": { "top": "1", "right": "", "bottom": "1", "left": "" }, "desktop-unit": "px", "tablet-unit": "em", "mobile-unit": "em" }, "hba-header-layout": "above-header-layout-1", "hba-header-height": { "desktop": 50, "tablet": "", "mobile": "" }, "hba-stack": { "desktop": "stack", "tablet": "stack", "mobile": "stack" }, "hba-header-separator": 1, "hba-header-bottom-border-color": "#eaeaea", "hba-header-bg-obj-responsive": { "desktop": { "background-color": "#ffffff", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "hba-header-text-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "hba-header-link-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "hba-header-link-h-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "hba-header-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "0", "right": "", "bottom": "0", "left": "" }, "mobile": { "top": "0.5", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "em" }, "hbb-header-layout": "below-header-layout-1", "hbb-header-height": { "desktop": 60, "tablet": "", "mobile": "" }, "hbb-stack": { "desktop": "stack", "tablet": "stack", "mobile": "stack" }, "hbb-header-separator": 1, "hbb-header-bottom-border-color": "#eaeaea", "hbb-header-bg-obj-responsive": { "desktop": { "background-color": "#eeeeee", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "hbb-header-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "1", "right": "", "bottom": "1", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "em", "mobile-unit": "px" }, "section-footer-builder-layout-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-footer-builder-layout-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-above-header-builder-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-above-header-builder-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-below-header-builder-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-below-header-builder-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-header-mobile-trigger-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-primary-header-builder-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-primary-header-builder-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "title_tagline-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-header-search-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-account-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-mobile-menu-menu-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "10", "right": "15", "bottom": "10", "left": "15" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-header-mobile-menu-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-above-footer-builder-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-above-footer-builder-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-below-footer-builder-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-footer-copyright-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-footer-menu-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-primary-footer-builder-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-primary-footer-builder-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-header-woo-cart-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-header-woo-cart-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button1-text": "Button", "header-button1-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "header-button1-font-family": "inherit", "header-button1-font-weight": "inherit", "header-button1-text-transform": "", "header-button1-line-height": "", "header-button1-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button1-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button1-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button1-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button1-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button1-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button1-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "header-button1-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button1-border-radius": "", "section-hb-button-1-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-hb-button-1-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sticky-header-button1-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button1-text": "Button", "footer-button1-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "footer-button1-font-family": "inherit", "footer-button1-font-weight": "inherit", "footer-button1-text-transform": "", "footer-button1-line-height": "", "footer-button1-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button1-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button1-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button1-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button1-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button1-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button1-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "footer-button1-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button1-border-radius": "", "footer-button-1-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-button-1-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-button-1-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-html-1": "Insert HTML text here.", "header-html-1color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-1link-color": { "desktop": "rgba(242,245,247,0.76)", "tablet": "", "mobile": "" }, "header-html-1link-h-color": { "desktop": "var(--ast-global-color-5)", "tablet": "", "mobile": "" }, "font-size-section-hb-html-1": { "desktop": 15, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-weight-section-hb-html-1": "inherit", "font-family-section-hb-html-1": "inherit", "line-height-section-hb-html-1": "", "text-transform-section-hb-html-1": "", "section-hb-html-1-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-1": "Insert HTML text here.", "footer-html-1color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-1link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-1link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-fb-html-1": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-1-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "font-weight-section-fb-html-1": "inherit", "font-family-section-fb-html-1": "inherit", "text-transform-section-fb-html-1": "", "line-height-section-fb-html-1": "", "section-fb-html-1-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-1-space": { "desktop": 25, "tablet": "", "mobile": "" }, "header-social-1-bg-space": "", "header-social-1-size": { "desktop": 18, "tablet": "", "mobile": "" }, "header-social-1-radius": "", "header-social-1-color": { "desktop": "var(--ast-global-color-4)" }, "header-social-1-h-color": { "desktop": "var(--ast-global-color-4)" }, "header-social-1-bg-color": "", "header-social-1-bg-h-color": "", "header-social-1-label-toggle": false, "header-social-1-color-type": "custom", "font-size-section-hb-social-icons-1": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-icons-1": { "items": [ { "id": "instagram", "enabled": true, "source": "icon", "url": "#", "color": "#8a3ab9", "background": "transparent", "icon": "instagram-square", "label": "Instagram" }, { "id": "facebook", "enabled": true, "source": "icon", "url": "#", "color": "#557dbc", "background": "transparent", "icon": "facebook-round", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "#", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" } ], "flag": true }, "section-hb-social-icons-1-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-1-space": { "desktop": "", "tablet": "", "mobile": "" }, "footer-social-1-bg-space": "", "footer-social-1-size": { "desktop": 18, "tablet": "", "mobile": "" }, "footer-social-1-radius": "", "footer-social-1-color": "", "footer-social-1-h-color": "", "footer-social-1-bg-color": "", "footer-social-1-bg-h-color": "", "footer-social-1-label-toggle": false, "footer-social-1-color-type": "custom", "font-size-section-fb-social-icons-1": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-icons-1": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "footer-social-1-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-social-icons-1-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-1-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-1-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-1-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-1-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-1-font-family": "inherit", "header-widget-1-font-weight": "inherit", "header-widget-1-text-transform": "", "header-widget-1-line-height": "", "header-widget-1-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-1-content-font-family": "inherit", "header-widget-1-content-font-weight": "inherit", "header-widget-1-content-text-transform": "", "header-widget-1-content-line-height": "", "header-widget-1-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sidebar-widgets-header-widget-1-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-1-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-1-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-1-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-1-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-1-font-family": "inherit", "footer-widget-1-font-weight": "inherit", "footer-widget-1-text-transform": "", "footer-widget-1-line-height": "", "footer-widget-1-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-1-content-font-family": "inherit", "footer-widget-1-content-font-weight": "inherit", "footer-widget-1-content-text-transform": "", "footer-widget-1-content-line-height": "", "footer-widget-1-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-alignment-1": { "desktop": "left", "tablet": "center", "mobile": "center" }, "sidebar-widgets-footer-widget-1-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu1-bg-color": "", "header-menu1-color": "", "header-menu1-h-bg-color": "", "header-menu1-h-color": "", "header-menu1-a-bg-color": "", "header-menu1-a-color": "", "header-menu1-bg-obj-responsive": { "desktop": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "header-menu1-color-responsive": { "desktop": "rgba(242,245,247,0.76)", "tablet": "", "mobile": "" }, "header-menu1-h-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu1-h-color-responsive": { "desktop": "var(--ast-global-color-5)", "tablet": "", "mobile": "" }, "header-menu1-a-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu1-a-color-responsive": { "desktop": "var(--ast-global-color-5)", "tablet": "", "mobile": "" }, "header-menu1-menu-hover-animation": "", "header-menu1-submenu-container-animation": "", "section-hb-menu-1-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu1-menu-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu1-submenu-item-border": false, "header-menu1-submenu-item-b-size": "1", "header-menu1-submenu-item-b-color": "#eaeaea", "header-menu1-submenu-border-radius": "", "header-menu1-submenu-top-offset": "", "header-menu1-submenu-width": "", "header-menu1-submenu-border": { "top": 2, "bottom": 0, "left": 0, "right": 0 }, "header-menu1-menu-stack-on-mobile": true, "header-menu1-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu1-font-weight": "inherit", "header-menu1-font-family": "inherit", "header-menu1-text-transform": "", "header-menu1-line-height": "", "section-hb-divider-1-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-divider-1-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button2-text": "Button", "header-button2-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "header-button2-font-family": "inherit", "header-button2-font-weight": "inherit", "header-button2-text-transform": "", "header-button2-line-height": "", "header-button2-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button2-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button2-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button2-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button2-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button2-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button2-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "header-button2-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button2-border-radius": "", "section-hb-button-2-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-hb-button-2-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sticky-header-button2-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button2-text": "Button", "footer-button2-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "footer-button2-font-family": "inherit", "footer-button2-font-weight": "inherit", "footer-button2-text-transform": "", "footer-button2-line-height": "", "footer-button2-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button2-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button2-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button2-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button2-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button2-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button2-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "footer-button2-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button2-border-radius": "", "footer-button-2-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-button-2-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-button-2-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-html-2": "Insert HTML text here.", "header-html-2color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-2link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-2link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-hb-html-2": { "desktop": 15, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-weight-section-hb-html-2": "inherit", "font-family-section-hb-html-2": "inherit", "line-height-section-hb-html-2": "", "text-transform-section-hb-html-2": "", "section-hb-html-2-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-2": "Insert HTML text here.", "footer-html-2color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-2link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-2link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-fb-html-2": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-2-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "font-weight-section-fb-html-2": "inherit", "font-family-section-fb-html-2": "inherit", "text-transform-section-fb-html-2": "", "line-height-section-fb-html-2": "", "section-fb-html-2-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-2-space": { "desktop": "", "tablet": "", "mobile": "" }, "header-social-2-bg-space": "", "header-social-2-size": { "desktop": 18, "tablet": "", "mobile": "" }, "header-social-2-radius": "", "header-social-2-color": "", "header-social-2-h-color": "", "header-social-2-bg-color": "", "header-social-2-bg-h-color": "", "header-social-2-label-toggle": false, "header-social-2-color-type": "custom", "font-size-section-hb-social-icons-2": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-icons-2": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "section-hb-social-icons-2-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-2-space": { "desktop": "", "tablet": "", "mobile": "" }, "footer-social-2-bg-space": "", "footer-social-2-size": { "desktop": 18, "tablet": "", "mobile": "" }, "footer-social-2-radius": "", "footer-social-2-color": "", "footer-social-2-h-color": "", "footer-social-2-bg-color": "", "footer-social-2-bg-h-color": "", "footer-social-2-label-toggle": false, "footer-social-2-color-type": "custom", "font-size-section-fb-social-icons-2": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-icons-2": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "footer-social-2-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-social-icons-2-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-2-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-2-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-2-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-2-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-2-font-family": "inherit", "header-widget-2-font-weight": "inherit", "header-widget-2-text-transform": "", "header-widget-2-line-height": "", "header-widget-2-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-2-content-font-family": "inherit", "header-widget-2-content-font-weight": "inherit", "header-widget-2-content-text-transform": "", "header-widget-2-content-line-height": "", "header-widget-2-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sidebar-widgets-header-widget-2-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-2-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-2-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-2-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-2-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-2-font-family": "inherit", "footer-widget-2-font-weight": "inherit", "footer-widget-2-text-transform": "", "footer-widget-2-line-height": "", "footer-widget-2-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-2-content-font-family": "inherit", "footer-widget-2-content-font-weight": "inherit", "footer-widget-2-content-text-transform": "", "footer-widget-2-content-line-height": "", "footer-widget-2-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-alignment-2": { "desktop": "left", "tablet": "center", "mobile": "center" }, "sidebar-widgets-footer-widget-2-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu2-bg-color": "", "header-menu2-color": "", "header-menu2-h-bg-color": "", "header-menu2-h-color": "", "header-menu2-a-bg-color": "", "header-menu2-a-color": "", "header-menu2-bg-obj-responsive": { "desktop": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "header-menu2-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu2-h-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu2-h-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu2-a-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu2-a-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu2-menu-hover-animation": "", "header-menu2-submenu-container-animation": "", "section-hb-menu-2-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu2-menu-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu2-submenu-item-border": false, "header-menu2-submenu-item-b-size": "1", "header-menu2-submenu-item-b-color": "#eaeaea", "header-menu2-submenu-border-radius": "", "header-menu2-submenu-top-offset": "", "header-menu2-submenu-width": "", "header-menu2-submenu-border": { "top": 2, "bottom": 0, "left": 0, "right": 0 }, "header-menu2-menu-stack-on-mobile": true, "header-menu2-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu2-font-weight": "inherit", "header-menu2-font-family": "inherit", "header-menu2-text-transform": "", "header-menu2-line-height": "", "section-hb-divider-2-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-divider-2-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button3-text": "Button", "header-button3-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "header-button3-font-family": "inherit", "header-button3-font-weight": "inherit", "header-button3-text-transform": "", "header-button3-line-height": "", "header-button3-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button3-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button3-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button3-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button3-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button3-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button3-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "header-button3-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button3-border-radius": "", "section-hb-button-3-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-hb-button-3-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sticky-header-button3-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button3-text": "Button", "footer-button3-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "footer-button3-font-family": "inherit", "footer-button3-font-weight": "inherit", "footer-button3-text-transform": "", "footer-button3-line-height": "", "footer-button3-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button3-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button3-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button3-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button3-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button3-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button3-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "footer-button3-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button3-border-radius": "", "footer-button-3-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-button-3-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-button-3-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-html-3": "Insert HTML text here.", "header-html-3color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-3link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-3link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-hb-html-3": { "desktop": 15, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-weight-section-hb-html-3": "inherit", "font-family-section-hb-html-3": "inherit", "line-height-section-hb-html-3": "", "text-transform-section-hb-html-3": "", "section-hb-html-3-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-3": "Insert HTML text here.", "footer-html-3color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-3link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-3link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-fb-html-3": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-3-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "font-weight-section-fb-html-3": "inherit", "font-family-section-fb-html-3": "inherit", "text-transform-section-fb-html-3": "", "line-height-section-fb-html-3": "", "section-fb-html-3-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-3-space": { "desktop": "", "tablet": "", "mobile": "" }, "header-social-3-bg-space": "", "header-social-3-size": { "desktop": 18, "tablet": "", "mobile": "" }, "header-social-3-radius": "", "header-social-3-color": "", "header-social-3-h-color": "", "header-social-3-bg-color": "", "header-social-3-bg-h-color": "", "header-social-3-label-toggle": false, "header-social-3-color-type": "custom", "font-size-section-hb-social-icons-3": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-icons-3": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "section-hb-social-icons-3-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-3-space": { "desktop": "", "tablet": "", "mobile": "" }, "footer-social-3-bg-space": "", "footer-social-3-size": { "desktop": 18, "tablet": "", "mobile": "" }, "footer-social-3-radius": "", "footer-social-3-color": "", "footer-social-3-h-color": "", "footer-social-3-bg-color": "", "footer-social-3-bg-h-color": "", "footer-social-3-label-toggle": false, "footer-social-3-color-type": "custom", "font-size-section-fb-social-icons-3": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-icons-3": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "footer-social-3-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-social-icons-3-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-3-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-3-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-3-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-3-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-3-font-family": "inherit", "header-widget-3-font-weight": "inherit", "header-widget-3-text-transform": "", "header-widget-3-line-height": "", "header-widget-3-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-3-content-font-family": "inherit", "header-widget-3-content-font-weight": "inherit", "header-widget-3-content-text-transform": "", "header-widget-3-content-line-height": "", "header-widget-3-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sidebar-widgets-header-widget-3-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-3-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-3-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-3-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-3-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-3-font-family": "inherit", "footer-widget-3-font-weight": "inherit", "footer-widget-3-text-transform": "", "footer-widget-3-line-height": "", "footer-widget-3-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-3-content-font-family": "inherit", "footer-widget-3-content-font-weight": "inherit", "footer-widget-3-content-text-transform": "", "footer-widget-3-content-line-height": "", "footer-widget-3-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-alignment-3": { "desktop": "left", "tablet": "center", "mobile": "center" }, "sidebar-widgets-footer-widget-3-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu3-bg-color": "", "header-menu3-color": "", "header-menu3-h-bg-color": "", "header-menu3-h-color": "", "header-menu3-a-bg-color": "", "header-menu3-a-color": "", "header-menu3-bg-obj-responsive": { "desktop": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "header-menu3-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu3-h-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu3-h-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu3-a-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu3-a-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu3-menu-hover-animation": "", "header-menu3-submenu-container-animation": "", "section-hb-menu-3-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu3-menu-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu3-submenu-item-border": false, "header-menu3-submenu-item-b-size": "1", "header-menu3-submenu-item-b-color": "#eaeaea", "header-menu3-submenu-border-radius": "", "header-menu3-submenu-top-offset": "", "header-menu3-submenu-width": "", "header-menu3-submenu-border": { "top": 2, "bottom": 0, "left": 0, "right": 0 }, "header-menu3-menu-stack-on-mobile": true, "header-menu3-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu3-font-weight": "inherit", "header-menu3-font-family": "inherit", "header-menu3-text-transform": "", "header-menu3-line-height": "", "section-hb-divider-3-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-divider-3-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button4-text": "Button", "header-button4-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "header-button4-font-family": "inherit", "header-button4-font-weight": "inherit", "header-button4-text-transform": "", "header-button4-line-height": "", "header-button4-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button4-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button4-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button4-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button4-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button4-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button4-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "header-button4-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button4-border-radius": "", "section-hb-button-4-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-hb-button-4-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sticky-header-button4-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button4-text": "Button", "footer-button4-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "footer-button4-font-family": "inherit", "footer-button4-font-weight": "inherit", "footer-button4-text-transform": "", "footer-button4-line-height": "", "footer-button4-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button4-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button4-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button4-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button4-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button4-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button4-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "footer-button4-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button4-border-radius": "", "footer-button-4-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-button-4-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-button-4-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-html-4": "Insert HTML text here.", "header-html-4color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-4link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-4link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-hb-html-4": { "desktop": 15, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-weight-section-hb-html-4": "inherit", "font-family-section-hb-html-4": "inherit", "line-height-section-hb-html-4": "", "text-transform-section-hb-html-4": "", "section-hb-html-4-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-4": "Insert HTML text here.", "footer-html-4color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-4link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-4link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-fb-html-4": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-4-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "font-weight-section-fb-html-4": "inherit", "font-family-section-fb-html-4": "inherit", "text-transform-section-fb-html-4": "", "line-height-section-fb-html-4": "", "section-fb-html-4-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-4-space": { "desktop": "", "tablet": "", "mobile": "" }, "header-social-4-bg-space": "", "header-social-4-size": { "desktop": 18, "tablet": "", "mobile": "" }, "header-social-4-radius": "", "header-social-4-color": "", "header-social-4-h-color": "", "header-social-4-bg-color": "", "header-social-4-bg-h-color": "", "header-social-4-label-toggle": false, "header-social-4-color-type": "custom", "font-size-section-hb-social-icons-4": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-icons-4": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "section-hb-social-icons-4-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-4-space": { "desktop": "", "tablet": "", "mobile": "" }, "footer-social-4-bg-space": "", "footer-social-4-size": { "desktop": 18, "tablet": "", "mobile": "" }, "footer-social-4-radius": "", "footer-social-4-color": "", "footer-social-4-h-color": "", "footer-social-4-bg-color": "", "footer-social-4-bg-h-color": "", "footer-social-4-label-toggle": false, "footer-social-4-color-type": "custom", "font-size-section-fb-social-icons-4": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-icons-4": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "footer-social-4-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-social-icons-4-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-4-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-4-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-4-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-4-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-4-font-family": "inherit", "header-widget-4-font-weight": "inherit", "header-widget-4-text-transform": "", "header-widget-4-line-height": "", "header-widget-4-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-4-content-font-family": "inherit", "header-widget-4-content-font-weight": "inherit", "header-widget-4-content-text-transform": "", "header-widget-4-content-line-height": "", "header-widget-4-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sidebar-widgets-header-widget-4-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-4-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-4-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-4-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-4-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-4-font-family": "inherit", "footer-widget-4-font-weight": "inherit", "footer-widget-4-text-transform": "", "footer-widget-4-line-height": "", "footer-widget-4-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-4-content-font-family": "inherit", "footer-widget-4-content-font-weight": "inherit", "footer-widget-4-content-text-transform": "", "footer-widget-4-content-line-height": "", "footer-widget-4-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-alignment-4": { "desktop": "left", "tablet": "center", "mobile": "center" }, "sidebar-widgets-footer-widget-4-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu4-bg-color": "", "header-menu4-color": "", "header-menu4-h-bg-color": "", "header-menu4-h-color": "", "header-menu4-a-bg-color": "", "header-menu4-a-color": "", "header-menu4-bg-obj-responsive": { "desktop": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "header-menu4-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu4-h-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu4-h-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu4-a-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu4-a-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu4-menu-hover-animation": "", "header-menu4-submenu-container-animation": "", "section-hb-menu-4-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu4-menu-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu4-submenu-item-border": false, "header-menu4-submenu-item-b-size": "1", "header-menu4-submenu-item-b-color": "#eaeaea", "header-menu4-submenu-border-radius": "", "header-menu4-submenu-top-offset": "", "header-menu4-submenu-width": "", "header-menu4-submenu-border": { "top": 2, "bottom": 0, "left": 0, "right": 0 }, "header-menu4-menu-stack-on-mobile": true, "header-menu4-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu4-font-weight": "inherit", "header-menu4-font-family": "inherit", "header-menu4-text-transform": "", "header-menu4-line-height": "", "section-hb-divider-4-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-divider-4-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button5-text": "Button", "header-button5-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "header-button5-font-family": "inherit", "header-button5-font-weight": "inherit", "header-button5-text-transform": "", "header-button5-line-height": "", "header-button5-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button5-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button5-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button5-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button5-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button5-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button5-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "header-button5-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button5-border-radius": "", "section-hb-button-5-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-hb-button-5-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sticky-header-button5-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button5-text": "Button", "footer-button5-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "footer-button5-font-family": "inherit", "footer-button5-font-weight": "inherit", "footer-button5-text-transform": "", "footer-button5-line-height": "", "footer-button5-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button5-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button5-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button5-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button5-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button5-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button5-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "footer-button5-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button5-border-radius": "", "footer-button-5-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-button-5-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-button-5-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-html-5": "Insert HTML text here.", "header-html-5color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-5link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-5link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-hb-html-5": { "desktop": 15, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-weight-section-hb-html-5": "inherit", "font-family-section-hb-html-5": "inherit", "line-height-section-hb-html-5": "", "text-transform-section-hb-html-5": "", "section-hb-html-5-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-5": "Insert HTML text here.", "footer-html-5color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-5link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-5link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-fb-html-5": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-5-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "font-weight-section-fb-html-5": "inherit", "font-family-section-fb-html-5": "inherit", "text-transform-section-fb-html-5": "", "line-height-section-fb-html-5": "", "section-fb-html-5-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-5-space": { "desktop": "", "tablet": "", "mobile": "" }, "header-social-5-bg-space": "", "header-social-5-size": { "desktop": 18, "tablet": "", "mobile": "" }, "header-social-5-radius": "", "header-social-5-color": "", "header-social-5-h-color": "", "header-social-5-bg-color": "", "header-social-5-bg-h-color": "", "header-social-5-label-toggle": false, "header-social-5-color-type": "custom", "font-size-section-hb-social-icons-5": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-icons-5": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "section-hb-social-icons-5-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-5-space": { "desktop": "", "tablet": "", "mobile": "" }, "footer-social-5-bg-space": "", "footer-social-5-size": { "desktop": 18, "tablet": "", "mobile": "" }, "footer-social-5-radius": "", "footer-social-5-color": "", "footer-social-5-h-color": "", "footer-social-5-bg-color": "", "footer-social-5-bg-h-color": "", "footer-social-5-label-toggle": false, "footer-social-5-color-type": "custom", "font-size-section-fb-social-icons-5": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-icons-5": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "footer-social-5-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-social-icons-5-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-5-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-5-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-5-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-5-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-5-font-family": "inherit", "header-widget-5-font-weight": "inherit", "header-widget-5-text-transform": "", "header-widget-5-line-height": "", "header-widget-5-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-5-content-font-family": "inherit", "header-widget-5-content-font-weight": "inherit", "header-widget-5-content-text-transform": "", "header-widget-5-content-line-height": "", "header-widget-5-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sidebar-widgets-header-widget-5-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-5-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-5-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-5-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-5-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-5-font-family": "inherit", "footer-widget-5-font-weight": "inherit", "footer-widget-5-text-transform": "", "footer-widget-5-line-height": "", "footer-widget-5-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-5-content-font-family": "inherit", "footer-widget-5-content-font-weight": "inherit", "footer-widget-5-content-text-transform": "", "footer-widget-5-content-line-height": "", "footer-widget-5-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-alignment-5": { "desktop": "left", "tablet": "center", "mobile": "center" }, "sidebar-widgets-footer-widget-5-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu5-bg-color": "", "header-menu5-color": "", "header-menu5-h-bg-color": "", "header-menu5-h-color": "", "header-menu5-a-bg-color": "", "header-menu5-a-color": "", "header-menu5-bg-obj-responsive": { "desktop": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "header-menu5-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu5-h-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu5-h-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu5-a-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu5-a-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu5-menu-hover-animation": "", "header-menu5-submenu-container-animation": "", "section-hb-menu-5-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu5-menu-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu5-submenu-item-border": false, "header-menu5-submenu-item-b-size": "1", "header-menu5-submenu-item-b-color": "#eaeaea", "header-menu5-submenu-border-radius": "", "header-menu5-submenu-top-offset": "", "header-menu5-submenu-width": "", "header-menu5-submenu-border": { "top": 2, "bottom": 0, "left": 0, "right": 0 }, "header-menu5-menu-stack-on-mobile": true, "header-menu5-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu5-font-weight": "inherit", "header-menu5-font-family": "inherit", "header-menu5-text-transform": "", "header-menu5-line-height": "", "section-hb-divider-5-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-divider-5-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button6-text": "Button", "header-button6-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "header-button6-font-family": "inherit", "header-button6-font-weight": "inherit", "header-button6-text-transform": "", "header-button6-line-height": "", "header-button6-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button6-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button6-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button6-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button6-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button6-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button6-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "header-button6-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button6-border-radius": "", "section-hb-button-6-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-hb-button-6-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sticky-header-button6-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button6-text": "Button", "footer-button6-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "footer-button6-font-family": "inherit", "footer-button6-font-weight": "inherit", "footer-button6-text-transform": "", "footer-button6-line-height": "", "footer-button6-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button6-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button6-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button6-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button6-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button6-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button6-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "footer-button6-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button6-border-radius": "", "footer-button-6-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-button-6-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-button-6-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-html-6": "Insert HTML text here.", "header-html-6color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-6link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-6link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-hb-html-6": { "desktop": 15, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-weight-section-hb-html-6": "inherit", "font-family-section-hb-html-6": "inherit", "line-height-section-hb-html-6": "", "text-transform-section-hb-html-6": "", "section-hb-html-6-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-6": "Insert HTML text here.", "footer-html-6color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-6link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-6link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-fb-html-6": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-6-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "font-weight-section-fb-html-6": "inherit", "font-family-section-fb-html-6": "inherit", "text-transform-section-fb-html-6": "", "line-height-section-fb-html-6": "", "section-fb-html-6-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-6-space": { "desktop": "", "tablet": "", "mobile": "" }, "header-social-6-bg-space": "", "header-social-6-size": { "desktop": 18, "tablet": "", "mobile": "" }, "header-social-6-radius": "", "header-social-6-color": "", "header-social-6-h-color": "", "header-social-6-bg-color": "", "header-social-6-bg-h-color": "", "header-social-6-label-toggle": false, "header-social-6-color-type": "custom", "font-size-section-hb-social-icons-6": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-icons-6": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "section-hb-social-icons-6-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-6-space": { "desktop": "", "tablet": "", "mobile": "" }, "footer-social-6-bg-space": "", "footer-social-6-size": { "desktop": 18, "tablet": "", "mobile": "" }, "footer-social-6-radius": "", "footer-social-6-color": "", "footer-social-6-h-color": "", "footer-social-6-bg-color": "", "footer-social-6-bg-h-color": "", "footer-social-6-label-toggle": false, "footer-social-6-color-type": "custom", "font-size-section-fb-social-icons-6": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-icons-6": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "footer-social-6-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-social-icons-6-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-6-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-6-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-6-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-6-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-6-font-family": "inherit", "header-widget-6-font-weight": "inherit", "header-widget-6-text-transform": "", "header-widget-6-line-height": "", "header-widget-6-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-6-content-font-family": "inherit", "header-widget-6-content-font-weight": "inherit", "header-widget-6-content-text-transform": "", "header-widget-6-content-line-height": "", "header-widget-6-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sidebar-widgets-header-widget-6-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-6-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-6-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-6-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-6-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-6-font-family": "inherit", "footer-widget-6-font-weight": "inherit", "footer-widget-6-text-transform": "", "footer-widget-6-line-height": "", "footer-widget-6-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-6-content-font-family": "inherit", "footer-widget-6-content-font-weight": "inherit", "footer-widget-6-content-text-transform": "", "footer-widget-6-content-line-height": "", "footer-widget-6-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-alignment-6": { "desktop": "left", "tablet": "center", "mobile": "center" }, "sidebar-widgets-footer-widget-6-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu6-bg-color": "", "header-menu6-color": "", "header-menu6-h-bg-color": "", "header-menu6-h-color": "", "header-menu6-a-bg-color": "", "header-menu6-a-color": "", "header-menu6-bg-obj-responsive": { "desktop": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "header-menu6-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu6-h-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu6-h-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu6-a-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu6-a-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu6-menu-hover-animation": "", "header-menu6-submenu-container-animation": "", "section-hb-menu-6-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu6-menu-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu6-submenu-item-border": false, "header-menu6-submenu-item-b-size": "1", "header-menu6-submenu-item-b-color": "#eaeaea", "header-menu6-submenu-border-radius": "", "header-menu6-submenu-top-offset": "", "header-menu6-submenu-width": "", "header-menu6-submenu-border": { "top": 2, "bottom": 0, "left": 0, "right": 0 }, "header-menu6-menu-stack-on-mobile": true, "header-menu6-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu6-font-weight": "inherit", "header-menu6-font-family": "inherit", "header-menu6-text-transform": "", "header-menu6-line-height": "", "section-hb-divider-6-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-divider-6-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button7-text": "Button", "header-button7-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "header-button7-font-family": "inherit", "header-button7-font-weight": "inherit", "header-button7-text-transform": "", "header-button7-line-height": "", "header-button7-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button7-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button7-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button7-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button7-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button7-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button7-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "header-button7-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button7-border-radius": "", "section-hb-button-7-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-hb-button-7-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sticky-header-button7-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button7-text": "Button", "footer-button7-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "footer-button7-font-family": "inherit", "footer-button7-font-weight": "inherit", "footer-button7-text-transform": "", "footer-button7-line-height": "", "footer-button7-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button7-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button7-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button7-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button7-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button7-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button7-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "footer-button7-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button7-border-radius": "", "footer-button-7-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-button-7-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-button-7-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-html-7": "Insert HTML text here.", "header-html-7color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-7link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-7link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-hb-html-7": { "desktop": 15, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-weight-section-hb-html-7": "inherit", "font-family-section-hb-html-7": "inherit", "line-height-section-hb-html-7": "", "text-transform-section-hb-html-7": "", "section-hb-html-7-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-7": "Insert HTML text here.", "footer-html-7color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-7link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-7link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-fb-html-7": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-7-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "font-weight-section-fb-html-7": "inherit", "font-family-section-fb-html-7": "inherit", "text-transform-section-fb-html-7": "", "line-height-section-fb-html-7": "", "section-fb-html-7-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-7-space": { "desktop": "", "tablet": "", "mobile": "" }, "header-social-7-bg-space": "", "header-social-7-size": { "desktop": 18, "tablet": "", "mobile": "" }, "header-social-7-radius": "", "header-social-7-color": "", "header-social-7-h-color": "", "header-social-7-bg-color": "", "header-social-7-bg-h-color": "", "header-social-7-label-toggle": false, "header-social-7-color-type": "custom", "font-size-section-hb-social-icons-7": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-icons-7": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "section-hb-social-icons-7-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-7-space": { "desktop": "", "tablet": "", "mobile": "" }, "footer-social-7-bg-space": "", "footer-social-7-size": { "desktop": 18, "tablet": "", "mobile": "" }, "footer-social-7-radius": "", "footer-social-7-color": "", "footer-social-7-h-color": "", "footer-social-7-bg-color": "", "footer-social-7-bg-h-color": "", "footer-social-7-label-toggle": false, "footer-social-7-color-type": "custom", "font-size-section-fb-social-icons-7": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-icons-7": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "footer-social-7-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-social-icons-7-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-7-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-7-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-7-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-7-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-7-font-family": "inherit", "header-widget-7-font-weight": "inherit", "header-widget-7-text-transform": "", "header-widget-7-line-height": "", "header-widget-7-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-7-content-font-family": "inherit", "header-widget-7-content-font-weight": "inherit", "header-widget-7-content-text-transform": "", "header-widget-7-content-line-height": "", "header-widget-7-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sidebar-widgets-header-widget-7-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-7-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-7-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-7-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-7-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-7-font-family": "inherit", "footer-widget-7-font-weight": "inherit", "footer-widget-7-text-transform": "", "footer-widget-7-line-height": "", "footer-widget-7-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-7-content-font-family": "inherit", "footer-widget-7-content-font-weight": "inherit", "footer-widget-7-content-text-transform": "", "footer-widget-7-content-line-height": "", "footer-widget-7-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-alignment-7": { "desktop": "left", "tablet": "center", "mobile": "center" }, "sidebar-widgets-footer-widget-7-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu7-bg-color": "", "header-menu7-color": "", "header-menu7-h-bg-color": "", "header-menu7-h-color": "", "header-menu7-a-bg-color": "", "header-menu7-a-color": "", "header-menu7-bg-obj-responsive": { "desktop": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "header-menu7-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu7-h-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu7-h-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu7-a-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu7-a-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu7-menu-hover-animation": "", "header-menu7-submenu-container-animation": "", "section-hb-menu-7-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu7-menu-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu7-submenu-item-border": false, "header-menu7-submenu-item-b-size": "1", "header-menu7-submenu-item-b-color": "#eaeaea", "header-menu7-submenu-border-radius": "", "header-menu7-submenu-top-offset": "", "header-menu7-submenu-width": "", "header-menu7-submenu-border": { "top": 2, "bottom": 0, "left": 0, "right": 0 }, "header-menu7-menu-stack-on-mobile": true, "header-menu7-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu7-font-weight": "inherit", "header-menu7-font-family": "inherit", "header-menu7-text-transform": "", "header-menu7-line-height": "", "section-hb-divider-7-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-divider-7-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button8-text": "Button", "header-button8-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "header-button8-font-family": "inherit", "header-button8-font-weight": "inherit", "header-button8-text-transform": "", "header-button8-line-height": "", "header-button8-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button8-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button8-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button8-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button8-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button8-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button8-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "header-button8-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button8-border-radius": "", "section-hb-button-8-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-hb-button-8-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sticky-header-button8-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button8-text": "Button", "footer-button8-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "footer-button8-font-family": "inherit", "footer-button8-font-weight": "inherit", "footer-button8-text-transform": "", "footer-button8-line-height": "", "footer-button8-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button8-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button8-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button8-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button8-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button8-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button8-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "footer-button8-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button8-border-radius": "", "footer-button-8-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-button-8-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-button-8-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-html-8": "Insert HTML text here.", "header-html-8color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-8link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-8link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-hb-html-8": { "desktop": 15, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-weight-section-hb-html-8": "inherit", "font-family-section-hb-html-8": "inherit", "line-height-section-hb-html-8": "", "text-transform-section-hb-html-8": "", "section-hb-html-8-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-8": "Insert HTML text here.", "footer-html-8color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-8link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-8link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-fb-html-8": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-8-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "font-weight-section-fb-html-8": "inherit", "font-family-section-fb-html-8": "inherit", "text-transform-section-fb-html-8": "", "line-height-section-fb-html-8": "", "section-fb-html-8-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-8-space": { "desktop": "", "tablet": "", "mobile": "" }, "header-social-8-bg-space": "", "header-social-8-size": { "desktop": 18, "tablet": "", "mobile": "" }, "header-social-8-radius": "", "header-social-8-color": "", "header-social-8-h-color": "", "header-social-8-bg-color": "", "header-social-8-bg-h-color": "", "header-social-8-label-toggle": false, "header-social-8-color-type": "custom", "font-size-section-hb-social-icons-8": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-icons-8": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "section-hb-social-icons-8-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-8-space": { "desktop": "", "tablet": "", "mobile": "" }, "footer-social-8-bg-space": "", "footer-social-8-size": { "desktop": 18, "tablet": "", "mobile": "" }, "footer-social-8-radius": "", "footer-social-8-color": "", "footer-social-8-h-color": "", "footer-social-8-bg-color": "", "footer-social-8-bg-h-color": "", "footer-social-8-label-toggle": false, "footer-social-8-color-type": "custom", "font-size-section-fb-social-icons-8": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-icons-8": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "footer-social-8-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-social-icons-8-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-8-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-8-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-8-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-8-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-8-font-family": "inherit", "header-widget-8-font-weight": "inherit", "header-widget-8-text-transform": "", "header-widget-8-line-height": "", "header-widget-8-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-8-content-font-family": "inherit", "header-widget-8-content-font-weight": "inherit", "header-widget-8-content-text-transform": "", "header-widget-8-content-line-height": "", "header-widget-8-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sidebar-widgets-header-widget-8-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-8-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-8-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-8-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-8-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-8-font-family": "inherit", "footer-widget-8-font-weight": "inherit", "footer-widget-8-text-transform": "", "footer-widget-8-line-height": "", "footer-widget-8-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-8-content-font-family": "inherit", "footer-widget-8-content-font-weight": "inherit", "footer-widget-8-content-text-transform": "", "footer-widget-8-content-line-height": "", "footer-widget-8-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-alignment-8": { "desktop": "left", "tablet": "center", "mobile": "center" }, "sidebar-widgets-footer-widget-8-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu8-bg-color": "", "header-menu8-color": "", "header-menu8-h-bg-color": "", "header-menu8-h-color": "", "header-menu8-a-bg-color": "", "header-menu8-a-color": "", "header-menu8-bg-obj-responsive": { "desktop": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "header-menu8-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu8-h-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu8-h-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu8-a-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu8-a-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu8-menu-hover-animation": "", "header-menu8-submenu-container-animation": "", "section-hb-menu-8-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu8-menu-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu8-submenu-item-border": false, "header-menu8-submenu-item-b-size": "1", "header-menu8-submenu-item-b-color": "#eaeaea", "header-menu8-submenu-border-radius": "", "header-menu8-submenu-top-offset": "", "header-menu8-submenu-width": "", "header-menu8-submenu-border": { "top": 2, "bottom": 0, "left": 0, "right": 0 }, "header-menu8-menu-stack-on-mobile": true, "header-menu8-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu8-font-weight": "inherit", "header-menu8-font-family": "inherit", "header-menu8-text-transform": "", "header-menu8-line-height": "", "section-hb-divider-8-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-divider-8-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button9-text": "Button", "header-button9-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "header-button9-font-family": "inherit", "header-button9-font-weight": "inherit", "header-button9-text-transform": "", "header-button9-line-height": "", "header-button9-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button9-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button9-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button9-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button9-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button9-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button9-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "header-button9-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button9-border-radius": "", "section-hb-button-9-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-hb-button-9-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sticky-header-button9-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button9-text": "Button", "footer-button9-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "footer-button9-font-family": "inherit", "footer-button9-font-weight": "inherit", "footer-button9-text-transform": "", "footer-button9-line-height": "", "footer-button9-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button9-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button9-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button9-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button9-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button9-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button9-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "footer-button9-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button9-border-radius": "", "footer-button-9-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-button-9-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-button-9-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-html-9": "Insert HTML text here.", "header-html-9color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-9link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-9link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-hb-html-9": { "desktop": 15, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-weight-section-hb-html-9": "inherit", "font-family-section-hb-html-9": "inherit", "line-height-section-hb-html-9": "", "text-transform-section-hb-html-9": "", "section-hb-html-9-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-9": "Insert HTML text here.", "footer-html-9color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-9link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-9link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-fb-html-9": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-9-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "font-weight-section-fb-html-9": "inherit", "font-family-section-fb-html-9": "inherit", "text-transform-section-fb-html-9": "", "line-height-section-fb-html-9": "", "section-fb-html-9-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-9-space": { "desktop": "", "tablet": "", "mobile": "" }, "header-social-9-bg-space": "", "header-social-9-size": { "desktop": 18, "tablet": "", "mobile": "" }, "header-social-9-radius": "", "header-social-9-color": "", "header-social-9-h-color": "", "header-social-9-bg-color": "", "header-social-9-bg-h-color": "", "header-social-9-label-toggle": false, "header-social-9-color-type": "custom", "font-size-section-hb-social-icons-9": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-icons-9": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "section-hb-social-icons-9-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-9-space": { "desktop": "", "tablet": "", "mobile": "" }, "footer-social-9-bg-space": "", "footer-social-9-size": { "desktop": 18, "tablet": "", "mobile": "" }, "footer-social-9-radius": "", "footer-social-9-color": "", "footer-social-9-h-color": "", "footer-social-9-bg-color": "", "footer-social-9-bg-h-color": "", "footer-social-9-label-toggle": false, "footer-social-9-color-type": "custom", "font-size-section-fb-social-icons-9": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-icons-9": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "footer-social-9-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-social-icons-9-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-9-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-9-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-9-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-9-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-9-font-family": "inherit", "header-widget-9-font-weight": "inherit", "header-widget-9-text-transform": "", "header-widget-9-line-height": "", "header-widget-9-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-9-content-font-family": "inherit", "header-widget-9-content-font-weight": "inherit", "header-widget-9-content-text-transform": "", "header-widget-9-content-line-height": "", "header-widget-9-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sidebar-widgets-header-widget-9-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-9-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-9-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-9-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-9-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-9-font-family": "inherit", "footer-widget-9-font-weight": "inherit", "footer-widget-9-text-transform": "", "footer-widget-9-line-height": "", "footer-widget-9-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-9-content-font-family": "inherit", "footer-widget-9-content-font-weight": "inherit", "footer-widget-9-content-text-transform": "", "footer-widget-9-content-line-height": "", "footer-widget-9-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-alignment-9": { "desktop": "left", "tablet": "center", "mobile": "center" }, "sidebar-widgets-footer-widget-9-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu9-bg-color": "", "header-menu9-color": "", "header-menu9-h-bg-color": "", "header-menu9-h-color": "", "header-menu9-a-bg-color": "", "header-menu9-a-color": "", "header-menu9-bg-obj-responsive": { "desktop": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "header-menu9-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu9-h-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu9-h-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu9-a-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu9-a-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu9-menu-hover-animation": "", "header-menu9-submenu-container-animation": "", "section-hb-menu-9-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu9-menu-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu9-submenu-item-border": false, "header-menu9-submenu-item-b-size": "1", "header-menu9-submenu-item-b-color": "#eaeaea", "header-menu9-submenu-border-radius": "", "header-menu9-submenu-top-offset": "", "header-menu9-submenu-width": "", "header-menu9-submenu-border": { "top": 2, "bottom": 0, "left": 0, "right": 0 }, "header-menu9-menu-stack-on-mobile": true, "header-menu9-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu9-font-weight": "inherit", "header-menu9-font-family": "inherit", "header-menu9-text-transform": "", "header-menu9-line-height": "", "section-hb-divider-9-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-divider-9-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button10-text": "Button", "header-button10-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "header-button10-font-family": "inherit", "header-button10-font-weight": "inherit", "header-button10-text-transform": "", "header-button10-line-height": "", "header-button10-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button10-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button10-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button10-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button10-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button10-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-button10-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "header-button10-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-button10-border-radius": "", "section-hb-button-10-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-hb-button-10-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sticky-header-button10-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button10-text": "Button", "footer-button10-link-option": { "url": "https://www.wpastra.com", "new_tab": false, "link_rel": "" }, "footer-button10-font-family": "inherit", "footer-button10-font-weight": "inherit", "footer-button10-text-transform": "", "footer-button10-line-height": "", "footer-button10-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button10-text-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button10-back-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button10-text-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button10-back-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button10-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-button10-border-size": { "top": "", "right": "", "bottom": "", "left": "" }, "footer-button10-border-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-button10-border-radius": "", "footer-button-10-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-button-10-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-button-10-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-html-10": "Insert HTML text here.", "header-html-10color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-10link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-html-10link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-hb-html-10": { "desktop": 15, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-weight-section-hb-html-10": "inherit", "font-family-section-hb-html-10": "inherit", "line-height-section-hb-html-10": "", "text-transform-section-hb-html-10": "", "section-hb-html-10-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-10": "Insert HTML text here.", "footer-html-10color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-10link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-html-10link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "font-size-section-fb-html-10": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-html-10-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "font-weight-section-fb-html-10": "inherit", "font-family-section-fb-html-10": "inherit", "text-transform-section-fb-html-10": "", "line-height-section-fb-html-10": "", "section-fb-html-10-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-10-space": { "desktop": "", "tablet": "", "mobile": "" }, "header-social-10-bg-space": "", "header-social-10-size": { "desktop": 18, "tablet": "", "mobile": "" }, "header-social-10-radius": "", "header-social-10-color": "", "header-social-10-h-color": "", "header-social-10-bg-color": "", "header-social-10-bg-h-color": "", "header-social-10-label-toggle": false, "header-social-10-color-type": "custom", "font-size-section-hb-social-icons-10": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-social-icons-10": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "section-hb-social-icons-10-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-10-space": { "desktop": "", "tablet": "", "mobile": "" }, "footer-social-10-bg-space": "", "footer-social-10-size": { "desktop": 18, "tablet": "", "mobile": "" }, "footer-social-10-radius": "", "footer-social-10-color": "", "footer-social-10-h-color": "", "footer-social-10-bg-color": "", "footer-social-10-bg-h-color": "", "footer-social-10-label-toggle": false, "footer-social-10-color-type": "custom", "font-size-section-fb-social-icons-10": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-social-icons-10": { "items": [ { "id": "facebook", "enabled": true, "source": "icon", "url": "", "color": "#557dbc", "background": "transparent", "icon": "facebook", "label": "Facebook" }, { "id": "twitter", "enabled": true, "source": "icon", "url": "", "color": "#7acdee", "background": "transparent", "icon": "twitter", "label": "Twitter" }, { "id": "instagram", "enabled": true, "source": "icon", "url": "", "color": "#8a3ab9", "background": "transparent", "icon": "instagram", "label": "Instagram" } ] }, "footer-social-10-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-fb-social-icons-10-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-10-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-10-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-10-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-10-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-widget-10-font-family": "inherit", "header-widget-10-font-weight": "inherit", "header-widget-10-text-transform": "", "header-widget-10-line-height": "", "header-widget-10-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-widget-10-content-font-family": "inherit", "header-widget-10-content-font-weight": "inherit", "header-widget-10-content-text-transform": "", "header-widget-10-content-line-height": "", "header-widget-10-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sidebar-widgets-header-widget-10-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-10-title-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-10-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-10-link-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-10-link-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "footer-widget-10-font-family": "inherit", "footer-widget-10-font-weight": "inherit", "footer-widget-10-text-transform": "", "footer-widget-10-line-height": "", "footer-widget-10-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-10-content-font-family": "inherit", "footer-widget-10-content-font-weight": "inherit", "footer-widget-10-content-text-transform": "", "footer-widget-10-content-line-height": "", "footer-widget-10-content-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-widget-alignment-10": { "desktop": "left", "tablet": "center", "mobile": "center" }, "sidebar-widgets-footer-widget-10-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu10-bg-color": "", "header-menu10-color": "", "header-menu10-h-bg-color": "", "header-menu10-h-color": "", "header-menu10-a-bg-color": "", "header-menu10-a-color": "", "header-menu10-bg-obj-responsive": { "desktop": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "header-menu10-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu10-h-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu10-h-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu10-a-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu10-a-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-menu10-menu-hover-animation": "", "header-menu10-submenu-container-animation": "", "section-hb-menu-10-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu10-menu-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu10-submenu-item-border": false, "header-menu10-submenu-item-b-size": "1", "header-menu10-submenu-item-b-color": "#eaeaea", "header-menu10-submenu-border-radius": "", "header-menu10-submenu-top-offset": "", "header-menu10-submenu-width": "", "header-menu10-submenu-border": { "top": 2, "bottom": 0, "left": 0, "right": 0 }, "header-menu10-menu-stack-on-mobile": true, "header-menu10-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-menu10-font-weight": "inherit", "header-menu10-font-family": "inherit", "header-menu10-text-transform": "", "header-menu10-line-height": "", "section-hb-divider-10-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "section-fb-divider-10-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "sticky-header-on-devices": "desktop", "sticky-header-style": "none", "footer-desktop-items": { "above": { "above_1": [], "above_2": [], "above_3": [], "above_4": [], "above_5": [] }, "primary": { "primary_1": [], "primary_2": [], "primary_3": [], "primary_4": [], "primary_5": [] }, "below": { "below_1": [ "copyright" ], "below_2": [], "below_3": [], "below_4": [], "below_5": [] } }, "hba-footer-height": 60, "hba-footer-column": "2", "hba-footer-layout": { "desktop": "2-equal", "tablet": "2-equal", "mobile": "full" }, "hba-footer-bg-obj-responsive": { "desktop": { "background-color": "#eeeeee", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "hbb-footer-bg-obj-responsive": { "desktop": { "background-color": "#eeeeee", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "hb-footer-bg-obj-responsive": { "desktop": { "background-color": "#f9f9f9", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "section-header-builder-layout-margin": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "hbb-footer-height": 80, "hbb-footer-column": "1", "hbb-footer-layout": { "desktop": "full", "tablet": "full", "mobile": "full" }, "hba-footer-layout-width": "content", "hb-footer-layout-width": "content", "hbb-footer-layout-width": "content", "hba-footer-vertical-alignment": "flex-start", "hb-footer-vertical-alignment": "flex-start", "hbb-footer-vertical-alignment": "flex-start", "footer-bg-obj-responsive": { "desktop": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "hb-footer-column": "3", "hb-footer-separator": 1, "hb-footer-bottom-border-color": "#e6e6e6", "hb-footer-layout": { "desktop": "3-equal", "tablet": "3-equal", "mobile": "full" }, "hb-footer-main-sep": 1, "hb-footer-main-sep-color": "#e6e6e6", "footer-copyright-editor": "Copyright [copyright] [current_year] [site_title] | Powered by [theme_author]", "footer-copyright-color": "", "line-height-section-footer-copyright": "", "footer-copyright-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "font-size-section-footer-copyright": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "font-weight-section-footer-copyright": "inherit", "font-family-section-footer-copyright": "inherit", "text-transform-section-footer-copyright": "", "footer-menu-alignment": { "desktop": "center", "tablet": "center", "mobile": "center" }, "section-below-footer-builder-padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-search-icon-space": { "desktop": 18, "tablet": 18, "mobile": 18 }, "header-search-icon-color": { "desktop": "", "tablet": "", "mobile": "" }, "transparent-header-social-icons-color": { "desktop": "", "tablet": "", "mobile": "" }, "transparent-header-social-icons-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "transparent-header-social-icons-bg-color": { "desktop": "", "tablet": "", "mobile": "" }, "transparent-header-social-icons-bg-h-color": { "desktop": "", "tablet": "", "mobile": "" }, "transparent-header-html-text-color": "", "transparent-header-html-link-color": "", "transparent-header-html-link-h-color": "", "transparent-header-widget-title-color": "", "transparent-header-widget-content-color": "", "transparent-header-widget-link-color": "", "transparent-header-widget-link-h-color": "", "transparent-header-button-text-color": "", "transparent-header-button-text-h-color": "", "transparent-header-button-bg-color": "", "transparent-header-button-bg-h-color": "", "off-canvas-layout": "side-panel", "off-canvas-slide": "right", "header-builder-menu-toggle-target": "icon", "header-offcanvas-content-alignment": "flex-start", "off-canvas-background": { "background-color": "#ffffff", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "off-canvas-close-color": "#3a3a3a", "mobile-header-type": "dropdown", "off-canvas-inner-spacing": "", "footer-menu-layout": { "desktop": "horizontal", "tablet": "vertical", "mobile": "vertical" }, "footer-menu-bg-obj-responsive": { "desktop": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "footer-menu-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "footer-menu-h-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "footer-menu-h-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "footer-menu-a-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "footer-menu-a-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "footer-menu-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "footer-menu-font-weight": "inherit", "footer-menu-font-family": "inherit", "footer-menu-text-transform": "", "footer-menu-line-height": "", "footer-main-menu-spacing": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "0", "right": "20", "bottom": "0", "left": "20" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" }, "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-trigger-icon": "menu", "mobile-header-toggle-icon-size": 20, "mobile-header-toggle-btn-border-size": { "top": 1, "right": 1, "bottom": 1, "left": 1 }, "mobile-header-toggle-border-radius": 2, "mobile-header-label-font-family": "inherit", "mobile-header-label-font-weight": "inherit", "mobile-header-label-text-transform": "", "mobile-header-label-line-height": "", "mobile-header-label-font-size": "", "global-color-palette": { "palette": [ "#060097", "#c10fff", "#1e293b", "#67768e", "#f9f6fe", "#FFFFFF", "#F2F5F7", "#ffcd57", "#000000" ], "flag": false }, "header-mobile-menu-bg-color": "", "header-mobile-menu-color": "", "header-mobile-menu-h-bg-color": "", "header-mobile-menu-h-color": "", "header-mobile-menu-a-bg-color": "", "header-mobile-menu-a-color": "", "header-mobile-menu-bg-obj-responsive": { "desktop": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "tablet": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" }, "mobile": { "background-color": "", "background-image": "", "background-repeat": "repeat", "background-position": "center center", "background-size": "auto", "background-attachment": "scroll" } }, "header-mobile-menu-color-responsive": { "desktop": "", "tablet": "var(--ast-global-color-2)", "mobile": "" }, "header-mobile-menu-h-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-mobile-menu-h-color-responsive": { "desktop": "", "tablet": "var(--ast-global-color-2)", "mobile": "" }, "header-mobile-menu-a-bg-color-responsive": { "desktop": "", "tablet": "", "mobile": "" }, "header-mobile-menu-a-color-responsive": { "desktop": "", "tablet": "var(--ast-global-color-0)", "mobile": "" }, "header-mobile-menu-submenu-container-animation": "fade", "header-mobile-menu-submenu-item-border": true, "header-mobile-menu-submenu-item-b-size": "1", "header-mobile-menu-submenu-item-b-color": "#eaeaea", "header-mobile-menu-submenu-border": { "top": 2, "bottom": 0, "left": 0, "right": 0 }, "header-mobile-menu-font-size": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-mobile-menu-font-weight": "inherit", "header-mobile-menu-font-family": "inherit", "header-mobile-menu-text-transform": "", "header-mobile-menu-line-height": "", "woo-header-cart-click-action": "default", "woo-slide-in-cart-width": { "desktop": 460, "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "woo-header-cart-icon-total-label-position": { "desktop": "", "tablet": "", "mobile": "" }, "header-woo-cart-icon-size": { "desktop": "", "tablet": "", "mobile": "" }, "woo-header-cart-icon": "default", "woo-header-cart-icon-style": "outline", "woo-desktop-cart-flyout-direction": "right", "header-woo-cart-icon-color": "", "transparent-header-woo-cart-icon-color": "", "header-woo-cart-icon-hover-color": "", "woo-header-cart-border-width": 2, "woo-header-cart-icon-radius": 3, "woo-header-cart-badge-display": true, "woo-header-cart-label-display": "", "header-woo-cart-text-color": "", "header-woo-cart-link-color": "", "header-woo-cart-background-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-woo-cart-background-hover-color": { "desktop": "", "tablet": "", "mobile": "" }, "header-woo-cart-separator-color": "", "header-woo-cart-link-hover-color": "", "header-woo-cart-btn-text-color": "", "header-woo-cart-btn-background-color": "", "header-woo-cart-btn-text-hover-color": "", "header-woo-cart-btn-bg-hover-color": "", "header-woo-checkout-btn-text-color": "", "header-woo-checkout-btn-background-color": "", "header-woo-checkout-btn-text-hover-color": "", "header-woo-checkout-btn-bg-hover-color": "", "edd-header-cart-icon-style": "outline", "edd-header-cart-icon-color": "", "edd-header-cart-icon-radius": 3, "transparent-header-edd-cart-icon-color": "", "edd-header-cart-total-display": true, "edd-header-cart-title-display": true, "header-edd-cart-text-color": "", "header-edd-cart-link-color": "", "header-edd-cart-background-color": "", "header-edd-cart-separator-color": "", "header-edd-checkout-btn-text-color": "", "header-edd-checkout-btn-background-color": "", "header-edd-checkout-btn-text-hover-color": "", "header-edd-checkout-btn-bg-hover-color": "", "header-account-type": "default", "header-account-login-style": "icon", "header-account-action-type": "link", "header-account-link-type": "default", "header-account-logout-style": "icon", "header-account-logged-out-text": "Log In", "header-account-logged-in-text": "My Account", "header-account-logout-action": "link", "header-account-image-width": { "desktop": "40", "tablet": "", "mobile": "" }, "header-account-icon-size": { "desktop": 18, "tablet": 18, "mobile": 18 }, "header-account-icon-color": "", "header-account-login-link": { "url": "", "new_tab": false, "link_rel": "" }, "header-account-logout-link": { "url": "https://websitedemos.net/wp-preview/wp-login.php", "new_tab": false, "link_rel": "" }, "font-size-section-header-account": { "desktop": "", "tablet": "", "mobile": "", "desktop-unit": "px", "tablet-unit": "px", "mobile-unit": "px" }, "header-account-type-text-color": "", "header-account-woo-menu": false, "cloned-component-track": { "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": [] }, "woo-desktop-cart-flyout-width": 460, "ast-callback-notice-header-transparent-header-logo": "", "ast-callback-notice-header-transparent-header-logo-link": "", "ast-callback-notice-header-transparent-meta-enabled": "", "ast-callback-notice-header-transparent-header-meta-link": "", "_astra_pb_compatibility_completed": true, "headings-font-variant": "600", "mobile-header-toggle-btn-color": "var(--ast-global-color-5)", "astra-old-global-sidebar-default": false, "spectra-gutenberg-compat-css": false, "is_theme_queue_running": false }, "astra-color-palettes": { "currentPalette": "palette_1", "palettes": { "palette_1": [ "#060097", "#c10fff", "#1e293b", "#67768e", "#f9f6fe", "#FFFFFF", "#F2F5F7", "#ffcd57", "#000000" ], "palette_2": [ "#0067FF", "#005EE9", "#0F172A", "#364151", "#FFFFFF", "#E7F6FF", "#070614", "#D1DAE5", "#222222" ], "palette_3": [ "#6528F7", "#5511F8", "#0F172A", "#454F5E", "#FFFFFF", "#F2F0FE", "#0D0614", "#D8D8F5", "#222222" ] }, "presets": { "preset_1": [ "#0067FF", "#005EE9", "#0F172A", "#364151", "#E7F6FF", "#FFFFFF", "#D1DAE5", "#070614", "#222222" ], "preset_2": [ "#6528F7", "#5511F8", "#0F172A", "#454F5E", "#F2F0FE", "#FFFFFF", "#D8D8F5", "#0D0614", "#222222" ], "preset_3": [ "#DD183B", "#CC1939", "#0F172A", "#3A3A3A", "#FFEDE6", "#FFFFFF", "#FFD1BF", "#140609", "#222222" ], "preset_4": [ "#54B435", "#379237", "#0F172A", "#2F3B40", "#EDFBE2", "#FFFFFF", "#D5EAD8", "#0C1406", "#222222" ], "preset_5": [ "#DCA54A", "#D09A40", "#0F172A", "#4A4A4A", "#FAF5E5", "#FFFFFF", "#F0E6C5", "#141004", "#222222" ], "preset_6": [ "#FB5FAB", "#EA559D", "#0F172A", "#454F5E", "#FCEEF5", "#FFFFFF", "#FAD8E9", "#140610", "#222222" ], "preset_7": [ "#1B9C85", "#178E79", "#0F172A", "#454F5E", "#EDF6EE", "#FFFFFF", "#D4F3D7", "#06140C", "#222222" ], "preset_8": [ "#FD9800", "#E98C00", "#0F172A", "#454F5E", "#FEF9E1", "#FFFFFF", "#F9F0C8", "#141006", "#222222" ], "preset_9": [ "#FF6210", "#F15808", "#1C0D0A", "#353535", "#FEF1E4", "#FFFFFF", "#E5D7D1", "#140B06", "#222222" ], "preset_10": [ "#737880", "#65696F", "#151616", "#393C40", "#F6F6F6", "#FFFFFF", "#F1F0F0", "#232529", "#222222" ] }, "flag": false }, "astra-typography-presets": "" } } PKmmZpost_content ) && is_callable( 'FLBuilderModel::is_builder_enabled' ) && FLBuilderModel::is_builder_enabled() ) { /** @psalm-suppress PossiblyInvalidPropertyFetch */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $flag = false; } return $flag; } /** * Builder Template Content layout set as Full Width / Stretched * * @since 1.0.13 * @return void */ public function beaver_builder_default_setting() { if ( false === astra_enable_page_builder_compatibility() || 'post' == get_post_type() ) { return; } global $post; $id = astra_get_post_id(); $do_render = apply_filters( 'fl_builder_do_render_content', true, FLBuilderModel::get_post_id() ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound $page_builder_flag = get_post_meta( $id, '_astra_content_layout_flag', true ); if ( isset( $post ) && empty( $page_builder_flag ) && ( is_admin() || is_singular() ) ) { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( empty( $post->post_content ) && $do_render && is_callable( 'FLBuilderModel::is_builder_enabled' ) && FLBuilderModel::is_builder_enabled() ) { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort update_post_meta( $id, '_astra_content_layout_flag', 'disabled' ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort update_post_meta( $id, 'site-post-title', 'disabled' ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort update_post_meta( $id, 'ast-title-bar-display', 'disabled' ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort update_post_meta( $id, 'ast-featured-img', 'disabled' ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $content_layout = get_post_meta( $id, 'site-content-layout', true ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( empty( $content_layout ) || 'default' == $content_layout ) { /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort update_post_meta( $id, 'site-content-layout', 'page-builder' ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort } /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $sidebar_layout = get_post_meta( $id, 'site-sidebar-layout', true ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( empty( $sidebar_layout ) || 'default' == $sidebar_layout ) { /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort update_post_meta( $id, 'site-sidebar-layout', 'no-sidebar' ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort } } } } /** * Add assets in theme * * @param array $assets list of theme assets (JS & CSS). * @return array List of updated assets. * @since 3.5.0 */ public function add_styles( $assets ) { if ( ! empty( $assets['css'] ) ) { $assets['css'] = array( 'astra-bb-builder' => 'compatibility/page-builder/bb-plugin' ) + $assets['css']; } return $assets; } } endif; /** * Kicking this off by calling 'get_instance()' method */ Astra_Beaver_Builder::get_instance(); PKmmZFW*compatibility/class-astra-divi-builder.phpnu[ true, ) ); $post_types['fl-theme-layout'] = 'fl-theme-layout'; $metabox_name = sprintf( // Translators: %s is the theme name. __( '%s Settings', 'astra' ), astra_get_theme_name() ); // Enable for all posts. foreach ( $post_types as $type ) { if ( 'attachment' !== $type ) { add_meta_box( 'astra_settings_meta_box', // Id. $metabox_name, // Title. array( $this, 'markup_meta_box' ), // Callback. $type, // Post_type. 'side', // Context. 'default', // Priority. array( '__back_compat_meta_box' => true, ) ); } } } /** * Get metabox options */ public static function get_meta_option() { return self::$meta_option; } /** * Metabox Markup * * @param object $post Post object. * @return void */ public function markup_meta_box( $post ) { wp_nonce_field( basename( __FILE__ ), 'astra_settings_meta_box' ); $stored = get_post_meta( $post->ID ); if ( is_array( $stored ) ) { // Set stored and override defaults. foreach ( $stored as $key => $value ) { self::$meta_option[ $key ]['default'] = ( isset( $stored[ $key ][0] ) ) ? $stored[ $key ][0] : ''; } } // Get defaults. $meta = self::get_meta_option(); /** * Get options */ $site_sidebar = ( isset( $meta['site-sidebar-layout']['default'] ) ) ? $meta['site-sidebar-layout']['default'] : 'default'; $site_content_style = ( isset( $meta['site-content-style']['default'] ) ) ? $meta['site-content-style']['default'] : 'default'; $site_sidebar_style = ( isset( $meta['site-sidebar-style']['default'] ) ) ? $meta['site-sidebar-style']['default'] : 'default'; $new_site_content_layout = ( isset( $meta['ast-site-content-layout']['default'] ) ) ? $meta['ast-site-content-layout']['default'] : ''; $site_post_title = ( isset( $meta['site-post-title']['default'] ) ) ? $meta['site-post-title']['default'] : ''; $footer_bar = ( isset( $meta['footer-sml-layout']['default'] ) ) ? $meta['footer-sml-layout']['default'] : ''; $footer_widgets = ( isset( $meta['footer-adv-display']['default'] ) ) ? $meta['footer-adv-display']['default'] : ''; $above_header = ( isset( $meta['ast-hfb-above-header-display']['default'] ) ) ? $meta['ast-hfb-above-header-display']['default'] : 'default'; $primary_header = ( isset( $meta['ast-main-header-display']['default'] ) ) ? $meta['ast-main-header-display']['default'] : ''; $below_header = ( isset( $meta['ast-hfb-below-header-display']['default'] ) ) ? $meta['ast-hfb-below-header-display']['default'] : 'default'; $mobile_header = ( isset( $meta['ast-hfb-mobile-header-display']['default'] ) ) ? $meta['ast-hfb-mobile-header-display']['default'] : 'default'; $ast_featured_img = ( isset( $meta['ast-featured-img']['default'] ) ) ? $meta['ast-featured-img']['default'] : ''; $breadcrumbs_content = ( isset( $meta['ast-breadcrumbs-content']['default'] ) ) ? $meta['ast-breadcrumbs-content']['default'] : ''; $ast_banner_visibility = ( isset( $meta['ast-banner-title-visibility']['default'] ) ) ? $meta['ast-banner-title-visibility']['default'] : ''; $exclude_cpt = isset( $post->post_type ) ? in_array( $post->post_type, array( 'product', 'download', 'course', 'lesson', 'tutor_quiz', 'tutor_assignments', 'sfwd-assignment', 'sfwd-essays', 'sfwd-transactions', 'sfwd-certificates', 'sfwd-quiz', 'sfwd-courses', 'sfwd-lessons', 'sfwd-topic', 'groups', ) ) : ''; $show_meta_field = ! self::is_bb_themer_layout(); $old_meta_layout = isset( $meta['site-content-layout']['default'] ) ? $meta['site-content-layout']['default'] : ''; $meta_key = ( isset( $meta['astra-migrate-meta-layouts']['default'] ) ) ? $meta['astra-migrate-meta-layouts']['default'] : ''; $migrated_user = ( ! Astra_Dynamic_CSS::astra_fullwidth_sidebar_support() ); do_action( 'astra_meta_box_markup_before', $meta ); // Migrate old user existing container layout option to new layout options. if ( ! empty( $old_meta_layout ) && 'set' !== $meta_key && $migrated_user ) { $old_meta_content_layout = $meta['site-content-layout']['default']; switch ( $old_meta_content_layout ) { case 'plain-container': $new_site_content_layout = 'normal-width-container'; $site_content_style = 'unboxed'; $site_sidebar_style = 'unboxed'; break; case 'boxed-container': $new_site_content_layout = 'normal-width-container'; $site_content_style = 'boxed'; $site_sidebar_style = 'boxed'; break; case 'content-boxed-container': $new_site_content_layout = 'normal-width-container'; $site_content_style = 'boxed'; $site_sidebar_style = 'unboxed'; break; case 'page-builder': $new_site_content_layout = 'full-width-container'; $site_content_style = 'unboxed'; $site_sidebar_style = 'unboxed'; break; case 'narrow-container': $new_site_content_layout = 'narrow-width-container'; $site_content_style = 'unboxed'; $site_sidebar_style = 'unboxed'; break; default: $new_site_content_layout = 'default'; $site_content_style = 'default'; $site_sidebar_style = 'default'; break; } } /** * Option: Content Layout. */ ?>

$data ) { // Sanitize values. $sanitize_filter = ( isset( $data['sanitize'] ) ) ? $data['sanitize'] : 'FILTER_SANITIZE_STRING'; switch ( $sanitize_filter ) { default: case 'FILTER_SANITIZE_STRING': /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $meta_value = ! empty( $_POST[ $key ] ) ? sanitize_text_field( wp_unslash( $_POST[ $key ] ) ) : ''; /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort break; case 'FILTER_SANITIZE_URL': $meta_value = filter_input( INPUT_POST, $key, FILTER_SANITIZE_URL ); break; case 'FILTER_SANITIZE_NUMBER_INT': $meta_value = filter_input( INPUT_POST, $key, FILTER_SANITIZE_NUMBER_INT ); break; case 'FILTER_DEFAULT': /** * @psalm-suppress TooManyArguments * @psalm-suppress PossiblyInvalidArgument */ $meta_value = apply_filters( 'astra_php_default_filter_input', ! empty( $_POST[ $key ] ) ? sanitize_text_field( wp_unslash( $_POST[ $key ] ) ) : '', $key ); /** @psalm-suppress PossiblyInvalidArgument */ break; } // Store values. if ( $meta_value ) { update_post_meta( $post_id, $key, $meta_value ); // Update meta key (flag) as old user migration is already completed at this point. update_post_meta( $post_id, 'astra-migrate-meta-layouts', 'set' ); } else { /** @psalm-suppress InvalidArgument */ delete_post_meta( $post_id, $key ); } } } /** * Register Script for Meta options */ public function register_script() { $path = get_template_directory_uri() . '/inc/metabox/extend-metabox/build/index.js'; wp_register_script( 'astra-meta-settings', $path, array( 'wp-plugins', 'wp-edit-post', 'wp-i18n', 'wp-element' ), ASTRA_THEME_VERSION, true ); } /** * Enqueue Script for Meta settings. * * @return void */ public function load_scripts() { $post_id = get_the_ID(); $post_type = get_post_type(); if ( defined( 'ASTRA_ADVANCED_HOOKS_POST_TYPE' ) && ASTRA_ADVANCED_HOOKS_POST_TYPE === $post_type ) { return; } $metabox_name = sprintf( // Translators: %s is the theme name. __( '%s Settings', 'astra' ), astra_get_theme_name() ); $settings_title = $metabox_name; /* Directory and Extension */ $file_prefix = ( is_rtl() ) ? '-rtl' : ''; $file_prefix .= ( true === SCRIPT_DEBUG ) ? '' : '.min'; $dir_name = ( true === SCRIPT_DEBUG ) ? 'unminified' : 'minified'; $css_uri = ASTRA_THEME_URI . '/inc/metabox/extend-metabox/css/' . $dir_name; wp_enqueue_style( 'astra-meta-box', $css_uri . '/metabox' . $file_prefix . '.css', array(), ASTRA_THEME_VERSION ); wp_enqueue_script( 'astra-meta-settings' ); wp_set_script_translations( 'astra-meta-settings', 'astra' ); $astra_ext_extension_class_exists = class_exists( 'Astra_Ext_Extension' ) ? true : false; $ast_content_layout_sidebar = false; if ( $post_id ) { $page_for_posts = absint( get_option( 'page_for_posts' ) ); if ( $post_id === $page_for_posts ) { $ast_content_layout_sidebar = true; } } $palette_css_var_prefix = Astra_Global_Palette::get_css_variable_prefix(); $apply_new_default_values = astra_button_default_padding_updated(); $bg_updated_title = sprintf( /* translators: 1: Post type, 2: Background string */ '%1$s %2$s', ucfirst( strval( $post_type ) ), __( 'Background', 'astra' ) ); $page_bg_dynamic_title = ( $post_type ? $bg_updated_title : __( 'Page Background', 'astra' ) ); $global_palette = astra_get_option( 'global-color-palette' ); $reorder_color_seq = Astra_Dynamic_CSS::astra_4_8_9_compatibility(); /* Created a new array specifically designed for storing post types that don't require Astra's meta settings.*/ $register_astra_metabox = ! in_array( $post_type, array( 'wp_block' ), true ); wp_localize_script( 'astra-meta-settings', 'astMetaParams', array( 'post_type' => $post_type, 'title' => $settings_title, 'sidebar_options' => $this->get_sidebar_options(), 'sidebar_title' => __( 'Sidebar', 'astra' ), 'content_layout' => $this->get_content_layout_options(), 'content_style' => $this->get_content_style_options(), 'sidebar_style' => $this->get_sidebar_style_options(), 'content_layout_title' => __( 'Content Layout', 'astra' ), 'disable_sections_title' => __( 'Disable Sections', 'astra' ), 'disable_sections' => $this->get_disable_section_fields(), 'isWhiteLabelled' => astra_is_white_labelled(), 'sticky_header_title' => __( 'Sticky Header', 'astra' ), 'sticky_header_options' => $this->get_sticky_header_options(), 'transparent_header_title' => __( 'Transparent Header', 'astra' ), 'page_header_title' => __( 'Page Header', 'astra' ), 'page_header_edit_link' => esc_url( admin_url( 'edit.php?post_type=astra_adv_header' ) ), 'header_options' => $this->get_header_enabled_options(), 'headers_meta_options' => $this->get_header_disable_meta_fields(), 'page_header_options' => $this->get_page_header_options(), 'page_header_availability' => $this->check_page_header_availability(), 'is_bb_themer_layout' => ! astra_check_is_bb_themer_layout(), // Show page header option only when bb is not activated. 'is_addon_activated' => defined( 'ASTRA_EXT_VER' ) ? true : false, 'sticky_addon_enabled' => ( $astra_ext_extension_class_exists && Astra_Ext_Extension::is_active( 'sticky-header' ) ) ? true : false, 'register_astra_metabox' => apply_filters( 'astra_settings_metabox_register', $register_astra_metabox ), 'is_hide_contnet_layout_sidebar' => $ast_content_layout_sidebar, 'upgrade_pro_link' => astra_get_pro_url( '/pricing/', 'free-theme', 'customizer', 'upgrade' ), 'show_upgrade_notice' => astra_showcase_upgrade_notices(), // Flag needed to check whether user is old or new, true for old user, false for new. 'v4_1_6_migration' => ( ! Astra_Dynamic_CSS::astra_fullwidth_sidebar_support() ), 'color_addon_enabled' => ( $astra_ext_extension_class_exists && Astra_Ext_Extension::is_active( 'colors-and-background' ) ) ? true : false, 'site_page_bg_meta_default' => array( 'desktop' => array( 'background-color' => $apply_new_default_values ? ( $reorder_color_seq ? 'var(--ast-global-color-5)' : 'var(--ast-global-color-4)' ) : '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), ), 'content_page_bg_meta_default' => array( 'desktop' => array( 'background-color' => $reorder_color_seq ? 'var(' . $palette_css_var_prefix . '4)' : 'var(' . $palette_css_var_prefix . '5)', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => $reorder_color_seq ? 'var(' . $palette_css_var_prefix . '4)' : 'var(' . $palette_css_var_prefix . '5)', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => $reorder_color_seq ? 'var(' . $palette_css_var_prefix . '4)' : 'var(' . $palette_css_var_prefix . '5)', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), ), 'isWP_5_9' => astra_wp_version_compare( '5.8.99', '>=' ), 'ast_page_bg_title' => __( 'Surface Colors', 'astra' ), 'page_bg_toggle_options' => $this->get_page_bg_toggle_options(), 'surface_color_help_text' => __( 'Enabling this option will override global > colors > surface color options', 'astra' ), 'page_bg_dynamic_title' => $page_bg_dynamic_title, 'global_color_palette' => $global_palette, 'color_palette_labels' => Astra_Global_Palette::get_palette_labels(), ) ); wp_enqueue_script( 'astra-metabox-cf-compatibility', ASTRA_THEME_URI . 'inc/assets/js/custom-fields-priority.js', array(), ASTRA_THEME_VERSION, false ); } /** * Returns an array of sidebar options. * * @return array The array of sidebar options. */ public function get_sidebar_options() { return array( 'default' => __( 'Customizer Setting', 'astra' ), 'no-sidebar' => __( 'No Sidebar', 'astra' ), 'left-sidebar' => __( 'Left Sidebar', 'astra' ), 'right-sidebar' => __( 'Right Sidebar', 'astra' ), ); } /** * Returns an array of content layout options for the current post type. * * @return array The array of content layout options. */ public function get_content_layout_options() { $post_type = get_post_type(); $exclude_cpt = in_array( $post_type, array( 'product', 'download', 'course', 'lesson', 'tutor_quiz', 'tutor_assignments', 'sfwd-assignment', 'sfwd-essays', 'sfwd-transactions', 'sfwd-certificates', 'sfwd-quiz', 'sfwd-courses', 'sfwd-lessons', 'sfwd-topic', 'groups', ) ); if ( astra_with_third_party() || $exclude_cpt ) { return array( 'default' => __( 'Customizer Setting', 'astra' ), 'normal-width-container' => __( 'Normal', 'astra' ), 'full-width-container' => __( 'Full Width', 'astra' ), ); } return array( 'default' => __( 'Customizer Setting', 'astra' ), 'normal-width-container' => __( 'Normal', 'astra' ), 'narrow-width-container' => __( 'Narrow', 'astra' ), 'full-width-container' => __( 'Full Width', 'astra' ), ); } /** * @return array The array of content layout options. * @since 4.2.0 */ public function get_content_style_options() { return array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ); } /** * @return array The array of sidebar style options. * @since 4.2.0 */ public function get_sidebar_style_options() { return array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ); } /** * Get header related sub-meta fields. * * @return array $astra_header_options All header dependent toggle based page elements. */ public function get_header_disable_meta_fields() { $astra_header_options = array(); if ( Astra_Builder_Helper::is_row_empty( 'above', 'header', 'desktop' ) ) { $astra_header_options[] = array( 'key' => 'ast-hfb-above-header-display', 'label' => __( 'Disable Above Header', 'astra' ), ); } if ( Astra_Builder_Helper::is_row_empty( 'primary', 'header', 'desktop' ) ) { $astra_header_options[] = array( 'key' => 'ast-main-header-display', 'label' => __( 'Disable Primary Header', 'astra' ), ); } if ( Astra_Builder_Helper::is_row_empty( 'below', 'header', 'desktop' ) ) { $astra_header_options[] = array( 'key' => 'ast-hfb-below-header-display', 'label' => __( 'Disable Below Header', 'astra' ), ); } if ( Astra_Builder_Helper::is_row_empty( 'above', 'header', 'mobile' ) || Astra_Builder_Helper::is_row_empty( 'primary', 'header', 'mobile' ) || Astra_Builder_Helper::is_row_empty( 'below', 'header', 'mobile' ) ) { $astra_header_options[] = array( 'key' => 'ast-hfb-mobile-header-display', 'label' => __( 'Disable Mobile Header', 'astra' ), ); } return $astra_header_options; } /** * Get disable section fields. * * @return array $astra_page_meta_elements All toggle based page elements. */ public function get_disable_section_fields() { $astra_page_meta_elements = array( array( 'key' => 'ast-global-header-display', 'label' => __( 'Disable Header', 'astra' ), ), array( 'key' => 'footer-sml-layout', 'label' => __( 'Disable Footer', 'astra' ), ), ); $post_type = strval( get_post_type() ); $supported_post_types = Astra_Posts_Structure_Loader::get_supported_post_types(); if ( ( in_array( $post_type, $supported_post_types ) && true === astra_get_option( 'ast-single-' . $post_type . '-title', ( class_exists( 'WooCommerce' ) && 'product' === $post_type ) ? false : true ) ) ) { if ( ! ( class_exists( 'WooCommerce' ) && absint( astra_get_post_id() ) === wc_get_page_id( 'shop' ) ) ) { $astra_page_meta_elements[] = array( 'key' => 'ast-banner-title-visibility', 'label' => __( 'Disable Banner Area', 'astra' ), ); } } if ( 'none' !== astra_get_option( 'breadcrumb-position', 'none' ) ) { $astra_page_meta_elements[] = array( 'key' => 'ast-breadcrumbs-content', 'label' => __( 'Disable Breadcrumb', 'astra' ), ); } return $astra_page_meta_elements; } /** * Get sticky header options. */ public function get_sticky_header_options() { $astra_sticky_header_options = array(); $sticky_above_header_condition = false; $sticky_primary_header_condition = false; $sticky_below_header_condition = false; /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'sticky-header' ) ) { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $sticky_on_devices = astra_get_option( 'sticky-header-on-devices' ); switch ( $sticky_on_devices ) { case 'desktop': $sticky_above_header_condition = Astra_Builder_Helper::is_row_empty( 'above', 'header', 'desktop' ); $sticky_primary_header_condition = Astra_Builder_Helper::is_row_empty( 'primary', 'header', 'desktop' ); $sticky_below_header_condition = Astra_Builder_Helper::is_row_empty( 'below', 'header', 'desktop' ); break; case 'mobile': $sticky_above_header_condition = Astra_Builder_Helper::is_row_empty( 'above', 'header', 'mobile' ); $sticky_primary_header_condition = Astra_Builder_Helper::is_row_empty( 'primary', 'header', 'mobile' ); $sticky_below_header_condition = Astra_Builder_Helper::is_row_empty( 'below', 'header', 'mobile' ); break; default: $sticky_above_header_condition = ( Astra_Builder_Helper::is_row_empty( 'above', 'header', 'desktop' ) || Astra_Builder_Helper::is_row_empty( 'above', 'header', 'mobile' ) ) ? true : false; $sticky_primary_header_condition = ( Astra_Builder_Helper::is_row_empty( 'primary', 'header', 'desktop' ) || Astra_Builder_Helper::is_row_empty( 'primary', 'header', 'mobile' ) ) ? true : false; $sticky_below_header_condition = ( Astra_Builder_Helper::is_row_empty( 'below', 'header', 'desktop' ) || Astra_Builder_Helper::is_row_empty( 'below', 'header', 'mobile' ) ) ? true : false; break; } } if ( $sticky_above_header_condition ) { $astra_sticky_header_options[] = array( 'key' => 'header-above-stick-meta', 'label' => __( 'Stick Above Header', 'astra' ), ); } if ( $sticky_primary_header_condition ) { $astra_sticky_header_options[] = array( 'key' => 'header-main-stick-meta', 'label' => __( 'Stick Primary Header', 'astra' ), ); } if ( $sticky_below_header_condition ) { $astra_sticky_header_options[] = array( 'key' => 'header-below-stick-meta', 'label' => __( 'Stick Below Header', 'astra' ), ); } return $astra_sticky_header_options; } /** * Get all transparet and sticky header options. */ public function get_header_enabled_options() { return array( 'default' => __( 'Inherit', 'astra' ), 'enabled' => __( 'Enabled', 'astra' ), 'disabled' => __( 'Disabled', 'astra' ), ); } /** * Get Page Background Toggle Options. * * @since 4.4.0 */ public function get_page_bg_toggle_options() { return array( 'default' => __( 'Inherit', 'astra' ), 'enabled' => __( 'Enabled', 'astra' ), ); } /** * Checking the page headers are available and have some posts with it. * * @since 3.8.0 * @return bool true|false. */ public function check_page_header_availability() { if ( ! defined( 'ASTRA_EXT_VER' ) ) { return false; } if ( class_exists( 'Astra_Ext_Extension' ) && ! Astra_Ext_Extension::is_active( 'advanced-headers' ) ) { return false; } /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $page_headers = Astra_Target_Rules_Fields::get_post_selection( 'astra_adv_header' ); /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( empty( $page_headers ) ) { return false; } return true; } /** * Get page header Options. */ public function get_page_header_options() { if ( ! defined( 'ASTRA_EXT_VER' ) ) { return array(); } /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $header_options = Astra_Target_Rules_Fields::get_post_selection( 'astra_adv_header' ); /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( empty( $header_options ) ) { $header_options = array( '' => __( 'No Page Headers Found', 'astra' ), ); } return $header_options; } /** * Register Post Meta options for react based fields. * * @since 3.7.4 */ public function register_meta_settings() { $meta = self::get_meta_option(); register_post_meta( '', 'site-sidebar-layout', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['site-sidebar-layout']['default'] ) ? $meta['site-sidebar-layout']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'site-content-layout', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['site-content-layout']['default'] ) ? $meta['site-content-layout']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'ast-site-content-layout', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['ast-site-content-layout']['default'] ) ? $meta['ast-site-content-layout']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'site-content-style', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['site-content-style']['default'] ) ? $meta['site-content-style']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'site-sidebar-style', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['site-sidebar-style']['default'] ) ? $meta['site-sidebar-style']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'ast-global-header-display', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['ast-global-header-display']['default'] ) ? $meta['ast-global-header-display']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'ast-banner-title-visibility', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['ast-banner-title-visibility']['default'] ) ? $meta['ast-banner-title-visibility']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'ast-main-header-display', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['ast-main-header-display']['default'] ) ? $meta['ast-main-header-display']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'ast-hfb-above-header-display', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['ast-hfb-above-header-display']['default'] ) ? $meta['ast-hfb-above-header-display']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'ast-hfb-below-header-display', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['ast-hfb-below-header-display']['default'] ) ? $meta['ast-hfb-below-header-display']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'ast-hfb-mobile-header-display', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['ast-hfb-mobile-header-display']['default'] ) ? $meta['ast-hfb-mobile-header-display']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'site-post-title', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['site-post-title']['default'] ) ? $meta['site-post-title']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'ast-breadcrumbs-content', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['ast-breadcrumbs-content']['default'] ) ? $meta['ast-breadcrumbs-content']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'ast-featured-img', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['ast-featured-img']['default'] ) ? $meta['ast-featured-img']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'footer-sml-layout', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['footer-sml-layout']['default'] ) ? $meta['footer-sml-layout']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'theme-transparent-header-meta', array( 'show_in_rest' => true, 'single' => true, 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'adv-header-id-meta', array( 'show_in_rest' => true, 'single' => true, 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'stick-header-meta', array( 'show_in_rest' => true, 'single' => true, 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'header-above-stick-meta', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['header-above-stick-meta']['default'] ) ? $meta['header-above-stick-meta']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'header-main-stick-meta', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['header-main-stick-meta']['default'] ) ? $meta['header-main-stick-meta']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'header-below-stick-meta', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['header-below-stick-meta']['default'] ) ? $meta['header-below-stick-meta']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'astra-migrate-meta-layouts', array( 'show_in_rest' => true, 'single' => true, 'default' => isset( $meta['astra-migrate-meta-layouts']['default'] ) ? $meta['astra-migrate-meta-layouts']['default'] : '', 'type' => 'string', 'auth_callback' => '__return_true', ) ); register_post_meta( '', 'ast-page-background-enabled', array( 'show_in_rest' => true, 'single' => true, 'default' => 'default', 'type' => 'string', 'auth_callback' => '__return_true', ) ); $apply_new_default_values = astra_button_default_padding_updated(); $reorder_color_seq = Astra_Dynamic_CSS::astra_4_8_9_compatibility(); register_post_meta( '', 'ast-page-background-meta', array( 'single' => true, 'type' => 'object', 'auth_callback' => '__return_true', 'show_in_rest' => array( 'schema' => array( 'type' => 'object', 'properties' => array( 'desktop' => array( 'type' => 'object', 'properties' => array( 'background-color' => array( 'type' => 'string', ), 'background-image' => array( 'type' => 'string', ), 'background-repeat' => array( 'type' => 'string', ), 'background-position' => array( 'type' => 'string', ), 'background-size' => array( 'type' => 'string', ), 'background-attachment' => array( 'type' => 'string', ), 'background-type' => array( 'type' => 'string', ), 'background-media' => array( 'type' => 'string', ), 'overlay-type' => array( 'type' => 'string', ), 'overlay-color' => array( 'type' => 'string', ), 'overlay-opacity' => array( 'type' => 'string', ), 'overlay-gradient' => array( 'type' => 'string', ), ), ), 'tablet' => array( 'type' => 'object', 'properties' => array( 'background-color' => array( 'type' => 'string', ), 'background-image' => array( 'type' => 'string', ), 'background-repeat' => array( 'type' => 'string', ), 'background-position' => array( 'type' => 'string', ), 'background-size' => array( 'type' => 'string', ), 'background-attachment' => array( 'type' => 'string', ), 'background-type' => array( 'type' => 'string', ), 'background-media' => array( 'type' => 'string', ), 'overlay-type' => array( 'type' => 'string', ), 'overlay-color' => array( 'type' => 'string', ), 'overlay-opacity' => array( 'type' => 'string', ), 'overlay-gradient' => array( 'type' => 'string', ), ), ), 'mobile' => array( 'type' => 'object', 'properties' => array( 'background-color' => array( 'type' => 'string', ), 'background-image' => array( 'type' => 'string', ), 'background-repeat' => array( 'type' => 'string', ), 'background-position' => array( 'type' => 'string', ), 'background-size' => array( 'type' => 'string', ), 'background-attachment' => array( 'type' => 'string', ), 'background-type' => array( 'type' => 'string', ), 'background-media' => array( 'type' => 'string', ), 'overlay-type' => array( 'type' => 'string', ), 'overlay-color' => array( 'type' => 'string', ), 'overlay-opacity' => array( 'type' => 'string', ), 'overlay-gradient' => array( 'type' => 'string', ), ), ), ), ), ), 'default' => array( 'desktop' => array( 'background-color' => $apply_new_default_values ? ( $reorder_color_seq ? 'var(--ast-global-color-5)' : 'var(--ast-global-color-4)' ) : '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), ), ) ); $palette_css_var_prefix = Astra_Global_Palette::get_css_variable_prefix(); register_post_meta( '', 'ast-content-background-meta', array( 'single' => true, 'type' => 'object', 'auth_callback' => '__return_true', 'show_in_rest' => array( 'schema' => array( 'type' => 'object', 'properties' => array( 'desktop' => array( 'type' => 'object', 'properties' => array( 'background-color' => array( 'type' => 'string', ), 'background-image' => array( 'type' => 'string', ), 'background-repeat' => array( 'type' => 'string', ), 'background-position' => array( 'type' => 'string', ), 'background-size' => array( 'type' => 'string', ), 'background-attachment' => array( 'type' => 'string', ), 'background-type' => array( 'type' => 'string', ), 'background-media' => array( 'type' => 'string', ), 'overlay-type' => array( 'type' => 'string', ), 'overlay-color' => array( 'type' => 'string', ), 'overlay-opacity' => array( 'type' => 'string', ), 'overlay-gradient' => array( 'type' => 'string', ), ), ), 'tablet' => array( 'type' => 'object', 'properties' => array( 'background-color' => array( 'type' => 'string', ), 'background-image' => array( 'type' => 'string', ), 'background-repeat' => array( 'type' => 'string', ), 'background-position' => array( 'type' => 'string', ), 'background-size' => array( 'type' => 'string', ), 'background-attachment' => array( 'type' => 'string', ), 'background-type' => array( 'type' => 'string', ), 'background-media' => array( 'type' => 'string', ), 'overlay-type' => array( 'type' => 'string', ), 'overlay-color' => array( 'type' => 'string', ), 'overlay-opacity' => array( 'type' => 'string', ), 'overlay-gradient' => array( 'type' => 'string', ), ), ), 'mobile' => array( 'type' => 'object', 'properties' => array( 'background-color' => array( 'type' => 'string', ), 'background-image' => array( 'type' => 'string', ), 'background-repeat' => array( 'type' => 'string', ), 'background-position' => array( 'type' => 'string', ), 'background-size' => array( 'type' => 'string', ), 'background-attachment' => array( 'type' => 'string', ), 'background-type' => array( 'type' => 'string', ), 'background-media' => array( 'type' => 'string', ), 'overlay-type' => array( 'type' => 'string', ), 'overlay-color' => array( 'type' => 'string', ), 'overlay-opacity' => array( 'type' => 'string', ), 'overlay-gradient' => array( 'type' => 'string', ), ), ), ), ), ), 'default' => array( 'desktop' => array( 'background-color' => $reorder_color_seq ? 'var(' . $palette_css_var_prefix . '4)' : 'var(' . $palette_css_var_prefix . '5)', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => $reorder_color_seq ? 'var(' . $palette_css_var_prefix . '4)' : 'var(' . $palette_css_var_prefix . '5)', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => $reorder_color_seq ? 'var(' . $palette_css_var_prefix . '4)' : 'var(' . $palette_css_var_prefix . '5)', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), ), ) ); } /** * Setup meta options for Astra meta settings. * * @since 3.7.8 */ public static function post_meta_options() { $palette_css_var_prefix = Astra_Global_Palette::get_css_variable_prefix(); $apply_new_default_values = astra_button_default_padding_updated(); $reorder_color_seq = Astra_Dynamic_CSS::astra_4_8_9_compatibility(); self::$meta_option = apply_filters( 'astra_meta_box_options', array( 'ast-global-header-display' => array( 'sanitize' => 'FILTER_SANITIZE_STRING', ), 'ast-banner-title-visibility' => array( 'sanitize' => 'FILTER_SANITIZE_STRING', ), 'ast-hfb-above-header-display' => array( 'sanitize' => 'FILTER_SANITIZE_STRING', ), 'ast-main-header-display' => array( 'sanitize' => 'FILTER_SANITIZE_STRING', ), 'ast-hfb-below-header-display' => array( 'sanitize' => 'FILTER_SANITIZE_STRING', ), 'ast-hfb-mobile-header-display' => array( 'sanitize' => 'FILTER_SANITIZE_STRING', ), 'footer-sml-layout' => array( 'sanitize' => 'FILTER_SANITIZE_STRING', ), 'footer-adv-display' => array( 'sanitize' => 'FILTER_SANITIZE_STRING', ), 'site-post-title' => array( 'sanitize' => 'FILTER_SANITIZE_STRING', ), 'site-sidebar-layout' => array( 'default' => 'default', 'sanitize' => 'FILTER_SANITIZE_STRING', ), 'ast-site-content-layout' => array( 'default' => '', 'sanitize' => 'FILTER_DEFAULT', ), 'site-content-style' => array( 'default' => 'default', 'sanitize' => 'FILTER_DEFAULT', ), 'site-sidebar-style' => array( 'default' => 'default', 'sanitize' => 'FILTER_DEFAULT', ), 'astra-migrate-meta-layouts' => array( 'default' => 'default', 'sanitize' => 'FILTER_DEFAULT', ), 'ast-featured-img' => array( 'sanitize' => 'FILTER_SANITIZE_STRING', ), 'ast-breadcrumbs-content' => array( 'sanitize' => 'FILTER_SANITIZE_STRING', ), 'ast-page-background-enabled' => array( 'default' => 'default', 'sanitize' => 'FILTER_DEFAULT', ), 'ast-page-background-meta' => array( 'default' => array( 'desktop' => array( 'background-color' => $apply_new_default_values ? ( $reorder_color_seq ? 'var(--ast-global-color-5)' : 'var(--ast-global-color-4)' ) : '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), ), 'sanitize' => 'FILTER_DEFAULT', ), 'ast-content-background-meta' => array( 'default' => array( 'desktop' => array( 'background-color' => $reorder_color_seq ? 'var(' . $palette_css_var_prefix . '4)' : 'var(' . $palette_css_var_prefix . '5)', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), 'tablet' => array( 'background-color' => $reorder_color_seq ? 'var(' . $palette_css_var_prefix . '4)' : 'var(' . $palette_css_var_prefix . '5)', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), 'mobile' => array( 'background-color' => $reorder_color_seq ? 'var(' . $palette_css_var_prefix . '4)' : 'var(' . $palette_css_var_prefix . '5)', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'background-type' => '', 'background-media' => '', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', ), ), 'sanitize' => 'FILTER_DEFAULT', ), ) ); } } } /** * Footer disable on archive pages. * * @param bool $display_footer for controling the header and footer enable/disable options. * * @since 3.9.4 */ function astra_footer_bar_display_cb( $display_footer ) { if ( is_home() && ! is_front_page() ) { $page_for_posts = get_option( 'page_for_posts' ); $display_footer = get_post_meta( $page_for_posts, 'footer-sml-layout', true ); } return $display_footer; } add_filter( 'astra_footer_bar_display', 'astra_footer_bar_display_cb', 99, 1 ); /** * Kicking this off by calling 'get_instance()' method */ Astra_Meta_Boxes::get_instance(); PKmmZCoff1metabox/extend-metabox/css/unminified/metabox.cssnu[.ast-header-settings-modal .components-modal__header svg { width: 30px; height: 30px; } .ast-sidebar-container .ast-sidebar-layout-meta-wrap .components-input-control__container .components-select-control__input { padding: 3px 24px 3px 8px; font-size: 14px; line-height: 25px; margin-bottom: 3px; } .ast-sidebar-layout-meta-wrap .components-toggle-control label { font-size : 14px; } .ast-sidebar-layout-meta-wrap .components-toggle-control { margin-bottom: 15px; } .ast-radio-image-controller .customize-control-title { font-weight: 500; } .ast-sidebar-layout-meta-wrap { margin-bottom: 13px; } .ast-meta-settings-divider:before { width: auto; margin: 1px -16px; } .ast-meta-settings-divider { padding-top: 10px; } .ast-meta-settings-divider:before { content: ''; display: block; height: 1px; background: #e2e4e7; } .ast-meta-settings-title:not([data-type='ast-first']) { padding-top: 4px; } .ast-meta-settings-title { font-size: 13px; font-weight: 700; } .ast-radio-image-controller input { display: none; } .ast-radio-image-controller input:checked + label svg { color: var(--wp-admin-theme-color); background: var(--wp-admin-theme-color); border-color: transparent; box-shadow: 0 12px 20px -8px rgb(30 41 59 / 16%); border-bottom-color: #f0f0f1; border-radius: 4px; opacity: 1; } .ast-radio-image-controller > .options-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); grid-column-gap: 23px; grid-row-gap: 23px; } .ast-radio-image-controller .ast-radio-img-svg svg { color: #A0AEC0; width: 100%; height: auto; background: rgba(221,224,226,.5); border: 1px solid var(--ast-customizer-color-7); border-radius: 4px; transition: all 0.2s; transition: 0.06s all; } .ast-radio-image-controller label { position: relative; display: inline-block; } .ast-radio-image-controller input + label .image-clickable { position: absolute; top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100%; } div#astra_settings_meta_box { padding: 0; overflow: hidden; } .components-panel__body .components-base-control__field { padding: 5px 0 0; } .ast-meta-selector-wrapper { display: -webkit-box; display: -ms-flexbox; display: flex; } .ast-meta-selector-wrapper .ast-selector-inner-wrap { flex: 1 1 auto; display: flex; } .ast-selector-inner-wrap .components-button { white-space: nowrap; background: rgba(255,255,255,0); color: rgba(0, 0, 0, 0.966); text-decoration: none; text-shadow: none; outline: unset; border: 1px solid #d2d2d2; width: 100%; height: 100%; text-align: center; justify-content: center; border-radius: unset; transition: none; font-size: 12px; padding: 8px 12px; } .ast-selector-inner-wrap .components-button.is-primary { color: #ffffff; background: #007cba; } .ast-meta-selector-controller .ast-selector-inner-wrap:first-child .components-button { border-radius: 2px 0px 0px 2px; } .ast-meta-selector-controller .ast-selector-inner-wrap:not(:first-child) .components-button { margin-left: -1px; } .ast-meta-selector-controller .ast-selector-inner-wrap:not(:first-child):not(:last-child) .components-button { border-right: none; } .ast-meta-selector-controller .ast-selector-inner-wrap:last-child .components-button { border-radius: 0px 2px 2px 0px; } .ast-meta-selector-controller .ast-selector-inner-wrap .components-button:focus:not(:disabled) { box-shadow: none; } .ast-meta-settings-content .components-toggle-control .components-base-control__field, .ast-sidebar-container .components-toggle-control .components-base-control__field, .ast-meta-settings-content .components-toggle-control .components-base-control__field .components-flex, .ast-sidebar-container .components-toggle-control .components-base-control__field .components-flex { justify-content: space-between; flex-direction: row-reverse; margin-bottom: 0; } .ast-custom-layout-panel .components-button { padding-right: 15px; } .ast-title-container { -js-display: flex; display: flex; flex-grow: 1; } /** * Popup content compat CSS. */ .ast-header-settings-modal { min-width: auto; width: 100%; max-width: 700px; height: auto; border-radius: 2px; max-height: 600px; top: 45%;box-shadow: 0px 10px 36px -10px rgb(0 0 0 / 25%); } .components-modal__icon-container { margin-right: 15px; margin-top: 5px; } .ast-header-settings-modal .components-modal__content { -js-display: flex; display: flex; flex-direction: column; padding: 0; } .ast-header-settings-modal .components-modal__content::before { margin-bottom: 0; } .ast-header-settings-modal .components-modal__header { padding-left: 24px; border-bottom: 0; padding-bottom: 20px; padding-top: 20px; margin: 0; border-radius: 2px 2px 0px 0px; box-shadow: 0px 6px 8px -3px rgb(0 0 0 / 5%), 0px 4px 6px -2px rgb(0 0 0 / 5%); } .ast-meta-settings-content { overflow-y: auto; margin: 0; padding: 0; } .ast-meta-settings-hook-table.widefat { border-width: 0; } .ast-meta-settings-hook-table:last-of-type { border-bottom-width: 0; } .ast-extra-spacing .ast-border { border-right: 1px solid #E1E1E1; } .ast-extra-spacing-bottom td { border-bottom: 1px solid #E1E1E1; } td.ast-advanced-hook-row-heading { border-right: 1px solid #E1E1E1; padding: 12px 20px 12px 25px; width: 25%; vertical-align: middle; } .ast-meta-settings-hook-table .ast-advanced-hook-row-content { padding: 12px 20px 12px 25px; position: relative; width: 75%; } .ast-time-duration .ast-advanced-hook-row td { border-bottom: 0; } .ast-cl-footer-container { position: sticky; bottom: 0; border-radius: 0px 0px 2px 2px; background: #FFF; z-index: 9; box-shadow: 0px -6px 8px -3px rgb(0 0 0 / 5%), 0px -4px 6px -2px rgb(0 0 0 / 5%); } .ast-button-container { -js-display: flex; display: flex; justify-content: space-between; padding: 14px 20px 14px 24px; } .ast-cl-popup-notice { -js-display: flex; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 14px; } .ast-button-container button.button { min-height: 35px; background-color: #FFF; } .ast-cl-popup-notice .dashicons { font-size: 22px; color: #1F2937; margin-right: 10px; } .components-modal__header .components-button svg { width: 35px; height: 35px; } .ast-header-settings-modal .components-modal__header-heading-container { justify-content: initial; } .components-modal__header .components-button { width: 60px; height: 60px; right: 0; bottom: 0; left: auto; } .components-button:focus:not(:disabled) { box-shadow: none; outline: 1.5px solid transparent; } .ast-advanced-hook-row-content section { max-width: 250px; } .ast-advanced-hook-row-content .components-toggle-control:not(:last-child) { margin-bottom: 20px; } .ast-meta-image-tooltip { position: absolute; z-index: 200; width: auto; height: 26px; padding: 0 6px; font-size: 12px; font-weight: normal; letter-spacing: initial; text-transform: initial; -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; white-space: nowrap; border-radius: 2px; pointer-events: none; color: #fff; background: #1e1e1e; opacity: 0; visibility: hidden; transition: opacity 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955),transform 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955),visibility 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955); transform: translate3d(0px, -30px, 0px); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: inherit; left: 50%; top: -38%; transform: translateX(-50%); } .ast-radio-img-svg:hover .ast-meta-image-tooltip { opacity: 1; visibility: visible; } .ast-pro-upgrade-cta-wrapper { padding: 20px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px; } p.ast-upgrade-description { margin: 0; } a.ast-pro-upgrade-link { color: #0284C7; display: block; width: 100%; text-decoration: none; padding: 8px; border: 1px solid #0284C7; border-radius: 2px; } .ast-sub-section-title { display: inline-block; margin-top: 5px; margin-bottom: 12px; font-size: 14px; } #ast-label-container-style { margin-top: 16px; } #ast-label-sidebar-style { margin-top: 16px; } /** Responsive Background CSS **/ .customize-control-ast-responsive-background { position: relative; margin-bottom: -5px; margin-top: 20px; display: flex; } .customize-control-ast-responsive-background .background-container h4 { font-size: 14px; font-weight: 600; color: #555d66; } .customize-control-ast-responsive-background .background-attachment h4, .customize-control-ast-responsive-background .background-color h4, .customize-control-ast-responsive-background .background-position h4, .customize-control-ast-responsive-background .background-repeat h4, .customize-control-ast-responsive-background .background-size h4 { margin-bottom: 5px; margin-top: 10px; } .customize-control-ast-responsive-background .background-color { margin-bottom: 12px; } .customize-control-ast-responsive-background .background-repeat { margin: 15px 0 15px 0; } .customize-control-ast-responsive-background .background-attachment .buttonset, .customize-control-ast-responsive-background .background-size .buttonset { display: flex; flex-wrap: wrap; } .customize-control-ast-responsive-background .background-attachment .buttonset .switch-label, .customize-control-ast-responsive-background .background-size .buttonset .switch-label { background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.1); color: #555; padding: 2px 4px; margin-right: 15px; text-align: center; flex-grow: 1; transition: background-color 140ms linear; } .customize-control-ast-responsive-background .background-attachment .buttonset .switch-label:last-child, .customize-control-ast-responsive-background .background-size .buttonset .switch-label:last-child { margin-right: 0; } .customize-control-ast-responsive-background .background-attachment .buttonset .switch-input:checked + .switch-label, .customize-control-ast-responsive-background .background-size .buttonset .switch-input:checked + .switch-label { background-color: #f5f5f5; color: #565e67; } .customize-control-ast-responsive-background .background-attachment .buttonset .switch-input[checked="checked"] + .switch-label, .customize-control-ast-responsive-background .background-size .buttonset .switch-input[checked="checked"] + .switch-label { background-color: #f5f5f5; color: #565e67; } .customize-control-ast-responsive-background .ast-bg-img-remove.components-button.is-link { width: 100%; border: 1px dashed #b4b9be; box-sizing: border-box; box-shadow: unset; padding: 9px 0; line-height: 1.6; margin-top: 10px; text-decoration: none; } .customize-control-ast-responsive-background .ast-bg-img-remove.components-button.is-destructive:hover:not(:disabled) { color: #a02222; box-shadow: unset; border-color: #a02222; } .customize-control-ast-responsive-background .more-settings { margin-top: 12px; display: flex; justify-content: flex-end; padding: 5px 0 5px 0; cursor: pointer; float: none; text-decoration: none; } .customize-control-ast-responsive-background .more-settings:focus { outline: 0; box-shadow: none; } .customize-control-ast-responsive-background .arrow-icon { margin-left: 5px; } .customize-control-ast-responsive-background .background-container { display: none; } .customize-control-ast-responsive-background .background-container.active { display: block; } .customize-control-ast-responsive-background .wp-picker-container { display: block; } .customize-control-ast-responsive-background .wp-picker-container .wp-picker-clear { margin-left: 4px; min-height: 30px; } .customize-control-ast-responsive-background .customize-control-content .astra-color-picker-wrap { width: 300px; } .customize-control-ast-responsive-background .customize-control-content .components-color-picker__saturation-color, .customize-control-ast-responsive-background .customize-control-content .components-color-picker__saturation-white { border-radius: unset; } .customize-control-ast-responsive-background .ast-color-btn-clear-wrap { right: 84px; } /** * BG Media Button. */ /** * Gradient field */ .components-color-picker__inputs-toggle-wrapper .components-color-picker__inputs-toggle { vertical-align: middle; height: 32px; } .astra-popover-tabs .components-button.upload-button.button-add-media { width: 100%; position: relative; text-align: center; color: #555d66; border: 1px dashed #b4b9be; box-sizing: border-box; box-shadow: unset; padding: 9px 0; line-height: 1.6; } .astra-popover-tabs .components-button.upload-button.button-add-media:hover { color: #555d66; box-sizing: border-box; box-shadow: unset; border-color: #0185ba; } .astra-popover-tabs [ID*="-gradient-view"] { padding: 0 15px 15px 15px; } .astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear { flex: unset; box-shadow: unset; width: auto; padding: 0 5px; } .astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:hover { box-shadow: unset; } .astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:active { box-shadow: unset; } .astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:focus { box-shadow: unset; } .astra-popover-tabs #tab-panel-0-image-view > div { text-align: center; } .astra-popover-tabs #tab-panel-0-image-view > div .media-position-setting { text-align: left; } .media-position-setting > .components-base-control { margin-bottom: 15px; } .media-position-setting [CLASS*="-Item-LabelWrapper"] { margin-bottom: 5px; } .astra-popover-color .components-circular-option-picker { position: relative; margin-top: 0; } .astra-popover-color .components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper { margin-top: 10px; justify-content: flex-start; } @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { .astra-popover-color .components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper { width: 50px; } } .astra-popover-color [ID*="-color-view"] .components-circular-option-picker { width: auto; } .astra-popover-color .ast-color-palette { width: auto; padding: 16px 0px 0px 14px; } .astra-popover-color .ast-color-palette .components-circular-option-picker__option { width: 100%; height: 100%; border-radius: 100%; } .astra-popover-color .ast-color-palette .components-button.is-pressed:focus:not(:disabled) { box-shadow: none; border: none; } .astra-popover-color .components-custom-gradient-picker { margin-top: 0; } .astra-popover-color .components-custom-gradient-picker__gradient-bar { box-sizing: border-box; opacity: 1; } .astra-popover-color .components-custom-gradient-picker__type-picker .components-base-control__label { display: block; } .components-custom-gradient-picker .components-base-control__label { padding-top: 10px; font-size: 12px; display: block; letter-spacing: 0.1px; line-height: 18px; } [ID*="-gradient-view"] .components-toolbar.components-custom-gradient-picker__toolbar .components-button.has-icon { border: none; } .media-position-setting.hide-settings { display: none; } .media-position-setting .astra-popover-tabs [ID*="-gradient-view"] { padding: 0 0 15px 0; } .ast-field-settings-modal .customize-control-content .color-button-wrap { right: 30px; top: 0; } .ast-field-settings-modal .ast-responsive-btns { position: absolute; right: 14px; top: 4px; } .ast-field-settings-modal .customize-control-content .astra-color-picker-wrap { margin-left: 0; margin-top: 0; } .ast-field-settings-modal .customize-control-content .ast-color-btn-reset-wrap { right: 65px; top: 7px; } .ast-field-settings-modal .customize-control-content .ast-color-btn-clear-wrap { right: 91px; } .ast-field-settings-modal .customize-control-ast-responsive-background.customize-control:first-child { margin-top: 28px; } .customize-control-ast-responsive-background .ast-color-btn-reset-wrap, .customize-control-ast-responsive-color .ast-color-btn-reset-wrap { display: inline-block; line-height: 1; top: 4.5px; } .customize-control-ast-responsive-background .ast-responsive-btns, .customize-control-ast-responsive-color .ast-responsive-btns { position: relative; top: 0.1em; left: 0.2em; } /** Responsive Color CSS **/ .customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha { display: none; } .customize-control-ast-responsive-color .customize-control-content { display: block; margin-top: 5px; } .customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha .astra-color-picker-wrap .components-color-picker__saturation-black { border-radius: 4px 4px 0 0; } .customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha .astra-color-picker-wrap .components-color-picker__saturation-color, .customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha .astra-color-picker-wrap .components-color-picker__saturation-white { border-radius: 3px; } .customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha.active { display: block; } .customize-control-ast-responsive-color .customize-control-content .components-color-picker__saturation-color, .customize-control-ast-responsive-color .customize-control-content .components-color-picker__saturation-white { border-radius: unset; } .ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .color-button-wrap { right: 30px; top: -3px; } .ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .astra-color-picker-wrap { margin-left: 0px; margin-bottom: 10px; margin-top: 10px; } .ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .customize-control-title { display: block; margin-bottom: 0px; } .ast-field-settings-modal .customize-control-ast-responsive-color .ast-responsive-btns { right: 7px; top: 1px; } .ast-field-settings-modal .customize-control-ast-responsive-color.customize-control:first-child { margin-top: 28px; } .ast-field-settings-modal .customize-control-ast-responsive-color .ast-clear-btn-inside-picker.components-button { margin: 5px 20px 20px 10px; } .ast-field-settings-modal .customize-control-ast-responsive-color .ast-color-btn-reset-wrap { top: 3.5px; } @supports (-moz-appearance: none) { .ast-field-settings-modal .customize-control-ast-responsive-color .ast-color-btn-reset-wrap { top: 5.5px; right: 65px; } .ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .color-button-wrap { right: 27px; top: -2px; } } /** Color CSS **/ /** Remove Button Color */ .astra-control-field.astra-color-control { display: flex; } .astra-control-field { position: relative; margin-top: 10px; margin-bottom: 10px; } .astra-control-field.astra-color-control .customize-control-title { flex-grow: 2; } .astra-control-field .customize-control-title { font-size: 14px; font-weight: 600; margin-bottom: 0; display: flex; align-items: center; letter-spacing: 0.1px; line-height: 18px; } .customize-control-title { display: block; font-size: 14px; line-height: 1; font-weight: 600; margin-bottom: 4px; } .astra-globe-dashicon { color: #ffffff; background: rgba(0,0,0,0.4); border-radius: 100%; border: 0.1px solid rgba(0,0,0,0.1); opacity: 0.78; } .components-button.astra-color-icon-indicate .component-color-indicator.astra-advanced-color-indicate { width: 28px; height: 28px; border-radius: 50%; margin: 0; background: inherit; } .astra-advanced-color-indicate.component-color-indicator { border: none; } .astra-color-icon-indicate.components-button { height: auto; position: relative; transform: scale(1); transition: none; border-radius: 50%; padding: 0; background-image: linear-gradient(45deg, #ddd 25%, transparent 0), linear-gradient(-45deg, #ddd 25%, transparent 0), linear-gradient(45deg, transparent 75%, #ddd 0), linear-gradient(-45deg, transparent 75%, #ddd 0); background-size: 10px 10px; background-position: 0 0, 0 5px, 5px -5px, -5px 0; } /** Color */ .astra-popover-color .components-popover__content .components-focal-point-picker-wrapper { box-sizing: border-box; } .astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container input[type="number"].components-text-control__input { min-height: 16px; line-height: 16px; font-size: 12px; width: 50px; font-weight: normal; } .astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control { flex: 1; margin-bottom: 0; } .astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control .components-base-control__label { margin-bottom: 0; margin-right: 0.2em; } .astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control__field { display: flex; align-items: center; font-size: 8px; font-weight: 600; font-style: normal; text-transform: uppercase; } .astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control:last-child .components-base-control__field { justify-content: flex-end; } .astra-popover-color .components-popover__content .actions { display: flex; justify-content: center; margin-bottom: 10px; } .astra-popover-color .components-popover__content .actions .button { flex: 1; margin-top: 10px; } .astra-background-picker-wrap .astra-popover-color .components-popover__content { min-width: 300px; min-height: 340px; max-height: 60vh; } .color-button-wrap { display: inline-block; position: absolute; right: 0; top: 0; transform: scale(1); transition: transform .1s ease; height: 28px; width: 28px; } .components-button.astra-color-icon-indicate .astra-advanced-color-indicate:after { content: ""; position: absolute; top: -1px; left: -1px; bottom: -1px; right: -1px; border-radius: 50%; border: 1px solid transparent; } .components-button.astra-background-icon-indicate { width: 50px; height: 50px; border-radius: 50%; position: relative; transform: scale(1); transition: transform 0.1s ease; border-radius: 50%; padding: 0; background-image: linear-gradient(45deg, #ddd 25%, transparent 0), linear-gradient(-45deg, #ddd 25%, transparent 0), linear-gradient(45deg, transparent 75%, #ddd 0), linear-gradient(-45deg, transparent 75%, #ddd 0); border: 1px solid #dadada; background-size: 10px 10px; background-position: 0 0, 0 5px, 5px -5px, -5px 0; } .components-button.astra-background-icon-indicate .component-color-indicator.astra-advanced-color-indicate { width: 100%; height: 100%; border-radius: 4px; margin: 0; display: block; position: absolute; border: 0; top: 0; } .components-button.astra-background-icon-indicate > svg.dashicon { position: absolute; transform: translate(-50%, -50%); left: 50%; top: 50%; color: white; background: rgba(0, 0, 0, 0.6); border-radius: 100%; width: 16px; height: 16px; border: 1px solid rgba(0, 0, 0, 0.1); } .components-button.astra-background-icon-indicate > svg.dashicon path { transform: translate(1px, 1px); } .components-button.astra-background-icon-indicate img.astra-background-image-preview { display: flex; object-fit: cover; min-width: 100%; min-height: 100%; position: absolute; top: 0; } .components-button.astra-background-icon-indicate:hover { box-shadow: none !important; } .astra-control-field.astra-color-control { display: flex; } .astra-control-field.astra-color-control .customize-control-title { flex-grow: 2; } .components-popover.astra-popover-color .components-popover__content { padding: 15px 15px 0px; box-sizing: initial; background: #fff; border: unset; border-radius: 4px; -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); } .customize-control-ast-color.customize-control > * { display: inline; } .components-popover.astra-popover-color .components-popover__content .sketch-picker { padding: 0 0 5px !important; box-shadow: none !important; border-radius: 0px !important; } .components-popover.astra-popover-color .components-popover__content .attachment-media-view { margin-top: 10px; margin-bottom: 10px; } .astra-swatches-wrap .astra-swatche-item-wrap:hover { transform: scale(1.1) !important; } .astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item { background-image: linear-gradient(45deg, #ddd 25%, transparent 0), linear-gradient(-45deg, #ddd 25%, transparent 0), linear-gradient(45deg, transparent 75%, #ddd 0), linear-gradient(-45deg, transparent 75%, #ddd 0); background-size: 10px 10px; background-position: 0 0, 0 5px, 5px -5px, -5px 0; padding: 0; display: flex; justify-content: center; } .astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item .dashicon { display: none; } .astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item.swatch-active { box-shadow: 0 0 0 8px inset !important; } .astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item.swatch-active .dashicon { display: block; color: white; background: rgba(0, 0, 0, 0.6); width: 16px; height: 16px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 100%; } .astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item.swatch-active .dashicon path { transform: translate(1px, 1px); } .components-button.astra-color-icon-indicate > .dashicon { position: absolute; transform: translate(-50%, -50%); left: 50%; top: 50%; color: white; background: rgb(85 93 101); border-radius: 4px; width: 24px; height: 24px; font-size: 24px; border: 1px solid rgba(0, 0, 0, 0.1); } .astra-popover-color { margin: 5px -5px 0; background-color: #ffffff; border-radius: 4px; box-shadow: 0px 1px 16px -4px rgba(30, 41, 59, 0.16); } .astra-popover-color .components-h-stack.ast-color-palette { padding: 14px 5px; } .customize-control-ast-responsive-background .astra-popover-color .components-h-stack.ast-color-palette, .customize-control-ast-color-group .astra-popover-color .astra-background-tabs .components-h-stack.ast-color-palette { padding: 0 5px 14px; } .astra-popover-color .components-h-stack .components-button { flex: inherit; } .astra-popover-color .components-h-stack .components-circular-option-picker__option-wrapper{ margin-right: 0; } .astra-popover-color .components-color-picker .react-colorful__hue, .astra-popover-color .components-color-picker .react-colorful__alpha { width: 90%; } .ast-field-settings-modal .astra-popover-color { margin-left: 0px; border: 1px solid #dedede; } .ast-field-settings-modal .astra-popover-color .components-tab-panel__tabs { padding: 8px; } .components-color-picker__saturation-black { border-radius: 4px 4px 0 0; } .components-color-picker__saturation-color { border-radius: 3px; } .components-color-picker__saturation-white { border-radius: 3px; } .astra-color-picker-wrap { position: absolute; z-index: 2; top: 30px; left: 0; right: 0; bottom: 0; display: none; } .astra-color-picker-wrap .astra-popover-color .components-color-picker, .astra-color-picker-wrap .astra-popover-color .react-colorful { width: 100%; } .astra-popover-color .components-custom-gradient-picker{ z-index: 1; } .astra-popover-color .components-custom-gradient-picker__ui-line{ z-index: -1; } .astra-color-picker-wrap.picker-open{ display: block; } .ast-field-settings-modal .astra-color-picker-wrap { position: relative; top: 10px; } .ast-color-palette .components-circular-option-picker__option-wrapper { margin-right: 6px; position: relative; height: 25px; width: 25px; } /* Clear Button CSS */ .ast-color-btn-clear-wrap { position: absolute; top: 1.5px; right: 65px; } .ast-color-btn-clear-wrap .astra-color-clear-button.components-button { padding: 10px 3px; width: 20px; height: 20px; } .ast-clear-btn-inside-picker.components-button, .ast-reset-btn-inside-picker.components-button, .astra-popover-tabs .ast-clear-btn-inside-picker.components-button { margin: 5px 20px 20px 15px; padding: 0 8px; border: 1px solid #ccc; box-shadow: none; } .ast-clear-btn-inside-picker.components-button:hover, .astra-popover-tabs .ast-clear-btn-inside-picker.components-button:hover, .ast-clear-btn-inside-picker.components-button:focus, .astra-popover-tabs .ast-clear-btn-inside-picker.components-button:focus, .ast-clear-btn-inside-picker.components-button:active, .astra-popover-tabs .ast-clear-btn-inside-picker.components-button:active, .astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:active { box-shadow: none !important; background: transparent !important; } .ast-clear-btn-inside-picker { padding: 0 8px; } /* Reset Button CSS */ .ast-color-btn-reset-wrap { position: absolute; right: 36px; top: 6px; } .ast-color-btn-reset-wrap .ast-reset-btn.components-button, .ast-resp-slider-reset-wrap .ast-reset-btn.components-button { color: #006BA1; height: 20px; width: 20px; padding: 4px; background: transparent; box-shadow: none !important; cursor: pointer; } .astra-color-clear-button.components-button:focus:not(:disabled) { outline: unset; border: none; } .ast-color-btn-reset-wrap .ast-reset-btn.components-button:hover, .ast-color-btn-reset-wrap .ast-reset-btn.components-button:focus, .ast-resp-slider-reset-wrap .ast-reset-btn.components-button:hover, .ast-resp-slider-reset-wrap .ast-reset-btn.components-button:focus { box-shadow: none; border: none; background: transparent; } .astra-color-clear-button.components-button.is-secondary:hover:not(:disabled), .astra-color-clear-button.components-button:focus:not(:disabled) { box-shadow: 0 0 black; padding: 1.5px; border: none; } .astra-color-clear-button.components-button.is-secondary:disabled, .ast-reset-btn.components-button.is-secondary:disabled span { color: var(--ast-customizer-color-6); } /** Inside Setting group popup - Colors */ .ast-field-settings-modal .color-button-wrap { right: 16px; } .ast-field-settings-modal .ast-color-btn-reset-wrap { right: 59px; top: 6px; } .ast-field-settings-modal .ast-color-btn-clear-wrap { right: 78px; } .ast-field-settings-modal .customize-control-ast-color.customize-control, .ast-field-settings-modal .customize-control-ast-color.customize-control:first-child { margin-top: 25px; } .astra-color-picker-wrap .components-color-picker__inputs-wrapper { min-width: unset; } /** Gradient Color Picker */ .customize-control .ast-gradient-color-picker input[type="number"] { width: 100%; } .ast-gradient-color-picker .components-select-control.components-custom-gradient-picker__type-picker { align-items: center; flex-direction: inherit; } .astra-color-picker-wrap .components-popover__content { width: max-content; } .astra-color-picker-wrap .components-custom-gradient-picker__inserter .components-color-picker, .astra-color-picker-wrap .astra-popover-color .ast-gradient-ui .components-color-picker, .astra-color-picker-wrap .astra-popover-color .ast-gradient-ui .react-colorful { width: 216px; } .astra-color-picker-wrap .ast-gradient-ui .components-select-control.components-custom-gradient-picker__type-picker { flex-direction: column; align-items: start; } .astra-color-picker-wrap .ast-gradient-ui .components-angle-picker-control { margin-bottom: 0; } .astra-color-picker-wrap .ast-gradient-ui .components-custom-gradient-picker__remove-control-point { padding: 0 16px 16px 16px; border: 0; } .astra-color-picker-wrap .ast-gradient-ui .components-custom-gradient-picker__remove-control-point:focus { box-shadow: none; outline: none; } /** Gradient Color Picker -> RGBA & HSLA range fields */ .customize-control .ast-gradient-color-picker .is-alpha-enabled .components-base-control__field [type="number"] { width: 100%; } /** Modal Color Picker - Group Param */ .ast-field-settings-modal .components-circular-option-picker__option-wrapper .components-circular-option-picker__option:focus::after { width: 24px; height: 24px; } .ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option-wrapper { height: 25px; width: 25px; } .ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option.is-pressed + svg { left: 2.5px; top: 0px; width: 20px; } .ast-color-palette .components-circular-option-picker__option.is-pressed + svg { left: 0; top: 0; mix-blend-mode: difference; } .astra-popover-color .components-circular-option-picker .components-circular-option-picker__swatches { gap: 4px; justify-content: center; } .astra-popover-color .components-circular-option-picker__option-wrapper:hover { transform: scale(1.1); } .customize-control-ast-color + .customize-control-ast-color { margin-top: 30px; } @supports (-moz-appearance:none) { @media (max-width: 1845px) { .ast-color-palette .components-circular-option-picker__option-wrapper { margin-right: 5px; } .ast-field-settings-modal .components-circular-option-picker__option-wrapper .components-circular-option-picker__option:focus::after { width: 21px; height: 21px; } .ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option-wrapper { height: 20px; width: 20px; } .ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option.is-pressed + svg { left: 3px; top: -2px; width: 15px; } } } .astra-color-icon-indicate.components-button:focus:not(:disabled) { box-shadow: unset; outline: unset; } .astra-color-icon-indicate.components-button:hover { transform: scale(1.05); } .ast-top-divider.customize-control-ast-color .ast-divider-title + .ast-control-wrap, .ast-top-divider.customize-control-ast-color-group .ast-divider-title + .ast-control-wrap { margin-top: 25px; display: inline-flex; width: 100%; min-height: 22px; } .ast-top-divider.customize-control-ast-toggle-control .ast-divider-title + .ast-togglecontrol-wrapper, .ast-bottom-divider.customize-control-ast-toggle-control .ast-divider-title + .ast-togglecontrol-wrapper, .ast-top-divider.customize-control-ast-responsive-toggle-control .ast-divider-title + .ast-responsive-toggle-control-wrapper, .ast-top-divider.customize-control-ast-responsive-color .ast-divider-title + .ast-control-wrap, .ast-top-divider.customize-control-ast-slider .ast-divider-title + .ast-slider-wrap, .customize-control-ast-color-group .ast-divider-title + .ast-control-wrap { margin-top: 25px; } .ast-top-divider.customize-control-ast-color-group .ast-control-wrap { display: inline-flex; width: 100%; } .ast-top-divider .ast-divider-title + .ast-control-wrap .ast-color-btn-reset-wrap { top: 67px; } .ast-top-divider .ast-divider-title + .ast-control-wrap .color-button-wrap { top: 61px; } .ast-top-divider.customize-control-ast-responsive-color .ast-divider-title + .ast-control-wrap .ast-responsive-btns { top: 70px; } .ast-color-palette.components-circular-option-picker .components-circular-option-picker__swatches{ width: 100%; } /** Popover Structure CSS **/ .ast-adv-toggle-icon { right: 2px; position: absolute; width: 18px; height: 18px; font-size: 18px; border-radius: 2px; padding: 4px; color: var(--ast-customizer-color-8); background: var(--ast-customizer-color-9); cursor: pointer; } .ast-adv-toggle-icon:hover { color: var(--ast-customizer-color-1); } .ast-adv-toggle-icon:before { content: "\f464"; } .ast-adv-toggle-icon.open:before { content: "\f158"; } .ast-field-settings-modal { position: absolute; -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); -webkit-border-radius: 3px; border-radius: 3px; left: 0; right: 0; z-index: 8; background-color: #fff; } .customize-control-ast-color-palette .ast-field-settings-modal { z-index: 11; } .ast-field-settings-modal .customize-control-ast-divider:first-child { margin-top: 15px; } .ast-field-settings-wrap { width: 100%; } .ast-group-tabs, .ast-tab-content { position: relative; } .ast-group-list { overflow: hidden; border-bottom: 1px solid #ddd; } .ast-group-list:before, .ast-group-list:after { content: ""; display: table; border-collapse: collapse; } /* Tab anchor color */ .ui-tabs-anchor { float: left; padding: .5em 0.5em; color: #555d66; text-decoration: none; } .ui-state-active .ui-tabs-anchor { color: #ffffff; } .ui-tabs-anchor:hover { color: #555d66; } .ui-state-active .ui-tabs-anchor:hover { color: #ffffff; } .ast-group-tabs .ui-widget-content { overflow: hidden; /*padding-top: 15px;*/ } .ast-group-tabs .ui-widget-content.iris-slider-offset, .ast-group-tabs .ui-widget-content.iris-slider-offset-alpha { overflow: inherit; } .ast-fields-wrap { overflow: hidden; } .ast-field-settings-wrap { -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); -webkit-border-radius: 3px; background-color: #fff; } .ast-field-settings-wrap .ast-field-settings-modal { border-radius: 3px; margin-top: 10px; margin-bottom: 20px; } .ast-field-settings-modal::before { content: ''; position: absolute; top: -17px; right: 8px; border: 9px solid transparent; border-bottom-color: #fff; pointer-events: none; } .ast-group-tabs .ui-tabs-nav { display: flex; padding: 15px 15px 0 15px; } .ast-group-tabs .ui-tabs-nav .ui-corner-top { align-items: center; flex: 1 1 auto; justify-content: center; margin: 0 0; padding: 0; border: 1px solid #ccc; transition: background-color 140ms linear; } .ast-group-tabs .ui-tabs-nav .ui-corner-top:first-child { border-radius: 3px 0px 0px 3px; } .ast-group-tabs .ui-tabs-nav .ui-corner-top:last-child { border-radius: 0px 3px 3px 0px; } .ast-group-tabs .ui-tabs-nav .ui-corner-top .ui-tabs-anchor { width: 100%; text-align: center; padding: 2px 4px; padding-left: 0; padding-right: 0; outline: none; } .ast-group-tabs ul.ast-group-list .ui-corner-top .ui-tabs-anchor:focus { box-shadow: none; } .ast-group-tabs .ui-tabs-nav { border: none; } .ast-group-tabs ul.ast-group-list .ui-corner-top.ui-state-active { background-color: #0185BA; border: 1px solid rgba(0, 0, 0, 0.1); } .ast-group-tabs .ui-tabs-nav { overflow: visible; } .ast-group-tabs ul.ast-group-list .ui-corner-top:not(:first-child) { border-left-width: 0; } /* Buttons */ .wp-core-ui .ast-field-settings-modal .background-image-upload .button { font-size: 11px; } /* Popup params padding */ .ast-field-settings-modal .customize-control { padding-left: 16px; padding-right: 16px; box-sizing: border-box; } .ast-control-wrap .ast-color-picker-alpha { margin-left: -5px; margin-right: -5px; } .ast-field-settings-modal .customize-control:first-child { margin-top: 16px; } .ast-field-settings-modal .ui-tabs-nav .customize-control:first-child { margin-top: 0; } .ast-field-settings-modal .customize-control:last-child { padding-bottom: 16px; } .customize-control-ast-settings-group { line-height: 27px; } .customize-control-ast-settings-group .customize-control-title { margin-bottom: 0; } .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-title { margin-bottom: 10px; font-size: 13px; margin-top: 3px; } .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-responsive-units, .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-range-unit, .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-slider .ast-range-unit, .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-slider .ast-range-unit { top: 6px; } .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-resp-slider-reset-wrap, .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-slider .ast-resp-slider-reset-wrap { top: 3px; } .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-slider .ast-responsive-slider-btns, .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-responsive-slider-btns { top: 2px; } .ast-field-settings-modal .customize-control { margin-top: 2px; } #customize-control-headings-font-extras.ast-sub-top-dotted-divider { margin-top: 12px; } /** * Popover Tab Structure. */ .astra-popover-tabs { position: relative; top: 5px; } .astra-popover-tabs .components-tab-panel__tabs { display: flex; padding: 15px; border: none; } .astra-popover-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item { color: #555d66; font-size: 13px; font-weight: 400; height: 35px; transition: unset; padding: 2px 4px; text-decoration: none; border-radius: 0; border: 1px solid rgba(0, 0, 0, 0.1); } .astra-popover-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:active { box-shadow: unset; } .astra-popover-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus { box-shadow: unset; } .astra-popover-tabs [ID*="-image-view"] { padding: 15px; border: none; } .astra-popover-tabs .components-button { align-items: center; flex: 1 1 auto; justify-content: center; margin: 0 0; padding: 0; border: 1px solid #ccc; transition: background-color 140ms linear; } .astra-popover-tabs .components-tab-panel__tabs-item:first-child { border-radius: 3px 0px 0px 3px; } .astra-popover-tabs .components-tab-panel__tabs-item:last-child { border-radius: 0px 3px 3px 0px; } .astra-popover-tabs .components-tab-panel__tabs-item:not(:first-child) { border-left-width: 0; } .astra-popover-tabs .components-tab-panel__tabs-item.active-tab { background-color: #0185BA; color: #ffffff; } .astra-popover-tabs.astra-media-tab .components-tab-panel__tabs, .astra-popover-tabs.astra-media-tab .components-tab-panel__tab-content { padding: 0; } .astra-popover-tabs.astra-media-tab .components-tab-panel__tabs-item.active-tab { border-color: var(--ast-customizer-color-3); background: var(--ast-customizer-color-1); } .astra-popover-tabs.astra-media-tab .components-tab-panel__tab-content .ast-social-icon-picker-label { text-align: left; } .astra-media-tab .astra-media-image { width: 100%; margin-bottom: 0; } .astra-media-tab .ast-media-btn { display: block; width: 100%; border: 1px dashed var(--ast-customizer-color-7); box-sizing: border-box; box-shadow: unset; padding: 9px 0; line-height: 1.6; text-decoration: none; } .astra-media-tab .ast-danger-btn { color: var(--ast-customizer-color-14); margin-top: 10px; } .astra-media-tab .ast-media-btn:hover { border-color: var(--ast-customizer-color-3); } .astra-media-tab .ast-danger-btn:hover { border-color: var(--ast-customizer-color-14); } .components-base-control.ast-text-control-input { margin-bottom: 16px; } .ast-payments-text-control-input .components-base-control__label { text-transform: none; color: #334155; font-size: 13px; } .components-base-control.ast-payments-text-control-input { margin-bottom: 20px; } .components-base-control.ast-text-control-input input { border-color: var(--ast-customizer-color-7); color: var(--ast-customizer-color-5); } .astra-popover-color .astra-popover-tabs .components-tab-panel__tabs button.components-tab-panel__tabs-item.active-tab:not(.is-primary):not(.is-tertiary):not(.is-link):hover { color: #fff; } .components-popover.astra-popover-color .components-popover__content { min-width: 310px; max-height: 60vh; padding: 0; -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); } .ast-field-settings-modal .components-popover.astra-popover-color .components-popover__content { min-width: 320px; min-height: 325px; } .ast-field-settings-modal .background-wrapper .components-popover.astra-popover-color .components-popover__content { min-height: 385px; } .ast-field-settings-modal .components-angle-picker-control .components-flex__block { min-width: auto; } .customize-control-ast-settings-group .customize-control-ast-slider .wrapper .ast-resp-slider-reset-wrap, .customize-control-ast-settings-group .customize-control-ast-responsive-slider .wrapper .ast-resp-slider-reset-wrap { margin-top: 0; } /* * Divider compatibility CSS for setting group. */ .ast-top-divider.customize-control-ast-settings-group .ast-toggle-desc-wrap .ast-adv-toggle-icon { top: 23px; } /** * Responsive slider control inside settings-group, case: body-font, headings-font. */ .ast-fields-wrap .customize-control-ast-responsive-slider .ast-slider-wrap > label, .ast-fields-wrap .customize-control-ast-selector .ast-slider-wrap > label { display: inline-block; } /** Color Pallete CSS **/ #customize-control-astra-color-palettes .ast-color-palette-wrap > div { margin-bottom: 8px; position: relative; } #customize-control-astra-color-palettes .color-button-wrap { display: unset; position: relative; right: unset; top: unset; vertical-align: sub; z-index: 10; } #customize-control-astra-color-palettes .astra-color-picker-wrap { position: absolute; z-index: 1; right: 0; width: 100%; display: none; margin-top: 10px; } #customize-control-astra-color-palettes .astra-color-picker-wrap.picker-open{ display: block; } #customize-control-astra-color-palettes .ast-color-palette-label { width: 65%; display: inline-block; margin-right: 10px; vertical-align: top; } #customize-control-astra-color-palettes .ast-color-palette-label input { background: none; border: none; } #customize-control-astra-color-palettes .ast-color-palette-label input:focus { border: 1px solid black; outline: none; box-shadow: none; background: white; } .ast-color-palette-wrapper .ast-single-palette-wrap { display: grid; grid-template-columns: repeat(9, 1fr); align-items: center; position: relative; gap: 2px; } .ast-single-palette-wrap .components-button.astra-color-icon-indicate .component-color-indicator.astra-advanced-color-indicate { width: 25px; height: 25px; } #customize-control-astra-color-palettes .ast-color-palette-wrapper .ast-color-picker-wrap:first-child { margin-left: 0; } #customize-control-astra-color-palettes .ast-color-palette-wrapper .ast-color-picker-wrap { margin-top: 12px; cursor: pointer; } #customize-control-astra-color-palettes .ast-reset-btn:disabled { opacity: 0.6; } #customize-control-astra-color-palettes .ast-single-color-container { width: 25%; height: 48px; display: inline-block; } #customize-control-astra-color-palettes .ast-color-palette-wrap > section { text-align: center; outline: none; border-radius: 3px; cursor: pointer; transition: all 0.2s; box-shadow: 0 0 0 1px #ddd; } .ast-color-palette-container { width: 100%; display: inline-grid; grid-template-columns: auto auto; column-gap: 16px; row-gap: 16px; } #customize-control-astra-color-palettes .ast-field-settings-modal { display: none; padding: 16px; } .ast-color-palette-wrap { transition: all 0.2s; } .ast-color-palette-wrap.active { box-shadow: 0px 12px 20px -8px rgb(30 41 59 / 16%); } #customize-control-astra-color-palettes .ast-color-palette-wrapper { clear: both; } #customize-controls .customize-section-title.is-in-view.is-sticky { z-index: 99; } #customize-control-astra-color-palettes .ast-palette-selection-wrapper { overflow: hidden; padding: 2px; } @media (min-width: 1800px) { #customize-control-astra-color-palettes .astra-color-picker-wrap { width: auto; } } #customize-control-astra-color-palettes .ast-color-palette-wrap.active > section { box-shadow: 0 0 0 1px #334155; } .ast-palette-label-wrap{ display: inline-block; text-align: center; color: #9CA3AF; overflow: hidden; width: 100%; box-sizing: border-box; padding: 0; transition: .15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out; font-style: normal; font-weight: 600; font-size: 10px; line-height: 22px; letter-spacing: 1.5px; text-transform: uppercase; } .ast-color-palette-wrap.active .ast-palette-label-wrap { color: #334155; } #customize-control-astra-color-palettes .ast-field-settings-modal { margin-top: -35px; } .astra-advanced-color-indicate .global-color{ display: none; } .color-button-wrap.has-global-palette-color .astra-advanced-color-indicate .global-color{ color: #fff; display: block; opacity: 1; position: absolute; left: 50%; top: 50%; display: block; text-align: center; transform: translate(-50%, -50%); } .color-button-wrap.has-global-palette-color .astra-advanced-color-indicate .global-color svg{ width: 10px; height: 10px; transform: scale(1.5); } #customize-control-astra-color-palettes .ast-adv-toggle-icon { top: -5px; } .ast-color-picker-custom-tooltip { position: absolute; top: -30px; bottom: 0; left: 0; right: 0; width: 100%; height: 100%; } .ast-color-picker-custom-tooltip[data-title]::after { content: attr(data-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 1ch 1.5ch; border-radius: 0.3ch; box-shadow: 0 1em 2em -0.5em rgb(0 0 0 / 35%); background: var(--ast-customizer-color-12); color: var(--ast-customizer-color-10); z-index: 1000; bottom: calc(100% + 5px); text-align: center; animation: tooltips-vert .3s ease-out forwards; text-transform: none; font-size: .9em; line-height: 1; user-select: none; pointer-events: none; position: absolute; display: none; opacity: 0; left: 50%; transform: translate(-50%,-0.5em); } .ast-single-palette-wrap > :last-child .ast-color-picker-custom-tooltip[data-title]::after { left: -16px; } .ast-color-picker-custom-tooltip-wrapper { position: relative; } .ast-color-picker-wrap:hover + .ast-color-picker-custom-tooltip-wrapper .ast-color-picker-custom-tooltip[data-title]::after{ display: flex; white-space: break-spaces; inline-size: max-content; } .ast-color-palette .components-popover.components-tooltip { position: relative !important; left: 5px !important; top: -35px !important; transform: unset !important; } .customize-control .components-tooltip { z-index: 8 !important; } .ast-color-palette .components-popover .components-popover__content { bottom: calc(100% + 5px); animation: tooltips-vert .3s ease-out forwards; left: 50%; transform: translate(-50%,-0.5em); } /** Responsive CSS **/ .ast-responsive-btns { display: inline-block; line-height: 1; vertical-align: top; } .ast-responsive-btns > li { margin-bottom: 0; display: none; } .ast-responsive-btns > li.active { display: inline-block; } .ast-responsive-btns button[type="button"] { padding: 0; cursor: pointer; background: none; border: none; outline: none; } .ast-responsive-btns button[type="button"] > i { width: 15px; height: 15px; font-size: 15px; } .input-wrapper.ast-responsive-wrapper { display: inline-flex; justify-content: space-between; margin-right: 0; align-items: flex-start; flex: 0 1; width: 100%; } /** Tooltip CSS **/ .ast-dashicons-custom-tooltip { position: absolute; left: 8px; top: 20px; width: 150px; z-index: 999; padding: 8px 8px; font-size: 12px; font-weight: normal; border-radius: 2px; color: #fff; background: #1e1e1e; transition: opacity 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955),transform 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955),visibility 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955); transform: translate3d(0px, -30px, 0px); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.5em; text-align: center; visibility: hidden; } .dashicons-editor-help { cursor: pointer; font-size: 18px; color: rgb(156, 163, 175); position: relative; left: 6px; top: 2.5px; } .dashicons-editor-help:hover ~ .ast-dashicons-custom-tooltip { opacity: 1; visibility: visible; } /** Custom CSS for Page Background **/ .astra-popover-tabs img { width: 100%; max-width: 300px; } .customize-control .ast-reset-btn .dashicons-image-rotate { width: 12px; height: 12px; font-size: 12px; position: relative; top: 0.1em; left: 0.5em; } .ast-bg-control-left { display: flex; width: 50%; height: 50%; display: flex; justify-content: space-between; align-items: center; position: relative; top: 0.6em; max-height: 19.5px; } #customize-control-astra-settings-content-bg-obj-responsive .ast-bg-control-left { width: 57%; } #customize-control-astra-settings-content-bg-obj-responsive { margin-top: 2em; margin-bottom: 1em; } .ast-show-help-text-container { position: relative; } .customize-control-ast-responsive-background .more-settings .message, .customize-control-ast-background .more-settings .message { margin-right: 5px; } .customize-control .media-position-setting label.components-text { text-transform: capitalize; font-size: 12px; font-weight: 400; } .ast-sidebar-container .components-base-control .components-base-control__field .components-input-control__backdrop { border-color: #D1D5DB !important; } @media (min-width: 782px) { div#astra-theme-layout\:theme-meta-panel .components-panel__header+.interface-complementary-area-header { margin-bottom: -2px; } } PKomZ9nn5metabox/extend-metabox/css/unminified/metabox-rtl.cssnu[.ast-header-settings-modal .components-modal__header svg { width: 30px; height: 30px; } .ast-sidebar-container .ast-sidebar-layout-meta-wrap .components-input-control__container .components-select-control__input { padding: 3px 8px 3px 24px; font-size: 14px; line-height: 25px; margin-bottom: 3px; } .ast-sidebar-layout-meta-wrap .components-toggle-control label { font-size : 14px; } .ast-sidebar-layout-meta-wrap .components-toggle-control { margin-bottom: 15px; } .ast-radio-image-controller .customize-control-title { font-weight: 500; } .ast-sidebar-layout-meta-wrap { margin-bottom: 13px; } .ast-meta-settings-divider:before { width: auto; margin: 1px -16px; } .ast-meta-settings-divider { padding-top: 10px; } .ast-meta-settings-divider:before { content: ''; display: block; height: 1px; background: #e2e4e7; } .ast-meta-settings-title:not([data-type='ast-first']) { padding-top: 4px; } .ast-meta-settings-title { font-size: 13px; font-weight: 700; } .ast-radio-image-controller input { display: none; } .ast-radio-image-controller input:checked + label svg { color: var(--wp-admin-theme-color); background: var(--wp-admin-theme-color); border-color: transparent; box-shadow: 0 12px 20px -8px rgb(30 41 59 / 16%); border-bottom-color: #f0f0f1; border-radius: 4px; opacity: 1; } .ast-radio-image-controller > .options-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); grid-column-gap: 23px; grid-row-gap: 23px; } .ast-radio-image-controller .ast-radio-img-svg svg { color: #A0AEC0; width: 100%; height: auto; background: rgba(221,224,226,.5); border: 1px solid var(--ast-customizer-color-7); border-radius: 4px; transition: all 0.2s; transition: 0.06s all; } .ast-radio-image-controller label { position: relative; display: inline-block; } .ast-radio-image-controller input + label .image-clickable { position: absolute; top: 0; bottom: 0; right: 0; left: 0; width: 100%; height: 100%; } div#astra_settings_meta_box { padding: 0; overflow: hidden; } .components-panel__body .components-base-control__field { padding: 5px 0 0; } .ast-meta-selector-wrapper { display: -webkit-box; display: -ms-flexbox; display: flex; } .ast-meta-selector-wrapper .ast-selector-inner-wrap { flex: 1 1 auto; display: flex; } .ast-selector-inner-wrap .components-button { white-space: nowrap; background: rgba(255,255,255,0); color: rgba(0, 0, 0, 0.966); text-decoration: none; text-shadow: none; outline: unset; border: 1px solid #d2d2d2; width: 100%; height: 100%; text-align: center; justify-content: center; border-radius: unset; transition: none; font-size: 12px; padding: 8px 12px; } .ast-selector-inner-wrap .components-button.is-primary { color: #ffffff; background: #007cba; } .ast-meta-selector-controller .ast-selector-inner-wrap:first-child .components-button { border-radius: 0px 2px 2px 0px; } .ast-meta-selector-controller .ast-selector-inner-wrap:not(:first-child) .components-button { margin-right: -1px; } .ast-meta-selector-controller .ast-selector-inner-wrap:not(:first-child):not(:last-child) .components-button { border-left: none; } .ast-meta-selector-controller .ast-selector-inner-wrap:last-child .components-button { border-radius: 2px 0px 0px 2px; } .ast-meta-selector-controller .ast-selector-inner-wrap .components-button:focus:not(:disabled) { box-shadow: none; } .ast-meta-settings-content .components-toggle-control .components-base-control__field, .ast-sidebar-container .components-toggle-control .components-base-control__field, .ast-meta-settings-content .components-toggle-control .components-base-control__field .components-flex, .ast-sidebar-container .components-toggle-control .components-base-control__field .components-flex { justify-content: space-between; flex-direction: row-reverse; margin-bottom: 0; } .ast-custom-layout-panel .components-button { padding-left: 15px; } .ast-title-container { -js-display: flex; display: flex; flex-grow: 1; } /** * Popup content compat CSS. */ .ast-header-settings-modal { min-width: auto; width: 100%; max-width: 700px; height: auto; border-radius: 2px; max-height: 600px; top: 45%;box-shadow: 0px 10px 36px -10px rgb(0 0 0 / 25%); } .components-modal__icon-container { margin-left: 15px; margin-top: 5px; } .ast-header-settings-modal .components-modal__content { -js-display: flex; display: flex; flex-direction: column; padding: 0; } .ast-header-settings-modal .components-modal__content::before { margin-bottom: 0; } .ast-header-settings-modal .components-modal__header { padding-right: 24px; border-bottom: 0; padding-bottom: 20px; padding-top: 20px; margin: 0; border-radius: 2px 2px 0px 0px; box-shadow: 0px 6px 8px -3px rgb(0 0 0 / 5%), 0px 4px 6px -2px rgb(0 0 0 / 5%); } .ast-meta-settings-content { overflow-y: auto; margin: 0; padding: 0; } .ast-meta-settings-hook-table.widefat { border-width: 0; } .ast-meta-settings-hook-table:last-of-type { border-bottom-width: 0; } .ast-extra-spacing .ast-border { border-left: 1px solid #E1E1E1; } .ast-extra-spacing-bottom td { border-bottom: 1px solid #E1E1E1; } td.ast-advanced-hook-row-heading { border-left: 1px solid #E1E1E1; padding: 12px 25px 12px 20px; width: 25%; vertical-align: middle; } .ast-meta-settings-hook-table .ast-advanced-hook-row-content { padding: 12px 25px 12px 20px; position: relative; width: 75%; } .ast-time-duration .ast-advanced-hook-row td { border-bottom: 0; } .ast-cl-footer-container { position: sticky; bottom: 0; border-radius: 0px 0px 2px 2px; background: #FFF; z-index: 9; box-shadow: 0px -6px 8px -3px rgb(0 0 0 / 5%), 0px -4px 6px -2px rgb(0 0 0 / 5%); } .ast-button-container { -js-display: flex; display: flex; justify-content: space-between; padding: 14px 24px 14px 20px; } .ast-cl-popup-notice { -js-display: flex; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 14px; } .ast-button-container button.button { min-height: 35px; background-color: #FFF; } .ast-cl-popup-notice .dashicons { font-size: 22px; color: #1F2937; margin-left: 10px; } .components-modal__header .components-button svg { width: 35px; height: 35px; } .ast-header-settings-modal .components-modal__header-heading-container { justify-content: initial; } .components-modal__header .components-button { width: 60px; height: 60px; left: 0; bottom: 0; right: auto; } .components-button:focus:not(:disabled) { box-shadow: none; outline: 1.5px solid transparent; } .ast-advanced-hook-row-content section { max-width: 250px; } .ast-advanced-hook-row-content .components-toggle-control:not(:last-child) { margin-bottom: 20px; } .ast-meta-image-tooltip { position: absolute; z-index: 200; width: auto; height: 26px; padding: 0 6px; font-size: 12px; font-weight: normal; letter-spacing: initial; text-transform: initial; -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; white-space: nowrap; border-radius: 2px; pointer-events: none; color: #fff; background: #1e1e1e; opacity: 0; visibility: hidden; transition: opacity 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955),transform 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955),visibility 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955); transform: translate3d(0px, -30px, 0px); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: inherit; right: 50%; top: -38%; transform: translateX(50%); } .ast-radio-img-svg:hover .ast-meta-image-tooltip { opacity: 1; visibility: visible; } .ast-pro-upgrade-cta-wrapper { padding: 20px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px; } p.ast-upgrade-description { margin: 0; } a.ast-pro-upgrade-link { color: #0284C7; display: block; width: 100%; text-decoration: none; padding: 8px; border: 1px solid #0284C7; border-radius: 2px; } .ast-sub-section-title { display: inline-block; margin-top: 5px; margin-bottom: 12px; font-size: 14px; } #ast-label-container-style { margin-top: 16px; } #ast-label-sidebar-style { margin-top: 16px; } /** Responsive Background CSS **/ .customize-control-ast-responsive-background { position: relative; margin-bottom: -5px; margin-top: 20px; display: flex; } .customize-control-ast-responsive-background .background-container h4 { font-size: 14px; font-weight: 600; color: #555d66; } .customize-control-ast-responsive-background .background-attachment h4, .customize-control-ast-responsive-background .background-color h4, .customize-control-ast-responsive-background .background-position h4, .customize-control-ast-responsive-background .background-repeat h4, .customize-control-ast-responsive-background .background-size h4 { margin-bottom: 5px; margin-top: 10px; } .customize-control-ast-responsive-background .background-color { margin-bottom: 12px; } .customize-control-ast-responsive-background .background-repeat { margin: 15px 0 15px 0; } .customize-control-ast-responsive-background .background-attachment .buttonset, .customize-control-ast-responsive-background .background-size .buttonset { display: flex; flex-wrap: wrap; } .customize-control-ast-responsive-background .background-attachment .buttonset .switch-label, .customize-control-ast-responsive-background .background-size .buttonset .switch-label { background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.1); color: #555; padding: 2px 4px; margin-left: 15px; text-align: center; flex-grow: 1; transition: background-color 140ms linear; } .customize-control-ast-responsive-background .background-attachment .buttonset .switch-label:last-child, .customize-control-ast-responsive-background .background-size .buttonset .switch-label:last-child { margin-left: 0; } .customize-control-ast-responsive-background .background-attachment .buttonset .switch-input:checked + .switch-label, .customize-control-ast-responsive-background .background-size .buttonset .switch-input:checked + .switch-label { background-color: #f5f5f5; color: #565e67; } .customize-control-ast-responsive-background .background-attachment .buttonset .switch-input[checked="checked"] + .switch-label, .customize-control-ast-responsive-background .background-size .buttonset .switch-input[checked="checked"] + .switch-label { background-color: #f5f5f5; color: #565e67; } .customize-control-ast-responsive-background .ast-bg-img-remove.components-button.is-link { width: 100%; border: 1px dashed #b4b9be; box-sizing: border-box; box-shadow: unset; padding: 9px 0; line-height: 1.6; margin-top: 10px; text-decoration: none; } .customize-control-ast-responsive-background .ast-bg-img-remove.components-button.is-destructive:hover:not(:disabled) { color: #a02222; box-shadow: unset; border-color: #a02222; } .customize-control-ast-responsive-background .more-settings { margin-top: 12px; display: flex; justify-content: flex-end; padding: 5px 0 5px 0; cursor: pointer; float: none; text-decoration: none; } .customize-control-ast-responsive-background .more-settings:focus { outline: 0; box-shadow: none; } .customize-control-ast-responsive-background .arrow-icon { margin-right: 5px; } .customize-control-ast-responsive-background .background-container { display: none; } .customize-control-ast-responsive-background .background-container.active { display: block; } .customize-control-ast-responsive-background .wp-picker-container { display: block; } .customize-control-ast-responsive-background .wp-picker-container .wp-picker-clear { margin-right: 4px; min-height: 30px; } .customize-control-ast-responsive-background .customize-control-content .astra-color-picker-wrap { width: 300px; } .customize-control-ast-responsive-background .customize-control-content .components-color-picker__saturation-color, .customize-control-ast-responsive-background .customize-control-content .components-color-picker__saturation-white { border-radius: unset; } .customize-control-ast-responsive-background .ast-color-btn-clear-wrap { left: 84px; } /** * BG Media Button. */ /** * Gradient field */ .components-color-picker__inputs-toggle-wrapper .components-color-picker__inputs-toggle { vertical-align: middle; height: 32px; } .astra-popover-tabs .components-button.upload-button.button-add-media { width: 100%; position: relative; text-align: center; color: #555d66; border: 1px dashed #b4b9be; box-sizing: border-box; box-shadow: unset; padding: 9px 0; line-height: 1.6; } .astra-popover-tabs .components-button.upload-button.button-add-media:hover { color: #555d66; box-sizing: border-box; box-shadow: unset; border-color: #0185ba; } .astra-popover-tabs [ID*="-gradient-view"] { padding: 0 15px 15px 15px; } .astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear { flex: unset; box-shadow: unset; width: auto; padding: 0 5px; } .astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:hover { box-shadow: unset; } .astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:active { box-shadow: unset; } .astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:focus { box-shadow: unset; } .astra-popover-tabs #tab-panel-0-image-view > div { text-align: center; } .astra-popover-tabs #tab-panel-0-image-view > div .media-position-setting { text-align: right; } .media-position-setting > .components-base-control { margin-bottom: 15px; } .media-position-setting [CLASS*="-Item-LabelWrapper"] { margin-bottom: 5px; } .astra-popover-color .components-circular-option-picker { position: relative; margin-top: 0; } .astra-popover-color .components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper { margin-top: 10px; justify-content: flex-start; } @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { .astra-popover-color .components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper { width: 50px; } } .astra-popover-color [ID*="-color-view"] .components-circular-option-picker { width: auto; } .astra-popover-color .ast-color-palette { width: auto; padding: 16px 14px 0px 0px; } .astra-popover-color .ast-color-palette .components-circular-option-picker__option { width: 100%; height: 100%; border-radius: 100%; } .astra-popover-color .ast-color-palette .components-button.is-pressed:focus:not(:disabled) { box-shadow: none; border: none; } .astra-popover-color .components-custom-gradient-picker { margin-top: 0; } .astra-popover-color .components-custom-gradient-picker__gradient-bar { box-sizing: border-box; opacity: 1; } .astra-popover-color .components-custom-gradient-picker__type-picker .components-base-control__label { display: block; } .components-custom-gradient-picker .components-base-control__label { padding-top: 10px; font-size: 12px; display: block; letter-spacing: 0.1px; line-height: 18px; } [ID*="-gradient-view"] .components-toolbar.components-custom-gradient-picker__toolbar .components-button.has-icon { border: none; } .media-position-setting.hide-settings { display: none; } .media-position-setting .astra-popover-tabs [ID*="-gradient-view"] { padding: 0 0 15px 0; } .ast-field-settings-modal .customize-control-content .color-button-wrap { left: 30px; top: 0; } .ast-field-settings-modal .ast-responsive-btns { position: absolute; left: 14px; top: 4px; } .ast-field-settings-modal .customize-control-content .astra-color-picker-wrap { margin-right: 0; margin-top: 0; } .ast-field-settings-modal .customize-control-content .ast-color-btn-reset-wrap { left: 65px; top: 7px; } .ast-field-settings-modal .customize-control-content .ast-color-btn-clear-wrap { left: 91px; } .ast-field-settings-modal .customize-control-ast-responsive-background.customize-control:first-child { margin-top: 28px; } .customize-control-ast-responsive-background .ast-color-btn-reset-wrap, .customize-control-ast-responsive-color .ast-color-btn-reset-wrap { display: inline-block; line-height: 1; top: 4.5px; } .customize-control-ast-responsive-background .ast-responsive-btns, .customize-control-ast-responsive-color .ast-responsive-btns { position: relative; top: 0.1em; right: 0.2em; } /** Responsive Color CSS **/ .customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha { display: none; } .customize-control-ast-responsive-color .customize-control-content { display: block; margin-top: 5px; } .customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha .astra-color-picker-wrap .components-color-picker__saturation-black { border-radius: 4px 4px 0 0; } .customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha .astra-color-picker-wrap .components-color-picker__saturation-color, .customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha .astra-color-picker-wrap .components-color-picker__saturation-white { border-radius: 3px; } .customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha.active { display: block; } .customize-control-ast-responsive-color .customize-control-content .components-color-picker__saturation-color, .customize-control-ast-responsive-color .customize-control-content .components-color-picker__saturation-white { border-radius: unset; } .ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .color-button-wrap { left: 30px; top: -3px; } .ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .astra-color-picker-wrap { margin-right: 0px; margin-bottom: 10px; margin-top: 10px; } .ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .customize-control-title { display: block; margin-bottom: 0px; } .ast-field-settings-modal .customize-control-ast-responsive-color .ast-responsive-btns { left: 7px; top: 1px; } .ast-field-settings-modal .customize-control-ast-responsive-color.customize-control:first-child { margin-top: 28px; } .ast-field-settings-modal .customize-control-ast-responsive-color .ast-clear-btn-inside-picker.components-button { margin: 5px 10px 20px 20px; } .ast-field-settings-modal .customize-control-ast-responsive-color .ast-color-btn-reset-wrap { top: 3.5px; } @supports (-moz-appearance: none) { .ast-field-settings-modal .customize-control-ast-responsive-color .ast-color-btn-reset-wrap { top: 5.5px; left: 65px; } .ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .color-button-wrap { left: 27px; top: -2px; } } /** Color CSS **/ /** Remove Button Color */ .astra-control-field.astra-color-control { display: flex; } .astra-control-field { position: relative; margin-top: 10px; margin-bottom: 10px; } .astra-control-field.astra-color-control .customize-control-title { flex-grow: 2; } .astra-control-field .customize-control-title { font-size: 14px; font-weight: 600; margin-bottom: 0; display: flex; align-items: center; letter-spacing: 0.1px; line-height: 18px; } .customize-control-title { display: block; font-size: 14px; line-height: 1; font-weight: 600; margin-bottom: 4px; } .astra-globe-dashicon { color: #ffffff; background: rgba(0,0,0,0.4); border-radius: 100%; border: 0.1px solid rgba(0,0,0,0.1); opacity: 0.78; } .components-button.astra-color-icon-indicate .component-color-indicator.astra-advanced-color-indicate { width: 28px; height: 28px; border-radius: 50%; margin: 0; background: inherit; } .astra-advanced-color-indicate.component-color-indicator { border: none; } .astra-color-icon-indicate.components-button { height: auto; position: relative; transform: scale(1); transition: none; border-radius: 50%; padding: 0; background-image: linear-gradient(-45deg, #ddd 25%, transparent 0), linear-gradient(45deg, #ddd 25%, transparent 0), linear-gradient(-45deg, transparent 75%, #ddd 0), linear-gradient(45deg, transparent 75%, #ddd 0); background-size: 10px 10px; background-position: 100% 0, 100% 5px, 5px -5px, -5px 0; } /** Color */ .astra-popover-color .components-popover__content .components-focal-point-picker-wrapper { box-sizing: border-box; } .astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container input[type="number"].components-text-control__input { min-height: 16px; line-height: 16px; font-size: 12px; width: 50px; font-weight: normal; } .astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control { flex: 1; margin-bottom: 0; } .astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control .components-base-control__label { margin-bottom: 0; margin-left: 0.2em; } .astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control__field { display: flex; align-items: center; font-size: 8px; font-weight: 600; font-style: normal; text-transform: uppercase; } .astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control:last-child .components-base-control__field { justify-content: flex-end; } .astra-popover-color .components-popover__content .actions { display: flex; justify-content: center; margin-bottom: 10px; } .astra-popover-color .components-popover__content .actions .button { flex: 1; margin-top: 10px; } .astra-background-picker-wrap .astra-popover-color .components-popover__content { min-width: 300px; min-height: 340px; max-height: 60vh; } .color-button-wrap { display: inline-block; position: absolute; left: 0; top: 0; transform: scale(1); transition: transform .1s ease; height: 28px; width: 28px; } .components-button.astra-color-icon-indicate .astra-advanced-color-indicate:after { content: ""; position: absolute; top: -1px; right: -1px; bottom: -1px; left: -1px; border-radius: 50%; border: 1px solid transparent; } .components-button.astra-background-icon-indicate { width: 50px; height: 50px; border-radius: 50%; position: relative; transform: scale(1); transition: transform 0.1s ease; border-radius: 50%; padding: 0; background-image: linear-gradient(-45deg, #ddd 25%, transparent 0), linear-gradient(45deg, #ddd 25%, transparent 0), linear-gradient(-45deg, transparent 75%, #ddd 0), linear-gradient(45deg, transparent 75%, #ddd 0); border: 1px solid #dadada; background-size: 10px 10px; background-position: 100% 0, 100% 5px, 5px -5px, -5px 0; } .components-button.astra-background-icon-indicate .component-color-indicator.astra-advanced-color-indicate { width: 100%; height: 100%; border-radius: 4px; margin: 0; display: block; position: absolute; border: 0; top: 0; } .components-button.astra-background-icon-indicate > svg.dashicon { position: absolute; transform: translate(50%, -50%); right: 50%; top: 50%; color: white; background: rgba(0, 0, 0, 0.6); border-radius: 100%; width: 16px; height: 16px; border: 1px solid rgba(0, 0, 0, 0.1); } .components-button.astra-background-icon-indicate > svg.dashicon path { transform: translate(-1px, 1px); } .components-button.astra-background-icon-indicate img.astra-background-image-preview { display: flex; object-fit: cover; min-width: 100%; min-height: 100%; position: absolute; top: 0; } .components-button.astra-background-icon-indicate:hover { box-shadow: none !important; } .astra-control-field.astra-color-control { display: flex; } .astra-control-field.astra-color-control .customize-control-title { flex-grow: 2; } .components-popover.astra-popover-color .components-popover__content { padding: 15px 15px 0px; box-sizing: initial; background: #fff; border: unset; border-radius: 4px; -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); } .customize-control-ast-color.customize-control > * { display: inline; } .components-popover.astra-popover-color .components-popover__content .sketch-picker { padding: 0 0 5px !important; box-shadow: none !important; border-radius: 0px !important; } .components-popover.astra-popover-color .components-popover__content .attachment-media-view { margin-top: 10px; margin-bottom: 10px; } .astra-swatches-wrap .astra-swatche-item-wrap:hover { transform: scale(1.1) !important; } .astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item { background-image: linear-gradient(-45deg, #ddd 25%, transparent 0), linear-gradient(45deg, #ddd 25%, transparent 0), linear-gradient(-45deg, transparent 75%, #ddd 0), linear-gradient(45deg, transparent 75%, #ddd 0); background-size: 10px 10px; background-position: 100% 0, 100% 5px, 5px -5px, -5px 0; padding: 0; display: flex; justify-content: center; } .astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item .dashicon { display: none; } .astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item.swatch-active { box-shadow: 0 0 0 8px inset !important; } .astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item.swatch-active .dashicon { display: block; color: white; background: rgba(0, 0, 0, 0.6); width: 16px; height: 16px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 100%; } .astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item.swatch-active .dashicon path { transform: translate(-1px, 1px); } .components-button.astra-color-icon-indicate > .dashicon { position: absolute; transform: translate(50%, -50%); right: 50%; top: 50%; color: white; background: rgb(85 93 101); border-radius: 4px; width: 24px; height: 24px; font-size: 24px; border: 1px solid rgba(0, 0, 0, 0.1); } .astra-popover-color { margin: 5px -5px 0; background-color: #ffffff; border-radius: 4px; box-shadow: 0px 1px 16px -4px rgba(30, 41, 59, 0.16); } .astra-popover-color .components-h-stack.ast-color-palette { padding: 14px 5px; } .customize-control-ast-responsive-background .astra-popover-color .components-h-stack.ast-color-palette, .customize-control-ast-color-group .astra-popover-color .astra-background-tabs .components-h-stack.ast-color-palette { padding: 0 5px 14px; } .astra-popover-color .components-h-stack .components-button { flex: inherit; } .astra-popover-color .components-h-stack .components-circular-option-picker__option-wrapper{ margin-left: 0; } .astra-popover-color .components-color-picker .react-colorful__hue, .astra-popover-color .components-color-picker .react-colorful__alpha { width: 90%; } .ast-field-settings-modal .astra-popover-color { margin-right: 0px; border: 1px solid #dedede; } .ast-field-settings-modal .astra-popover-color .components-tab-panel__tabs { padding: 8px; } .components-color-picker__saturation-black { border-radius: 4px 4px 0 0; } .components-color-picker__saturation-color { border-radius: 3px; } .components-color-picker__saturation-white { border-radius: 3px; } .astra-color-picker-wrap { position: absolute; z-index: 2; top: 30px; right: 0; left: 0; bottom: 0; display: none; } .astra-color-picker-wrap .astra-popover-color .components-color-picker, .astra-color-picker-wrap .astra-popover-color .react-colorful { width: 100%; } .astra-popover-color .components-custom-gradient-picker{ z-index: 1; } .astra-popover-color .components-custom-gradient-picker__ui-line{ z-index: -1; } .astra-color-picker-wrap.picker-open{ display: block; } .ast-field-settings-modal .astra-color-picker-wrap { position: relative; top: 10px; } .ast-color-palette .components-circular-option-picker__option-wrapper { margin-left: 6px; position: relative; height: 25px; width: 25px; } /* Clear Button CSS */ .ast-color-btn-clear-wrap { position: absolute; top: 1.5px; left: 65px; } .ast-color-btn-clear-wrap .astra-color-clear-button.components-button { padding: 10px 3px; width: 20px; height: 20px; } .ast-clear-btn-inside-picker.components-button, .ast-reset-btn-inside-picker.components-button, .astra-popover-tabs .ast-clear-btn-inside-picker.components-button { margin: 5px 15px 20px 20px; padding: 0 8px; border: 1px solid #ccc; box-shadow: none; } .ast-clear-btn-inside-picker.components-button:hover, .astra-popover-tabs .ast-clear-btn-inside-picker.components-button:hover, .ast-clear-btn-inside-picker.components-button:focus, .astra-popover-tabs .ast-clear-btn-inside-picker.components-button:focus, .ast-clear-btn-inside-picker.components-button:active, .astra-popover-tabs .ast-clear-btn-inside-picker.components-button:active, .astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:active { box-shadow: none !important; background: transparent !important; } .ast-clear-btn-inside-picker { padding: 0 8px; } /* Reset Button CSS */ .ast-color-btn-reset-wrap { position: absolute; left: 36px; top: 6px; } .ast-color-btn-reset-wrap .ast-reset-btn.components-button, .ast-resp-slider-reset-wrap .ast-reset-btn.components-button { color: #006BA1; height: 20px; width: 20px; padding: 4px; background: transparent; box-shadow: none !important; cursor: pointer; } .astra-color-clear-button.components-button:focus:not(:disabled) { outline: unset; border: none; } .ast-color-btn-reset-wrap .ast-reset-btn.components-button:hover, .ast-color-btn-reset-wrap .ast-reset-btn.components-button:focus, .ast-resp-slider-reset-wrap .ast-reset-btn.components-button:hover, .ast-resp-slider-reset-wrap .ast-reset-btn.components-button:focus { box-shadow: none; border: none; background: transparent; } .astra-color-clear-button.components-button.is-secondary:hover:not(:disabled), .astra-color-clear-button.components-button:focus:not(:disabled) { box-shadow: 0 0 black; padding: 1.5px; border: none; } .astra-color-clear-button.components-button.is-secondary:disabled, .ast-reset-btn.components-button.is-secondary:disabled span { color: var(--ast-customizer-color-6); } /** Inside Setting group popup - Colors */ .ast-field-settings-modal .color-button-wrap { left: 16px; } .ast-field-settings-modal .ast-color-btn-reset-wrap { left: 59px; top: 6px; } .ast-field-settings-modal .ast-color-btn-clear-wrap { left: 78px; } .ast-field-settings-modal .customize-control-ast-color.customize-control, .ast-field-settings-modal .customize-control-ast-color.customize-control:first-child { margin-top: 25px; } .astra-color-picker-wrap .components-color-picker__inputs-wrapper { min-width: unset; } /** Gradient Color Picker */ .customize-control .ast-gradient-color-picker input[type="number"] { width: 100%; } .ast-gradient-color-picker .components-select-control.components-custom-gradient-picker__type-picker { align-items: center; flex-direction: inherit; } .astra-color-picker-wrap .components-popover__content { width: max-content; } .astra-color-picker-wrap .components-custom-gradient-picker__inserter .components-color-picker, .astra-color-picker-wrap .astra-popover-color .ast-gradient-ui .components-color-picker, .astra-color-picker-wrap .astra-popover-color .ast-gradient-ui .react-colorful { width: 216px; } .astra-color-picker-wrap .ast-gradient-ui .components-select-control.components-custom-gradient-picker__type-picker { flex-direction: column; align-items: start; } .astra-color-picker-wrap .ast-gradient-ui .components-angle-picker-control { margin-bottom: 0; } .astra-color-picker-wrap .ast-gradient-ui .components-custom-gradient-picker__remove-control-point { padding: 0 16px 16px 16px; border: 0; } .astra-color-picker-wrap .ast-gradient-ui .components-custom-gradient-picker__remove-control-point:focus { box-shadow: none; outline: none; } /** Gradient Color Picker -> RGBA & HSLA range fields */ .customize-control .ast-gradient-color-picker .is-alpha-enabled .components-base-control__field [type="number"] { width: 100%; } /** Modal Color Picker - Group Param */ .ast-field-settings-modal .components-circular-option-picker__option-wrapper .components-circular-option-picker__option:focus::after { width: 24px; height: 24px; } .ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option-wrapper { height: 25px; width: 25px; } .ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option.is-pressed + svg { right: 2.5px; top: 0px; width: 20px; } .ast-color-palette .components-circular-option-picker__option.is-pressed + svg { right: 0; top: 0; mix-blend-mode: difference; } .astra-popover-color .components-circular-option-picker .components-circular-option-picker__swatches { gap: 4px; justify-content: center; } .astra-popover-color .components-circular-option-picker__option-wrapper:hover { transform: scale(1.1); } .customize-control-ast-color + .customize-control-ast-color { margin-top: 30px; } @supports (-moz-appearance:none) { @media (max-width: 1845px) { .ast-color-palette .components-circular-option-picker__option-wrapper { margin-left: 5px; } .ast-field-settings-modal .components-circular-option-picker__option-wrapper .components-circular-option-picker__option:focus::after { width: 21px; height: 21px; } .ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option-wrapper { height: 20px; width: 20px; } .ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option.is-pressed + svg { right: 3px; top: -2px; width: 15px; } } } .astra-color-icon-indicate.components-button:focus:not(:disabled) { box-shadow: unset; outline: unset; } .astra-color-icon-indicate.components-button:hover { transform: scale(1.05); } .ast-top-divider.customize-control-ast-color .ast-divider-title + .ast-control-wrap, .ast-top-divider.customize-control-ast-color-group .ast-divider-title + .ast-control-wrap { margin-top: 25px; display: inline-flex; width: 100%; min-height: 22px; } .ast-top-divider.customize-control-ast-toggle-control .ast-divider-title + .ast-togglecontrol-wrapper, .ast-bottom-divider.customize-control-ast-toggle-control .ast-divider-title + .ast-togglecontrol-wrapper, .ast-top-divider.customize-control-ast-responsive-toggle-control .ast-divider-title + .ast-responsive-toggle-control-wrapper, .ast-top-divider.customize-control-ast-responsive-color .ast-divider-title + .ast-control-wrap, .ast-top-divider.customize-control-ast-slider .ast-divider-title + .ast-slider-wrap, .customize-control-ast-color-group .ast-divider-title + .ast-control-wrap { margin-top: 25px; } .ast-top-divider.customize-control-ast-color-group .ast-control-wrap { display: inline-flex; width: 100%; } .ast-top-divider .ast-divider-title + .ast-control-wrap .ast-color-btn-reset-wrap { top: 67px; } .ast-top-divider .ast-divider-title + .ast-control-wrap .color-button-wrap { top: 61px; } .ast-top-divider.customize-control-ast-responsive-color .ast-divider-title + .ast-control-wrap .ast-responsive-btns { top: 70px; } .ast-color-palette.components-circular-option-picker .components-circular-option-picker__swatches{ width: 100%; } /** Popover Structure CSS **/ .ast-adv-toggle-icon { left: 2px; position: absolute; width: 18px; height: 18px; font-size: 18px; border-radius: 2px; padding: 4px; color: var(--ast-customizer-color-8); background: var(--ast-customizer-color-9); cursor: pointer; } .ast-adv-toggle-icon:hover { color: var(--ast-customizer-color-1); } .ast-adv-toggle-icon:before { content: "\f464"; } .ast-adv-toggle-icon.open:before { content: "\f158"; } .ast-field-settings-modal { position: absolute; -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); -webkit-border-radius: 3px; border-radius: 3px; right: 0; left: 0; z-index: 8; background-color: #fff; } .customize-control-ast-color-palette .ast-field-settings-modal { z-index: 11; } .ast-field-settings-modal .customize-control-ast-divider:first-child { margin-top: 15px; } .ast-field-settings-wrap { width: 100%; } .ast-group-tabs, .ast-tab-content { position: relative; } .ast-group-list { overflow: hidden; border-bottom: 1px solid #ddd; } .ast-group-list:before, .ast-group-list:after { content: ""; display: table; border-collapse: collapse; } /* Tab anchor color */ .ui-tabs-anchor { float: right; padding: .5em 0.5em; color: #555d66; text-decoration: none; } .ui-state-active .ui-tabs-anchor { color: #ffffff; } .ui-tabs-anchor:hover { color: #555d66; } .ui-state-active .ui-tabs-anchor:hover { color: #ffffff; } .ast-group-tabs .ui-widget-content { overflow: hidden; /*padding-top: 15px;*/ } .ast-group-tabs .ui-widget-content.iris-slider-offset, .ast-group-tabs .ui-widget-content.iris-slider-offset-alpha { overflow: inherit; } .ast-fields-wrap { overflow: hidden; } .ast-field-settings-wrap { -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); -webkit-border-radius: 3px; background-color: #fff; } .ast-field-settings-wrap .ast-field-settings-modal { border-radius: 3px; margin-top: 10px; margin-bottom: 20px; } .ast-field-settings-modal::before { content: ''; position: absolute; top: -17px; left: 8px; border: 9px solid transparent; border-bottom-color: #fff; pointer-events: none; } .ast-group-tabs .ui-tabs-nav { display: flex; padding: 15px 15px 0 15px; } .ast-group-tabs .ui-tabs-nav .ui-corner-top { align-items: center; flex: 1 1 auto; justify-content: center; margin: 0 0; padding: 0; border: 1px solid #ccc; transition: background-color 140ms linear; } .ast-group-tabs .ui-tabs-nav .ui-corner-top:first-child { border-radius: 0px 3px 3px 0px; } .ast-group-tabs .ui-tabs-nav .ui-corner-top:last-child { border-radius: 3px 0px 0px 3px; } .ast-group-tabs .ui-tabs-nav .ui-corner-top .ui-tabs-anchor { width: 100%; text-align: center; padding: 2px 4px; padding-right: 0; padding-left: 0; outline: none; } .ast-group-tabs ul.ast-group-list .ui-corner-top .ui-tabs-anchor:focus { box-shadow: none; } .ast-group-tabs .ui-tabs-nav { border: none; } .ast-group-tabs ul.ast-group-list .ui-corner-top.ui-state-active { background-color: #0185BA; border: 1px solid rgba(0, 0, 0, 0.1); } .ast-group-tabs .ui-tabs-nav { overflow: visible; } .ast-group-tabs ul.ast-group-list .ui-corner-top:not(:first-child) { border-right-width: 0; } /* Buttons */ .wp-core-ui .ast-field-settings-modal .background-image-upload .button { font-size: 11px; } /* Popup params padding */ .ast-field-settings-modal .customize-control { padding-right: 16px; padding-left: 16px; box-sizing: border-box; } .ast-control-wrap .ast-color-picker-alpha { margin-right: -5px; margin-left: -5px; } .ast-field-settings-modal .customize-control:first-child { margin-top: 16px; } .ast-field-settings-modal .ui-tabs-nav .customize-control:first-child { margin-top: 0; } .ast-field-settings-modal .customize-control:last-child { padding-bottom: 16px; } .customize-control-ast-settings-group { line-height: 27px; } .customize-control-ast-settings-group .customize-control-title { margin-bottom: 0; } .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-title { margin-bottom: 10px; font-size: 13px; margin-top: 3px; } .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-responsive-units, .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-range-unit, .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-slider .ast-range-unit, .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-slider .ast-range-unit { top: 6px; } .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-resp-slider-reset-wrap, .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-slider .ast-resp-slider-reset-wrap { top: 3px; } .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-slider .ast-responsive-slider-btns, .customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-responsive-slider-btns { top: 2px; } .ast-field-settings-modal .customize-control { margin-top: 2px; } #customize-control-headings-font-extras.ast-sub-top-dotted-divider { margin-top: 12px; } /** * Popover Tab Structure. */ .astra-popover-tabs { position: relative; top: 5px; } .astra-popover-tabs .components-tab-panel__tabs { display: flex; padding: 15px; border: none; } .astra-popover-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item { color: #555d66; font-size: 13px; font-weight: 400; height: 35px; transition: unset; padding: 2px 4px; text-decoration: none; border-radius: 0; border: 1px solid rgba(0, 0, 0, 0.1); } .astra-popover-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:active { box-shadow: unset; } .astra-popover-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus { box-shadow: unset; } .astra-popover-tabs [ID*="-image-view"] { padding: 15px; border: none; } .astra-popover-tabs .components-button { align-items: center; flex: 1 1 auto; justify-content: center; margin: 0 0; padding: 0; border: 1px solid #ccc; transition: background-color 140ms linear; } .astra-popover-tabs .components-tab-panel__tabs-item:first-child { border-radius: 0px 3px 3px 0px; } .astra-popover-tabs .components-tab-panel__tabs-item:last-child { border-radius: 3px 0px 0px 3px; } .astra-popover-tabs .components-tab-panel__tabs-item:not(:first-child) { border-right-width: 0; } .astra-popover-tabs .components-tab-panel__tabs-item.active-tab { background-color: #0185BA; color: #ffffff; } .astra-popover-tabs.astra-media-tab .components-tab-panel__tabs, .astra-popover-tabs.astra-media-tab .components-tab-panel__tab-content { padding: 0; } .astra-popover-tabs.astra-media-tab .components-tab-panel__tabs-item.active-tab { border-color: var(--ast-customizer-color-3); background: var(--ast-customizer-color-1); } .astra-popover-tabs.astra-media-tab .components-tab-panel__tab-content .ast-social-icon-picker-label { text-align: right; } .astra-media-tab .astra-media-image { width: 100%; margin-bottom: 0; } .astra-media-tab .ast-media-btn { display: block; width: 100%; border: 1px dashed var(--ast-customizer-color-7); box-sizing: border-box; box-shadow: unset; padding: 9px 0; line-height: 1.6; text-decoration: none; } .astra-media-tab .ast-danger-btn { color: var(--ast-customizer-color-14); margin-top: 10px; } .astra-media-tab .ast-media-btn:hover { border-color: var(--ast-customizer-color-3); } .astra-media-tab .ast-danger-btn:hover { border-color: var(--ast-customizer-color-14); } .components-base-control.ast-text-control-input { margin-bottom: 16px; } .ast-payments-text-control-input .components-base-control__label { text-transform: none; color: #334155; font-size: 13px; } .components-base-control.ast-payments-text-control-input { margin-bottom: 20px; } .components-base-control.ast-text-control-input input { border-color: var(--ast-customizer-color-7); color: var(--ast-customizer-color-5); } .astra-popover-color .astra-popover-tabs .components-tab-panel__tabs button.components-tab-panel__tabs-item.active-tab:not(.is-primary):not(.is-tertiary):not(.is-link):hover { color: #fff; } .components-popover.astra-popover-color .components-popover__content { min-width: 310px; max-height: 60vh; padding: 0; -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); } .ast-field-settings-modal .components-popover.astra-popover-color .components-popover__content { min-width: 320px; min-height: 325px; } .ast-field-settings-modal .background-wrapper .components-popover.astra-popover-color .components-popover__content { min-height: 385px; } .ast-field-settings-modal .components-angle-picker-control .components-flex__block { min-width: auto; } .customize-control-ast-settings-group .customize-control-ast-slider .wrapper .ast-resp-slider-reset-wrap, .customize-control-ast-settings-group .customize-control-ast-responsive-slider .wrapper .ast-resp-slider-reset-wrap { margin-top: 0; } /* * Divider compatibility CSS for setting group. */ .ast-top-divider.customize-control-ast-settings-group .ast-toggle-desc-wrap .ast-adv-toggle-icon { top: 23px; } /** * Responsive slider control inside settings-group, case: body-font, headings-font. */ .ast-fields-wrap .customize-control-ast-responsive-slider .ast-slider-wrap > label, .ast-fields-wrap .customize-control-ast-selector .ast-slider-wrap > label { display: inline-block; } /** Color Pallete CSS **/ #customize-control-astra-color-palettes .ast-color-palette-wrap > div { margin-bottom: 8px; position: relative; } #customize-control-astra-color-palettes .color-button-wrap { display: unset; position: relative; left: unset; top: unset; vertical-align: sub; z-index: 10; } #customize-control-astra-color-palettes .astra-color-picker-wrap { position: absolute; z-index: 1; left: 0; width: 100%; display: none; margin-top: 10px; } #customize-control-astra-color-palettes .astra-color-picker-wrap.picker-open{ display: block; } #customize-control-astra-color-palettes .ast-color-palette-label { width: 65%; display: inline-block; margin-left: 10px; vertical-align: top; } #customize-control-astra-color-palettes .ast-color-palette-label input { background: none; border: none; } #customize-control-astra-color-palettes .ast-color-palette-label input:focus { border: 1px solid black; outline: none; box-shadow: none; background: white; } .ast-color-palette-wrapper .ast-single-palette-wrap { display: grid; grid-template-columns: repeat(9, 1fr); align-items: center; position: relative; gap: 2px; } .ast-single-palette-wrap .components-button.astra-color-icon-indicate .component-color-indicator.astra-advanced-color-indicate { width: 25px; height: 25px; } #customize-control-astra-color-palettes .ast-color-palette-wrapper .ast-color-picker-wrap:first-child { margin-right: 0; } #customize-control-astra-color-palettes .ast-color-palette-wrapper .ast-color-picker-wrap { margin-top: 12px; cursor: pointer; } #customize-control-astra-color-palettes .ast-reset-btn:disabled { opacity: 0.6; } #customize-control-astra-color-palettes .ast-single-color-container { width: 25%; height: 48px; display: inline-block; } #customize-control-astra-color-palettes .ast-color-palette-wrap > section { text-align: center; outline: none; border-radius: 3px; cursor: pointer; transition: all 0.2s; box-shadow: 0 0 0 1px #ddd; } .ast-color-palette-container { width: 100%; display: inline-grid; grid-template-columns: auto auto; column-gap: 16px; row-gap: 16px; } #customize-control-astra-color-palettes .ast-field-settings-modal { display: none; padding: 16px; } .ast-color-palette-wrap { transition: all 0.2s; } .ast-color-palette-wrap.active { box-shadow: 0px 12px 20px -8px rgb(30 41 59 / 16%); } #customize-control-astra-color-palettes .ast-color-palette-wrapper { clear: both; } #customize-controls .customize-section-title.is-in-view.is-sticky { z-index: 99; } #customize-control-astra-color-palettes .ast-palette-selection-wrapper { overflow: hidden; padding: 2px; } @media (min-width: 1800px) { #customize-control-astra-color-palettes .astra-color-picker-wrap { width: auto; } } #customize-control-astra-color-palettes .ast-color-palette-wrap.active > section { box-shadow: 0 0 0 1px #334155; } .ast-palette-label-wrap{ display: inline-block; text-align: center; color: #9CA3AF; overflow: hidden; width: 100%; box-sizing: border-box; padding: 0; transition: .15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out; font-style: normal; font-weight: 600; font-size: 10px; line-height: 22px; letter-spacing: 1.5px; text-transform: uppercase; } .ast-color-palette-wrap.active .ast-palette-label-wrap { color: #334155; } #customize-control-astra-color-palettes .ast-field-settings-modal { margin-top: -35px; } .astra-advanced-color-indicate .global-color{ display: none; } .color-button-wrap.has-global-palette-color .astra-advanced-color-indicate .global-color{ color: #fff; display: block; opacity: 1; position: absolute; right: 50%; top: 50%; display: block; text-align: center; transform: translate(50%, -50%); } .color-button-wrap.has-global-palette-color .astra-advanced-color-indicate .global-color svg{ width: 10px; height: 10px; transform: scale(1.5); } #customize-control-astra-color-palettes .ast-adv-toggle-icon { top: -5px; } .ast-color-picker-custom-tooltip { position: absolute; top: -30px; bottom: 0; right: 0; left: 0; width: 100%; height: 100%; } .ast-color-picker-custom-tooltip[data-title]::after { content: attr(data-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 1ch 1.5ch; border-radius: 0.3ch; box-shadow: 0 1em 2em -0.5em rgb(0 0 0 / 35%); background: var(--ast-customizer-color-12); color: var(--ast-customizer-color-10); z-index: 1000; bottom: calc(100% + 5px); text-align: center; animation: tooltips-vert .3s ease-out forwards; text-transform: none; font-size: .9em; line-height: 1; user-select: none; pointer-events: none; position: absolute; display: none; opacity: 0; right: 50%; transform: translate(50%,-0.5em); } .ast-single-palette-wrap > :last-child .ast-color-picker-custom-tooltip[data-title]::after { right: -16px; } .ast-color-picker-custom-tooltip-wrapper { position: relative; } .ast-color-picker-wrap:hover + .ast-color-picker-custom-tooltip-wrapper .ast-color-picker-custom-tooltip[data-title]::after{ display: flex; white-space: break-spaces; inline-size: max-content; } .ast-color-palette .components-popover.components-tooltip { position: relative !important; right: 5px !important; top: -35px !important; transform: unset !important; } .customize-control .components-tooltip { z-index: 8 !important; } .ast-color-palette .components-popover .components-popover__content { bottom: calc(100% + 5px); animation: tooltips-vert .3s ease-out forwards; right: 50%; transform: translate(50%,-0.5em); } /** Responsive CSS **/ .ast-responsive-btns { display: inline-block; line-height: 1; vertical-align: top; } .ast-responsive-btns > li { margin-bottom: 0; display: none; } .ast-responsive-btns > li.active { display: inline-block; } .ast-responsive-btns button[type="button"] { padding: 0; cursor: pointer; background: none; border: none; outline: none; } .ast-responsive-btns button[type="button"] > i { width: 15px; height: 15px; font-size: 15px; } .input-wrapper.ast-responsive-wrapper { display: inline-flex; justify-content: space-between; margin-left: 0; align-items: flex-start; flex: 0 1; width: 100%; } /** Tooltip CSS **/ .ast-dashicons-custom-tooltip { position: absolute; right: 8px; top: 20px; width: 150px; z-index: 999; padding: 8px 8px; font-size: 12px; font-weight: normal; border-radius: 2px; color: #fff; background: #1e1e1e; transition: opacity 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955),transform 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955),visibility 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955); transform: translate3d(0px, -30px, 0px); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.5em; text-align: center; visibility: hidden; } .dashicons-editor-help { cursor: pointer; font-size: 18px; color: rgb(156, 163, 175); position: relative; right: 6px; top: 2.5px; } .dashicons-editor-help:hover ~ .ast-dashicons-custom-tooltip { opacity: 1; visibility: visible; } /** Custom CSS for Page Background **/ .astra-popover-tabs img { width: 100%; max-width: 300px; } .customize-control .ast-reset-btn .dashicons-image-rotate { width: 12px; height: 12px; font-size: 12px; position: relative; top: 0.1em; right: 0.5em; } .ast-bg-control-left { display: flex; width: 50%; height: 50%; display: flex; justify-content: space-between; align-items: center; position: relative; top: 0.6em; max-height: 19.5px; } #customize-control-astra-settings-content-bg-obj-responsive .ast-bg-control-left { width: 57%; } #customize-control-astra-settings-content-bg-obj-responsive { margin-top: 2em; margin-bottom: 1em; } .ast-show-help-text-container { position: relative; } .customize-control-ast-responsive-background .more-settings .message, .customize-control-ast-background .more-settings .message { margin-left: 5px; } .customize-control .media-position-setting label.components-text { text-transform: capitalize; font-size: 12px; font-weight: 400; } .ast-sidebar-container .components-base-control .components-base-control__field .components-input-control__backdrop { border-color: #D1D5DB !important; } @media (min-width: 782px) { div#astra-theme-layout\:theme-meta-panel .components-panel__header+.interface-complementary-area-header { margin-bottom: -2px; } } PKrmZ!]&3metabox/extend-metabox/css/minified/metabox.min.cssnu[.ast-header-settings-modal .components-modal__header svg{width:30px;height:30px}.ast-sidebar-container .ast-sidebar-layout-meta-wrap .components-input-control__container .components-select-control__input{padding:3px 24px 3px 8px;font-size:14px;line-height:25px;margin-bottom:3px}.ast-sidebar-layout-meta-wrap .components-toggle-control label{font-size:14px}.ast-sidebar-layout-meta-wrap .components-toggle-control{margin-bottom:15px}.ast-radio-image-controller .customize-control-title{font-weight:500}.ast-sidebar-layout-meta-wrap{margin-bottom:13px}.ast-meta-settings-divider:before{width:auto;margin:1px -16px}.ast-meta-settings-divider{padding-top:10px}.ast-meta-settings-divider:before{content:'';display:block;height:1px;background:#e2e4e7}.ast-meta-settings-title:not([data-type=ast-first]){padding-top:4px}.ast-meta-settings-title{font-size:13px;font-weight:700}.ast-radio-image-controller input{display:none}.ast-radio-image-controller input:checked+label svg{color:var(--wp-admin-theme-color);background:var(--wp-admin-theme-color);border-color:transparent;box-shadow:0 12px 20px -8px rgb(30 41 59 / 16%);border-bottom-color:#f0f0f1;border-radius:4px;opacity:1}.ast-radio-image-controller>.options-wrapper{display:grid;grid-template-columns:repeat(2,1fr);grid-column-gap:23px;grid-row-gap:23px}.ast-radio-image-controller .ast-radio-img-svg svg{color:#a0aec0;width:100%;height:auto;background:rgba(221,224,226,.5);border:1px solid var(--ast-customizer-color-7);border-radius:4px;transition:all .2s;transition:60ms all}.ast-radio-image-controller label{position:relative;display:inline-block}.ast-radio-image-controller input+label .image-clickable{position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:100%}div#astra_settings_meta_box{padding:0;overflow:hidden}.components-panel__body .components-base-control__field{padding:5px 0 0}.ast-meta-selector-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.ast-meta-selector-wrapper .ast-selector-inner-wrap{flex:1 1 auto;display:flex}.ast-selector-inner-wrap .components-button{white-space:nowrap;background:rgba(255,255,255,0);color:rgba(0,0,0,.966);text-decoration:none;text-shadow:none;outline:unset;border:1px solid #d2d2d2;width:100%;height:100%;text-align:center;justify-content:center;border-radius:unset;transition:none;font-size:12px;padding:8px 12px}.ast-selector-inner-wrap .components-button.is-primary{color:#fff;background:#007cba}.ast-meta-selector-controller .ast-selector-inner-wrap:first-child .components-button{border-radius:2px 0 0 2px}.ast-meta-selector-controller .ast-selector-inner-wrap:not(:first-child) .components-button{margin-left:-1px}.ast-meta-selector-controller .ast-selector-inner-wrap:not(:first-child):not(:last-child) .components-button{border-right:none}.ast-meta-selector-controller .ast-selector-inner-wrap:last-child .components-button{border-radius:0 2px 2px 0}.ast-meta-selector-controller .ast-selector-inner-wrap .components-button:focus:not(:disabled){box-shadow:none}.ast-meta-settings-content .components-toggle-control .components-base-control__field,.ast-meta-settings-content .components-toggle-control .components-base-control__field .components-flex,.ast-sidebar-container .components-toggle-control .components-base-control__field,.ast-sidebar-container .components-toggle-control .components-base-control__field .components-flex{justify-content:space-between;flex-direction:row-reverse;margin-bottom:0}.ast-custom-layout-panel .components-button{padding-right:15px}.ast-title-container{-js-display:flex;display:flex;flex-grow:1}.ast-header-settings-modal{min-width:auto;width:100%;max-width:700px;height:auto;border-radius:2px;max-height:600px;top:45%;box-shadow:0 10px 36px -10px rgb(0 0 0 / 25%)}.components-modal__icon-container{margin-right:15px;margin-top:5px}.ast-header-settings-modal .components-modal__content{-js-display:flex;display:flex;flex-direction:column;padding:0}.ast-header-settings-modal .components-modal__content::before{margin-bottom:0}.ast-header-settings-modal .components-modal__header{padding-left:24px;border-bottom:0;padding-bottom:20px;padding-top:20px;margin:0;border-radius:2px 2px 0 0;box-shadow:0 6px 8px -3px rgb(0 0 0 / 5%),0 4px 6px -2px rgb(0 0 0 / 5%)}.ast-meta-settings-content{overflow-y:auto;margin:0;padding:0}.ast-meta-settings-hook-table.widefat{border-width:0}.ast-meta-settings-hook-table:last-of-type{border-bottom-width:0}.ast-extra-spacing .ast-border{border-right:1px solid #e1e1e1}.ast-extra-spacing-bottom td{border-bottom:1px solid #e1e1e1}td.ast-advanced-hook-row-heading{border-right:1px solid #e1e1e1;padding:12px 20px 12px 25px;width:25%;vertical-align:middle}.ast-meta-settings-hook-table .ast-advanced-hook-row-content{padding:12px 20px 12px 25px;position:relative;width:75%}.ast-time-duration .ast-advanced-hook-row td{border-bottom:0}.ast-cl-footer-container{position:sticky;bottom:0;border-radius:0 0 2px 2px;background:#fff;z-index:9;box-shadow:0 -6px 8px -3px rgb(0 0 0 / 5%),0 -4px 6px -2px rgb(0 0 0 / 5%)}.ast-button-container{-js-display:flex;display:flex;justify-content:space-between;padding:14px 20px 14px 24px}.ast-cl-popup-notice{-js-display:flex;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;font-size:14px}.ast-button-container button.button{min-height:35px;background-color:#fff}.ast-cl-popup-notice .dashicons{font-size:22px;color:#1f2937;margin-right:10px}.components-modal__header .components-button svg{width:35px;height:35px}.ast-header-settings-modal .components-modal__header-heading-container{justify-content:initial}.components-modal__header .components-button{width:60px;height:60px;right:0;bottom:0;left:auto}.components-button:focus:not(:disabled){box-shadow:none;outline:1.5px solid transparent}.ast-advanced-hook-row-content section{max-width:250px}.ast-advanced-hook-row-content .components-toggle-control:not(:last-child){margin-bottom:20px}.ast-meta-image-tooltip{position:absolute;z-index:200;width:auto;height:26px;padding:0 6px;font-size:12px;font-weight:400;letter-spacing:initial;text-transform:initial;-webkit-font-smoothing:antialiased;-webkit-user-select:none;user-select:none;white-space:nowrap;border-radius:2px;pointer-events:none;color:#fff;background:#1e1e1e;opacity:0;visibility:hidden;transition:opacity .2s cubic-bezier(.455, .03, .515, .955),transform .2s cubic-bezier(.455, .03, .515, .955),visibility .2s cubic-bezier(.455, .03, .515, .955);transform:translate3d(0,-30px,0);display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:inherit;left:50%;top:-38%;transform:translateX(-50%)}.ast-radio-img-svg:hover .ast-meta-image-tooltip{opacity:1;visibility:visible}.ast-pro-upgrade-cta-wrapper{padding:20px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px}p.ast-upgrade-description{margin:0}a.ast-pro-upgrade-link{color:#0284c7;display:block;width:100%;text-decoration:none;padding:8px;border:1px solid #0284c7;border-radius:2px}.ast-sub-section-title{display:inline-block;margin-top:5px;margin-bottom:12px;font-size:14px}#ast-label-container-style{margin-top:16px}#ast-label-sidebar-style{margin-top:16px}.customize-control-ast-responsive-background{position:relative;margin-bottom:-5px;margin-top:20px;display:flex}.customize-control-ast-responsive-background .background-container h4{font-size:14px;font-weight:600;color:#555d66}.customize-control-ast-responsive-background .background-attachment h4,.customize-control-ast-responsive-background .background-color h4,.customize-control-ast-responsive-background .background-position h4,.customize-control-ast-responsive-background .background-repeat h4,.customize-control-ast-responsive-background .background-size h4{margin-bottom:5px;margin-top:10px}.customize-control-ast-responsive-background .background-color{margin-bottom:12px}.customize-control-ast-responsive-background .background-repeat{margin:15px 0 15px 0}.customize-control-ast-responsive-background .background-attachment .buttonset,.customize-control-ast-responsive-background .background-size .buttonset{display:flex;flex-wrap:wrap}.customize-control-ast-responsive-background .background-attachment .buttonset .switch-label,.customize-control-ast-responsive-background .background-size .buttonset .switch-label{background:#fff;border:1px solid rgba(0,0,0,.1);color:#555;padding:2px 4px;margin-right:15px;text-align:center;flex-grow:1;transition:background-color 140ms linear}.customize-control-ast-responsive-background .background-attachment .buttonset .switch-label:last-child,.customize-control-ast-responsive-background .background-size .buttonset .switch-label:last-child{margin-right:0}.customize-control-ast-responsive-background .background-attachment .buttonset .switch-input:checked+.switch-label,.customize-control-ast-responsive-background .background-size .buttonset .switch-input:checked+.switch-label{background-color:#f5f5f5;color:#565e67}.customize-control-ast-responsive-background .background-attachment .buttonset .switch-input[checked=checked]+.switch-label,.customize-control-ast-responsive-background .background-size .buttonset .switch-input[checked=checked]+.switch-label{background-color:#f5f5f5;color:#565e67}.customize-control-ast-responsive-background .ast-bg-img-remove.components-button.is-link{width:100%;border:1px dashed #b4b9be;box-sizing:border-box;box-shadow:unset;padding:9px 0;line-height:1.6;margin-top:10px;text-decoration:none}.customize-control-ast-responsive-background .ast-bg-img-remove.components-button.is-destructive:hover:not(:disabled){color:#a02222;box-shadow:unset;border-color:#a02222}.customize-control-ast-responsive-background .more-settings{margin-top:12px;display:flex;justify-content:flex-end;padding:5px 0 5px 0;cursor:pointer;float:none;text-decoration:none}.customize-control-ast-responsive-background .more-settings:focus{outline:0;box-shadow:none}.customize-control-ast-responsive-background .arrow-icon{margin-left:5px}.customize-control-ast-responsive-background .background-container{display:none}.customize-control-ast-responsive-background .background-container.active{display:block}.customize-control-ast-responsive-background .wp-picker-container{display:block}.customize-control-ast-responsive-background .wp-picker-container .wp-picker-clear{margin-left:4px;min-height:30px}.customize-control-ast-responsive-background .customize-control-content .astra-color-picker-wrap{width:300px}.customize-control-ast-responsive-background .customize-control-content .components-color-picker__saturation-color,.customize-control-ast-responsive-background .customize-control-content .components-color-picker__saturation-white{border-radius:unset}.customize-control-ast-responsive-background .ast-color-btn-clear-wrap{right:84px}.components-color-picker__inputs-toggle-wrapper .components-color-picker__inputs-toggle{vertical-align:middle;height:32px}.astra-popover-tabs .components-button.upload-button.button-add-media{width:100%;position:relative;text-align:center;color:#555d66;border:1px dashed #b4b9be;box-sizing:border-box;box-shadow:unset;padding:9px 0;line-height:1.6}.astra-popover-tabs .components-button.upload-button.button-add-media:hover{color:#555d66;box-sizing:border-box;box-shadow:unset;border-color:#0185ba}.astra-popover-tabs [ID*="-gradient-view"]{padding:0 15px 15px 15px}.astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear{flex:unset;box-shadow:unset;width:auto;padding:0 5px}.astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:hover{box-shadow:unset}.astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:active{box-shadow:unset}.astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:focus{box-shadow:unset}.astra-popover-tabs #tab-panel-0-image-view>div{text-align:center}.astra-popover-tabs #tab-panel-0-image-view>div .media-position-setting{text-align:left}.media-position-setting>.components-base-control{margin-bottom:15px}.media-position-setting [CLASS*="-Item-LabelWrapper"]{margin-bottom:5px}.astra-popover-color .components-circular-option-picker{position:relative;margin-top:0}.astra-popover-color .components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{margin-top:10px;justify-content:flex-start}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.astra-popover-color .components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{width:50px}}.astra-popover-color [ID*="-color-view"] .components-circular-option-picker{width:auto}.astra-popover-color .ast-color-palette{width:auto;padding:16px 0 0 14px}.astra-popover-color .ast-color-palette .components-circular-option-picker__option{width:100%;height:100%;border-radius:100%}.astra-popover-color .ast-color-palette .components-button.is-pressed:focus:not(:disabled){box-shadow:none;border:none}.astra-popover-color .components-custom-gradient-picker{margin-top:0}.astra-popover-color .components-custom-gradient-picker__gradient-bar{box-sizing:border-box;opacity:1}.astra-popover-color .components-custom-gradient-picker__type-picker .components-base-control__label{display:block}.components-custom-gradient-picker .components-base-control__label{padding-top:10px;font-size:12px;display:block;letter-spacing:.1px;line-height:18px}[ID*="-gradient-view"] .components-toolbar.components-custom-gradient-picker__toolbar .components-button.has-icon{border:none}.media-position-setting.hide-settings{display:none}.media-position-setting .astra-popover-tabs [ID*="-gradient-view"]{padding:0 0 15px 0}.ast-field-settings-modal .customize-control-content .color-button-wrap{right:30px;top:0}.ast-field-settings-modal .ast-responsive-btns{position:absolute;right:14px;top:4px}.ast-field-settings-modal .customize-control-content .astra-color-picker-wrap{margin-left:0;margin-top:0}.ast-field-settings-modal .customize-control-content .ast-color-btn-reset-wrap{right:65px;top:7px}.ast-field-settings-modal .customize-control-content .ast-color-btn-clear-wrap{right:91px}.ast-field-settings-modal .customize-control-ast-responsive-background.customize-control:first-child{margin-top:28px}.customize-control-ast-responsive-background .ast-color-btn-reset-wrap,.customize-control-ast-responsive-color .ast-color-btn-reset-wrap{display:inline-block;line-height:1;top:4.5px}.customize-control-ast-responsive-background .ast-responsive-btns,.customize-control-ast-responsive-color .ast-responsive-btns{position:relative;top:.1em;left:.2em}.customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha{display:none}.customize-control-ast-responsive-color .customize-control-content{display:block;margin-top:5px}.customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha .astra-color-picker-wrap .components-color-picker__saturation-black{border-radius:4px 4px 0 0}.customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha .astra-color-picker-wrap .components-color-picker__saturation-color,.customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha .astra-color-picker-wrap .components-color-picker__saturation-white{border-radius:3px}.customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha.active{display:block}.customize-control-ast-responsive-color .customize-control-content .components-color-picker__saturation-color,.customize-control-ast-responsive-color .customize-control-content .components-color-picker__saturation-white{border-radius:unset}.ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .color-button-wrap{right:30px;top:-3px}.ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .astra-color-picker-wrap{margin-left:0;margin-bottom:10px;margin-top:10px}.ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .customize-control-title{display:block;margin-bottom:0}.ast-field-settings-modal .customize-control-ast-responsive-color .ast-responsive-btns{right:7px;top:1px}.ast-field-settings-modal .customize-control-ast-responsive-color.customize-control:first-child{margin-top:28px}.ast-field-settings-modal .customize-control-ast-responsive-color .ast-clear-btn-inside-picker.components-button{margin:5px 20px 20px 10px}.ast-field-settings-modal .customize-control-ast-responsive-color .ast-color-btn-reset-wrap{top:3.5px}@supports (-moz-appearance:none){.ast-field-settings-modal .customize-control-ast-responsive-color .ast-color-btn-reset-wrap{top:5.5px;right:65px}.ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .color-button-wrap{right:27px;top:-2px}}.astra-control-field.astra-color-control{display:flex}.astra-control-field{position:relative;margin-top:10px;margin-bottom:10px}.astra-control-field.astra-color-control .customize-control-title{flex-grow:2}.astra-control-field .customize-control-title{font-size:14px;font-weight:600;margin-bottom:0;display:flex;align-items:center;letter-spacing:.1px;line-height:18px}.customize-control-title{display:block;font-size:14px;line-height:1;font-weight:600;margin-bottom:4px}.astra-globe-dashicon{color:#fff;background:rgba(0,0,0,.4);border-radius:100%;border:.1px solid rgba(0,0,0,.1);opacity:.78}.components-button.astra-color-icon-indicate .component-color-indicator.astra-advanced-color-indicate{width:28px;height:28px;border-radius:50%;margin:0;background:inherit}.astra-advanced-color-indicate.component-color-indicator{border:none}.astra-color-icon-indicate.components-button{height:auto;position:relative;transform:scale(1);transition:none;border-radius:50%;padding:0;background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.astra-popover-color .components-popover__content .components-focal-point-picker-wrapper{box-sizing:border-box}.astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container input[type=number].components-text-control__input{min-height:16px;line-height:16px;font-size:12px;width:50px;font-weight:400}.astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control{flex:1;margin-bottom:0}.astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control .components-base-control__label{margin-bottom:0;margin-right:.2em}.astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control__field{display:flex;align-items:center;font-size:8px;font-weight:600;font-style:normal;text-transform:uppercase}.astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control:last-child .components-base-control__field{justify-content:flex-end}.astra-popover-color .components-popover__content .actions{display:flex;justify-content:center;margin-bottom:10px}.astra-popover-color .components-popover__content .actions .button{flex:1;margin-top:10px}.astra-background-picker-wrap .astra-popover-color .components-popover__content{min-width:300px;min-height:340px;max-height:60vh}.color-button-wrap{display:inline-block;position:absolute;right:0;top:0;transform:scale(1);transition:transform .1s ease;height:28px;width:28px}.components-button.astra-color-icon-indicate .astra-advanced-color-indicate:after{content:"";position:absolute;top:-1px;left:-1px;bottom:-1px;right:-1px;border-radius:50%;border:1px solid transparent}.components-button.astra-background-icon-indicate{width:50px;height:50px;border-radius:50%;position:relative;transform:scale(1);transition:transform .1s ease;border-radius:50%;padding:0;background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);border:1px solid #dadada;background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.components-button.astra-background-icon-indicate .component-color-indicator.astra-advanced-color-indicate{width:100%;height:100%;border-radius:4px;margin:0;display:block;position:absolute;border:0;top:0}.components-button.astra-background-icon-indicate>svg.dashicon{position:absolute;transform:translate(-50%,-50%);left:50%;top:50%;color:#fff;background:rgba(0,0,0,.6);border-radius:100%;width:16px;height:16px;border:1px solid rgba(0,0,0,.1)}.components-button.astra-background-icon-indicate>svg.dashicon path{transform:translate(1px,1px)}.components-button.astra-background-icon-indicate img.astra-background-image-preview{display:flex;object-fit:cover;min-width:100%;min-height:100%;position:absolute;top:0}.components-button.astra-background-icon-indicate:hover{box-shadow:none!important}.astra-control-field.astra-color-control{display:flex}.astra-control-field.astra-color-control .customize-control-title{flex-grow:2}.components-popover.astra-popover-color .components-popover__content{padding:15px 15px 0;box-sizing:initial;background:#fff;border:unset;border-radius:4px;-webkit-box-shadow:0 2px 15px rgba(0,0,0,.3);box-shadow:0 2px 15px rgba(0,0,0,.3)}.customize-control-ast-color.customize-control>*{display:inline}.components-popover.astra-popover-color .components-popover__content .sketch-picker{padding:0 0 5px!important;box-shadow:none!important;border-radius:0!important}.components-popover.astra-popover-color .components-popover__content .attachment-media-view{margin-top:10px;margin-bottom:10px}.astra-swatches-wrap .astra-swatche-item-wrap:hover{transform:scale(1.1)!important}.astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item{background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0;padding:0;display:flex;justify-content:center}.astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item .dashicon{display:none}.astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item.swatch-active{box-shadow:0 0 0 8px inset!important}.astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item.swatch-active .dashicon{display:block;color:#fff;background:rgba(0,0,0,.6);width:16px;height:16px;border:1px solid rgba(0,0,0,.1);border-radius:100%}.astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item.swatch-active .dashicon path{transform:translate(1px,1px)}.components-button.astra-color-icon-indicate>.dashicon{position:absolute;transform:translate(-50%,-50%);left:50%;top:50%;color:#fff;background:rgb(85 93 101);border-radius:4px;width:24px;height:24px;font-size:24px;border:1px solid rgba(0,0,0,.1)}.astra-popover-color{margin:5px -5px 0;background-color:#fff;border-radius:4px;box-shadow:0 1px 16px -4px rgba(30,41,59,.16)}.astra-popover-color .components-h-stack.ast-color-palette{padding:14px 5px}.customize-control-ast-color-group .astra-popover-color .astra-background-tabs .components-h-stack.ast-color-palette,.customize-control-ast-responsive-background .astra-popover-color .components-h-stack.ast-color-palette{padding:0 5px 14px}.astra-popover-color .components-h-stack .components-button{flex:inherit}.astra-popover-color .components-h-stack .components-circular-option-picker__option-wrapper{margin-right:0}.astra-popover-color .components-color-picker .react-colorful__alpha,.astra-popover-color .components-color-picker .react-colorful__hue{width:90%}.ast-field-settings-modal .astra-popover-color{margin-left:0;border:1px solid #dedede}.ast-field-settings-modal .astra-popover-color .components-tab-panel__tabs{padding:8px}.components-color-picker__saturation-black{border-radius:4px 4px 0 0}.components-color-picker__saturation-color{border-radius:3px}.components-color-picker__saturation-white{border-radius:3px}.astra-color-picker-wrap{position:absolute;z-index:2;top:30px;left:0;right:0;bottom:0;display:none}.astra-color-picker-wrap .astra-popover-color .components-color-picker,.astra-color-picker-wrap .astra-popover-color .react-colorful{width:100%}.astra-popover-color .components-custom-gradient-picker{z-index:1}.astra-popover-color .components-custom-gradient-picker__ui-line{z-index:-1}.astra-color-picker-wrap.picker-open{display:block}.ast-field-settings-modal .astra-color-picker-wrap{position:relative;top:10px}.ast-color-palette .components-circular-option-picker__option-wrapper{margin-right:6px;position:relative;height:25px;width:25px}.ast-color-btn-clear-wrap{position:absolute;top:1.5px;right:65px}.ast-color-btn-clear-wrap .astra-color-clear-button.components-button{padding:10px 3px;width:20px;height:20px}.ast-clear-btn-inside-picker.components-button,.ast-reset-btn-inside-picker.components-button,.astra-popover-tabs .ast-clear-btn-inside-picker.components-button{margin:5px 20px 20px 15px;padding:0 8px;border:1px solid #ccc;box-shadow:none}.ast-clear-btn-inside-picker.components-button:active,.ast-clear-btn-inside-picker.components-button:focus,.ast-clear-btn-inside-picker.components-button:hover,.astra-popover-tabs .ast-clear-btn-inside-picker.components-button:active,.astra-popover-tabs .ast-clear-btn-inside-picker.components-button:focus,.astra-popover-tabs .ast-clear-btn-inside-picker.components-button:hover,.astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:active{box-shadow:none!important;background:0 0!important}.ast-clear-btn-inside-picker{padding:0 8px}.ast-color-btn-reset-wrap{position:absolute;right:36px;top:6px}.ast-color-btn-reset-wrap .ast-reset-btn.components-button,.ast-resp-slider-reset-wrap .ast-reset-btn.components-button{color:#006ba1;height:20px;width:20px;padding:4px;background:0 0;box-shadow:none!important;cursor:pointer}.astra-color-clear-button.components-button:focus:not(:disabled){outline:unset;border:none}.ast-color-btn-reset-wrap .ast-reset-btn.components-button:focus,.ast-color-btn-reset-wrap .ast-reset-btn.components-button:hover,.ast-resp-slider-reset-wrap .ast-reset-btn.components-button:focus,.ast-resp-slider-reset-wrap .ast-reset-btn.components-button:hover{box-shadow:none;border:none;background:0 0}.astra-color-clear-button.components-button.is-secondary:hover:not(:disabled),.astra-color-clear-button.components-button:focus:not(:disabled){box-shadow:0 0 #000;padding:1.5px;border:none}.ast-reset-btn.components-button.is-secondary:disabled span,.astra-color-clear-button.components-button.is-secondary:disabled{color:var(--ast-customizer-color-6)}.ast-field-settings-modal .color-button-wrap{right:16px}.ast-field-settings-modal .ast-color-btn-reset-wrap{right:59px;top:6px}.ast-field-settings-modal .ast-color-btn-clear-wrap{right:78px}.ast-field-settings-modal .customize-control-ast-color.customize-control,.ast-field-settings-modal .customize-control-ast-color.customize-control:first-child{margin-top:25px}.astra-color-picker-wrap .components-color-picker__inputs-wrapper{min-width:unset}.customize-control .ast-gradient-color-picker input[type=number]{width:100%}.ast-gradient-color-picker .components-select-control.components-custom-gradient-picker__type-picker{align-items:center;flex-direction:inherit}.astra-color-picker-wrap .components-popover__content{width:max-content}.astra-color-picker-wrap .astra-popover-color .ast-gradient-ui .components-color-picker,.astra-color-picker-wrap .astra-popover-color .ast-gradient-ui .react-colorful,.astra-color-picker-wrap .components-custom-gradient-picker__inserter .components-color-picker{width:216px}.astra-color-picker-wrap .ast-gradient-ui .components-select-control.components-custom-gradient-picker__type-picker{flex-direction:column;align-items:start}.astra-color-picker-wrap .ast-gradient-ui .components-angle-picker-control{margin-bottom:0}.astra-color-picker-wrap .ast-gradient-ui .components-custom-gradient-picker__remove-control-point{padding:0 16px 16px 16px;border:0}.astra-color-picker-wrap .ast-gradient-ui .components-custom-gradient-picker__remove-control-point:focus{box-shadow:none;outline:0}.customize-control .ast-gradient-color-picker .is-alpha-enabled .components-base-control__field [type=number]{width:100%}.ast-field-settings-modal .components-circular-option-picker__option-wrapper .components-circular-option-picker__option:focus::after{width:24px;height:24px}.ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option-wrapper{height:25px;width:25px}.ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option.is-pressed+svg{left:2.5px;top:0;width:20px}.ast-color-palette .components-circular-option-picker__option.is-pressed+svg{left:0;top:0;mix-blend-mode:difference}.astra-popover-color .components-circular-option-picker .components-circular-option-picker__swatches{gap:4px;justify-content:center}.astra-popover-color .components-circular-option-picker__option-wrapper:hover{transform:scale(1.1)}.customize-control-ast-color+.customize-control-ast-color{margin-top:30px}@supports (-moz-appearance:none){@media (max-width:1845px){.ast-color-palette .components-circular-option-picker__option-wrapper{margin-right:5px}.ast-field-settings-modal .components-circular-option-picker__option-wrapper .components-circular-option-picker__option:focus::after{width:21px;height:21px}.ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option-wrapper{height:20px;width:20px}.ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option.is-pressed+svg{left:3px;top:-2px;width:15px}}}.astra-color-icon-indicate.components-button:focus:not(:disabled){box-shadow:unset;outline:unset}.astra-color-icon-indicate.components-button:hover{transform:scale(1.05)}.ast-top-divider.customize-control-ast-color .ast-divider-title+.ast-control-wrap,.ast-top-divider.customize-control-ast-color-group .ast-divider-title+.ast-control-wrap{margin-top:25px;display:inline-flex;width:100%;min-height:22px}.ast-bottom-divider.customize-control-ast-toggle-control .ast-divider-title+.ast-togglecontrol-wrapper,.ast-top-divider.customize-control-ast-responsive-color .ast-divider-title+.ast-control-wrap,.ast-top-divider.customize-control-ast-responsive-toggle-control .ast-divider-title+.ast-responsive-toggle-control-wrapper,.ast-top-divider.customize-control-ast-slider .ast-divider-title+.ast-slider-wrap,.ast-top-divider.customize-control-ast-toggle-control .ast-divider-title+.ast-togglecontrol-wrapper,.customize-control-ast-color-group .ast-divider-title+.ast-control-wrap{margin-top:25px}.ast-top-divider.customize-control-ast-color-group .ast-control-wrap{display:inline-flex;width:100%}.ast-top-divider .ast-divider-title+.ast-control-wrap .ast-color-btn-reset-wrap{top:67px}.ast-top-divider .ast-divider-title+.ast-control-wrap .color-button-wrap{top:61px}.ast-top-divider.customize-control-ast-responsive-color .ast-divider-title+.ast-control-wrap .ast-responsive-btns{top:70px}.ast-color-palette.components-circular-option-picker .components-circular-option-picker__swatches{width:100%}.ast-adv-toggle-icon{right:2px;position:absolute;width:18px;height:18px;font-size:18px;border-radius:2px;padding:4px;color:var(--ast-customizer-color-8);background:var(--ast-customizer-color-9);cursor:pointer}.ast-adv-toggle-icon:hover{color:var(--ast-customizer-color-1)}.ast-adv-toggle-icon:before{content:"\f464"}.ast-adv-toggle-icon.open:before{content:"\f158"}.ast-field-settings-modal{position:absolute;-webkit-box-shadow:0 2px 15px rgba(0,0,0,.3);box-shadow:0 2px 15px rgba(0,0,0,.3);-webkit-border-radius:3px;border-radius:3px;left:0;right:0;z-index:8;background-color:#fff}.customize-control-ast-color-palette .ast-field-settings-modal{z-index:11}.ast-field-settings-modal .customize-control-ast-divider:first-child{margin-top:15px}.ast-field-settings-wrap{width:100%}.ast-group-tabs,.ast-tab-content{position:relative}.ast-group-list{overflow:hidden;border-bottom:1px solid #ddd}.ast-group-list:after,.ast-group-list:before{content:"";display:table;border-collapse:collapse}.ui-tabs-anchor{float:left;padding:.5em .5em;color:#555d66;text-decoration:none}.ui-state-active .ui-tabs-anchor{color:#fff}.ui-tabs-anchor:hover{color:#555d66}.ui-state-active .ui-tabs-anchor:hover{color:#fff}.ast-group-tabs .ui-widget-content{overflow:hidden}.ast-group-tabs .ui-widget-content.iris-slider-offset,.ast-group-tabs .ui-widget-content.iris-slider-offset-alpha{overflow:inherit}.ast-fields-wrap{overflow:hidden}.ast-field-settings-wrap{-webkit-box-shadow:0 2px 15px rgba(0,0,0,.3);box-shadow:0 2px 15px rgba(0,0,0,.3);-webkit-border-radius:3px;background-color:#fff}.ast-field-settings-wrap .ast-field-settings-modal{border-radius:3px;margin-top:10px;margin-bottom:20px}.ast-field-settings-modal::before{content:'';position:absolute;top:-17px;right:8px;border:9px solid transparent;border-bottom-color:#fff;pointer-events:none}.ast-group-tabs .ui-tabs-nav{display:flex;padding:15px 15px 0 15px}.ast-group-tabs .ui-tabs-nav .ui-corner-top{align-items:center;flex:1 1 auto;justify-content:center;margin:0 0;padding:0;border:1px solid #ccc;transition:background-color 140ms linear}.ast-group-tabs .ui-tabs-nav .ui-corner-top:first-child{border-radius:3px 0 0 3px}.ast-group-tabs .ui-tabs-nav .ui-corner-top:last-child{border-radius:0 3px 3px 0}.ast-group-tabs .ui-tabs-nav .ui-corner-top .ui-tabs-anchor{width:100%;text-align:center;padding:2px 4px;padding-left:0;padding-right:0;outline:0}.ast-group-tabs ul.ast-group-list .ui-corner-top .ui-tabs-anchor:focus{box-shadow:none}.ast-group-tabs .ui-tabs-nav{border:none}.ast-group-tabs ul.ast-group-list .ui-corner-top.ui-state-active{background-color:#0185ba;border:1px solid rgba(0,0,0,.1)}.ast-group-tabs .ui-tabs-nav{overflow:visible}.ast-group-tabs ul.ast-group-list .ui-corner-top:not(:first-child){border-left-width:0}.wp-core-ui .ast-field-settings-modal .background-image-upload .button{font-size:11px}.ast-field-settings-modal .customize-control{padding-left:16px;padding-right:16px;box-sizing:border-box}.ast-control-wrap .ast-color-picker-alpha{margin-left:-5px;margin-right:-5px}.ast-field-settings-modal .customize-control:first-child{margin-top:16px}.ast-field-settings-modal .ui-tabs-nav .customize-control:first-child{margin-top:0}.ast-field-settings-modal .customize-control:last-child{padding-bottom:16px}.customize-control-ast-settings-group{line-height:27px}.customize-control-ast-settings-group .customize-control-title{margin-bottom:0}.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-title{margin-bottom:10px;font-size:13px;margin-top:3px}.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-range-unit,.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-responsive-units,.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-slider .ast-range-unit{top:6px}.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-resp-slider-reset-wrap,.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-slider .ast-resp-slider-reset-wrap{top:3px}.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-responsive-slider-btns,.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-slider .ast-responsive-slider-btns{top:2px}.ast-field-settings-modal .customize-control{margin-top:2px}#customize-control-headings-font-extras.ast-sub-top-dotted-divider{margin-top:12px}.astra-popover-tabs{position:relative;top:5px}.astra-popover-tabs .components-tab-panel__tabs{display:flex;padding:15px;border:none}.astra-popover-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{color:#555d66;font-size:13px;font-weight:400;height:35px;transition:unset;padding:2px 4px;text-decoration:none;border-radius:0;border:1px solid rgba(0,0,0,.1)}.astra-popover-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:active{box-shadow:unset}.astra-popover-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus{box-shadow:unset}.astra-popover-tabs [ID*="-image-view"]{padding:15px;border:none}.astra-popover-tabs .components-button{align-items:center;flex:1 1 auto;justify-content:center;margin:0 0;padding:0;border:1px solid #ccc;transition:background-color 140ms linear}.astra-popover-tabs .components-tab-panel__tabs-item:first-child{border-radius:3px 0 0 3px}.astra-popover-tabs .components-tab-panel__tabs-item:last-child{border-radius:0 3px 3px 0}.astra-popover-tabs .components-tab-panel__tabs-item:not(:first-child){border-left-width:0}.astra-popover-tabs .components-tab-panel__tabs-item.active-tab{background-color:#0185ba;color:#fff}.astra-popover-tabs.astra-media-tab .components-tab-panel__tab-content,.astra-popover-tabs.astra-media-tab .components-tab-panel__tabs{padding:0}.astra-popover-tabs.astra-media-tab .components-tab-panel__tabs-item.active-tab{border-color:var(--ast-customizer-color-3);background:var(--ast-customizer-color-1)}.astra-popover-tabs.astra-media-tab .components-tab-panel__tab-content .ast-social-icon-picker-label{text-align:left}.astra-media-tab .astra-media-image{width:100%;margin-bottom:0}.astra-media-tab .ast-media-btn{display:block;width:100%;border:1px dashed var(--ast-customizer-color-7);box-sizing:border-box;box-shadow:unset;padding:9px 0;line-height:1.6;text-decoration:none}.astra-media-tab .ast-danger-btn{color:var(--ast-customizer-color-14);margin-top:10px}.astra-media-tab .ast-media-btn:hover{border-color:var(--ast-customizer-color-3)}.astra-media-tab .ast-danger-btn:hover{border-color:var(--ast-customizer-color-14)}.components-base-control.ast-text-control-input{margin-bottom:16px}.ast-payments-text-control-input .components-base-control__label{text-transform:none;color:#334155;font-size:13px}.components-base-control.ast-payments-text-control-input{margin-bottom:20px}.components-base-control.ast-text-control-input input{border-color:var(--ast-customizer-color-7);color:var(--ast-customizer-color-5)}.astra-popover-color .astra-popover-tabs .components-tab-panel__tabs button.components-tab-panel__tabs-item.active-tab:not(.is-primary):not(.is-tertiary):not(.is-link):hover{color:#fff}.components-popover.astra-popover-color .components-popover__content{min-width:310px;max-height:60vh;padding:0;-webkit-box-shadow:0 2px 15px rgba(0,0,0,.3);box-shadow:0 2px 15px rgba(0,0,0,.3)}.ast-field-settings-modal .components-popover.astra-popover-color .components-popover__content{min-width:320px;min-height:325px}.ast-field-settings-modal .background-wrapper .components-popover.astra-popover-color .components-popover__content{min-height:385px}.ast-field-settings-modal .components-angle-picker-control .components-flex__block{min-width:auto}.customize-control-ast-settings-group .customize-control-ast-responsive-slider .wrapper .ast-resp-slider-reset-wrap,.customize-control-ast-settings-group .customize-control-ast-slider .wrapper .ast-resp-slider-reset-wrap{margin-top:0}.ast-top-divider.customize-control-ast-settings-group .ast-toggle-desc-wrap .ast-adv-toggle-icon{top:23px}.ast-fields-wrap .customize-control-ast-responsive-slider .ast-slider-wrap>label,.ast-fields-wrap .customize-control-ast-selector .ast-slider-wrap>label{display:inline-block}#customize-control-astra-color-palettes .ast-color-palette-wrap>div{margin-bottom:8px;position:relative}#customize-control-astra-color-palettes .color-button-wrap{display:unset;position:relative;right:unset;top:unset;vertical-align:sub;z-index:10}#customize-control-astra-color-palettes .astra-color-picker-wrap{position:absolute;z-index:1;right:0;width:100%;display:none;margin-top:10px}#customize-control-astra-color-palettes .astra-color-picker-wrap.picker-open{display:block}#customize-control-astra-color-palettes .ast-color-palette-label{width:65%;display:inline-block;margin-right:10px;vertical-align:top}#customize-control-astra-color-palettes .ast-color-palette-label input{background:0 0;border:none}#customize-control-astra-color-palettes .ast-color-palette-label input:focus{border:1px solid #000;outline:0;box-shadow:none;background:#fff}.ast-color-palette-wrapper .ast-single-palette-wrap{display:grid;grid-template-columns:repeat(9,1fr);align-items:center;position:relative;gap:2px}.ast-single-palette-wrap .components-button.astra-color-icon-indicate .component-color-indicator.astra-advanced-color-indicate{width:25px;height:25px}#customize-control-astra-color-palettes .ast-color-palette-wrapper .ast-color-picker-wrap:first-child{margin-left:0}#customize-control-astra-color-palettes .ast-color-palette-wrapper .ast-color-picker-wrap{margin-top:12px;cursor:pointer}#customize-control-astra-color-palettes .ast-reset-btn:disabled{opacity:.6}#customize-control-astra-color-palettes .ast-single-color-container{width:25%;height:48px;display:inline-block}#customize-control-astra-color-palettes .ast-color-palette-wrap>section{text-align:center;outline:0;border-radius:3px;cursor:pointer;transition:all .2s;box-shadow:0 0 0 1px #ddd}.ast-color-palette-container{width:100%;display:inline-grid;grid-template-columns:auto auto;column-gap:16px;row-gap:16px}#customize-control-astra-color-palettes .ast-field-settings-modal{display:none;padding:16px}.ast-color-palette-wrap{transition:all .2s}.ast-color-palette-wrap.active{box-shadow:0 12px 20px -8px rgb(30 41 59 / 16%)}#customize-control-astra-color-palettes .ast-color-palette-wrapper{clear:both}#customize-controls .customize-section-title.is-in-view.is-sticky{z-index:99}#customize-control-astra-color-palettes .ast-palette-selection-wrapper{overflow:hidden;padding:2px}@media (min-width:1800px){#customize-control-astra-color-palettes .astra-color-picker-wrap{width:auto}}#customize-control-astra-color-palettes .ast-color-palette-wrap.active>section{box-shadow:0 0 0 1px #334155}.ast-palette-label-wrap{display:inline-block;text-align:center;color:#9ca3af;overflow:hidden;width:100%;box-sizing:border-box;padding:0;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;font-style:normal;font-weight:600;font-size:10px;line-height:22px;letter-spacing:1.5px;text-transform:uppercase}.ast-color-palette-wrap.active .ast-palette-label-wrap{color:#334155}#customize-control-astra-color-palettes .ast-field-settings-modal{margin-top:-35px}.astra-advanced-color-indicate .global-color{display:none}.color-button-wrap.has-global-palette-color .astra-advanced-color-indicate .global-color{color:#fff;display:block;opacity:1;position:absolute;left:50%;top:50%;display:block;text-align:center;transform:translate(-50%,-50%)}.color-button-wrap.has-global-palette-color .astra-advanced-color-indicate .global-color svg{width:10px;height:10px;transform:scale(1.5)}#customize-control-astra-color-palettes .ast-adv-toggle-icon{top:-5px}.ast-color-picker-custom-tooltip{position:absolute;top:-30px;bottom:0;left:0;right:0;width:100%;height:100%}.ast-color-picker-custom-tooltip[data-title]::after{content:attr(data-title);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1ch 1.5ch;border-radius:.3ch;box-shadow:0 1em 2em -.5em rgb(0 0 0 / 35%);background:var(--ast-customizer-color-12);color:var(--ast-customizer-color-10);z-index:1000;bottom:calc(100% + 5px);text-align:center;animation:tooltips-vert .3s ease-out forwards;text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0;left:50%;transform:translate(-50%,-.5em)}.ast-single-palette-wrap>:last-child .ast-color-picker-custom-tooltip[data-title]::after{left:-16px}.ast-color-picker-custom-tooltip-wrapper{position:relative}.ast-color-picker-wrap:hover+.ast-color-picker-custom-tooltip-wrapper .ast-color-picker-custom-tooltip[data-title]::after{display:flex;white-space:break-spaces;inline-size:max-content}.ast-color-palette .components-popover.components-tooltip{position:relative!important;left:5px!important;top:-35px!important;transform:unset!important}.customize-control .components-tooltip{z-index:8!important}.ast-color-palette .components-popover .components-popover__content{bottom:calc(100% + 5px);animation:tooltips-vert .3s ease-out forwards;left:50%;transform:translate(-50%,-.5em)}.ast-responsive-btns{display:inline-block;line-height:1;vertical-align:top}.ast-responsive-btns>li{margin-bottom:0;display:none}.ast-responsive-btns>li.active{display:inline-block}.ast-responsive-btns button[type=button]{padding:0;cursor:pointer;background:0 0;border:none;outline:0}.ast-responsive-btns button[type=button]>i{width:15px;height:15px;font-size:15px}.input-wrapper.ast-responsive-wrapper{display:inline-flex;justify-content:space-between;margin-right:0;align-items:flex-start;flex:0 1;width:100%}.ast-dashicons-custom-tooltip{position:absolute;left:8px;top:20px;width:150px;z-index:999;padding:8px 8px;font-size:12px;font-weight:400;border-radius:2px;color:#fff;background:#1e1e1e;transition:opacity .2s cubic-bezier(.455, .03, .515, .955),transform .2s cubic-bezier(.455, .03, .515, .955),visibility .2s cubic-bezier(.455, .03, .515, .955);transform:translate3d(0,-30px,0);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.5em;text-align:center;visibility:hidden}.dashicons-editor-help{cursor:pointer;font-size:18px;color:#9ca3af;position:relative;left:6px;top:2.5px}.dashicons-editor-help:hover~.ast-dashicons-custom-tooltip{opacity:1;visibility:visible}.astra-popover-tabs img{width:100%;max-width:300px}.customize-control .ast-reset-btn .dashicons-image-rotate{width:12px;height:12px;font-size:12px;position:relative;top:.1em;left:.5em}.ast-bg-control-left{display:flex;width:50%;height:50%;display:flex;justify-content:space-between;align-items:center;position:relative;top:.6em;max-height:19.5px}#customize-control-astra-settings-content-bg-obj-responsive .ast-bg-control-left{width:57%}#customize-control-astra-settings-content-bg-obj-responsive{margin-top:2em;margin-bottom:1em}.ast-show-help-text-container{position:relative}.customize-control-ast-background .more-settings .message,.customize-control-ast-responsive-background .more-settings .message{margin-right:5px}.customize-control .media-position-setting label.components-text{text-transform:capitalize;font-size:12px;font-weight:400}.ast-sidebar-container .components-base-control .components-base-control__field .components-input-control__backdrop{border-color:#d1d5db!important}@media (min-width:782px){div#astra-theme-layout\:theme-meta-panel .components-panel__header+.interface-complementary-area-header{margin-bottom:-2px}}PKtmZg~7metabox/extend-metabox/css/minified/metabox-rtl.min.cssnu[.ast-header-settings-modal .components-modal__header svg{width:30px;height:30px}.ast-sidebar-container .ast-sidebar-layout-meta-wrap .components-input-control__container .components-select-control__input{padding:3px 8px 3px 24px;font-size:14px;line-height:25px;margin-bottom:3px}.ast-sidebar-layout-meta-wrap .components-toggle-control label{font-size:14px}.ast-sidebar-layout-meta-wrap .components-toggle-control{margin-bottom:15px}.ast-radio-image-controller .customize-control-title{font-weight:500}.ast-sidebar-layout-meta-wrap{margin-bottom:13px}.ast-meta-settings-divider:before{width:auto;margin:1px -16px}.ast-meta-settings-divider{padding-top:10px}.ast-meta-settings-divider:before{content:'';display:block;height:1px;background:#e2e4e7}.ast-meta-settings-title:not([data-type=ast-first]){padding-top:4px}.ast-meta-settings-title{font-size:13px;font-weight:700}.ast-radio-image-controller input{display:none}.ast-radio-image-controller input:checked+label svg{color:var(--wp-admin-theme-color);background:var(--wp-admin-theme-color);border-color:transparent;box-shadow:0 12px 20px -8px rgb(30 41 59 / 16%);border-bottom-color:#f0f0f1;border-radius:4px;opacity:1}.ast-radio-image-controller>.options-wrapper{display:grid;grid-template-columns:repeat(2,1fr);grid-column-gap:23px;grid-row-gap:23px}.ast-radio-image-controller .ast-radio-img-svg svg{color:#a0aec0;width:100%;height:auto;background:rgba(221,224,226,.5);border:1px solid var(--ast-customizer-color-7);border-radius:4px;transition:all .2s;transition:60ms all}.ast-radio-image-controller label{position:relative;display:inline-block}.ast-radio-image-controller input+label .image-clickable{position:absolute;top:0;bottom:0;right:0;left:0;width:100%;height:100%}div#astra_settings_meta_box{padding:0;overflow:hidden}.components-panel__body .components-base-control__field{padding:5px 0 0}.ast-meta-selector-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.ast-meta-selector-wrapper .ast-selector-inner-wrap{flex:1 1 auto;display:flex}.ast-selector-inner-wrap .components-button{white-space:nowrap;background:rgba(255,255,255,0);color:rgba(0,0,0,.966);text-decoration:none;text-shadow:none;outline:unset;border:1px solid #d2d2d2;width:100%;height:100%;text-align:center;justify-content:center;border-radius:unset;transition:none;font-size:12px;padding:8px 12px}.ast-selector-inner-wrap .components-button.is-primary{color:#fff;background:#007cba}.ast-meta-selector-controller .ast-selector-inner-wrap:first-child .components-button{border-radius:0 2px 2px 0}.ast-meta-selector-controller .ast-selector-inner-wrap:not(:first-child) .components-button{margin-right:-1px}.ast-meta-selector-controller .ast-selector-inner-wrap:not(:first-child):not(:last-child) .components-button{border-left:none}.ast-meta-selector-controller .ast-selector-inner-wrap:last-child .components-button{border-radius:2px 0 0 2px}.ast-meta-selector-controller .ast-selector-inner-wrap .components-button:focus:not(:disabled){box-shadow:none}.ast-meta-settings-content .components-toggle-control .components-base-control__field,.ast-meta-settings-content .components-toggle-control .components-base-control__field .components-flex,.ast-sidebar-container .components-toggle-control .components-base-control__field,.ast-sidebar-container .components-toggle-control .components-base-control__field .components-flex{justify-content:space-between;flex-direction:row-reverse;margin-bottom:0}.ast-custom-layout-panel .components-button{padding-left:15px}.ast-title-container{-js-display:flex;display:flex;flex-grow:1}.ast-header-settings-modal{min-width:auto;width:100%;max-width:700px;height:auto;border-radius:2px;max-height:600px;top:45%;box-shadow:0 10px 36px -10px rgb(0 0 0 / 25%)}.components-modal__icon-container{margin-left:15px;margin-top:5px}.ast-header-settings-modal .components-modal__content{-js-display:flex;display:flex;flex-direction:column;padding:0}.ast-header-settings-modal .components-modal__content::before{margin-bottom:0}.ast-header-settings-modal .components-modal__header{padding-right:24px;border-bottom:0;padding-bottom:20px;padding-top:20px;margin:0;border-radius:2px 2px 0 0;box-shadow:0 6px 8px -3px rgb(0 0 0 / 5%),0 4px 6px -2px rgb(0 0 0 / 5%)}.ast-meta-settings-content{overflow-y:auto;margin:0;padding:0}.ast-meta-settings-hook-table.widefat{border-width:0}.ast-meta-settings-hook-table:last-of-type{border-bottom-width:0}.ast-extra-spacing .ast-border{border-left:1px solid #e1e1e1}.ast-extra-spacing-bottom td{border-bottom:1px solid #e1e1e1}td.ast-advanced-hook-row-heading{border-left:1px solid #e1e1e1;padding:12px 25px 12px 20px;width:25%;vertical-align:middle}.ast-meta-settings-hook-table .ast-advanced-hook-row-content{padding:12px 25px 12px 20px;position:relative;width:75%}.ast-time-duration .ast-advanced-hook-row td{border-bottom:0}.ast-cl-footer-container{position:sticky;bottom:0;border-radius:0 0 2px 2px;background:#fff;z-index:9;box-shadow:0 -6px 8px -3px rgb(0 0 0 / 5%),0 -4px 6px -2px rgb(0 0 0 / 5%)}.ast-button-container{-js-display:flex;display:flex;justify-content:space-between;padding:14px 24px 14px 20px}.ast-cl-popup-notice{-js-display:flex;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;font-size:14px}.ast-button-container button.button{min-height:35px;background-color:#fff}.ast-cl-popup-notice .dashicons{font-size:22px;color:#1f2937;margin-left:10px}.components-modal__header .components-button svg{width:35px;height:35px}.ast-header-settings-modal .components-modal__header-heading-container{justify-content:initial}.components-modal__header .components-button{width:60px;height:60px;left:0;bottom:0;right:auto}.components-button:focus:not(:disabled){box-shadow:none;outline:1.5px solid transparent}.ast-advanced-hook-row-content section{max-width:250px}.ast-advanced-hook-row-content .components-toggle-control:not(:last-child){margin-bottom:20px}.ast-meta-image-tooltip{position:absolute;z-index:200;width:auto;height:26px;padding:0 6px;font-size:12px;font-weight:400;letter-spacing:initial;text-transform:initial;-webkit-font-smoothing:antialiased;-webkit-user-select:none;user-select:none;white-space:nowrap;border-radius:2px;pointer-events:none;color:#fff;background:#1e1e1e;opacity:0;visibility:hidden;transition:opacity .2s cubic-bezier(.455, .03, .515, .955),transform .2s cubic-bezier(.455, .03, .515, .955),visibility .2s cubic-bezier(.455, .03, .515, .955);transform:translate3d(0,-30px,0);display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:inherit;right:50%;top:-38%;transform:translateX(50%)}.ast-radio-img-svg:hover .ast-meta-image-tooltip{opacity:1;visibility:visible}.ast-pro-upgrade-cta-wrapper{padding:20px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px}p.ast-upgrade-description{margin:0}a.ast-pro-upgrade-link{color:#0284c7;display:block;width:100%;text-decoration:none;padding:8px;border:1px solid #0284c7;border-radius:2px}.ast-sub-section-title{display:inline-block;margin-top:5px;margin-bottom:12px;font-size:14px}#ast-label-container-style{margin-top:16px}#ast-label-sidebar-style{margin-top:16px}.customize-control-ast-responsive-background{position:relative;margin-bottom:-5px;margin-top:20px;display:flex}.customize-control-ast-responsive-background .background-container h4{font-size:14px;font-weight:600;color:#555d66}.customize-control-ast-responsive-background .background-attachment h4,.customize-control-ast-responsive-background .background-color h4,.customize-control-ast-responsive-background .background-position h4,.customize-control-ast-responsive-background .background-repeat h4,.customize-control-ast-responsive-background .background-size h4{margin-bottom:5px;margin-top:10px}.customize-control-ast-responsive-background .background-color{margin-bottom:12px}.customize-control-ast-responsive-background .background-repeat{margin:15px 0 15px 0}.customize-control-ast-responsive-background .background-attachment .buttonset,.customize-control-ast-responsive-background .background-size .buttonset{display:flex;flex-wrap:wrap}.customize-control-ast-responsive-background .background-attachment .buttonset .switch-label,.customize-control-ast-responsive-background .background-size .buttonset .switch-label{background:#fff;border:1px solid rgba(0,0,0,.1);color:#555;padding:2px 4px;margin-left:15px;text-align:center;flex-grow:1;transition:background-color 140ms linear}.customize-control-ast-responsive-background .background-attachment .buttonset .switch-label:last-child,.customize-control-ast-responsive-background .background-size .buttonset .switch-label:last-child{margin-left:0}.customize-control-ast-responsive-background .background-attachment .buttonset .switch-input:checked+.switch-label,.customize-control-ast-responsive-background .background-size .buttonset .switch-input:checked+.switch-label{background-color:#f5f5f5;color:#565e67}.customize-control-ast-responsive-background .background-attachment .buttonset .switch-input[checked=checked]+.switch-label,.customize-control-ast-responsive-background .background-size .buttonset .switch-input[checked=checked]+.switch-label{background-color:#f5f5f5;color:#565e67}.customize-control-ast-responsive-background .ast-bg-img-remove.components-button.is-link{width:100%;border:1px dashed #b4b9be;box-sizing:border-box;box-shadow:unset;padding:9px 0;line-height:1.6;margin-top:10px;text-decoration:none}.customize-control-ast-responsive-background .ast-bg-img-remove.components-button.is-destructive:hover:not(:disabled){color:#a02222;box-shadow:unset;border-color:#a02222}.customize-control-ast-responsive-background .more-settings{margin-top:12px;display:flex;justify-content:flex-end;padding:5px 0 5px 0;cursor:pointer;float:none;text-decoration:none}.customize-control-ast-responsive-background .more-settings:focus{outline:0;box-shadow:none}.customize-control-ast-responsive-background .arrow-icon{margin-right:5px}.customize-control-ast-responsive-background .background-container{display:none}.customize-control-ast-responsive-background .background-container.active{display:block}.customize-control-ast-responsive-background .wp-picker-container{display:block}.customize-control-ast-responsive-background .wp-picker-container .wp-picker-clear{margin-right:4px;min-height:30px}.customize-control-ast-responsive-background .customize-control-content .astra-color-picker-wrap{width:300px}.customize-control-ast-responsive-background .customize-control-content .components-color-picker__saturation-color,.customize-control-ast-responsive-background .customize-control-content .components-color-picker__saturation-white{border-radius:unset}.customize-control-ast-responsive-background .ast-color-btn-clear-wrap{left:84px}.components-color-picker__inputs-toggle-wrapper .components-color-picker__inputs-toggle{vertical-align:middle;height:32px}.astra-popover-tabs .components-button.upload-button.button-add-media{width:100%;position:relative;text-align:center;color:#555d66;border:1px dashed #b4b9be;box-sizing:border-box;box-shadow:unset;padding:9px 0;line-height:1.6}.astra-popover-tabs .components-button.upload-button.button-add-media:hover{color:#555d66;box-sizing:border-box;box-shadow:unset;border-color:#0185ba}.astra-popover-tabs [ID*="-gradient-view"]{padding:0 15px 15px 15px}.astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear{flex:unset;box-shadow:unset;width:auto;padding:0 5px}.astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:hover{box-shadow:unset}.astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:active{box-shadow:unset}.astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:focus{box-shadow:unset}.astra-popover-tabs #tab-panel-0-image-view>div{text-align:center}.astra-popover-tabs #tab-panel-0-image-view>div .media-position-setting{text-align:right}.media-position-setting>.components-base-control{margin-bottom:15px}.media-position-setting [CLASS*="-Item-LabelWrapper"]{margin-bottom:5px}.astra-popover-color .components-circular-option-picker{position:relative;margin-top:0}.astra-popover-color .components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{margin-top:10px;justify-content:flex-start}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.astra-popover-color .components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{width:50px}}.astra-popover-color [ID*="-color-view"] .components-circular-option-picker{width:auto}.astra-popover-color .ast-color-palette{width:auto;padding:16px 14px 0 0}.astra-popover-color .ast-color-palette .components-circular-option-picker__option{width:100%;height:100%;border-radius:100%}.astra-popover-color .ast-color-palette .components-button.is-pressed:focus:not(:disabled){box-shadow:none;border:none}.astra-popover-color .components-custom-gradient-picker{margin-top:0}.astra-popover-color .components-custom-gradient-picker__gradient-bar{box-sizing:border-box;opacity:1}.astra-popover-color .components-custom-gradient-picker__type-picker .components-base-control__label{display:block}.components-custom-gradient-picker .components-base-control__label{padding-top:10px;font-size:12px;display:block;letter-spacing:.1px;line-height:18px}[ID*="-gradient-view"] .components-toolbar.components-custom-gradient-picker__toolbar .components-button.has-icon{border:none}.media-position-setting.hide-settings{display:none}.media-position-setting .astra-popover-tabs [ID*="-gradient-view"]{padding:0 0 15px 0}.ast-field-settings-modal .customize-control-content .color-button-wrap{left:30px;top:0}.ast-field-settings-modal .ast-responsive-btns{position:absolute;left:14px;top:4px}.ast-field-settings-modal .customize-control-content .astra-color-picker-wrap{margin-right:0;margin-top:0}.ast-field-settings-modal .customize-control-content .ast-color-btn-reset-wrap{left:65px;top:7px}.ast-field-settings-modal .customize-control-content .ast-color-btn-clear-wrap{left:91px}.ast-field-settings-modal .customize-control-ast-responsive-background.customize-control:first-child{margin-top:28px}.customize-control-ast-responsive-background .ast-color-btn-reset-wrap,.customize-control-ast-responsive-color .ast-color-btn-reset-wrap{display:inline-block;line-height:1;top:4.5px}.customize-control-ast-responsive-background .ast-responsive-btns,.customize-control-ast-responsive-color .ast-responsive-btns{position:relative;top:.1em;right:.2em}.customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha{display:none}.customize-control-ast-responsive-color .customize-control-content{display:block;margin-top:5px}.customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha .astra-color-picker-wrap .components-color-picker__saturation-black{border-radius:4px 4px 0 0}.customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha .astra-color-picker-wrap .components-color-picker__saturation-color,.customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha .astra-color-picker-wrap .components-color-picker__saturation-white{border-radius:3px}.customize-control-ast-responsive-color .customize-control-content .ast-color-picker-alpha.active{display:block}.customize-control-ast-responsive-color .customize-control-content .components-color-picker__saturation-color,.customize-control-ast-responsive-color .customize-control-content .components-color-picker__saturation-white{border-radius:unset}.ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .color-button-wrap{left:30px;top:-3px}.ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .astra-color-picker-wrap{margin-right:0;margin-bottom:10px;margin-top:10px}.ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .customize-control-title{display:block;margin-bottom:0}.ast-field-settings-modal .customize-control-ast-responsive-color .ast-responsive-btns{left:7px;top:1px}.ast-field-settings-modal .customize-control-ast-responsive-color.customize-control:first-child{margin-top:28px}.ast-field-settings-modal .customize-control-ast-responsive-color .ast-clear-btn-inside-picker.components-button{margin:5px 10px 20px 20px}.ast-field-settings-modal .customize-control-ast-responsive-color .ast-color-btn-reset-wrap{top:3.5px}@supports (-moz-appearance:none){.ast-field-settings-modal .customize-control-ast-responsive-color .ast-color-btn-reset-wrap{top:5.5px;left:65px}.ast-field-settings-modal .customize-control-ast-responsive-color .customize-control-content .color-button-wrap{left:27px;top:-2px}}.astra-control-field.astra-color-control{display:flex}.astra-control-field{position:relative;margin-top:10px;margin-bottom:10px}.astra-control-field.astra-color-control .customize-control-title{flex-grow:2}.astra-control-field .customize-control-title{font-size:14px;font-weight:600;margin-bottom:0;display:flex;align-items:center;letter-spacing:.1px;line-height:18px}.customize-control-title{display:block;font-size:14px;line-height:1;font-weight:600;margin-bottom:4px}.astra-globe-dashicon{color:#fff;background:rgba(0,0,0,.4);border-radius:100%;border:.1px solid rgba(0,0,0,.1);opacity:.78}.components-button.astra-color-icon-indicate .component-color-indicator.astra-advanced-color-indicate{width:28px;height:28px;border-radius:50%;margin:0;background:inherit}.astra-advanced-color-indicate.component-color-indicator{border:none}.astra-color-icon-indicate.components-button{height:auto;position:relative;transform:scale(1);transition:none;border-radius:50%;padding:0;background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.astra-popover-color .components-popover__content .components-focal-point-picker-wrapper{box-sizing:border-box}.astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container input[type=number].components-text-control__input{min-height:16px;line-height:16px;font-size:12px;width:50px;font-weight:400}.astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control{flex:1;margin-bottom:0}.astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control .components-base-control__label{margin-bottom:0;margin-left:.2em}.astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control__field{display:flex;align-items:center;font-size:8px;font-weight:600;font-style:normal;text-transform:uppercase}.astra-popover-color .components-popover__content .components-focal-point-picker_position-display-container .components-base-control:last-child .components-base-control__field{justify-content:flex-end}.astra-popover-color .components-popover__content .actions{display:flex;justify-content:center;margin-bottom:10px}.astra-popover-color .components-popover__content .actions .button{flex:1;margin-top:10px}.astra-background-picker-wrap .astra-popover-color .components-popover__content{min-width:300px;min-height:340px;max-height:60vh}.color-button-wrap{display:inline-block;position:absolute;left:0;top:0;transform:scale(1);transition:transform .1s ease;height:28px;width:28px}.components-button.astra-color-icon-indicate .astra-advanced-color-indicate:after{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:50%;border:1px solid transparent}.components-button.astra-background-icon-indicate{width:50px;height:50px;border-radius:50%;position:relative;transform:scale(1);transition:transform .1s ease;border-radius:50%;padding:0;background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);border:1px solid #dadada;background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.components-button.astra-background-icon-indicate .component-color-indicator.astra-advanced-color-indicate{width:100%;height:100%;border-radius:4px;margin:0;display:block;position:absolute;border:0;top:0}.components-button.astra-background-icon-indicate>svg.dashicon{position:absolute;transform:translate(50%,-50%);right:50%;top:50%;color:#fff;background:rgba(0,0,0,.6);border-radius:100%;width:16px;height:16px;border:1px solid rgba(0,0,0,.1)}.components-button.astra-background-icon-indicate>svg.dashicon path{transform:translate(-1px,1px)}.components-button.astra-background-icon-indicate img.astra-background-image-preview{display:flex;object-fit:cover;min-width:100%;min-height:100%;position:absolute;top:0}.components-button.astra-background-icon-indicate:hover{box-shadow:none!important}.astra-control-field.astra-color-control{display:flex}.astra-control-field.astra-color-control .customize-control-title{flex-grow:2}.components-popover.astra-popover-color .components-popover__content{padding:15px 15px 0;box-sizing:initial;background:#fff;border:unset;border-radius:4px;-webkit-box-shadow:0 2px 15px rgba(0,0,0,.3);box-shadow:0 2px 15px rgba(0,0,0,.3)}.customize-control-ast-color.customize-control>*{display:inline}.components-popover.astra-popover-color .components-popover__content .sketch-picker{padding:0 0 5px!important;box-shadow:none!important;border-radius:0!important}.components-popover.astra-popover-color .components-popover__content .attachment-media-view{margin-top:10px;margin-bottom:10px}.astra-swatches-wrap .astra-swatche-item-wrap:hover{transform:scale(1.1)!important}.astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item{background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0;padding:0;display:flex;justify-content:center}.astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item .dashicon{display:none}.astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item.swatch-active{box-shadow:0 0 0 8px inset!important}.astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item.swatch-active .dashicon{display:block;color:#fff;background:rgba(0,0,0,.6);width:16px;height:16px;border:1px solid rgba(0,0,0,.1);border-radius:100%}.astra-swatches-wrap .astra-swatche-item-wrap .astra-swatch-item.swatch-active .dashicon path{transform:translate(-1px,1px)}.components-button.astra-color-icon-indicate>.dashicon{position:absolute;transform:translate(50%,-50%);right:50%;top:50%;color:#fff;background:rgb(85 93 101);border-radius:4px;width:24px;height:24px;font-size:24px;border:1px solid rgba(0,0,0,.1)}.astra-popover-color{margin:5px -5px 0;background-color:#fff;border-radius:4px;box-shadow:0 1px 16px -4px rgba(30,41,59,.16)}.astra-popover-color .components-h-stack.ast-color-palette{padding:14px 5px}.customize-control-ast-color-group .astra-popover-color .astra-background-tabs .components-h-stack.ast-color-palette,.customize-control-ast-responsive-background .astra-popover-color .components-h-stack.ast-color-palette{padding:0 5px 14px}.astra-popover-color .components-h-stack .components-button{flex:inherit}.astra-popover-color .components-h-stack .components-circular-option-picker__option-wrapper{margin-left:0}.astra-popover-color .components-color-picker .react-colorful__alpha,.astra-popover-color .components-color-picker .react-colorful__hue{width:90%}.ast-field-settings-modal .astra-popover-color{margin-right:0;border:1px solid #dedede}.ast-field-settings-modal .astra-popover-color .components-tab-panel__tabs{padding:8px}.components-color-picker__saturation-black{border-radius:4px 4px 0 0}.components-color-picker__saturation-color{border-radius:3px}.components-color-picker__saturation-white{border-radius:3px}.astra-color-picker-wrap{position:absolute;z-index:2;top:30px;right:0;left:0;bottom:0;display:none}.astra-color-picker-wrap .astra-popover-color .components-color-picker,.astra-color-picker-wrap .astra-popover-color .react-colorful{width:100%}.astra-popover-color .components-custom-gradient-picker{z-index:1}.astra-popover-color .components-custom-gradient-picker__ui-line{z-index:-1}.astra-color-picker-wrap.picker-open{display:block}.ast-field-settings-modal .astra-color-picker-wrap{position:relative;top:10px}.ast-color-palette .components-circular-option-picker__option-wrapper{margin-left:6px;position:relative;height:25px;width:25px}.ast-color-btn-clear-wrap{position:absolute;top:1.5px;left:65px}.ast-color-btn-clear-wrap .astra-color-clear-button.components-button{padding:10px 3px;width:20px;height:20px}.ast-clear-btn-inside-picker.components-button,.ast-reset-btn-inside-picker.components-button,.astra-popover-tabs .ast-clear-btn-inside-picker.components-button{margin:5px 15px 20px 20px;padding:0 8px;border:1px solid #ccc;box-shadow:none}.ast-clear-btn-inside-picker.components-button:active,.ast-clear-btn-inside-picker.components-button:focus,.ast-clear-btn-inside-picker.components-button:hover,.astra-popover-tabs .ast-clear-btn-inside-picker.components-button:active,.astra-popover-tabs .ast-clear-btn-inside-picker.components-button:focus,.astra-popover-tabs .ast-clear-btn-inside-picker.components-button:hover,.astra-popover-tabs [ID*="-gradient-view"] .components-circular-option-picker__clear:active{box-shadow:none!important;background:0 0!important}.ast-clear-btn-inside-picker{padding:0 8px}.ast-color-btn-reset-wrap{position:absolute;left:36px;top:6px}.ast-color-btn-reset-wrap .ast-reset-btn.components-button,.ast-resp-slider-reset-wrap .ast-reset-btn.components-button{color:#006ba1;height:20px;width:20px;padding:4px;background:0 0;box-shadow:none!important;cursor:pointer}.astra-color-clear-button.components-button:focus:not(:disabled){outline:unset;border:none}.ast-color-btn-reset-wrap .ast-reset-btn.components-button:focus,.ast-color-btn-reset-wrap .ast-reset-btn.components-button:hover,.ast-resp-slider-reset-wrap .ast-reset-btn.components-button:focus,.ast-resp-slider-reset-wrap .ast-reset-btn.components-button:hover{box-shadow:none;border:none;background:0 0}.astra-color-clear-button.components-button.is-secondary:hover:not(:disabled),.astra-color-clear-button.components-button:focus:not(:disabled){box-shadow:0 0 #000;padding:1.5px;border:none}.ast-reset-btn.components-button.is-secondary:disabled span,.astra-color-clear-button.components-button.is-secondary:disabled{color:var(--ast-customizer-color-6)}.ast-field-settings-modal .color-button-wrap{left:16px}.ast-field-settings-modal .ast-color-btn-reset-wrap{left:59px;top:6px}.ast-field-settings-modal .ast-color-btn-clear-wrap{left:78px}.ast-field-settings-modal .customize-control-ast-color.customize-control,.ast-field-settings-modal .customize-control-ast-color.customize-control:first-child{margin-top:25px}.astra-color-picker-wrap .components-color-picker__inputs-wrapper{min-width:unset}.customize-control .ast-gradient-color-picker input[type=number]{width:100%}.ast-gradient-color-picker .components-select-control.components-custom-gradient-picker__type-picker{align-items:center;flex-direction:inherit}.astra-color-picker-wrap .components-popover__content{width:max-content}.astra-color-picker-wrap .astra-popover-color .ast-gradient-ui .components-color-picker,.astra-color-picker-wrap .astra-popover-color .ast-gradient-ui .react-colorful,.astra-color-picker-wrap .components-custom-gradient-picker__inserter .components-color-picker{width:216px}.astra-color-picker-wrap .ast-gradient-ui .components-select-control.components-custom-gradient-picker__type-picker{flex-direction:column;align-items:start}.astra-color-picker-wrap .ast-gradient-ui .components-angle-picker-control{margin-bottom:0}.astra-color-picker-wrap .ast-gradient-ui .components-custom-gradient-picker__remove-control-point{padding:0 16px 16px 16px;border:0}.astra-color-picker-wrap .ast-gradient-ui .components-custom-gradient-picker__remove-control-point:focus{box-shadow:none;outline:0}.customize-control .ast-gradient-color-picker .is-alpha-enabled .components-base-control__field [type=number]{width:100%}.ast-field-settings-modal .components-circular-option-picker__option-wrapper .components-circular-option-picker__option:focus::after{width:24px;height:24px}.ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option-wrapper{height:25px;width:25px}.ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option.is-pressed+svg{right:2.5px;top:0;width:20px}.ast-color-palette .components-circular-option-picker__option.is-pressed+svg{right:0;top:0;mix-blend-mode:difference}.astra-popover-color .components-circular-option-picker .components-circular-option-picker__swatches{gap:4px;justify-content:center}.astra-popover-color .components-circular-option-picker__option-wrapper:hover{transform:scale(1.1)}.customize-control-ast-color+.customize-control-ast-color{margin-top:30px}@supports (-moz-appearance:none){@media (max-width:1845px){.ast-color-palette .components-circular-option-picker__option-wrapper{margin-left:5px}.ast-field-settings-modal .components-circular-option-picker__option-wrapper .components-circular-option-picker__option:focus::after{width:21px;height:21px}.ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option-wrapper{height:20px;width:20px}.ast-field-settings-modal .ast-color-palette .components-circular-option-picker__option.is-pressed+svg{right:3px;top:-2px;width:15px}}}.astra-color-icon-indicate.components-button:focus:not(:disabled){box-shadow:unset;outline:unset}.astra-color-icon-indicate.components-button:hover{transform:scale(1.05)}.ast-top-divider.customize-control-ast-color .ast-divider-title+.ast-control-wrap,.ast-top-divider.customize-control-ast-color-group .ast-divider-title+.ast-control-wrap{margin-top:25px;display:inline-flex;width:100%;min-height:22px}.ast-bottom-divider.customize-control-ast-toggle-control .ast-divider-title+.ast-togglecontrol-wrapper,.ast-top-divider.customize-control-ast-responsive-color .ast-divider-title+.ast-control-wrap,.ast-top-divider.customize-control-ast-responsive-toggle-control .ast-divider-title+.ast-responsive-toggle-control-wrapper,.ast-top-divider.customize-control-ast-slider .ast-divider-title+.ast-slider-wrap,.ast-top-divider.customize-control-ast-toggle-control .ast-divider-title+.ast-togglecontrol-wrapper,.customize-control-ast-color-group .ast-divider-title+.ast-control-wrap{margin-top:25px}.ast-top-divider.customize-control-ast-color-group .ast-control-wrap{display:inline-flex;width:100%}.ast-top-divider .ast-divider-title+.ast-control-wrap .ast-color-btn-reset-wrap{top:67px}.ast-top-divider .ast-divider-title+.ast-control-wrap .color-button-wrap{top:61px}.ast-top-divider.customize-control-ast-responsive-color .ast-divider-title+.ast-control-wrap .ast-responsive-btns{top:70px}.ast-color-palette.components-circular-option-picker .components-circular-option-picker__swatches{width:100%}.ast-adv-toggle-icon{left:2px;position:absolute;width:18px;height:18px;font-size:18px;border-radius:2px;padding:4px;color:var(--ast-customizer-color-8);background:var(--ast-customizer-color-9);cursor:pointer}.ast-adv-toggle-icon:hover{color:var(--ast-customizer-color-1)}.ast-adv-toggle-icon:before{content:"\f464"}.ast-adv-toggle-icon.open:before{content:"\f158"}.ast-field-settings-modal{position:absolute;-webkit-box-shadow:0 2px 15px rgba(0,0,0,.3);box-shadow:0 2px 15px rgba(0,0,0,.3);-webkit-border-radius:3px;border-radius:3px;right:0;left:0;z-index:8;background-color:#fff}.customize-control-ast-color-palette .ast-field-settings-modal{z-index:11}.ast-field-settings-modal .customize-control-ast-divider:first-child{margin-top:15px}.ast-field-settings-wrap{width:100%}.ast-group-tabs,.ast-tab-content{position:relative}.ast-group-list{overflow:hidden;border-bottom:1px solid #ddd}.ast-group-list:after,.ast-group-list:before{content:"";display:table;border-collapse:collapse}.ui-tabs-anchor{float:right;padding:.5em .5em;color:#555d66;text-decoration:none}.ui-state-active .ui-tabs-anchor{color:#fff}.ui-tabs-anchor:hover{color:#555d66}.ui-state-active .ui-tabs-anchor:hover{color:#fff}.ast-group-tabs .ui-widget-content{overflow:hidden}.ast-group-tabs .ui-widget-content.iris-slider-offset,.ast-group-tabs .ui-widget-content.iris-slider-offset-alpha{overflow:inherit}.ast-fields-wrap{overflow:hidden}.ast-field-settings-wrap{-webkit-box-shadow:0 2px 15px rgba(0,0,0,.3);box-shadow:0 2px 15px rgba(0,0,0,.3);-webkit-border-radius:3px;background-color:#fff}.ast-field-settings-wrap .ast-field-settings-modal{border-radius:3px;margin-top:10px;margin-bottom:20px}.ast-field-settings-modal::before{content:'';position:absolute;top:-17px;left:8px;border:9px solid transparent;border-bottom-color:#fff;pointer-events:none}.ast-group-tabs .ui-tabs-nav{display:flex;padding:15px 15px 0 15px}.ast-group-tabs .ui-tabs-nav .ui-corner-top{align-items:center;flex:1 1 auto;justify-content:center;margin:0 0;padding:0;border:1px solid #ccc;transition:background-color 140ms linear}.ast-group-tabs .ui-tabs-nav .ui-corner-top:first-child{border-radius:0 3px 3px 0}.ast-group-tabs .ui-tabs-nav .ui-corner-top:last-child{border-radius:3px 0 0 3px}.ast-group-tabs .ui-tabs-nav .ui-corner-top .ui-tabs-anchor{width:100%;text-align:center;padding:2px 4px;padding-right:0;padding-left:0;outline:0}.ast-group-tabs ul.ast-group-list .ui-corner-top .ui-tabs-anchor:focus{box-shadow:none}.ast-group-tabs .ui-tabs-nav{border:none}.ast-group-tabs ul.ast-group-list .ui-corner-top.ui-state-active{background-color:#0185ba;border:1px solid rgba(0,0,0,.1)}.ast-group-tabs .ui-tabs-nav{overflow:visible}.ast-group-tabs ul.ast-group-list .ui-corner-top:not(:first-child){border-right-width:0}.wp-core-ui .ast-field-settings-modal .background-image-upload .button{font-size:11px}.ast-field-settings-modal .customize-control{padding-right:16px;padding-left:16px;box-sizing:border-box}.ast-control-wrap .ast-color-picker-alpha{margin-right:-5px;margin-left:-5px}.ast-field-settings-modal .customize-control:first-child{margin-top:16px}.ast-field-settings-modal .ui-tabs-nav .customize-control:first-child{margin-top:0}.ast-field-settings-modal .customize-control:last-child{padding-bottom:16px}.customize-control-ast-settings-group{line-height:27px}.customize-control-ast-settings-group .customize-control-title{margin-bottom:0}.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-title{margin-bottom:10px;font-size:13px;margin-top:3px}.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-range-unit,.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-responsive-units,.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-slider .ast-range-unit{top:6px}.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-resp-slider-reset-wrap,.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-slider .ast-resp-slider-reset-wrap{top:3px}.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-responsive-slider .ast-responsive-slider-btns,.customize-control-ast-settings-group .ast-field-settings-modal .customize-control-ast-slider .ast-responsive-slider-btns{top:2px}.ast-field-settings-modal .customize-control{margin-top:2px}#customize-control-headings-font-extras.ast-sub-top-dotted-divider{margin-top:12px}.astra-popover-tabs{position:relative;top:5px}.astra-popover-tabs .components-tab-panel__tabs{display:flex;padding:15px;border:none}.astra-popover-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{color:#555d66;font-size:13px;font-weight:400;height:35px;transition:unset;padding:2px 4px;text-decoration:none;border-radius:0;border:1px solid rgba(0,0,0,.1)}.astra-popover-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:active{box-shadow:unset}.astra-popover-tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus{box-shadow:unset}.astra-popover-tabs [ID*="-image-view"]{padding:15px;border:none}.astra-popover-tabs .components-button{align-items:center;flex:1 1 auto;justify-content:center;margin:0 0;padding:0;border:1px solid #ccc;transition:background-color 140ms linear}.astra-popover-tabs .components-tab-panel__tabs-item:first-child{border-radius:0 3px 3px 0}.astra-popover-tabs .components-tab-panel__tabs-item:last-child{border-radius:3px 0 0 3px}.astra-popover-tabs .components-tab-panel__tabs-item:not(:first-child){border-right-width:0}.astra-popover-tabs .components-tab-panel__tabs-item.active-tab{background-color:#0185ba;color:#fff}.astra-popover-tabs.astra-media-tab .components-tab-panel__tab-content,.astra-popover-tabs.astra-media-tab .components-tab-panel__tabs{padding:0}.astra-popover-tabs.astra-media-tab .components-tab-panel__tabs-item.active-tab{border-color:var(--ast-customizer-color-3);background:var(--ast-customizer-color-1)}.astra-popover-tabs.astra-media-tab .components-tab-panel__tab-content .ast-social-icon-picker-label{text-align:right}.astra-media-tab .astra-media-image{width:100%;margin-bottom:0}.astra-media-tab .ast-media-btn{display:block;width:100%;border:1px dashed var(--ast-customizer-color-7);box-sizing:border-box;box-shadow:unset;padding:9px 0;line-height:1.6;text-decoration:none}.astra-media-tab .ast-danger-btn{color:var(--ast-customizer-color-14);margin-top:10px}.astra-media-tab .ast-media-btn:hover{border-color:var(--ast-customizer-color-3)}.astra-media-tab .ast-danger-btn:hover{border-color:var(--ast-customizer-color-14)}.components-base-control.ast-text-control-input{margin-bottom:16px}.ast-payments-text-control-input .components-base-control__label{text-transform:none;color:#334155;font-size:13px}.components-base-control.ast-payments-text-control-input{margin-bottom:20px}.components-base-control.ast-text-control-input input{border-color:var(--ast-customizer-color-7);color:var(--ast-customizer-color-5)}.astra-popover-color .astra-popover-tabs .components-tab-panel__tabs button.components-tab-panel__tabs-item.active-tab:not(.is-primary):not(.is-tertiary):not(.is-link):hover{color:#fff}.components-popover.astra-popover-color .components-popover__content{min-width:310px;max-height:60vh;padding:0;-webkit-box-shadow:0 2px 15px rgba(0,0,0,.3);box-shadow:0 2px 15px rgba(0,0,0,.3)}.ast-field-settings-modal .components-popover.astra-popover-color .components-popover__content{min-width:320px;min-height:325px}.ast-field-settings-modal .background-wrapper .components-popover.astra-popover-color .components-popover__content{min-height:385px}.ast-field-settings-modal .components-angle-picker-control .components-flex__block{min-width:auto}.customize-control-ast-settings-group .customize-control-ast-responsive-slider .wrapper .ast-resp-slider-reset-wrap,.customize-control-ast-settings-group .customize-control-ast-slider .wrapper .ast-resp-slider-reset-wrap{margin-top:0}.ast-top-divider.customize-control-ast-settings-group .ast-toggle-desc-wrap .ast-adv-toggle-icon{top:23px}.ast-fields-wrap .customize-control-ast-responsive-slider .ast-slider-wrap>label,.ast-fields-wrap .customize-control-ast-selector .ast-slider-wrap>label{display:inline-block}#customize-control-astra-color-palettes .ast-color-palette-wrap>div{margin-bottom:8px;position:relative}#customize-control-astra-color-palettes .color-button-wrap{display:unset;position:relative;left:unset;top:unset;vertical-align:sub;z-index:10}#customize-control-astra-color-palettes .astra-color-picker-wrap{position:absolute;z-index:1;left:0;width:100%;display:none;margin-top:10px}#customize-control-astra-color-palettes .astra-color-picker-wrap.picker-open{display:block}#customize-control-astra-color-palettes .ast-color-palette-label{width:65%;display:inline-block;margin-left:10px;vertical-align:top}#customize-control-astra-color-palettes .ast-color-palette-label input{background:0 0;border:none}#customize-control-astra-color-palettes .ast-color-palette-label input:focus{border:1px solid #000;outline:0;box-shadow:none;background:#fff}.ast-color-palette-wrapper .ast-single-palette-wrap{display:grid;grid-template-columns:repeat(9,1fr);align-items:center;position:relative;gap:2px}.ast-single-palette-wrap .components-button.astra-color-icon-indicate .component-color-indicator.astra-advanced-color-indicate{width:25px;height:25px}#customize-control-astra-color-palettes .ast-color-palette-wrapper .ast-color-picker-wrap:first-child{margin-right:0}#customize-control-astra-color-palettes .ast-color-palette-wrapper .ast-color-picker-wrap{margin-top:12px;cursor:pointer}#customize-control-astra-color-palettes .ast-reset-btn:disabled{opacity:.6}#customize-control-astra-color-palettes .ast-single-color-container{width:25%;height:48px;display:inline-block}#customize-control-astra-color-palettes .ast-color-palette-wrap>section{text-align:center;outline:0;border-radius:3px;cursor:pointer;transition:all .2s;box-shadow:0 0 0 1px #ddd}.ast-color-palette-container{width:100%;display:inline-grid;grid-template-columns:auto auto;column-gap:16px;row-gap:16px}#customize-control-astra-color-palettes .ast-field-settings-modal{display:none;padding:16px}.ast-color-palette-wrap{transition:all .2s}.ast-color-palette-wrap.active{box-shadow:0 12px 20px -8px rgb(30 41 59 / 16%)}#customize-control-astra-color-palettes .ast-color-palette-wrapper{clear:both}#customize-controls .customize-section-title.is-in-view.is-sticky{z-index:99}#customize-control-astra-color-palettes .ast-palette-selection-wrapper{overflow:hidden;padding:2px}@media (min-width:1800px){#customize-control-astra-color-palettes .astra-color-picker-wrap{width:auto}}#customize-control-astra-color-palettes .ast-color-palette-wrap.active>section{box-shadow:0 0 0 1px #334155}.ast-palette-label-wrap{display:inline-block;text-align:center;color:#9ca3af;overflow:hidden;width:100%;box-sizing:border-box;padding:0;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;font-style:normal;font-weight:600;font-size:10px;line-height:22px;letter-spacing:1.5px;text-transform:uppercase}.ast-color-palette-wrap.active .ast-palette-label-wrap{color:#334155}#customize-control-astra-color-palettes .ast-field-settings-modal{margin-top:-35px}.astra-advanced-color-indicate .global-color{display:none}.color-button-wrap.has-global-palette-color .astra-advanced-color-indicate .global-color{color:#fff;display:block;opacity:1;position:absolute;right:50%;top:50%;display:block;text-align:center;transform:translate(50%,-50%)}.color-button-wrap.has-global-palette-color .astra-advanced-color-indicate .global-color svg{width:10px;height:10px;transform:scale(1.5)}#customize-control-astra-color-palettes .ast-adv-toggle-icon{top:-5px}.ast-color-picker-custom-tooltip{position:absolute;top:-30px;bottom:0;right:0;left:0;width:100%;height:100%}.ast-color-picker-custom-tooltip[data-title]::after{content:attr(data-title);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1ch 1.5ch;border-radius:.3ch;box-shadow:0 1em 2em -.5em rgb(0 0 0 / 35%);background:var(--ast-customizer-color-12);color:var(--ast-customizer-color-10);z-index:1000;bottom:calc(100% + 5px);text-align:center;animation:tooltips-vert .3s ease-out forwards;text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0;right:50%;transform:translate(50%,-.5em)}.ast-single-palette-wrap>:last-child .ast-color-picker-custom-tooltip[data-title]::after{right:-16px}.ast-color-picker-custom-tooltip-wrapper{position:relative}.ast-color-picker-wrap:hover+.ast-color-picker-custom-tooltip-wrapper .ast-color-picker-custom-tooltip[data-title]::after{display:flex;white-space:break-spaces;inline-size:max-content}.ast-color-palette .components-popover.components-tooltip{position:relative!important;right:5px!important;top:-35px!important;transform:unset!important}.customize-control .components-tooltip{z-index:8!important}.ast-color-palette .components-popover .components-popover__content{bottom:calc(100% + 5px);animation:tooltips-vert .3s ease-out forwards;right:50%;transform:translate(50%,-.5em)}.ast-responsive-btns{display:inline-block;line-height:1;vertical-align:top}.ast-responsive-btns>li{margin-bottom:0;display:none}.ast-responsive-btns>li.active{display:inline-block}.ast-responsive-btns button[type=button]{padding:0;cursor:pointer;background:0 0;border:none;outline:0}.ast-responsive-btns button[type=button]>i{width:15px;height:15px;font-size:15px}.input-wrapper.ast-responsive-wrapper{display:inline-flex;justify-content:space-between;margin-left:0;align-items:flex-start;flex:0 1;width:100%}.ast-dashicons-custom-tooltip{position:absolute;right:8px;top:20px;width:150px;z-index:999;padding:8px 8px;font-size:12px;font-weight:400;border-radius:2px;color:#fff;background:#1e1e1e;transition:opacity .2s cubic-bezier(.455, .03, .515, .955),transform .2s cubic-bezier(.455, .03, .515, .955),visibility .2s cubic-bezier(.455, .03, .515, .955);transform:translate3d(0,-30px,0);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.5em;text-align:center;visibility:hidden}.dashicons-editor-help{cursor:pointer;font-size:18px;color:#9ca3af;position:relative;right:6px;top:2.5px}.dashicons-editor-help:hover~.ast-dashicons-custom-tooltip{opacity:1;visibility:visible}.astra-popover-tabs img{width:100%;max-width:300px}.customize-control .ast-reset-btn .dashicons-image-rotate{width:12px;height:12px;font-size:12px;position:relative;top:.1em;right:.5em}.ast-bg-control-left{display:flex;width:50%;height:50%;display:flex;justify-content:space-between;align-items:center;position:relative;top:.6em;max-height:19.5px}#customize-control-astra-settings-content-bg-obj-responsive .ast-bg-control-left{width:57%}#customize-control-astra-settings-content-bg-obj-responsive{margin-top:2em;margin-bottom:1em}.ast-show-help-text-container{position:relative}.customize-control-ast-background .more-settings .message,.customize-control-ast-responsive-background .more-settings .message{margin-left:5px}.customize-control .media-position-setting label.components-text{text-transform:capitalize;font-size:12px;font-weight:400}.ast-sidebar-container .components-base-control .components-base-control__field .components-input-control__backdrop{border-color:#d1d5db!important}@media (min-width:782px){div#astra-theme-layout\:theme-meta-panel .components-panel__header+.interface-complementary-area-header{margin-bottom:-2px}}PKwmZ`c!!%metabox/extend-metabox/build/index.jsnu[!function(){var c={960:function(c,l){"use strict";var t;Object.defineProperty(l,"__esModule",{value:!0}),l.Doctype=l.CDATA=l.Tag=l.Style=l.Script=l.Comment=l.Directive=l.Text=l.Root=l.isTag=l.ElementType=void 0,function(c){c.Root="root",c.Text="text",c.Directive="directive",c.Comment="comment",c.Script="script",c.Style="style",c.Tag="tag",c.CDATA="cdata",c.Doctype="doctype"}(t=l.ElementType||(l.ElementType={})),l.isTag=function(c){return c.type===t.Tag||c.type===t.Script||c.type===t.Style},l.Root=t.Root,l.Text=t.Text,l.Directive=t.Directive,l.Comment=t.Comment,l.Script=t.Script,l.Style=t.Style,l.Tag=t.Tag,l.CDATA=t.CDATA,l.Doctype=t.Doctype},915:function(c,l,t){"use strict";var h=this&&this.__createBinding||(Object.create?function(c,l,t,h){void 0===h&&(h=t);var v=Object.getOwnPropertyDescriptor(l,t);v&&!("get"in v?!l.__esModule:v.writable||v.configurable)||(v={enumerable:!0,get:function(){return l[t]}}),Object.defineProperty(c,h,v)}:function(c,l,t,h){void 0===h&&(h=t),c[h]=l[t]}),v=this&&this.__exportStar||function(c,l){for(var t in c)"default"===t||Object.prototype.hasOwnProperty.call(l,t)||h(l,c,t)};Object.defineProperty(l,"__esModule",{value:!0}),l.DomHandler=void 0;var s=t(960),e=t(790);v(t(790),l);var a=/\s+/g,w={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function c(c,l,t){this.dom=[],this.root=new e.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof l&&(t=l,l=w),"object"==typeof c&&(l=c,c=void 0),this.callback=null!=c?c:null,this.options=null!=l?l:w,this.elementCB=null!=t?t:null}return c.prototype.onparserinit=function(c){this.parser=c},c.prototype.onreset=function(){this.dom=[],this.root=new e.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},c.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},c.prototype.onerror=function(c){this.handleCallback(c)},c.prototype.onclosetag=function(){this.lastNode=null;var c=this.tagStack.pop();this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(c)},c.prototype.onopentag=function(c,l){var t=this.options.xmlMode?s.ElementType.Tag:void 0,h=new e.Element(c,l,void 0,t);this.addNode(h),this.tagStack.push(h)},c.prototype.ontext=function(c){var l=this.options.normalizeWhitespace,t=this.lastNode;if(t&&t.type===s.ElementType.Text)l?t.data=(t.data+c).replace(a," "):t.data+=c,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{l&&(c=c.replace(a," "));var h=new e.Text(c);this.addNode(h),this.lastNode=h}},c.prototype.oncomment=function(c){if(this.lastNode&&this.lastNode.type===s.ElementType.Comment)this.lastNode.data+=c;else{var l=new e.Comment(c);this.addNode(l),this.lastNode=l}},c.prototype.oncommentend=function(){this.lastNode=null},c.prototype.oncdatastart=function(){var c=new e.Text(""),l=new e.NodeWithChildren(s.ElementType.CDATA,[c]);this.addNode(l),c.parent=l,this.lastNode=c},c.prototype.oncdataend=function(){this.lastNode=null},c.prototype.onprocessinginstruction=function(c,l){var t=new e.ProcessingInstruction(c,l);this.addNode(t)},c.prototype.handleCallback=function(c){if("function"==typeof this.callback)this.callback(c,this.dom);else if(c)throw c},c.prototype.addNode=function(c){var l=this.tagStack[this.tagStack.length-1],t=l.children[l.children.length-1];this.options.withStartIndices&&(c.startIndex=this.parser.startIndex),this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),l.children.push(c),t&&(c.prev=t,t.next=c),c.parent=l,this.lastNode=null},c}();l.DomHandler=o,l.default=o},790:function(c,l,t){"use strict";var h,v=this&&this.__extends||(h=function(c,l){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&(c[t]=l[t])},h(c,l)},function(c,l){if("function"!=typeof l&&null!==l)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function __(){this.constructor=c}h(c,l),c.prototype=null===l?Object.create(l):(__.prototype=l.prototype,new __)}),s=this&&this.__assign||function(){return s=Object.assign||function(c){for(var l,t=1,h=arguments.length;t0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"childNodes",{get:function(){return this.children},set:function(c){this.children=c},enumerable:!1,configurable:!0}),l}(w);l.NodeWithChildren=r;var n=function(c){function l(l){return c.call(this,e.ElementType.Root,l)||this}return v(l,c),l}(r);l.Document=n;var m=function(c){function l(l,t,h,v){void 0===h&&(h=[]),void 0===v&&(v="script"===l?e.ElementType.Script:"style"===l?e.ElementType.Style:e.ElementType.Tag);var s=c.call(this,v,h)||this;return s.name=l,s.attribs=t,s}return v(l,c),Object.defineProperty(l.prototype,"tagName",{get:function(){return this.name},set:function(c){this.name=c},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"attributes",{get:function(){var c=this;return Object.keys(this.attribs).map((function(l){var t,h;return{name:l,value:c.attribs[l],namespace:null===(t=c["x-attribsNamespace"])||void 0===t?void 0:t[l],prefix:null===(h=c["x-attribsPrefix"])||void 0===h?void 0:h[l]}}))},enumerable:!1,configurable:!0}),l}(r);function d(c){return(0,e.isTag)(c)}function z(c){return c.type===e.ElementType.CDATA}function C(c){return c.type===e.ElementType.Text}function x(c){return c.type===e.ElementType.Comment}function M(c){return c.type===e.ElementType.Directive}function H(c){return c.type===e.ElementType.Root}function V(c,l){var t;if(void 0===l&&(l=!1),C(c))t=new g(c.data);else if(x(c))t=new i(c.data);else if(d(c)){var h=l?u(c.children):[],v=new m(c.name,s({},c.attribs),h);h.forEach((function(c){return c.parent=v})),null!=c.namespace&&(v.namespace=c.namespace),c["x-attribsNamespace"]&&(v["x-attribsNamespace"]=s({},c["x-attribsNamespace"])),c["x-attribsPrefix"]&&(v["x-attribsPrefix"]=s({},c["x-attribsPrefix"])),t=v}else if(z(c)){h=l?u(c.children):[];var a=new r(e.ElementType.CDATA,h);h.forEach((function(c){return c.parent=a})),t=a}else if(H(c)){h=l?u(c.children):[];var w=new n(h);h.forEach((function(c){return c.parent=w})),c["x-mode"]&&(w["x-mode"]=c["x-mode"]),t=w}else{if(!M(c))throw new Error("Not implemented yet: ".concat(c.type));var o=new p(c.name,c.data);null!=c["x-name"]&&(o["x-name"]=c["x-name"],o["x-publicId"]=c["x-publicId"],o["x-systemId"]=c["x-systemId"]),t=o}return t.startIndex=c.startIndex,t.endIndex=c.endIndex,null!=c.sourceCodeLocation&&(t.sourceCodeLocation=c.sourceCodeLocation),t}function u(c){for(var l=c.map((function(c){return V(c,!0)})),t=1;t/i,w=//i,o=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},g=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var i=new window.DOMParser;o=g=function(c,l){return l&&(c="<"+l+">"+c+""),i.parseFromString(c,"text/html")}}if(document.implementation){var p=t(507).isIE,r=document.implementation.createHTMLDocument(p()?"html-dom-parser":void 0);o=function(c,l){return l?(r.documentElement.getElementsByTagName(l)[0].innerHTML=c,r):(r.documentElement.innerHTML=c,r)}}var n,m=document.createElement("template");m.content&&(n=function(c){return m.innerHTML=c,m.content.childNodes}),c.exports=function(c){var l,t,i,p,r=c.match(e);switch(r&&r[1]&&(l=r[1].toLowerCase()),l){case h:return t=g(c),a.test(c)||(i=t.getElementsByTagName(v)[0])&&i.parentNode.removeChild(i),w.test(c)||(i=t.getElementsByTagName(s)[0])&&i.parentNode.removeChild(i),t.getElementsByTagName(h);case v:case s:return p=o(c).getElementsByTagName(l),w.test(c)&&a.test(c)?p[0].parentNode.childNodes:p;default:return n?n(c):o(c,s).getElementsByTagName(s)[0].childNodes}}},152:function(c,l,t){var h=t(276),v=t(507).formatDOM,s=/<(![a-zA-Z\s]+)>/;c.exports=function(c){if("string"!=typeof c)throw new TypeError("First argument must be a string");if(""===c)return[];var l,t=c.match(s);return t&&t[1]&&(l=t[1]),v(h(c),null,l)}},507:function(c,l,t){for(var h,v=t(885),s=t(790),e=v.CASE_SENSITIVE_TAG_NAMES,a=s.Comment,w=s.Element,o=s.ProcessingInstruction,g=s.Text,i={},p=0,r=e.length;p1&&(g=n(g,{key:g.key||M})),z.push(g);else if("text"!==s.type){switch(i=s.attribs,w(s)?e(i.style,i):i&&(i=v(i)),p=null,s.type){case"script":case"style":s.children[0]&&(i.dangerouslySetInnerHTML={__html:s.children[0].data});break;case"tag":"textarea"===s.name&&s.children[0]?i.defaultValue=s.children[0].data:s.children&&s.children.length&&(p=c(s.children,t));break;default:continue}H>1&&(i.key=M),z.push(m(s.name,i,p))}else{if((o=!s.data.trim().length)&&s.parent&&!a(s.parent))continue;if(x&&o)continue;z.push(s.data)}return 1===z.length?z[0]:z}},606:function(c,l,t){var h=t(196),v=t(476).default,s={reactCompat:!0},e=h.version.split(".")[0]>=16,a=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);c.exports={PRESERVE_CUSTOM_ATTRIBUTES:e,invertObject:function(c,l){if(!c||"object"!=typeof c)throw new TypeError("First argument must be an object");var t,h,v="function"==typeof l,s={},e={};for(t in c)h=c[t],v&&(s=l(t,h))&&2===s.length?e[s[0]]=s[1]:"string"==typeof h&&(e[h]=t);return e},isCustomComponent:function(c,l){if(-1===c.indexOf("-"))return l&&"string"==typeof l.is;switch(c){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(c,l){if(null!=c)try{l.style=v(c,s)}catch(c){l.style={}}},canTextBeChildOfNode:function(c){return!a.has(c.name)},elementsWithNoTextChildren:a}},139:function(c){var l=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,h=/^\s*/,v=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,w=/^\s+|\s+$/g,o="";function g(c){return c?c.replace(w,o):o}c.exports=function(c,w){if("string"!=typeof c)throw new TypeError("First argument must be a string");if(!c)return[];w=w||{};var i=1,p=1;function r(c){var l=c.match(t);l&&(i+=l.length);var h=c.lastIndexOf("\n");p=~h?c.length-h:p+c.length}function n(){var c={line:i,column:p};return function(l){return l.position=new m(c),x(),l}}function m(c){this.start=c,this.end={line:i,column:p},this.source=w.source}m.prototype.content=c;var d=[];function z(l){var t=new Error(w.source+":"+i+":"+p+": "+l);if(t.reason=l,t.filename=w.source,t.line=i,t.column=p,t.source=c,!w.silent)throw t;d.push(t)}function C(l){var t=l.exec(c);if(t){var h=t[0];return r(h),c=c.slice(h.length),t}}function x(){C(h)}function M(c){var l;for(c=c||[];l=H();)!1!==l&&c.push(l);return c}function H(){var l=n();if("/"==c.charAt(0)&&"*"==c.charAt(1)){for(var t=2;o!=c.charAt(t)&&("*"!=c.charAt(t)||"/"!=c.charAt(t+1));)++t;if(t+=2,o===c.charAt(t-1))return z("End of comment missing");var h=c.slice(2,t-2);return p+=2,r(h),c=c.slice(t),p+=2,l({type:"comment",comment:h})}}function V(){var c=n(),t=C(v);if(t){if(H(),!C(s))return z("property missing ':'");var h=C(e),w=c({type:"declaration",property:g(t[0].replace(l,o)),value:h?g(h[0].replace(l,o)):o});return C(a),w}}return x(),function(){var c,l=[];for(M(l);c=V();)!1!==c&&(l.push(c),M(l));return l}()}},703:function(c,l,t){"use strict";var h=t(414);function v(){}function s(){}s.resetWarningCache=v,c.exports=function(){function c(c,l,t,v,s,e){if(e!==h){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function l(){return c}c.isRequired=c;var t={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:l,element:c,elementType:c,instanceOf:l,node:c,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:s,resetWarningCache:v};return t.PropTypes=t,t}},697:function(c,l,t){c.exports=t(703)()},414:function(c){"use strict";c.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},726:function(c,l,t){"use strict";function h(c,l){(null==l||l>c.length)&&(l=c.length);for(var t=0,h=new Array(l);t(0,l.createElement)(a,{className:c.name,label:c.label,checked:c.value,onChange:l=>{l=!0===l?"disabled":"",c.onChange(l)}}),o=JSON.parse("{\"facebook_group\":\"Facebook Group\",\"email\":\" Email \",\"google_reviews\":\" Google Reviews \",\"trip_advisor\":\" Trip Advisor \",\"header-main-layout-1\":\" \",\"header-main-layout-2\":\" \",\"header-main-layout-3\":\" \",\"menu-inline\":\" \",\"menu-stack\":\" \",\"disabled\":\" \",\"post-layout\":\" \",\"footer-layout-1\":\" \",\"footer-layout-2\":\" \",\"footer-layout-4\":\"\",\"menu\":\"\",\"menu2\":\"\",\"menu3\":\"\",\"close\":\"\",\"edit\":\"\",\"drag\":\"/svg>\",\"mobile_menu\":\"\",\"mobile_menu2\":\" \",\"mobile_menu3\":\" \",\"collapserow\":\"\",\"twocol\":\"\",\"twoleftgolden\":\"\",\"tworightgolden\":\"\",\"lefthalf\":\"\",\"threecol\":\"\",\"righthalf\":\"\",\"centerhalf\":\"\",\"widecenter\":\"\",\"sixcol\":\"\",\"fivecol\":\"\",\"rfourforty\":\"\",\"lfourforty\":\"\",\"fourcol\":\"\",\"collapserowsix\":\"\",\"collapserowfive\":\"\",\"grid\":\"\",\"collapserowfour\":\"\",\"firstrow\":\"\",\"lastrow\":\"\",\"collapserowthree\":\"\",\"account-2\":\"\",\"row\":\"\",\"account-3\":\"\",\"account-4\":\"\",\"account-1\":\"\",\"500px\":\"\",\"accessible-icon\":\"\",\"accusoft\":\"\",\"acquisitions-incorporated\":\"\",\"ad\":\"\",\"address-book\":\"\",\"address-card\":\"\",\"adjust\":\"\",\"adn\":\"\",\"adobe\":\"\",\"adversal\":\"\",\"affiliatetheme\":\"\",\"air-freshener\":\"\",\"airbnb\":\"\",\"algolia\":\"\",\"align-center\":\"\",\"align-justify\":\"\",\"align-left\":\"\",\"align-right\":\"\",\"alipay\":\"\",\"allergies\":\"\",\"amazon\":\"\",\"amazon-pay\":\"\",\"ambulance\":\"\",\"american-sign-language-interpreting\":\"\",\"amilia\":\"\",\"anchor\":\"\",\"android\":\"\",\"angellist\":\"\",\"angle-double-down\":\"\",\"angle-double-left\":\"\",\"angle-double-right\":\"\",\"angle-double-up\":\"\",\"angle-down\":\"\",\"angle-left\":\"\",\"angle-right\":\"\",\"angle-up\":\"\",\"angry\":\"\",\"angrycreative\":\"\",\"angular\":\"\",\"ankh\":\"\",\"app-store\":\"\",\"app-store-ios\":\"\",\"apper\":\"\",\"apple\":\"\",\"apple-alt\":\"\",\"apple-pay\":\"\",\"archive\":\"\",\"archway\":\"\",\"arrow-alt-circle-down\":\"\",\"arrow-alt-circle-left\":\"\",\"arrow-alt-circle-right\":\"\",\"arrow-alt-circle-up\":\"\",\"arrow-circle-down\":\"\",\"arrow-circle-left\":\"\",\"arrow-circle-right\":\"\",\"arrow-circle-up\":\"\",\"arrow-down\":\"\",\"arrow-left\":\"\",\"arrow-left-thin\":\"\",\"arrow-right\":\"\",\"arrow-right-thin\":\"\",\"arrow-up\":\"\",\"arrows-alt\":\"\",\"arrows-alt-h\":\"\",\"arrows-alt-v\":\"\",\"artstation\":\"\",\"assistive-listening-systems\":\"\",\"asterisk\":\"\",\"asymmetrik\":\"\",\"at\":\"\",\"atlas\":\"\",\"atlassian\":\"\",\"atom\":\"\",\"audible\":\"\",\"audio-description\":\"\",\"autoprefixer\":\"\",\"avianex\":\"\",\"aviato\":\"\",\"award\":\"\",\"aws\":\"\",\"baby\":\"\",\"baby-carriage\":\"\",\"backspace\":\"\",\"backward\":\"\",\"bacon\":\"\",\"bahai\":\"\",\"balance-scale\":\"\",\"balance-scale-left\":\"\",\"balance-scale-right\":\"\",\"ban\":\"\",\"band-aid\":\"\",\"bandcamp\":\"\",\"barcode\":\"\",\"bars\":\"\",\"baseball-ball\":\"\",\"basketball-ball\":\"\",\"bath\":\"\",\"battery-empty\":\"\",\"battery-full\":\"\",\"battery-half\":\"\",\"battery-quarter\":\"\",\"battery-three-quarters\":\"\",\"battle-net\":\"\",\"bed\":\"\",\"beer\":\"\",\"behance\":\"\",\"behance-square\":\"\",\"bell\":\"\",\"bell-slash\":\"\",\"bezier-curve\":\"\",\"bible\":\"\",\"bicycle\":\"\",\"biking\":\"\",\"bimobject\":\"\",\"binoculars\":\"\",\"biohazard\":\"\",\"birthday-cake\":\"\",\"bitbucket\":\"\",\"bitcoin\":\"\",\"bity\":\"\",\"black-tie\":\"\",\"blackberry\":\"\",\"blender\":\"\",\"blender-phone\":\"\",\"blind\":\"\",\"blog\":\"\",\"blogger\":\"\",\"blogger-b\":\"\",\"bluesky\":\"\",\"bluetooth\":\"\",\"bluetooth-b\":\"\",\"bold\":\"\",\"bolt\":\"\",\"bomb\":\"\",\"bone\":\"\",\"bong\":\"\",\"book\":\"\",\"book-dead\":\"\",\"book-medical\":\"\",\"book-open\":\"\",\"book-reader\":\"\",\"bookmark\":\"\",\"bootstrap\":\"\",\"border-all\":\"\",\"border-none\":\"\",\"border-style\":\"\",\"bowling-ball\":\"\",\"box\":\"\",\"box-open\":\"\",\"box-tissue\":\"\",\"boxes\":\"\",\"braille\":\"\",\"brain\":\"\",\"bread-slice\":\"\",\"breadcrumb-separator-1\":\"\",\"breadcrumb-separator-2\":\"\",\"breadcrumb-separator-3\":\"\",\"breadcrumb-separator-unicode\":\"\",\"briefcase\":\"\",\"briefcase-medical\":\"\",\"broadcast-tower\":\"\",\"broom\":\"\",\"brush\":\"\",\"btc\":\"\",\"buffer\":\"\",\"bug\":\"\",\"building\":\"\",\"bullhorn\":\"\",\"bullseye\":\"\",\"burn\":\"\",\"buromobelexperte\":\"\",\"bus\":\"\",\"bus-alt\":\"\",\"business-time\":\"\",\"buy-n-large\":\"\",\"buysellads\":\"\",\"calculator\":\"\",\"calendar\":\"\",\"calendar-alt\":\"\",\"calendar-check\":\"\",\"calendar-day\":\"\",\"calendar-minus\":\"\",\"calendar-plus\":\"\",\"calendar-times\":\"\",\"calendar-week\":\"\",\"camera\":\"\",\"camera-retro\":\"\",\"campground\":\"\",\"canadian-maple-leaf\":\"\",\"candy-cane\":\"\",\"cannabis\":\"\",\"capsules\":\"\",\"car\":\"\",\"car-alt\":\"\",\"car-battery\":\"\",\"car-crash\":\"\",\"car-side\":\"\",\"caravan\":\"\",\"caret-down\":\"\",\"caret-left\":\"\",\"caret-right\":\"\",\"caret-square-down\":\"\",\"caret-square-left\":\"\",\"caret-square-right\":\"\",\"caret-square-up\":\"\",\"caret-up\":\"\",\"carrot\":\"\",\"cart-arrow-down\":\"\",\"cart-plus\":\"\",\"cash-register\":\"\",\"cat\":\"\",\"cc-amazon-pay\":\"\",\"cc-amex\":\"\",\"cc-amex-c\":\"\",\"cc-apple-pay\":\"\",\"cc-apple-pay-c\":\"\",\"cc-diners-club\":\"\",\"cc-discover\":\"\",\"cc-discover-c\":\"\",\"cc-jcb\":\"\",\"cc-mastercard\":\"\",\"cc-mastercard-c\":\"\",\"cc-paypal\":\"\",\"cc-paypal-c\":\"\",\"cc-stripe\":\"\",\"cc-visa\":\"\",\"cc-visa-c\":\"\",\"centercode\":\"\",\"centos\":\"\",\"certificate\":\"\",\"chair\":\"\",\"chalkboard\":\"\",\"chalkboard-teacher\":\"\",\"charging-station\":\"\",\"chart-area\":\"\",\"chart-bar\":\"\",\"chart-line\":\"\",\"chart-pie\":\"\",\"check\":\"\",\"check-circle\":\"\",\"check-double\":\"\",\"check-square\":\"\",\"cheese\":\"\",\"chess\":\"\",\"chess-bishop\":\"\",\"chess-board\":\"\",\"chess-king\":\"\",\"chess-knight\":\"\",\"chess-pawn\":\"\",\"chess-queen\":\"\",\"chess-rook\":\"\",\"chevron-circle-down\":\"\",\"chevron-circle-left\":\"\",\"chevron-circle-right\":\"\",\"chevron-circle-up\":\"\",\"chevron-down\":\"\",\"chevron-left\":\"\",\"chevron-right\":\"\",\"chevron-up\":\"\",\"child\":\"\",\"chrome\":\"\",\"chromecast\":\"\",\"church\":\"\",\"circle\":\"\",\"circle-notch\":\"\",\"city\":\"\",\"clinic-medical\":\"\",\"clipboard\":\"\",\"clipboard-check\":\"\",\"clipboard-list\":\"\",\"clock\":\"\",\"clone\":\"\",\"closed-captioning\":\"\",\"cloud\":\"\",\"cloud-download-alt\":\"\",\"cloud-meatball\":\"\",\"cloud-moon\":\"\",\"cloud-moon-rain\":\"\",\"cloud-rain\":\"\",\"cloud-showers-heavy\":\"\",\"cloud-sun\":\"\",\"cloud-sun-rain\":\"\",\"cloud-upload-alt\":\"\",\"cloudscale\":\"\",\"cloudsmith\":\"\",\"cloudversify\":\"\",\"cocktail\":\"\",\"code\":\"\",\"code-branch\":\"\",\"codepen\":\"\",\"codiepie\":\"\",\"coffee\":\"\",\"cog\":\"\",\"cogs\":\"\",\"coins\":\"\",\"columns\":\"\",\"comment\":\"\",\"comment-alt\":\"\",\"comment-dollar\":\"\",\"comment-dots\":\"\",\"comment-medical\":\"\",\"comment-slash\":\"\",\"comments\":\"\",\"comments-dollar\":\"\",\"compact-disc\":\"\",\"compass\":\"\",\"compress\":\"\",\"compress-alt\":\"\",\"compress-arrows-alt\":\"\",\"concierge-bell\":\"\",\"confluence\":\"\",\"connectdevelop\":\"\",\"contao\":\"\",\"cookie\":\"\",\"cookie-bite\":\"\",\"copy\":\"\",\"copyright\":\"\",\"cotton-bureau\":\"\",\"couch\":\"\",\"cpanel\":\"\",\"creative-commons\":\"\",\"creative-commons-by\":\"\",\"creative-commons-nc\":\"\",\"creative-commons-nc-eu\":\"\",\"creative-commons-nc-jp\":\"\",\"creative-commons-nd\":\"\",\"creative-commons-pd\":\"\",\"creative-commons-pd-alt\":\"\",\"creative-commons-remix\":\"\",\"creative-commons-sa\":\"\",\"creative-commons-sampling\":\"\",\"creative-commons-sampling-plus\":\"\",\"creative-commons-share\":\"\",\"creative-commons-zero\":\"\",\"credit-card\":\"\",\"critical-role\":\"\",\"crop\":\"\",\"crop-alt\":\"\",\"cross\":\"\",\"crosshairs\":\"\",\"crow\":\"\",\"crown\":\"\",\"crutch\":\"\",\"css3\":\"\",\"css3-alt\":\"\",\"cube\":\"\",\"cubes\":\"\",\"cut\":\"\",\"cuttlefish\":\"\",\"d-and-d\":\"\",\"d-and-d-beyond\":\"\",\"dailymotion\":\"\",\"dashcube\":\"\",\"database\":\"\",\"deaf\":\"\",\"delicious\":\"\",\"democrat\":\"\",\"deploydog\":\"\",\"deskpro\":\"\",\"desktop\":\"\",\"dev\":\"\",\"deviantart\":\"\",\"dharmachakra\":\"\",\"dhl\":\"\",\"diagnoses\":\"\",\"diaspora\":\"\",\"dice\":\"\",\"dice-d20\":\"\",\"dice-d6\":\"\",\"dice-five\":\"\",\"dice-four\":\"\",\"dice-one\":\"\",\"dice-six\":\"\",\"dice-three\":\"\",\"dice-two\":\"\",\"digg\":\"\",\"digital-ocean\":\"\",\"digital-tachograph\":\"\",\"directions\":\"\",\"discord\":\"\",\"discourse\":\"\",\"disease\":\"\",\"divide\":\"\",\"dizzy\":\"\",\"dna\":\"\",\"dochub\":\"\",\"docker\":\"\",\"dog\":\"\",\"dollar-sign\":\"\",\"dolly\":\"\",\"dolly-flatbed\":\"\",\"donate\":\"\",\"door-closed\":\"\",\"door-open\":\"\",\"dot-circle\":\"\",\"dove\":\"\",\"download\":\"\",\"draft2digital\":\"\",\"drafting-compass\":\"\",\"dragon\":\"\",\"draw-polygon\":\"\",\"dribbble\":\"\",\"dribbble-square\":\"\",\"dropbox\":\"\",\"drum\":\"\",\"drum-steelpan\":\"\",\"drumstick-bite\":\"\",\"drupal\":\"\",\"dumbbell\":\"\",\"dumpster\":\"\",\"dumpster-fire\":\"\",\"dungeon\":\"\",\"dyalog\":\"\",\"earlybirds\":\"\",\"ebay\":\"\",\"edge\":\"\",\"egg\":\"\",\"eject\":\"\",\"elementor\":\"\",\"ellipsis-h\":\"\",\"ellipsis-v\":\"\",\"ello\":\"\",\"ember\":\"\",\"empire\":\"\",\"envelope\":\"\",\"envelope-open\":\"\",\"envelope-open-text\":\"\",\"envelope-square\":\"\",\"envira\":\"\",\"equals\":\"\",\"eraser\":\"\",\"erlang\":\"\",\"ethereum\":\"\",\"ethernet\":\"\",\"etsy\":\"\",\"euro-sign\":\"\",\"evernote\":\"\",\"exchange-alt\":\"\",\"exclamation\":\"\",\"exclamation-circle\":\"\",\"exclamation-triangle\":\"\",\"expand\":\"\",\"expand-alt\":\"\",\"expand-arrows-alt\":\"\",\"expeditedssl\":\"\",\"external-link-alt\":\"\",\"external-link-square-alt\":\"\",\"eye\":\"\",\"eye-dropper\":\"\",\"eye-slash\":\"\",\"facebook-round\":\"\",\"facebook-f\":\"\",\"facebook-messenger\":\"\",\"facebook\":\"\",\"facebook-fill\":\"\",\"tiktok\":\"\",\"fan\":\"\",\"fantasy-flight-games\":\"\",\"fast-backward\":\"\",\"fast-forward\":\"\",\"faucet\":\"\",\"fax\":\"\",\"feather\":\"\",\"feather-alt\":\"\",\"fedex\":\"\",\"fedora\":\"\",\"female\":\"\",\"fighter-jet\":\"\",\"figma\":\"\",\"file\":\"\",\"file-alt\":\"\",\"file-archive\":\"\",\"file-audio\":\"\",\"file-code\":\"\",\"file-contract\":\"\",\"file-csv\":\"\",\"file-download\":\"\",\"file-excel\":\"\",\"file-export\":\"\",\"file-image\":\"\",\"file-import\":\"\",\"file-invoice\":\"\",\"file-invoice-dollar\":\"\",\"file-medical\":\"\",\"file-medical-alt\":\"\",\"file-pdf\":\"\",\"file-powerpoint\":\"\",\"file-prescription\":\"\",\"file-signature\":\"\",\"file-upload\":\"\",\"file-video\":\"\",\"file-word\":\"\",\"fill\":\"\",\"fill-drip\":\"\",\"film\":\"\",\"filter\":\"\",\"fingerprint\":\"\",\"fire\":\"\",\"fire-alt\":\"\",\"fire-extinguisher\":\"\",\"firefox\":\"\",\"firefox-browser\":\"\",\"first-aid\":\"\",\"first-order\":\"\",\"first-order-alt\":\"\",\"firstdraft\":\"\",\"fish\":\"\",\"fist-raised\":\"\",\"flag\":\"\",\"flag-checkered\":\"\",\"flag-usa\":\"\",\"flask\":\"\",\"flickr\":\"\",\"flipboard\":\"\",\"flushed\":\"\",\"fly\":\"\",\"folder\":\"\",\"folder-minus\":\"\",\"folder-open\":\"\",\"folder-plus\":\"\",\"font\":\"\",\"font-awesome\":\"\",\"font-awesome-alt\":\"\",\"font-awesome-flag\":\"\",\"font-awesome-logo-full\":\"\",\"fonticons\":\"\",\"fonticons-fi\":\"\",\"football-ball\":\"\",\"fort-awesome\":\"\",\"fort-awesome-alt\":\"\",\"forumbee\":\"\",\"forward\":\"\",\"foursquare\":\"\",\"free-code-camp\":\"\",\"freebsd\":\"\",\"frog\":\"\",\"frown\":\"\",\"frown-open\":\"\",\"fulcrum\":\"\",\"funnel-dollar\":\"\",\"futbol\":\"\",\"galactic-republic\":\"\",\"galactic-senate\":\"\",\"gamepad\":\"\",\"gas-pump\":\"\",\"gavel\":\"\",\"gem\":\"\",\"genderless\":\"\",\"get-pocket\":\"\",\"gg\":\"\",\"gg-circle\":\"\",\"ghost\":\"\",\"gift\":\"\",\"gifts\":\"\",\"git\":\"\",\"git-alt\":\"\",\"git-square\":\"\",\"github\":\"\",\"github-alt\":\"\",\"github-square\":\"\",\"gitkraken\":\"\",\"gitlab\":\"\",\"gitter\":\"\",\"glass-cheers\":\"\",\"glass-martini\":\"\",\"glass-martini-alt\":\"\",\"glass-whiskey\":\"\",\"glasses\":\"\",\"glide\":\"\",\"glide-g\":\"\",\"globe\":\"\",\"globe-africa\":\"\",\"globe-americas\":\"\",\"globe-asia\":\"\",\"globe-europe\":\"\",\"gofore\":\"\",\"golf-ball\":\"\",\"goodreads\":\"\",\"goodreads-g\":\"\",\"google\":\"\",\"google-drive\":\"\",\"google-pay\":\"\",\"google-play\":\"\",\"google-plus\":\"\",\"google-plus-g\":\"\",\"google-plus-square\":\"\",\"google-wallet\":\"\",\"gopuram\":\"\",\"graduation-cap\":\"\",\"gratipay\":\"\",\"grav\":\"\",\"greater-than\":\"\",\"greater-than-equal\":\"\",\"grimace\":\"\",\"grin\":\"\",\"grin-alt\":\"\",\"grin-beam\":\"\",\"grin-beam-sweat\":\"\",\"grin-hearts\":\"\",\"grin-squint\":\"\",\"grin-squint-tears\":\"\",\"grin-stars\":\"\",\"grin-tears\":\"\",\"grin-tongue\":\"\",\"grin-tongue-squint\":\"\",\"grin-tongue-wink\":\"\",\"grin-wink\":\"\",\"grip-horizontal\":\"\",\"grip-lines\":\"\",\"grip-lines-vertical\":\"\",\"grip-vertical\":\"\",\"gripfire\":\"\",\"grunt\":\"\",\"guitar\":\"\",\"gulp\":\"\",\"h-square\":\"\",\"hacker-news\":\"\",\"hacker-news-square\":\"\",\"hackerrank\":\"\",\"hamburger\":\"\",\"hammer\":\"\",\"hamsa\":\"\",\"hand-holding\":\"\",\"hand-holding-heart\":\"\",\"hand-holding-medical\":\"\",\"hand-holding-usd\":\"\",\"hand-holding-water\":\"\",\"hand-lizard\":\"\",\"hand-middle-finger\":\"\",\"hand-paper\":\"\",\"hand-peace\":\"\",\"hand-point-down\":\"\",\"hand-point-left\":\"\",\"hand-point-right\":\"\",\"hand-point-up\":\"\",\"hand-pointer\":\"\",\"hand-rock\":\"\",\"hand-scissors\":\"\",\"hand-sparkles\":\"\",\"hand-spock\":\"\",\"hands\":\"\",\"hands-helping\":\"\",\"hands-wash\":\"\",\"handshake\":\"\",\"handshake-alt-slash\":\"\",\"handshake-slash\":\"\",\"hanukiah\":\"\",\"hard-hat\":\"\",\"hashtag\":\"\",\"hat-cowboy\":\"\",\"hat-cowboy-side\":\"\",\"hat-wizard\":\"\",\"hdd\":\"\",\"head-side-cough\":\"\",\"head-side-cough-slash\":\"\",\"head-side-mask\":\"\",\"head-side-virus\":\"\",\"heading\":\"\",\"headphones\":\"\",\"headphones-alt\":\"\",\"headset\":\"\",\"heart\":\"\",\"heart-broken\":\"\",\"heartbeat\":\"\",\"helicopter\":\"\",\"highlighter\":\"\",\"hiking\":\"\",\"hippo\":\"\",\"hips\":\"\",\"hire-a-helper\":\"\",\"history\":\"\",\"hockey-puck\":\"\",\"holly-berry\":\"\",\"home\":\"\",\"hooli\":\"\",\"hornbill\":\"\",\"horse\":\"\",\"horse-head\":\"\",\"hospital\":\"\",\"hospital-alt\":\"\",\"hospital-symbol\":\"\",\"hospital-user\":\"\",\"hot-tub\":\"\",\"hotdog\":\"\",\"hotel\":\"\",\"hotjar\":\"\",\"hourglass\":\"\",\"hourglass-end\":\"\",\"hourglass-half\":\"\",\"hourglass-start\":\"\",\"house-damage\":\"\",\"house-user\":\"\",\"houzz\":\"\",\"hryvnia\":\"\",\"html5\":\"\",\"hubspot\":\"\",\"i-cursor\":\"\",\"ice-cream\":\"\",\"icicles\":\"\",\"icons\":\"\",\"id-badge\":\"\",\"id-card\":\"\",\"id-card-alt\":\"\",\"ideal\":\"\",\"igloo\":\"\",\"image\":\"\",\"images\":\"\",\"imdb\":\"\",\"inbox\":\"\",\"indent\":\"\",\"industry\":\"\",\"infinity\":\"\",\"info\":\"\",\"info-circle\":\"\",\"instagram-square\":\"\",\"instagram\":\"\",\"intercom\":\"\",\"internet-explorer\":\"\",\"invision\":\"\",\"ioxhost\":\"\",\"italic\":\"\",\"itch-io\":\"\",\"itunes\":\"\",\"itunes-note\":\"\",\"java\":\"\",\"jedi\":\"\",\"jedi-order\":\"\",\"jenkins\":\"\",\"jira\":\"\",\"joget\":\"\",\"joint\":\"\",\"joomla\":\"\",\"journal-whills\":\"\",\"js\":\"\",\"js-square\":\"\",\"jsfiddle\":\"\",\"kaaba\":\"\",\"kaggle\":\"\",\"key\":\"\",\"keybase\":\"\",\"keyboard\":\"\",\"keycdn\":\"\",\"khanda\":\"\",\"kickstarter\":\"\",\"kickstarter-k\":\"\",\"kiss\":\"\",\"kiss-beam\":\"\",\"kiss-wink-heart\":\"\",\"kiwi-bird\":\"\",\"korvue\":\"\",\"landmark\":\"\",\"language\":\"\",\"laptop\":\"\",\"laptop-code\":\"\",\"laptop-house\":\"\",\"laptop-medical\":\"\",\"laravel\":\"\",\"lastfm\":\"\",\"lastfm-square\":\"\",\"laugh\":\"\",\"laugh-beam\":\"\",\"laugh-squint\":\"\",\"laugh-wink\":\"\",\"layer-group\":\"\",\"leaf\":\"\",\"leanpub\":\"\",\"lemon\":\"\",\"less\":\"\",\"less-than\":\"\",\"less-than-equal\":\"\",\"level-down-alt\":\"\",\"level-up-alt\":\"\",\"life-ring\":\"\",\"lightbulb\":\"\",\"line\":\"\",\"link\":\"\",\"linkedin\":\"\",\"linkedin-in\":\"\",\"linkedin-fill\":\"\",\"telegram\":\"\",\"linode\":\"\",\"linux\":\"\",\"lira-sign\":\"\",\"list\":\"\",\"list-alt\":\"\",\"list-ol\":\"\",\"list-ul\":\"\",\"location-arrow\":\"\",\"lock\":\"\",\"lock-open\":\"\",\"long-arrow-alt-down\":\"\",\"long-arrow-alt-left\":\"\",\"long-arrow-alt-right\":\"\",\"long-arrow-alt-up\":\"\",\"low-vision\":\"\",\"luggage-cart\":\"\",\"lungs\":\"\",\"lungs-virus\":\"\",\"lyft\":\"\",\"magento\":\"\",\"magic\":\"\",\"magnet\":\"\",\"mail-bulk\":\"\",\"mailchimp\":\"\",\"male\":\"\",\"mandalorian\":\"\",\"map\":\"\",\"map-marked\":\"\",\"map-marked-alt\":\"\",\"map-marker\":\"\",\"map-marker-alt\":\"\",\"map-pin\":\"\",\"map-signs\":\"\",\"markdown\":\"\",\"marker\":\"\",\"mars\":\"\",\"mars-double\":\"\",\"mars-stroke\":\"\",\"mars-stroke-h\":\"\",\"mars-stroke-v\":\"\",\"mask\":\"\",\"mastodon\":\"\",\"maxcdn\":\"\",\"mdb\":\"\",\"medal\":\"\",\"medapps\":\"\",\"medium\":\"\",\"medium-m\":\"\",\"medkit\":\"\",\"medrt\":\"\",\"meetup\":\"\",\"megaport\":\"\",\"meh\":\"\",\"meh-blank\":\"\",\"meh-rolling-eyes\":\"\",\"memory\":\"\",\"mendeley\":\"\",\"menorah\":\"\",\"mercury\":\"\",\"meteor\":\"\",\"microblog\":\"\",\"microchip\":\"\",\"microphone\":\"\",\"microphone-alt\":\"\",\"microphone-alt-slash\":\"\",\"microphone-slash\":\"\",\"microscope\":\"\",\"microsoft\":\"\",\"minus\":\"\",\"minus-circle\":\"\",\"minus-square\":\"\",\"mitten\":\"\",\"mix\":\"\",\"mixcloud\":\"\",\"mixer\":\"\",\"mizuni\":\"\",\"mobile\":\"\",\"mobile-alt\":\"\",\"modx\":\"\",\"monero\":\"\",\"money-bill\":\"\",\"money-bill-alt\":\"\",\"money-bill-wave\":\"\",\"money-bill-wave-alt\":\"\",\"money-check\":\"\",\"money-check-alt\":\"\",\"monument\":\"\",\"moon\":\"\",\"mortar-pestle\":\"\",\"mosque\":\"\",\"motorcycle\":\"\",\"mountain\":\"\",\"mouse\":\"\",\"mouse-pointer\":\"\",\"mug-hot\":\"\",\"music\":\"\",\"napster\":\"\",\"neos\":\"\",\"network-wired\":\"\",\"neuter\":\"\",\"newspaper\":\"\",\"nimblr\":\"\",\"node\":\"\",\"node-js\":\"\",\"not-equal\":\"\",\"notes-medical\":\"\",\"npm\":\"\",\"ns8\":\"\",\"nutritionix\":\"\",\"object-group\":\"\",\"object-ungroup\":\"\",\"odnoklassniki\":\"\",\"odnoklassniki-square\":\"\",\"oil-can\":\"\",\"old-republic\":\"\",\"om\":\"\",\"opencart\":\"\",\"openid\":\"\",\"opera\":\"\",\"optin-monster\":\"\",\"orcid\":\"\",\"osi\":\"\",\"otter\":\"\",\"outdent\":\"\",\"page4\":\"\",\"pagelines\":\"\",\"pager\":\"\",\"paint-brush\":\"\",\"paint-roller\":\"\",\"palette\":\"\",\"palfed\":\"\",\"pallet\":\"\",\"paper-plane\":\"\",\"paperclip\":\"\",\"parachute-box\":\"\",\"paragraph\":\"\",\"parking\":\"\",\"passport\":\"\",\"pastafarianism\":\"\",\"paste\":\"\",\"patreon\":\"\",\"pause\":\"\",\"pause-circle\":\"\",\"paw\":\"\",\"paypal\":\"\",\"peace\":\"\",\"pen\":\"\",\"pen-alt\":\"\",\"pen-fancy\":\"\",\"pen-nib\":\"\",\"pen-square\":\"\",\"pencil-alt\":\"\",\"pencil-ruler\":\"\",\"penny-arcade\":\"\",\"people-arrows\":\"\",\"people-carry\":\"\",\"pepper-hot\":\"\",\"percent\":\"\",\"percentage\":\"\",\"periscope\":\"\",\"person-booth\":\"\",\"phabricator\":\"\",\"phoenix-framework\":\"\",\"phoenix-squadron\":\"\",\"phone\":\"\",\"phone-alt\":\"\",\"phone-slash\":\"\",\"phone-square\":\"\",\"phone-square-alt\":\"\",\"phone-volume\":\"\",\"photo-video\":\"\",\"php\":\"\",\"pied-piper\":\"\",\"pied-piper-alt\":\"\",\"pied-piper-hat\":\"\",\"pied-piper-pp\":\"\",\"pied-piper-square\":\"\",\"piggy-bank\":\"\",\"pills\":\"\",\"pinterest-square\":\"\",\"pinterest-p\":\"\",\"pinterest\":\"\",\"wechat\":\"\",\"nextdoor\":\"\",\"pinterest-fill\":\"\",\"pizza-slice\":\"\",\"place-of-worship\":\"\",\"plane\":\"\",\"plane-arrival\":\"\",\"plane-departure\":\"\",\"plane-slash\":\"\",\"play\":\"\",\"play-circle\":\"\",\"playstation\":\"\",\"plug\":\"\",\"plus\":\"\",\"plus-circle\":\"\",\"plus-square\":\"\",\"podcast\":\"\",\"poll\":\"\",\"poll-h\":\"\",\"poo\":\"\",\"poo-storm\":\"\",\"poop\":\"\",\"portrait\":\"\",\"pound-sign\":\"\",\"power-off\":\"\",\"pray\":\"\",\"praying-hands\":\"\",\"prescription\":\"\",\"prescription-bottle\":\"\",\"prescription-bottle-alt\":\"\",\"print\":\"\",\"procedures\":\"\",\"product-hunt\":\"\",\"project-diagram\":\"\",\"pump-medical\":\"\",\"pump-soap\":\"\",\"pushed\":\"\",\"puzzle-piece\":\"\",\"python\":\"\",\"qq\":\"\",\"qrcode\":\"\",\"question\":\"\",\"question-circle\":\"\",\"quidditch\":\"\",\"quinscape\":\"\",\"quora\":\"\",\"quote-left\":\"\",\"quote-right\":\"\",\"quran\":\"\",\"r-project\":\"\",\"radiation\":\"\",\"radiation-alt\":\"\",\"rainbow\":\"\",\"random\":\"\",\"raspberry-pi\":\"\",\"ravelry\":\"\",\"react\":\"\",\"reacteurope\":\"\",\"readme\":\"\",\"rebel\":\"\",\"receipt\":\"\",\"record-vinyl\":\"\",\"recycle\":\"\",\"red-river\":\"\",\"reddit-square\":\"\",\"reddit-alien\":\"\",\"reddit\":\"\",\"reddit-fill\":\"\",\"redhat\":\"\",\"redo\":\"\",\"redo-alt\":\"\",\"registered\":\"\",\"remove-format\":\"\",\"renren\":\"\",\"reply\":\"\",\"reply-all\":\"\",\"replyd\":\"\",\"republican\":\"\",\"researchgate\":\"\",\"resolving\":\"\",\"restroom\":\"\",\"retweet\":\"\",\"rev\":\"\",\"ribbon\":\"\",\"ring\":\"\",\"road\":\"\",\"robot\":\"\",\"rocket\":\"\",\"rocketchat\":\"\",\"rockrms\":\"\",\"route\":\"\",\"rss-square\":\"\",\"rss\":\"\",\"ruble-sign\":\"\",\"ruler\":\"\",\"ruler-combined\":\"\",\"ruler-horizontal\":\"\",\"ruler-vertical\":\"\",\"running\":\"\",\"rupee-sign\":\"\",\"sad-cry\":\"\",\"sad-tear\":\"\",\"safari\":\"\",\"salesforce\":\"\",\"sass\":\"\",\"satellite\":\"\",\"satellite-dish\":\"\",\"save\":\"\",\"schlix\":\"\",\"school\":\"\",\"screwdriver\":\"\",\"scribd\":\"\",\"scroll\":\"\",\"sd-card\":\"\",\"search\":\"\",\"search-dollar\":\"\",\"search-location\":\"\",\"search-minus\":\"\",\"search-plus\":\"\",\"searchengin\":\"\",\"seedling\":\"\",\"sellcast\":\"\",\"sellsy\":\"\",\"server\":\"\",\"servicestack\":\"\",\"shapes\":\"\",\"share\":\"\",\"share-alt\":\"\",\"share-alt-square\":\"\",\"share-square\":\"\",\"shekel-sign\":\"\",\"shield-alt\":\"\",\"shield-virus\":\"\",\"ship\":\"\",\"shipping-fast\":\"\",\"shirtsinbulk\":\"\",\"shoe-prints\":\"\",\"shopify\":\"\",\"shopping-bag\":\"\",\"shopping-default\":\"\",\"shopping-basket\":\"\",\"shopping-cart\":\"\",\"shopware\":\"\",\"shower\":\"\",\"shuttle-van\":\"\",\"sign\":\"\",\"sign-in-alt\":\"\",\"sign-language\":\"\",\"sign-out-alt\":\"\",\"signal\":\"\",\"signature\":\"\",\"sim-card\":\"\",\"simplybuilt\":\"\",\"sistrix\":\"\",\"sitemap\":\"\",\"sith\":\"\",\"skating\":\"\",\"sketch\":\"\",\"skiing\":\"\",\"skiing-nordic\":\"\",\"skull\":\"\",\"skull-crossbones\":\"\",\"skyatlas\":\"\",\"skype\":\"\",\"slack\":\"\",\"slack-hash\":\"\",\"slash\":\"\",\"sleigh\":\"\",\"sliders-h\":\"\",\"slideshare\":\"\",\"smile\":\"\",\"smile-beam\":\"\",\"smile-wink\":\"\",\"smog\":\"\",\"smoking\":\"\",\"smoking-ban\":\"\",\"sms\":\"\",\"sms-fill\":\"\",\"snapchat\":\"\",\"snapchat-ghost\":\"\",\"snapchat-square\":\"\",\"snowboarding\":\"\",\"snowflake\":\"\",\"snowman\":\"\",\"snowplow\":\"\",\"soap\":\"\",\"socks\":\"\",\"solar-panel\":\"\",\"sort\":\"\",\"sort-alpha-down\":\"\",\"sort-alpha-down-alt\":\"\",\"sort-alpha-up\":\"\",\"sort-alpha-up-alt\":\"\",\"sort-amount-down\":\"\",\"sort-amount-down-alt\":\"\",\"sort-amount-up\":\"\",\"sort-amount-up-alt\":\"\",\"sort-down\":\"\",\"sort-numeric-down\":\"\",\"sort-numeric-down-alt\":\"\",\"sort-numeric-up\":\"\",\"sort-numeric-up-alt\":\"\",\"sort-up\":\"\",\"soundcloud\":\"\",\"sourcetree\":\"\",\"spa\":\"\",\"space-shuttle\":\"\",\"speakap\":\"\",\"speaker-deck\":\"\",\"spell-check\":\"\",\"spider\":\"\",\"spinner\":\"\",\"splotch\":\"\",\"spotify\":\"\",\"spray-can\":\"\",\"square\":\"\",\"square-full\":\"\",\"square-root-alt\":\"\",\"squarespace\":\"\",\"stack-exchange\":\"\",\"stack-overflow\":\"\",\"stackpath\":\"\",\"stamp\":\"\",\"star\":\"\",\"star-and-crescent\":\"\",\"star-half\":\"\",\"star-half-alt\":\"\",\"star-of-david\":\"\",\"star-of-life\":\"\",\"staylinked\":\"\",\"steam\":\"\",\"steam-square\":\"\",\"steam-symbol\":\"\",\"step-backward\":\"\",\"step-forward\":\"\",\"stethoscope\":\"\",\"sticker-mule\":\"\",\"sticky-note\":\"\",\"stop\":\"\",\"stop-circle\":\"\",\"stopwatch\":\"\",\"stopwatch-20\":\"\",\"store\":\"\",\"store-alt\":\"\",\"store-alt-slash\":\"\",\"store-slash\":\"\",\"strava\":\"\",\"stream\":\"\",\"street-view\":\"\",\"strikethrough\":\"\",\"stripe\":\"\",\"stripe-s\":\"\",\"stroopwafel\":\"\",\"studiovinari\":\"\",\"stumbleupon\":\"\",\"stumbleupon-circle\":\"\",\"subscript\":\"\",\"subway\":\"\",\"suitcase\":\"\",\"suitcase-rolling\":\"\",\"sun\":\"\",\"superpowers\":\"\",\"superscript\":\"\",\"supple\":\"\",\"surprise\":\"\",\"suse\":\"\",\"swatchbook\":\"\",\"swift\":\"\",\"swimmer\":\"\",\"swimming-pool\":\"\",\"symfony\":\"\",\"synagogue\":\"\",\"sync\":\"\",\"sync-alt\":\"\",\"syringe\":\"\",\"table\":\"\",\"table-tennis\":\"\",\"tablet\":\"\",\"tablet-alt\":\"\",\"tablets\":\"\",\"tachometer-alt\":\"\",\"tag\":\"\",\"tags\":\"\",\"tape\":\"\",\"tasks\":\"\",\"taxi\":\"\",\"teamspeak\":\"\",\"teeth\":\"\",\"teeth-open\":\"\",\"telegram-plane\":\"\",\"temperature-high\":\"\",\"temperature-low\":\"\",\"tencent-weibo\":\"\",\"tenge\":\"\",\"terminal\":\"\",\"text-height\":\"\",\"text-width\":\"\",\"th\":\"\",\"th-large\":\"\",\"th-list\":\"\",\"the-red-yeti\":\"\",\"theater-masks\":\"\",\"themeco\":\"\",\"themeisle\":\"\",\"thermometer\":\"\",\"thermometer-empty\":\"\",\"thermometer-full\":\"\",\"thermometer-half\":\"\",\"thermometer-quarter\":\"\",\"thermometer-three-quarters\":\"\",\"think-peaks\":\"\",\"thumbs-down\":\"\",\"thumbs-up\":\"\",\"thumbtack\":\"\",\"ticket-alt\":\"\",\"times\":\"\",\"times-circle\":\"\",\"tint\":\"\",\"tint-slash\":\"\",\"tired\":\"\",\"toggle-off\":\"\",\"toggle-on\":\"\",\"toilet\":\"\",\"toilet-paper\":\"\",\"toilet-paper-slash\":\"\",\"toolbox\":\"\",\"tools\":\"\",\"tooth\":\"\",\"torah\":\"\",\"torii-gate\":\"\",\"tractor\":\"\",\"trade-federation\":\"\",\"trademark\":\"\",\"traffic-light\":\"\",\"trailer\":\"\",\"train\":\"\",\"tram\":\"\",\"transgender\":\"\",\"transgender-alt\":\"\",\"trash\":\"\",\"trash-alt\":\"\",\"trash-restore\":\"\",\"trash-restore-alt\":\"\",\"tree\":\"\",\"trello\":\"\",\"tripadvisor\":\"\",\"trophy\":\"\",\"truck\":\"\",\"truck-loading\":\"\",\"truck-monster\":\"\",\"truck-moving\":\"\",\"truck-pickup\":\"\",\"tshirt\":\"\",\"tty\":\"\",\"tumblr\":\"\",\"tumblr-square\":\"\",\"tv\":\"\",\"twitch\":\"\",\"twitter\":\"\",\"twitter-square\":\"\",\"twitter-x\":\"\",\"typo3\":\"\",\"threads\":\"\",\"uber\":\"\",\"ubuntu\":\"\",\"uikit\":\"\",\"umbraco\":\"\",\"umbrella\":\"\",\"umbrella-beach\":\"\",\"underline\":\"\",\"undo\":\"\",\"undo-alt\":\"\",\"uniregistry\":\"\",\"unity\":\"\",\"universal-access\":\"\",\"university\":\"\",\"unlink\":\"\",\"unlock\":\"\",\"unlock-alt\":\"\",\"untappd\":\"\",\"upload\":\"\",\"ups\":\"\",\"usb\":\"\",\"user\":\"\",\"user-alt\":\"\",\"user-alt-slash\":\"\",\"user-astronaut\":\"\",\"user-check\":\"\",\"user-circle\":\"\",\"user-clock\":\"\",\"user-cog\":\"\",\"user-edit\":\"\",\"user-friends\":\"\",\"user-graduate\":\"\",\"user-injured\":\"\",\"user-lock\":\"\",\"user-md\":\"\",\"user-minus\":\"\",\"user-ninja\":\"\",\"user-nurse\":\"\",\"user-plus\":\"\",\"user-secret\":\"\",\"user-shield\":\"\",\"user-slash\":\"\",\"user-tag\":\"\",\"user-tie\":\"\",\"user-times\":\"\",\"users\":\"\",\"users-cog\":\"\",\"usps\":\"\",\"ussunnah\":\"\",\"utensil-spoon\":\"\",\"utensils\":\"\",\"vaadin\":\"\",\"vector-square\":\"\",\"venus\":\"\",\"venus-double\":\"\",\"venus-mars\":\"\",\"viacoin\":\"\",\"viadeo\":\"\",\"viadeo-square\":\"\",\"vial\":\"\",\"vials\":\"\",\"viber\":\"\",\"video\":\"\",\"video-slash\":\"\",\"vihara\":\"\",\"vimeo-v\":\"\",\"vimeo-square\":\"\",\"vimeo\":\"\",\"vine\":\"\",\"virus\":\"\",\"virus-slash\":\"\",\"viruses\":\"\",\"vk\":\"\",\"vnv\":\"\",\"voicemail\":\"\",\"volleyball-ball\":\"\",\"volume-down\":\"\",\"volume-mute\":\"\",\"volume-off\":\"\",\"volume-up\":\"\",\"vote-yea\":\"\",\"vr-cardboard\":\"\",\"vuejs\":\"\",\"walking\":\"\",\"wallet\":\"\",\"warehouse\":\"\",\"water\":\"\",\"wave-square\":\"\",\"waze\":\"\",\"weebly\":\"\",\"weibo\":\"\",\"weight\":\"\",\"weight-hanging\":\"\",\"weixin\":\"\",\"whatsapp\":\"\",\"whatsapp-square\":\"\",\"whatsapp-fill\":\"\",\"wheelchair\":\"\",\"whmcs\":\"\",\"wifi\":\"\",\"wikipedia-w\":\"\",\"wind\":\"\",\"window-close\":\"\",\"window-maximize\":\"\",\"window-minimize\":\"\",\"window-restore\":\"\",\"windows\":\"\",\"wine-bottle\":\"\",\"wine-glass\":\"\",\"wine-glass-alt\":\"\",\"wix\":\"\",\"wizards-of-the-coast\":\"\",\"wolf-pack-battalion\":\"\",\"won-sign\":\"\",\"wordpress\":\"\",\"wordpress-simple\":\"\",\"wpbeginner\":\"\",\"wpexplorer\":\"\",\"wpforms\":\"\",\"wpressr\":\"\",\"wrench\":\"\",\"x-ray\":\"\",\"xbox\":\"\",\"xing\":\"\",\"xing-square\":\"\",\"y-combinator\":\"\",\"yahoo\":\"\",\"yammer\":\"\",\"yandex\":\"\",\"yandex-international\":\"\",\"yarn\":\"\",\"yelp\":\"\",\"yen-sign\":\"\",\"yin-yang\":\"\",\"yoast\":\"\",\"youtube\":\"\",\"youtube-square\":\"\",\"zhihu\":\"\",\"astra-meta-settings\":\"\",\"typo-preset-01\":\" \",\"typo-preset-02\":\" \",\"typo-preset-03\":\" \",\"typo-preset-04\":\" \",\"typo-preset-05\":\" \",\"typo-preset-06\":\" \",\"btn-preset-01\":\" \",\"btn-preset-02\":\" \",\"btn-preset-03\":\" \",\"btn-preset-04\":\" \",\"btn-preset-05\":\" \",\"btn-preset-06\":\" \",\"left-sidebar\":\"\",\"no-sidebar\":\"\",\"right-sidebar\":\"\",\"default\":\"\",\"boxed-container\":\"\",\"content-boxed-container\":\"\",\"plain-container\":\"\",\"page-builder\":\"\",\"meta-popup-icon\":\"\",\"astra-brand-icon\":\"\",\"tmp-angle\":\"\",\"hyper-link-disable\":\"\",\"hyper-link-enable\":\"\",\"desktop-responsive\":\"\",\"tablet-responsive\":\"\",\"mobile-responsive\":\"\",\"layout-default\":\"\",\"first-image-large\":\"\",\"horizontal-slider\":\"\",\"vertical-slider\":\"\",\"shop-grid-view\":\"\",\"shop-list-view\":\"\",\"shop-modern-view\":\"\",\"description-accordion\":\"\",\"description-distributed\":\"\",\"description-horizontal\":\"\",\"description-vertical\":\"\",\"layout-fluid\":\"\",\"layout-full-width\":\"\",\"layout-max-width\":\"\",\"layout-padded\":\"\",\"blog-layout-classic\":\"\",\"blog-layout-1\":\"\",\"blog-layout-2\":\"\",\"blog-layout-3\":\"\",\"blog-layout-4\":\"\",\"blog-layout-5\":\"\",\"blog-layout-6\":\"\",\"visa\":\"\",\"visa_gray\":\"\",\"mastercard\":\"\",\"mastercard_gray\":\"\",\"amex\":\"\",\"amex_gray\":\"\",\"discover\":\"\",\"discover_gray\":\"\",\"paypal_gray\":\"\",\"applepay\":\"\",\"applepay_gray\":\"\",\"customizer-desktop\":\" \",\"customizer-tablet\":\" \",\"customizer-mobile\":\" \",\"upgradeLock\":\" \",\"astraLogo\":\" \",\"upgradeListCheck\":\" \",\"normal-width-container\":\"\",\"full-width-container\":\"\",\"narrow-width-container\":\"\",\"header-preset-1\":\"\",\"header-preset-2\":\"\",\"header-preset-3\":\" \",\"header-preset-4\":\"\"}"),g=c=>{const{label:t,description:h,id:v,choices:s,metavalue:e}=c;let a,w=null,g=null;const i=Object.keys(s).length?"ast-radio-option-"+Object.keys(s).length:"";return t&&(w=(0,l.createElement)("span",{className:"customize-control-title"},t)),h&&(g=(0,l.createElement)("span",{className:"description customize-control-description"},h)),a=Object.entries(s).map((t=>{let[h,s]=t,a=s.value,w=e===a;return(0,l.createElement)(l.Fragment,{key:h},(0,l.createElement)("input",{className:"image-select",type:"radio",value:a,name:v,id:v+"-"+a,checked:w,onChange:()=>(l=>{c.onChange(l)})(a)}),(0,l.createElement)("label",{htmlFor:v+"-"+a,className:"ast-radio-img-svg"},(0,l.createElement)("span",{className:"ast-meta-image-tooltip"},s.label),(0,l.createElement)("span",{dangerouslySetInnerHTML:{__html:o[a]}})))})),(0,l.createElement)("div",{className:"ast-radio-image-controller"},(w||g)&&(0,l.createElement)("label",null,w,g),(0,l.createElement)("div",{id:`input_${v}`,className:`options-wrapper ${i}`},a))},i=window.wp.components,p=c=>{const{label:t,description:h,id:v,metavalue:s,choices:e}=c;if(!e)return;let a=null,w=null;t&&(a=(0,l.createElement)("span",{className:"ast-meta-sortable-title"},t)),h&&(w=(0,l.createElement)("span",{className:"ast-meta-sortable-description"},h));let o=Object.entries(e).map((t=>{let[h,v]=t,e=v.value;return(0,l.createElement)("div",{className:"ast-selector-inner-wrap",key:h},(0,l.createElement)(i.Button,{key:h,onClick:()=>(l=>{c.onChange(l)})(e),"aria-pressed":e===s,isPrimary:e===s,label:v.label},v.label))}));return(0,l.createElement)("div",{id:v,className:"ast-meta-selector-controller"},(a||w)&&(0,l.createElement)("label",null,a,w),(0,l.createElement)("div",{className:"ast-meta-selector-wrapper"},o))},r=t(488),n=(r.domToReact,r.htmlToDOM,r.attributesToProps,r.Element,r),m=t(697),d=t.n(m),z=window.wp.i18n,C=window.wp.mediaUtils;const x=astMetaParams.isWP_5_9?i.GradientPicker:i.__experimentalGradientPicker,M=(c,l)=>{const t=l.palette;if(void 0!==c&&c.includes("var")){const l=c.charAt(c.length-2);c=t[l]}return c};class H extends l.Component{constructor(c){super(...arguments),this.onChangeComplete=this.onChangeComplete.bind(this),this.onOverlayChangeComplete=this.onOverlayChangeComplete.bind(this),this.onChangeOverlayGradientComplete=this.onChangeOverlayGradientComplete.bind(this),this.onPaletteChangeComplete=this.onPaletteChangeComplete.bind(this),this.onChangeGradientComplete=this.onChangeGradientComplete.bind(this),this.renderImageSettings=this.renderImageSettings.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.onSelectImage=this.onSelectImage.bind(this),this.open=this.open.bind(this),this.onColorClearClick=this.onColorClearClick.bind(this),this.onColorResetClick=this.onColorResetClick.bind(this),this.state={isVisible:!1,refresh:!1,color:this.props.color,modalCanClose:!0,backgroundType:this.props.backgroundType,overlayType:this.props.overlayType,supportGradient:void 0!==x}}onResetRefresh(){!0===this.state.refresh?this.setState({refresh:!1}):this.setState({refresh:!0})}componentDidMount(){document.addEventListener("click",this.handleClickOutside)}componentDidUpdate(){if(document.querySelectorAll(".open").length>1){const c=1,l=document.querySelectorAll(".astra-popover-color")[c];l&&(l.style.display="none")}}componentWillUnmount(){document.removeEventListener("click",this.handleClickOutside)}handleClickOutside=c=>{const l=!(c.target.closest(".astra-popover-color")||c.target.closest(".astra-advanced-color-indicate")||c.target.closest(".media-modal-content")||c.target.closest(".dashicons-format-image")||c.target.closest(".components-popover__content")||c.target.closest(".ast-bg-img-remove"));this.state.isVisible&&l&&this.closePicker()};closePicker=()=>{!0===this.state.isVisible&&this.setState({isVisible:!1})};render(){const{refresh:c,modalCanClose:t,isVisible:h,supportGradient:v,backgroundType:s}=this.state,{allowGradient:e,allowImage:a}=this.props;var w=this.props.disablePalette;this.props.enableDeleteIcon;const o=()=>{!0===c?this.setState({refresh:!1}):this.setState({refresh:!0}),this.setState({isVisible:!0})},g=()=>{t&&!0===h&&this.setState({isVisible:!1})},p=!(!e||!v);let r=[{name:"color",title:(0,z.__)("Color","astra"),className:"astra-color-background"}];if(p){let c={name:"gradient",title:(0,z.__)("Gradient","astra"),className:"astra-image-background"};r.push(c)}if(a){let c={name:"image",title:(0,z.__)("Image","astra"),className:"astra-image-background"};r.push(c)}let n=[],m={palette:["#046bd2","#045cb4","#1e293b","#334155","#f9fafb","#FFFFFF","#e2e8f0","#cbd5e1","#94a3b8"]};return astMetaParams.global_color_palette&&(m={palette:astMetaParams.global_color_palette.palette}),Object.entries(m.palette).forEach((c=>{let[l,t]=c;const h=astMetaParams.color_palette_labels;let v={};Object.assign(v,{name:h[l],color:"var(--ast-global-color-"+l+")"}),n.push(v)})),(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:this.props.color&&this.props.color.includes("var")?"color-button-wrap has-global-palette-color":"color-button-wrap"},(0,l.createElement)(i.Button,{className:h?"astra-color-icon-indicate open":"astra-color-icon-indicate",onClick:()=>{h?g():o()}},("color"===s||"gradient"===s)&&(0,l.createElement)(i.ColorIndicator,{className:"astra-advanced-color-indicate",colorValue:this.props.color},(0,l.createElement)("span",{className:"global-color"},(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:"astra-globe-dashicon"},(0,l.createElement)("path",{d:"M7.99997 0.499249C12.143 0.499249 15.5015 3.85775 15.5015 8.00075C15.5015 12.143 12.143 15.5015 7.99997 15.5015C3.85697 15.5015 0.498474 12.143 0.498474 8.00075C0.498474 3.85775 3.85697 0.499249 7.99997 0.499249ZM10.2042 11.375H5.79497C6.28397 13.1855 7.13447 14.3765 7.99922 14.3765C8.86397 14.3765 9.71447 13.1855 10.2035 11.375H10.2042ZM4.63172 11.375H2.58872C3.31285 12.5337 4.38885 13.4302 5.65922 13.9332C5.26772 13.3182 4.94447 12.5487 4.70672 11.672L4.63022 11.3757L4.63172 11.375ZM13.4105 11.375H11.369C11.126 12.3762 10.775 13.25 10.3392 13.9332C11.5294 13.4625 12.5509 12.6455 13.2717 11.588L13.4105 11.3757V11.375ZM4.32047 6.5H1.80122L1.79747 6.51275C1.68111 7.00019 1.62246 7.49962 1.62272 8.00075C1.62272 8.79275 1.76747 9.551 2.03147 10.2507H4.41122C4.2301 9.00898 4.19912 7.74992 4.31897 6.50075L4.32047 6.5ZM10.5477 6.5H5.45222C5.32027 7.74899 5.35432 9.00995 5.55347 10.25H10.4465C10.6456 9.00994 10.6796 7.74899 10.5477 6.5ZM14.1987 6.5H11.6802C11.7267 6.98525 11.7515 7.48775 11.7515 8C11.7527 8.75301 11.698 9.50507 11.588 10.25H13.9677C14.2385 9.5308 14.3767 8.76849 14.3757 8C14.3757 7.48325 14.3142 6.98 14.1987 6.5ZM5.65997 2.0675L5.64272 2.0735C4.10779 2.68641 2.86957 3.86953 2.18747 5.375H4.47347C4.70897 4.061 5.11847 2.9165 5.66072 2.0675H5.65997ZM7.99997 1.62425L7.91297 1.628C6.96497 1.715 6.04697 3.2165 5.62247 5.375H10.379C9.95447 3.2225 9.04172 1.72325 8.09522 1.62875L7.99997 1.625V1.62425ZM10.34 2.06675L10.4202 2.198C10.922 3.032 11.303 4.127 11.5265 5.37575H13.8125C13.1614 3.93881 12.0025 2.793 10.5582 2.15825L10.34 2.0675V2.06675Z"})))),"image"===s&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(i.ColorIndicator,{className:"astra-advanced-color-indicate",colorValue:"#ffffff"}),(0,l.createElement)(i.Dashicon,{icon:"format-image"})))),(0,l.createElement)("div",{className:"astra-color-picker-wrap "+(h?"picker-open":"")},(0,l.createElement)(l.Fragment,null,h&&(0,l.createElement)("div",{className:"astra-popover-color",onClose:g},1{let h;return t.name&&("gradient"===t.name&&(h=(0,l.createElement)(l.Fragment,null,(0,l.createElement)(x,{className:"ast-gradient-color-picker "+(astMetaParams.isWP_5_9?"ast-gradient-ui":""),gradients:[],value:this.props.color&&this.props.color.includes("gradient")?this.props.color:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",onChange:c=>this.onChangeGradientComplete(c)}))),"image"===t.name?h=this.renderImageSettings():"color"===t.name&&(h=(0,l.createElement)(l.Fragment,null,!w&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(i.ColorPalette,{colors:n,value:this.props.color,clearable:!1,disableCustomColors:!0,className:"ast-color-palette",onChange:c=>this.onPaletteChangeComplete(c)})),c&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(i.ColorPicker,{color:M(this.props.color,m),onChangeComplete:c=>this.onChangeComplete(c)})),!c&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(i.ColorPicker,{color:M(this.props.color,m),onChangeComplete:c=>this.onChangeComplete(c)})),(0,l.createElement)("button",{type:"button",onClick:()=>{this.onColorClearClick()},className:"ast-clear-btn-inside-picker components-button common components-circular-option-picker__clear is-secondary is-small"},(0,z.__)("Clear","astra"))))),(0,l.createElement)("div",null,h)})),1===r.length&&(0,l.createElement)(l.Fragment,null,!w&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(i.ColorPalette,{colors:n,value:this.props.color,clearable:!1,disableCustomColors:!0,className:"ast-color-palette",onChange:c=>this.onPaletteChangeComplete(c)})),c&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(i.ColorPicker,{color:M(this.props.color,m),onChangeComplete:c=>this.onChangeComplete(c)})),!c&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(i.ColorPicker,{color:M(this.props.color,m),onChangeComplete:c=>this.onChangeComplete(c)})),!w&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("button",{type:"button",onClick:()=>{this.onColorClearClick()},className:"ast-clear-btn-inside-picker components-button components-circular-option-picker__clear is-secondary is-small"},(0,z.__)("Clear","astra"))),w&&(0,l.createElement)("button",{type:"button",onClick:()=>{this.onColorResetClick()},className:"ast-reset-btn-inside-picker components-button common components-circular-option-picker__reset is-secondary is-small"},(0,z.__)("Reset","astra")))))))}onColorClearClick(){!0===this.state.refresh?this.setState({refresh:!1}):this.setState({refresh:!0}),this.props.onChangeComplete("","color")}onColorResetClick(){!0===this.state.refresh?this.setState({refresh:!1}):this.setState({refresh:!0}),this.props.onColorResetClick("","color")}onChangeGradientComplete(c){this.setState({backgroundType:"gradient"}),this.props.onChangeComplete(c,"gradient")}onChangeComplete(c){let l;l=c.rgb&&c.rgb.a&&1!==c.rgb.a?"rgba("+c.rgb.r+","+c.rgb.g+","+c.rgb.b+","+c.rgb.a+")":c.hex,this.setState({backgroundType:"color"}),this.props.onChangeComplete(c,"color")}onOverlayChangeComplete(c){let l;l=c.rgb&&c.rgb.a&&1!==c.rgb.a?"rgba("+c.rgb.r+","+c.rgb.g+","+c.rgb.b+","+c.rgb.a+")":c.hex,this.onChangeImageOptions("overlayType","overlay-type","classic"),this.onChangeImageOptions("overlayColor","overlay-color",l)}onChangeOverlayGradientComplete(c){this.onChangeImageOptions("overlayType","overlay-type","gradient"),this.onChangeImageOptions("overlayGradient","overlay-gradient",c)}onOverlayTabSelect(c){this.onChangeImageOptions("overlayType","overlay-type",c)}onPaletteChangeComplete(c){this.setState({color:c}),!0===this.state.refresh?this.setState({refresh:!1}):this.setState({refresh:!0}),this.props.onChangeComplete(c,"color")}onSelectImage(c){this.setState({modalCanClose:!0}),this.setState({backgroundType:"image"}),this.props.onSelectImage(c,"image")}onRemoveImage(){this.setState({modalCanClose:!0}),this.props.onSelectImage("")}open(c){this.setState({modalCanClose:!1}),c()}onChangeImageOptions(c,l,t){this.setState({backgroundType:"image"}),this.props.onChangeImageOptions(l,t,"image")}toggleMoreSettings(){let c=event.target.parentElement.parentElement,l=c.querySelector(".more-settings"),t=c.querySelector(".media-position-setting"),h=l.dataset.direction;l.dataset.id,"down"===h?(l.setAttribute("data-direction","up"),c.querySelector(".message").innerHTML=(0,z.__)("Less Settings"),c.querySelector(".icon").innerHTML="↑"):(l.setAttribute("data-direction","down"),c.querySelector(".message").innerHTML=(0,z.__)("More Settings"),c.querySelector(".icon").innerHTML="↓"),t.classList.contains("hide-settings")?t.classList.remove("hide-settings"):t.classList.add("hide-settings")}renderImageSettings(){let c=[{name:"none",title:(0,z.__)("None","astra"),className:"astra-none-overlay-bg"},{name:"classic",title:(0,z.__)("Classic","astra"),className:"astra-classic-overlay-bg"},{name:"gradient",title:(0,z.__)("Gradient","astra"),className:"astra-gradient-overlay-bg"}],t=[],h={palette:["#046bd2","#045cb4","#1e293b","#334155","#f9fafb","#FFFFFF","#e2e8f0","#cbd5e1","#94a3b8"]};return astMetaParams.global_color_palette&&(h={palette:astMetaParams.global_color_palette.palette}),Object.entries(h.palette).forEach((c=>{let[l,h]=c,v={};Object.assign(v,{name:["Color 1","Color 2","Color 3","Color 4","Color 5","Color 6","Color 7","Color 8","Color 9"][l],color:"var(--ast-global-color-"+l+")"}),t.push(v)})),(0,l.createElement)(l.Fragment,null,(this.props.media.url||this.props.backgroundImage)&&(0,l.createElement)("img",{src:this.props.media.url?this.props.media.url:this.props.backgroundImage}),(0,l.createElement)(C.MediaUpload,{title:(0,z.__)("Select Background Image","astra"),onSelect:c=>this.onSelectImage(c),allowedTypes:["image"],value:this.props.media?this.props.media:"",render:c=>{let{open:t}=c;return(0,l.createElement)(i.Button,{className:"upload-button button-add-media",isDefault:!0,onClick:()=>this.open(t)},this.props.media.url||this.props.backgroundImage?(0,z.__)("Replace image","astra"):(0,z.__)("Select Background Image","astra"))}}),(this.props.media.url||this.props.backgroundImage)&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(i.Button,{className:"ast-bg-img-remove",onClick:this.onRemoveImage,isLink:!0,isDestructive:!0},(0,z.__)("Remove Image","astra")),(0,l.createElement)("a",{href:"#",className:"more-settings",onClick:this.toggleMoreSettings.bind(this),"data-direction":"down","data-id":"desktop"},(0,l.createElement)("span",{className:"message"}," ",(0,z.__)("More Settings")," "),(0,l.createElement)("span",{className:"icon"}," ↓ ")),(0,l.createElement)("div",{className:"media-position-setting hide-settings"},(0,l.createElement)(i.SelectControl,{label:(0,z.__)("Image Position"),value:this.props.backgroundPosition,onChange:c=>this.onChangeImageOptions("backgroundPosition","background-position",c),options:[{value:"left top",label:(0,z.__)("Left Top","astra")},{value:"left center",label:(0,z.__)("Left Center","astra")},{value:"left bottom",label:(0,z.__)("Left Bottom","astra")},{value:"right top",label:(0,z.__)("Right Top","astra")},{value:"right center",label:(0,z.__)("Right Center","astra")},{value:"right bottom",label:(0,z.__)("Right Bottom","astra")},{value:"center top",label:(0,z.__)("Center Top","astra")},{value:"center center",label:(0,z.__)("Center Center","astra")},{value:"center bottom",label:(0,z.__)("Center Bottom","astra")}]}),(0,l.createElement)(i.SelectControl,{label:(0,z.__)("Attachment","astra"),value:this.props.backgroundAttachment,onChange:c=>this.onChangeImageOptions("backgroundAttachment","background-attachment",c),options:[{value:"fixed",label:(0,z.__)("Fixed","astra")},{value:"scroll",label:(0,z.__)("Scroll","astra")}]}),(0,l.createElement)(i.SelectControl,{label:(0,z.__)("Repeat","astra"),value:this.props.backgroundRepeat,onChange:c=>this.onChangeImageOptions("backgroundRepeat","background-repeat",c),options:[{value:"no-repeat",label:(0,z.__)("No Repeat","astra")},{value:"repeat",label:(0,z.__)("Repeat All","astra")},{value:"repeat-x",label:(0,z.__)("Repeat Horizontally","astra")},{value:"repeat-y",label:(0,z.__)("Repeat Vertically","astra")}]}),(0,l.createElement)(i.SelectControl,{label:(0,z.__)("Size","astra"),value:this.props.backgroundSize,onChange:c=>this.onChangeImageOptions("backgroundSize","background-size",c),options:[{value:"auto",label:(0,z.__)("Auto","astra")},{value:"cover",label:(0,z.__)("Cover","astra")},{value:"contain",label:(0,z.__)("Contain","astra")}]}),1this.onOverlayTabSelect(c),tabs:c},(c=>{let t;return c.name&&("gradient"===c.name?t=(0,l.createElement)(l.Fragment,null,(0,l.createElement)(x,{className:"ast-gradient-color-picker "+(astMetaParams.isWP_5_9?"ast-gradient-ui":""),gradients:[],value:this.props.overlayGradient||"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",onChange:c=>this.onChangeOverlayGradientComplete(c)})):"classic"===c.name&&(t=(0,l.createElement)(l.Fragment,null,(0,l.createElement)(i.ColorPicker,{color:M(this.props.overlayColor,h),onChangeComplete:c=>this.onOverlayChangeComplete(c)}),(0,l.createElement)("button",{type:"button",onClick:()=>this.onChangeImageOptions("overlayColor","overlay-color",""),className:"ast-clear-btn-inside-picker components-button common components-circular-option-picker__clear is-secondary is-small"},(0,z.__)("Clear","astra"))))),(0,l.createElement)("div",null,t)}))))))}}H.propTypes={color:d().string,usePalette:d().bool,palette:d().string,presetColors:d().object,onChangeComplete:d().func,onPaletteChangeComplete:d().func,onChangeOverlayGradientComplete:d().func,onChange:d().func,customizer:d().object};var V=H;const u=c=>{const{metavalue:t}=c;let v=c.control.default;const[s,e]=(0,h.useState)({value:t}),a=l=>{e((c=>({...c,value:l}))),c.control.setMetaFieldValue(l,c.control.controlName)},w=l=>{let t={...c.metavalue};if(!s.value[l]["background-type"]){let c={...t[l]};s.value[l]["background-color"]&&(c["background-type"]="color",t[l]=c,a(t),s.value[l]["background-color"].includes("gradient")&&(c["background-type"]="gradient",t[l]=c,a(t))),s.value[l]["background-image"]&&(c["background-type"]="image",t[l]=c,a(t))}};(0,h.useEffect)((()=>{let c=["desktop","mobile","tablet"];for(let l of c)w(l)}),[]);const g=c=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(V,{color:void 0!==s.value[c]["background-color"]&&s.value[c]["background-color"]?s.value[c]["background-color"]:"",onChangeComplete:(l,t)=>p(l,c,t),media:void 0!==s.value[c]["background-media"]&&s.value[c]["background-media"]?s.value[c]["background-media"]:"",backgroundImage:void 0!==s.value[c]["background-image"]&&s.value[c]["background-image"]?s.value[c]["background-image"]:"",backgroundAttachment:void 0!==s.value[c]["background-attachment"]&&s.value[c]["background-attachment"]?s.value[c]["background-attachment"]:"",backgroundPosition:void 0!==s.value[c]["background-position"]&&s.value[c]["background-position"]?s.value[c]["background-position"]:"",backgroundRepeat:void 0!==s.value[c]["background-repeat"]&&s.value[c]["background-repeat"]?s.value[c]["background-repeat"]:"",backgroundSize:void 0!==s.value[c]["background-size"]&&s.value[c]["background-size"]?s.value[c]["background-size"]:"",onSelectImage:(l,t)=>((c,l,t)=>{let h={...s.value},v={...h[l]};v["background-image"]=c.url,v["background-media"]=toString(c.id),v["background-type"]=t,h[l]=v,a(h)})(l,c,t),onChangeImageOptions:(l,t,h)=>((c,l,t,h)=>{let v={...s.value},e={...v[t]};e[c]=l,e["background-type"]=h,v[t]=e,a(v)})(l,t,c,h),backgroundType:void 0!==s.value[c]["background-type"]&&s.value[c]["background-type"]?s.value[c]["background-type"]:"color",overlayType:void 0!==s.value[c]["overlay-type"]&&s.value[c]["overlay-type"]?s.value[c]["overlay-type"]:"none",overlayColor:void 0!==s.value[c]["overlay-color"]&&s.value[c]["overlay-color"]?s.value[c]["overlay-color"]:"",overlayOpacity:void 0!==s.value[c]["overlay-opacity"]&&s.value[c]["overlay-opacity"]?s.value[c]["overlay-opacity"]:"",overlayGradient:void 0!==s.value[c]["overlay-gradient"]&&s.value[c]["overlay-gradient"]?s.value[c]["overlay-gradient"]:"",allowGradient:!0,allowImage:!0})),p=(c,l,t)=>{let h="";c&&(h="string"==typeof c||c instanceof String?c:void 0!==c.rgb&&void 0!==c.rgb.a&&1!==c.rgb.a?`rgba(${c.rgb.r},${c.rgb.g},${c.rgb.b},${c.rgb.a})`:c.hex);let v={...s.value},e={...v[l]};e["background-color"]=h,e["background-type"]=t,v[l]=e,a(v)},{label:r,description:m}=c.control;let d=null,C=null,x=null,M=null;const H=n(o["desktop-responsive"]),u=n(o["tablet-responsive"]),L=n(o["mobile-responsive"]);d=r&&""!==r&&void 0!==r?(0,l.createElement)("span",null,r):(0,l.createElement)("span",null,(0,z.__)("Background","astra")),m&&(C=(0,l.createElement)("span",{className:"description customize-control-description"},m));const f=!(void 0===c.control.ignore_responsive_btns||!c.control.ignore_responsive_btns),[B,E]=(0,h.useState)("desktop"),Z=c=>{E("desktop"===c?"tablet":"tablet"===c?"mobile":"desktop")};return x=(0,l.createElement)("ul",{className:"ast-responsive-btns"},(0,l.createElement)("li",{className:"desktop "+("desktop"===B?"active":""),onClick:()=>Z("desktop")},(0,l.createElement)("button",{type:"button",className:"preview-desktop","data-device":"desktop"},H)),(0,l.createElement)("li",{className:"tablet "+("tablet"===B?"active":""),onClick:()=>Z("tablet")},(0,l.createElement)("button",{type:"button",className:"preview-tablet","data-device":"tablet"},u)),(0,l.createElement)("li",{className:"mobile "+("mobile"===B?"active":""),onClick:()=>Z("mobile")},(0,l.createElement)("button",{type:"button",className:"preview-mobile","data-device":"mobile"},L))),M=(0,l.createElement)("div",{className:"background-wrapper"},(0,l.createElement)("div",{className:"background-container desktop "+("desktop"===B?"active":"")},g("desktop")),(0,l.createElement)("div",{className:"background-container tablet "+("tablet"===B?"active":"")},g("tablet")),(0,l.createElement)("div",{className:"background-container mobile "+("mobile"===B?"active":"")},g("mobile"))),(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"ast-bg-control-left"},(0,l.createElement)("label",null,d,C),!f&&x),(0,l.createElement)("div",{className:"ast-bg-control-right"},(()=>{let c=!0,t=["desktop","mobile","tablet"];for(let l of t)s.value[l]["background-color"]===v[l]["background-image"]&&s.value[l]["background-image"]===v[l]["background-color"]&&s.value[l]["background-media"]===v[l]["background-media"]||(c=!1);return(0,l.createElement)("div",{className:"ast-color-btn-reset-wrap"},(0,l.createElement)("button",{className:"ast-reset-btn components-button components-circular-option-picker__clear is-secondary is-small",disabled:c,onClick:c=>{c.preventDefault();let l=JSON.parse(JSON.stringify(v));if(void 0!==l&&""!==l)for(let c in l)void 0!==l[c]["background-color"]&&""!==l[c]["background-color"]||(l[c]["background-color"]=""),void 0!==l[c]["background-image"]&&""!==l[c]["background-image"]||(l[c]["background-image"]=""),void 0!==l[c]["background-media"]&&""!==l[c]["background-media"]||(l[c]["background-media"]="");a(l)}},(0,l.createElement)(i.Dashicon,{icon:"image-rotate"})))})(),(0,l.createElement)("div",{className:"customize-control-content"},M)))};u.propTypes={control:d().object.isRequired};var L=React.memo(u);const{__:__}=wp.i18n;var f=(0,s.compose)((0,e.withSelect)((c=>{const l=c("core/editor").getEditedPostAttribute("meta"),t=c("core/editor").getCurrentPostAttribute("meta");return{meta:{...t,...l},oldMeta:t}})),(0,e.withDispatch)((c=>({setMetaFieldValue:(l,t)=>c("core/editor").editPost({meta:{[t]:l}})}))))((c=>{const t=n(o["meta-popup-icon"]),s=n(o["astra-brand-icon"]),e=n(o["astra-brand-icon"]),[a,r]=(0,h.useState)(!1),m=()=>r(!1),[d,z]=(0,h.useState)(!1),C=astMetaParams.is_hide_content_layout_sidebar,x=(0,l.createElement)("tr",{className:"ast-extra-spacing"},(0,l.createElement)("td",{className:"ast-border"}),(0,l.createElement)("td",null)),M=(0,l.createElement)("tr",{className:"ast-extra-spacing ast-extra-spacing-bottom"},(0,l.createElement)("td",{className:"ast-border"}),(0,l.createElement)("td",null)),H=n(o["astra-meta-settings"]),V=Object.entries(astMetaParams.sidebar_options).map((c=>{let[l,t]=c;return{label:t,value:l}})),u=Object.entries(astMetaParams.content_layout).map((c=>{let[l,t]=c;return{label:t,value:l}})),f=Object.entries(astMetaParams.content_style).map((c=>{let[l,t]=c;return{label:t,value:l}})),B=Object.entries(astMetaParams.content_style).map((c=>{let[l,t]=c;return{label:t,value:l}})),E=Object.entries(astMetaParams.header_options).map((c=>{let[l,t]=c;return{label:t,value:l}})),Z=Object.entries(astMetaParams.page_header_options).map((c=>{let[l,t]=c;return{label:t,value:l}})),A=Object.entries(astMetaParams.page_bg_toggle_options).map((c=>{let[l,t]=c;return{label:t,value:l}})),b=Object.entries(astMetaParams.disable_sections).map((t=>{let[h,v]=t,s="disabled"===c.meta[v.key];return(0,l.createElement)(w,{label:v.label,value:s,key:h,name:v.key,onChange:l=>{c.setMetaFieldValue(l,v.key)}})})),y=Object.entries(astMetaParams.headers_meta_options).map((t=>{let[h,v]=t,s="disabled"===c.meta[v.key];return(0,l.createElement)(w,{label:v.label,value:s,key:h,name:v.key,onChange:l=>{c.setMetaFieldValue(l,v.key)}})})),k=Object.entries(astMetaParams.sticky_header_options).map((t=>{let[h,v]=t,s="disabled"===c.meta[v.key];return(0,l.createElement)(w,{label:v.label,value:s,key:h,name:v.key,onChange:l=>{c.setMetaFieldValue(l,v.key)}})}));return(0,h.useEffect)((()=>{if(astMetaParams.v4_1_6_migration&&void 0!==c.meta["astra-migrate-meta-layouts"]&&"set"!==c.meta["astra-migrate-meta-layouts"]){c.setMetaFieldValue("set","astra-migrate-meta-layouts");const l=c.meta["site-content-layout"],t={"plain-container":["normal-width-container","unboxed","unboxed"],"boxed-container":["normal-width-container","boxed","boxed"],"content-boxed-container":["normal-width-container","boxed","unboxed"],"page-builder":["full-width-container","unboxed","unboxed"],"narrow-container":["narrow-width-container","unboxed","unboxed"],default:["default","default","default"]},[h,v,s]=t[l]||t.default;c.setMetaFieldValue(h,"ast-site-content-layout"),c.setMetaFieldValue(v,"site-content-style"),c.setMetaFieldValue(s,"site-sidebar-style")}}),[c.meta["astra-migrate-meta-layouts"]]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.PluginSidebarMoreMenuItem,{target:"theme-meta-panel",icon:H},astMetaParams.title),(0,l.createElement)(v.PluginSidebar,{isPinnable:!0,icon:H,name:"theme-meta-panel",title:astMetaParams.title},(0,l.createElement)("div",{className:"ast-sidebar-container components-panel__body is-opened",id:"astra_settings_meta_box"},!C&&(0,l.createElement)(i.PanelBody,{title:__("Container","astra"),initialOpen:!0},(0,l.createElement)("label",{id:"ast-label-container-layout",className:"ast-sub-section-title"},__("Container Layout","astra")),(0,l.createElement)("div",{className:"ast-sidebar-layout-meta-wrap components-base-control__field"},(0,l.createElement)(g,{metavalue:void 0!==c.meta["ast-site-content-layout"]&&""!==c.meta["ast-site-content-layout"]?c.meta["ast-site-content-layout"]:"default",choices:u,id:"ast-site-content-layout",onChange:l=>{"narrow-container"===l&&c.setMetaFieldValue("no-sidebar","site-sidebar-layout"),c.setMetaFieldValue(l,"ast-site-content-layout")}})),(0,l.createElement)("label",{id:"ast-label-container-style",className:"ast-sub-section-title"},__("Container Style","astra")),(0,l.createElement)("div",{className:"ast-sidebar-layout-meta-wrap components-base-control__field"},(0,l.createElement)(p,{metavalue:void 0!==c.meta["site-content-style"]&&""!==c.meta["site-content-style"]?c.meta["site-content-style"]:"default",choices:f,id:"site-content-style",onChange:l=>{c.setMetaFieldValue(l,"site-content-style")}})),(0,l.createElement)("p",{className:"description"},__("Container style will apply only when layout is set to either normal or narrow.","astra"))),(0,l.createElement)(i.PanelBody,{title:__("Sidebar","astra"),initialOpen:!1},(0,l.createElement)("label",{id:"ast-label-sidebar-layout",className:"ast-sub-section-title"},__("Sidebar Layout","astra")),(0,l.createElement)("div",{className:"ast-sidebar-layout-meta-wrap components-base-control__field"},(0,l.createElement)(g,{metavalue:void 0!==c.meta["site-sidebar-layout"]&&""!==c.meta["site-sidebar-layout"]?c.meta["site-sidebar-layout"]:"default",choices:V,id:"site-sidebar-layout",onChange:l=>{c.setMetaFieldValue(l,"site-sidebar-layout")}})),!astMetaParams.v4_1_6_migration&&(0,l.createElement)("p",{className:"description"},__("Sidebar will only apply when container layout is set to normal.","astra")),(0,l.createElement)("label",{id:"ast-label-sidebar-style",className:"ast-sub-section-title"},__("Sidebar Style","astra")),(0,l.createElement)("div",{className:"ast-sidebar-layout-meta-wrap components-base-control__field"},(0,l.createElement)(p,{metavalue:void 0!==c.meta["site-sidebar-style"]&&""!==c.meta["site-sidebar-style"]?c.meta["site-sidebar-style"]:"default",choices:B,id:"site-sidebar-style",onChange:l=>{c.setMetaFieldValue(l,"site-sidebar-style")}}))),!C&&(0,l.createElement)(i.PanelBody,{title:__("Disable Elements","astra"),initialOpen:!1},(0,l.createElement)("div",{className:"ast-sidebar-layout-meta-wrap components-base-control__field"},b)),C&&(0,l.createElement)(i.PanelBody,{title:__("Disable Elements","astra"),initialOpen:!0},(0,l.createElement)("div",{className:"ast-sidebar-layout-meta-wrap components-base-control__field"},b)),!C&&void 0!==c.meta["ast-global-header-display"]&&"disabled"!==c.meta["ast-global-header-display"]&&(0,l.createElement)("div",{className:"ast-custom-layout-panel components-panel__body"},(0,l.createElement)("h2",{className:"components-panel__body-title"},(0,l.createElement)("button",{className:"components-button components-panel__body-toggle",onClick:()=>r(!0)},(0,l.createElement)("span",{className:"ast-title-container"},(0,l.createElement)("div",{className:"ast-title"}," ",__("Advanced Settings","astra"))),t))),a&&(0,l.createElement)(i.Modal,{title:__("Advanced Settings","astra"),className:"ast-header-settings-modal",shouldCloseOnClickOutside:!1,onRequestClose:m,icon:e},(0,l.createElement)("div",{className:"ast-meta-settings-content"},(0,l.createElement)("table",{className:"ast-meta-settings-hook-table widefat"},(0,l.createElement)("tbody",null,x,(0,l.createElement)("tr",{className:"ast-advanced-hook-row"},(0,l.createElement)("td",{className:"ast-advanced-hook-row-heading"},(0,l.createElement)("label",null," ",__("Header Rows","astra"))),(0,l.createElement)("td",{className:"ast-advanced-hook-row-content"},(0,l.createElement)("section",{className:"components-base-control__field"},y))),M,x,(0,l.createElement)("tr",{className:"ast-advanced-hook-row"},(0,l.createElement)("td",{className:"ast-advanced-hook-row-heading"},(0,l.createElement)("label",null," ",astMetaParams.transparent_header_title)),(0,l.createElement)("td",{className:"ast-advanced-hook-row-content"},(0,l.createElement)("section",null,(0,l.createElement)("div",{className:"components-base-control__field"},(0,l.createElement)(p,{metavalue:void 0!==c.meta["theme-transparent-header-meta"]&&""!==c.meta["theme-transparent-header-meta"]?c.meta["theme-transparent-header-meta"]:"default",choices:E,id:"theme-transparent-header-meta",onChange:l=>{c.setMetaFieldValue(l,"theme-transparent-header-meta")}}))))),"disabled"!==c.meta["ast-main-header-display"]&&astMetaParams.is_addon_activated&&astMetaParams.sticky_addon_enabled&&(0,l.createElement)(l.Fragment,null,M,x,(0,l.createElement)("tr",{className:"ast-advanced-hook-row"},(0,l.createElement)("td",{className:"ast-advanced-hook-row-heading"},(0,l.createElement)("label",null," ",astMetaParams.sticky_header_title)),(0,l.createElement)("td",{className:"ast-advanced-hook-row-content"},(0,l.createElement)("section",null,(0,l.createElement)(p,{metavalue:void 0!==c.meta["stick-header-meta"]&&""!==c.meta["stick-header-meta"]?c.meta["stick-header-meta"]:"default",choices:E,id:"stick-header-meta",onChange:l=>{c.setMetaFieldValue(l,"stick-header-meta")}}))))),astMetaParams.is_addon_activated&&astMetaParams.sticky_addon_enabled&&"enabled"==c.meta["stick-header-meta"]&&(0,l.createElement)(l.Fragment,null,x,(0,l.createElement)("tr",{className:"ast-advanced-hook-row"},(0,l.createElement)("td",{className:"ast-advanced-hook-row-heading"},(0,l.createElement)("label",null," ",astMetaParams.sticky_header_title)),(0,l.createElement)("td",{className:"ast-advanced-hook-row-content"},(0,l.createElement)("section",null,(0,l.createElement)("div",{className:"ast-sticky-header-options components-base-control__field"},k))))),astMetaParams.is_addon_activated&&astMetaParams.color_addon_enabled&&(0,l.createElement)(l.Fragment,null,M,x,(0,l.createElement)("tr",{className:"ast-advanced-hook-row"},(0,l.createElement)("td",{className:"ast-advanced-hook-row-heading ast-show-help-text-container"},(0,l.createElement)("label",null," ",astMetaParams.ast_page_bg_title),(0,l.createElement)(l.Fragment,null,(0,l.createElement)("i",{className:"ast-control-tooltip dashicons dashicons-editor-help"}),void 0!==c.meta["ast-page-background-enabled"]&&"enabled"===c.meta["ast-page-background-enabled"]?(0,l.createElement)("span",{className:"ast-dashicons-custom-tooltip"}," ",astMetaParams.surface_color_help_text):(0,l.createElement)("span",{className:"ast-dashicons-custom-tooltip",style:{bottom:"15px",top:"unset"}}," ",astMetaParams.surface_color_help_text))),(0,l.createElement)("td",{className:"ast-advanced-hook-row-content"},(0,l.createElement)("section",null,(0,l.createElement)("div",{className:"components-base-control__field"},(0,l.createElement)(p,{metavalue:void 0!==c.meta["ast-page-background-enabled"]&&""!==c.meta["ast-page-background-enabled"]?c.meta["ast-page-background-enabled"]:"default",choices:A,id:"ast-page-background-enabled",onChange:l=>{c.setMetaFieldValue(l,"ast-page-background-enabled")}})),void 0!==c.meta["ast-page-background-enabled"]&&"enabled"===c.meta["ast-page-background-enabled"]&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{id:"customize-control-astra-settings-site-layout-outside-bg-obj-responsive",className:"customize-control customize-control-ast-responsive-background"},(0,l.createElement)(L,{metavalue:void 0!==c.meta["ast-page-background-meta"]&&""!==c.meta["ast-page-background-meta"]?c.meta["ast-page-background-meta"]:"default",control:{controlName:"ast-page-background-meta",default:astMetaParams.site_page_bg_meta_default,ignore_responsive_btns:!1,setMetaFieldValue:c.setMetaFieldValue,label:astMetaParams.page_bg_dynamic_title,description:""},id:"ast-page-background-meta"})),(0,l.createElement)("div",{id:"customize-control-astra-settings-content-bg-obj-responsive",className:"customize-control customize-control-ast-responsive-background"},(0,l.createElement)(L,{metavalue:void 0!==c.meta["ast-content-background-meta"]&&""!==c.meta["ast-content-background-meta"]?c.meta["ast-content-background-meta"]:"default",control:{controlName:"ast-content-background-meta",default:astMetaParams.content_page_bg_meta_default,ignore_responsive_btns:!1,setMetaFieldValue:c.setMetaFieldValue,label:"Content Background",description:""},id:"ast-content-background-meta"})))))),x)))),(0,l.createElement)("div",{className:"ast-cl-footer-container"},(0,l.createElement)("div",{className:"ast-button-container"},(0,l.createElement)("span",{className:"ast-cl-popup-notice"},(0,l.createElement)("i",{className:"dashicons dashicons-warning"}),__("Make sure to update your post for changes to take effect.","astra")," "),(0,l.createElement)("button",{className:"button button-default",onClick:m}," ",__("Return To Post","astra"))))),astMetaParams.is_bb_themer_layout&&astMetaParams.is_addon_activated&&astMetaParams.page_header_availability&&(0,l.createElement)(i.PanelBody,{title:astMetaParams.page_header_title,initialOpen:!1},(0,l.createElement)("div",{className:"ast-sidebar-layout-meta-wrap components-base-control__field"},(0,l.createElement)(i.SelectControl,{value:void 0!==c.meta["adv-header-id-meta"]&&""!==c.meta["adv-header-id-meta"]?c.meta["adv-header-id-meta"]:"",options:Z.reverse(),onChange:l=>{c.setMetaFieldValue(l,"adv-header-id-meta")}})),(0,l.createElement)("br",null),(0,l.createElement)("p",{className:"description"},__("If you would like to apply custom header for this page, select the one from the list above. Page headers can be created and customized from ","astra"),(0,l.createElement)("a",{href:astMetaParams.page_header_edit_link,target:"__blank"},__("here.","astra")))),!astMetaParams.is_addon_activated&&astMetaParams.show_upgrade_notice&&(0,l.createElement)("div",{className:"ast-pro-upgrade-cta-wrapper"},s,(0,l.createElement)("p",{className:"ast-upgrade-description"}," ",__("Unlock your full design potential and build a website to be proud of with Astra Pro.","astra")," "),(0,l.createElement)("a",{href:astMetaParams.upgrade_pro_link,className:"ast-pro-upgrade-link",target:"_blank"}," ",__("Upgrade Now","astra")," ")))))})),B=window.wp.hooks;const{__:E}=wp.i18n;if(astMetaParams.register_astra_metabox){(0,c.registerPlugin)("astra-theme-layout",{render:f});class t extends l.Component{render(){const{meta:c,setMetaFieldValue:t}=this.props;let h="disabled"===c["ast-featured-img"];return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(i.PanelRow,null,(0,l.createElement)(i.CheckboxControl,{label:E("Show featured image in the posts lists only, but hide it in the single post view.","astra"),className:"ast-featured-img",checked:h,onChange:c=>{t(c=!0===c?"disabled":"","ast-featured-img")}})))}}const h=(0,s.compose)([(0,e.withSelect)((c=>{const l=c("core/editor").getEditedPostAttribute("meta"),t=c("core/editor").getCurrentPostAttribute("meta");return{meta:{...t,...l},oldMeta:t}})),(0,e.withDispatch)((c=>({setMetaFieldValue:(l,t)=>c("core/editor").editPost({meta:{[t]:l}})})))])(t),v=function(c){return function(t){return(0,l.createElement)(l.Fragment,{},null,(0,l.createElement)(c,t),(0,l.createElement)(h))}};(0,B.addFilter)("editor.PostFeaturedImage","astra/disable-featured-image",v)}}()}();PK�����zmZarray("variants"=>array("regular","italic"),"category"=>"sans-serif")),array("ADLaM Display"=>array("variants"=>array("regular"),"category"=>"display")),array("AR One Sans"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Abel"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Abhaya Libre"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"serif")),array("Aboreto"=>array("variants"=>array("regular"),"category"=>"display")),array("Abril Fatface"=>array("variants"=>array("regular"),"category"=>"display")),array("Abyssinica SIL"=>array("variants"=>array("regular"),"category"=>"serif")),array("Aclonica"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Acme"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Actor"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Adamina"=>array("variants"=>array("regular"),"category"=>"serif")),array("Advent Pro"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Afacad"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"sans-serif")),array("Afacad Flux"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Agbalumo"=>array("variants"=>array("regular"),"category"=>"display")),array("Agdasima"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Agu Display"=>array("variants"=>array("regular"),"category"=>"display")),array("Aguafina Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Akatab"=>array("variants"=>array("regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Akaya Kanadaka"=>array("variants"=>array("regular"),"category"=>"display")),array("Akaya Telivigala"=>array("variants"=>array("regular"),"category"=>"display")),array("Akronim"=>array("variants"=>array("regular"),"category"=>"display")),array("Akshar"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Aladin"=>array("variants"=>array("regular"),"category"=>"display")),array("Alata"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Alatsi"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Albert Sans"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Aldrich"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Alef"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Alegreya"=>array("variants"=>array("regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Alegreya SC"=>array("variants"=>array("regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"),"category"=>"serif")),array("Alegreya Sans"=>array("variants"=>array("100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Alegreya Sans SC"=>array("variants"=>array("100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Aleo"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Alex Brush"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Alexandria"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Alfa Slab One"=>array("variants"=>array("regular"),"category"=>"display")),array("Alice"=>array("variants"=>array("regular"),"category"=>"serif")),array("Alike"=>array("variants"=>array("regular"),"category"=>"serif")),array("Alike Angular"=>array("variants"=>array("regular"),"category"=>"serif")),array("Alkalami"=>array("variants"=>array("regular"),"category"=>"serif")),array("Alkatra"=>array("variants"=>array("regular","500","600","700"),"category"=>"display")),array("Allan"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Allerta"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Allerta Stencil"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Allison"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Allura"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Almarai"=>array("variants"=>array("300","regular","700","800"),"category"=>"sans-serif")),array("Almendra"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"serif")),array("Almendra Display"=>array("variants"=>array("regular"),"category"=>"display")),array("Almendra SC"=>array("variants"=>array("regular"),"category"=>"serif")),array("Alumni Sans"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Alumni Sans Collegiate One"=>array("variants"=>array("regular","italic"),"category"=>"sans-serif")),array("Alumni Sans Inline One"=>array("variants"=>array("regular","italic"),"category"=>"display")),array("Alumni Sans Pinstripe"=>array("variants"=>array("regular","italic"),"category"=>"sans-serif")),array("Amarante"=>array("variants"=>array("regular"),"category"=>"display")),array("Amaranth"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Amatic SC"=>array("variants"=>array("regular","700"),"category"=>"handwriting")),array("Amethysta"=>array("variants"=>array("regular"),"category"=>"serif")),array("Amiko"=>array("variants"=>array("regular","600","700"),"category"=>"sans-serif")),array("Amiri"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"serif")),array("Amiri Quran"=>array("variants"=>array("regular"),"category"=>"serif")),array("Amita"=>array("variants"=>array("regular","700"),"category"=>"handwriting")),array("Anaheim"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"sans-serif")),array("Andada Pro"=>array("variants"=>array("regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"),"category"=>"serif")),array("Andika"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Anek Bangla"=>array("variants"=>array("100","200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Anek Devanagari"=>array("variants"=>array("100","200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Anek Gujarati"=>array("variants"=>array("100","200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Anek Gurmukhi"=>array("variants"=>array("100","200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Anek Kannada"=>array("variants"=>array("100","200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Anek Latin"=>array("variants"=>array("100","200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Anek Malayalam"=>array("variants"=>array("100","200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Anek Odia"=>array("variants"=>array("100","200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Anek Tamil"=>array("variants"=>array("100","200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Anek Telugu"=>array("variants"=>array("100","200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Angkor"=>array("variants"=>array("regular"),"category"=>"display")),array("Annapurna SIL"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Annie Use Your Telescope"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Anonymous Pro"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"monospace")),array("Anta"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Antic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Antic Didone"=>array("variants"=>array("regular"),"category"=>"serif")),array("Antic Slab"=>array("variants"=>array("regular"),"category"=>"serif")),array("Anton"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Anton SC"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Antonio"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"sans-serif")),array("Anuphan"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"sans-serif")),array("Anybody"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"display")),array("Aoboshi One"=>array("variants"=>array("regular"),"category"=>"serif")),array("Arapey"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Arbutus"=>array("variants"=>array("regular"),"category"=>"serif")),array("Arbutus Slab"=>array("variants"=>array("regular"),"category"=>"serif")),array("Architects Daughter"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Archivo"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Archivo Black"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Archivo Narrow"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"sans-serif")),array("Are You Serious"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Aref Ruqaa"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Aref Ruqaa Ink"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Arima"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"display")),array("Arimo"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"sans-serif")),array("Arizonia"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Armata"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Arsenal"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Arsenal SC"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Artifika"=>array("variants"=>array("regular"),"category"=>"serif")),array("Arvo"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"serif")),array("Arya"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Asap"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Asap Condensed"=>array("variants"=>array("200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Asar"=>array("variants"=>array("regular"),"category"=>"serif")),array("Asset"=>array("variants"=>array("regular"),"category"=>"display")),array("Assistant"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Astloch"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Asul"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Athiti"=>array("variants"=>array("200","300","regular","500","600","700"),"category"=>"sans-serif")),array("Atkinson Hyperlegible"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Atma"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"display")),array("Atomic Age"=>array("variants"=>array("regular"),"category"=>"display")),array("Aubrey"=>array("variants"=>array("regular"),"category"=>"display")),array("Audiowide"=>array("variants"=>array("regular"),"category"=>"display")),array("Autour One"=>array("variants"=>array("regular"),"category"=>"display")),array("Average"=>array("variants"=>array("regular"),"category"=>"serif")),array("Average Sans"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Averia Gruesa Libre"=>array("variants"=>array("regular"),"category"=>"display")),array("Averia Libre"=>array("variants"=>array("300","300italic","regular","italic","700","700italic"),"category"=>"display")),array("Averia Sans Libre"=>array("variants"=>array("300","300italic","regular","italic","700","700italic"),"category"=>"display")),array("Averia Serif Libre"=>array("variants"=>array("300","300italic","regular","italic","700","700italic"),"category"=>"display")),array("Azeret Mono"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"monospace")),array("B612"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("B612 Mono"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"monospace")),array("BIZ UDGothic"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("BIZ UDMincho"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("BIZ UDPGothic"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("BIZ UDPMincho"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Babylonica"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Bacasime Antique"=>array("variants"=>array("regular"),"category"=>"serif")),array("Bad Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Badeen Display"=>array("variants"=>array("regular"),"category"=>"display")),array("Bagel Fat One"=>array("variants"=>array("regular"),"category"=>"display")),array("Bahiana"=>array("variants"=>array("regular"),"category"=>"display")),array("Bahianita"=>array("variants"=>array("regular"),"category"=>"display")),array("Bai Jamjuree"=>array("variants"=>array("200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"sans-serif")),array("Bakbak One"=>array("variants"=>array("regular"),"category"=>"display")),array("Ballet"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Baloo 2"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"display")),array("Baloo Bhai 2"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"display")),array("Baloo Bhaijaan 2"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"display")),array("Baloo Bhaina 2"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"display")),array("Baloo Chettan 2"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"display")),array("Baloo Da 2"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"display")),array("Baloo Paaji 2"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"display")),array("Baloo Tamma 2"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"display")),array("Baloo Tammudu 2"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"display")),array("Baloo Thambi 2"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"display")),array("Balsamiq Sans"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"display")),array("Balthazar"=>array("variants"=>array("regular"),"category"=>"serif")),array("Bangers"=>array("variants"=>array("regular"),"category"=>"display")),array("Barlow"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Barlow Condensed"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Barlow Semi Condensed"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Barriecito"=>array("variants"=>array("regular"),"category"=>"display")),array("Barrio"=>array("variants"=>array("regular"),"category"=>"display")),array("Basic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Baskervville"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Baskervville SC"=>array("variants"=>array("regular"),"category"=>"serif")),array("Battambang"=>array("variants"=>array("100","300","regular","700","900"),"category"=>"display")),array("Baumans"=>array("variants"=>array("regular"),"category"=>"display")),array("Bayon"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Be Vietnam Pro"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Beau Rivage"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Bebas Neue"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Beiruti"=>array("variants"=>array("200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Belanosima"=>array("variants"=>array("regular","600","700"),"category"=>"sans-serif")),array("Belgrano"=>array("variants"=>array("regular"),"category"=>"serif")),array("Bellefair"=>array("variants"=>array("regular"),"category"=>"serif")),array("Belleza"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Bellota"=>array("variants"=>array("300","300italic","regular","italic","700","700italic"),"category"=>"display")),array("Bellota Text"=>array("variants"=>array("300","300italic","regular","italic","700","700italic"),"category"=>"display")),array("BenchNine"=>array("variants"=>array("300","regular","700"),"category"=>"sans-serif")),array("Benne"=>array("variants"=>array("regular"),"category"=>"serif")),array("Bentham"=>array("variants"=>array("regular"),"category"=>"serif")),array("Berkshire Swash"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Besley"=>array("variants"=>array("regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Beth Ellen"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Bevan"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("BhuTuka Expanded One"=>array("variants"=>array("regular"),"category"=>"serif")),array("Big Shoulders Display"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"display")),array("Big Shoulders Inline Display"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"display")),array("Big Shoulders Inline Text"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"display")),array("Big Shoulders Stencil Display"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"display")),array("Big Shoulders Stencil Text"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"display")),array("Big Shoulders Text"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"display")),array("Bigelow Rules"=>array("variants"=>array("regular"),"category"=>"display")),array("Bigshot One"=>array("variants"=>array("regular"),"category"=>"display")),array("Bilbo"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Bilbo Swash Caps"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("BioRhyme"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"serif")),array("BioRhyme Expanded"=>array("variants"=>array("200","300","regular","700","800"),"category"=>"serif")),array("Birthstone"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Birthstone Bounce"=>array("variants"=>array("regular","500"),"category"=>"handwriting")),array("Biryani"=>array("variants"=>array("200","300","regular","600","700","800","900"),"category"=>"sans-serif")),array("Bitter"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Black And White Picture"=>array("variants"=>array("regular"),"category"=>"display")),array("Black Han Sans"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Black Ops One"=>array("variants"=>array("regular"),"category"=>"display")),array("Blaka"=>array("variants"=>array("regular"),"category"=>"display")),array("Blaka Hollow"=>array("variants"=>array("regular"),"category"=>"display")),array("Blaka Ink"=>array("variants"=>array("regular"),"category"=>"display")),array("Blinker"=>array("variants"=>array("100","200","300","regular","600","700","800","900"),"category"=>"sans-serif")),array("Bodoni Moda"=>array("variants"=>array("regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Bodoni Moda SC"=>array("variants"=>array("regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Bokor"=>array("variants"=>array("regular"),"category"=>"display")),array("Bona Nova"=>array("variants"=>array("regular","italic","700"),"category"=>"serif")),array("Bona Nova SC"=>array("variants"=>array("regular","italic","700"),"category"=>"serif")),array("Bonbon"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Bonheur Royale"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Boogaloo"=>array("variants"=>array("regular"),"category"=>"display")),array("Borel"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Bowlby One"=>array("variants"=>array("regular"),"category"=>"display")),array("Bowlby One SC"=>array("variants"=>array("regular"),"category"=>"display")),array("Braah One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Brawler"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Bree Serif"=>array("variants"=>array("regular"),"category"=>"serif")),array("Bricolage Grotesque"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Bruno Ace"=>array("variants"=>array("regular"),"category"=>"display")),array("Bruno Ace SC"=>array("variants"=>array("regular"),"category"=>"display")),array("Brygada 1918"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"serif")),array("Bubblegum Sans"=>array("variants"=>array("regular"),"category"=>"display")),array("Bubbler One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Buda"=>array("variants"=>array("300"),"category"=>"display")),array("Buenard"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Bungee"=>array("variants"=>array("regular"),"category"=>"display")),array("Bungee Hairline"=>array("variants"=>array("regular"),"category"=>"display")),array("Bungee Inline"=>array("variants"=>array("regular"),"category"=>"display")),array("Bungee Outline"=>array("variants"=>array("regular"),"category"=>"display")),array("Bungee Shade"=>array("variants"=>array("regular"),"category"=>"display")),array("Bungee Spice"=>array("variants"=>array("regular"),"category"=>"display")),array("Bungee Tint"=>array("variants"=>array("regular"),"category"=>"display")),array("Butcherman"=>array("variants"=>array("regular"),"category"=>"display")),array("Butterfly Kids"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Cabin"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"sans-serif")),array("Cabin Condensed"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Cabin Sketch"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Cactus Classical Serif"=>array("variants"=>array("regular"),"category"=>"serif")),array("Caesar Dressing"=>array("variants"=>array("regular"),"category"=>"display")),array("Cagliostro"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Cairo"=>array("variants"=>array("200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Cairo Play"=>array("variants"=>array("200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Caladea"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"serif")),array("Calistoga"=>array("variants"=>array("regular"),"category"=>"display")),array("Calligraffitti"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Cambay"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Cambo"=>array("variants"=>array("regular"),"category"=>"serif")),array("Candal"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Cantarell"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Cantata One"=>array("variants"=>array("regular"),"category"=>"serif")),array("Cantora One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Caprasimo"=>array("variants"=>array("regular"),"category"=>"display")),array("Capriola"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Caramel"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Carattere"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Cardo"=>array("variants"=>array("regular","italic","700"),"category"=>"serif")),array("Carlito"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Carme"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Carrois Gothic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Carrois Gothic SC"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Carter One"=>array("variants"=>array("regular"),"category"=>"display")),array("Castoro"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Castoro Titling"=>array("variants"=>array("regular"),"category"=>"display")),array("Catamaran"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Caudex"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"serif")),array("Caveat"=>array("variants"=>array("regular","500","600","700"),"category"=>"handwriting")),array("Caveat Brush"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Cedarville Cursive"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Ceviche One"=>array("variants"=>array("regular"),"category"=>"display")),array("Chakra Petch"=>array("variants"=>array("300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"sans-serif")),array("Changa"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Changa One"=>array("variants"=>array("regular","italic"),"category"=>"display")),array("Chango"=>array("variants"=>array("regular"),"category"=>"display")),array("Charis SIL"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"serif")),array("Charm"=>array("variants"=>array("regular","700"),"category"=>"handwriting")),array("Charmonman"=>array("variants"=>array("regular","700"),"category"=>"handwriting")),array("Chathura"=>array("variants"=>array("100","300","regular","700","800"),"category"=>"sans-serif")),array("Chau Philomene One"=>array("variants"=>array("regular","italic"),"category"=>"sans-serif")),array("Chela One"=>array("variants"=>array("regular"),"category"=>"display")),array("Chelsea Market"=>array("variants"=>array("regular"),"category"=>"display")),array("Chenla"=>array("variants"=>array("regular"),"category"=>"display")),array("Cherish"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Cherry Bomb One"=>array("variants"=>array("regular"),"category"=>"display")),array("Cherry Cream Soda"=>array("variants"=>array("regular"),"category"=>"display")),array("Cherry Swash"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Chewy"=>array("variants"=>array("regular"),"category"=>"display")),array("Chicle"=>array("variants"=>array("regular"),"category"=>"display")),array("Chilanka"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Chivo"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Chivo Mono"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"monospace")),array("Chocolate Classical Sans"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Chokokutai"=>array("variants"=>array("regular"),"category"=>"display")),array("Chonburi"=>array("variants"=>array("regular"),"category"=>"display")),array("Cinzel"=>array("variants"=>array("regular","500","600","700","800","900"),"category"=>"serif")),array("Cinzel Decorative"=>array("variants"=>array("regular","700","900"),"category"=>"display")),array("Clicker Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Climate Crisis"=>array("variants"=>array("regular"),"category"=>"display")),array("Coda"=>array("variants"=>array("regular","800"),"category"=>"display")),array("Codystar"=>array("variants"=>array("300","regular"),"category"=>"display")),array("Coiny"=>array("variants"=>array("regular"),"category"=>"display")),array("Combo"=>array("variants"=>array("regular"),"category"=>"display")),array("Comfortaa"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"display")),array("Comforter"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Comforter Brush"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Comic Neue"=>array("variants"=>array("300","300italic","regular","italic","700","700italic"),"category"=>"handwriting")),array("Coming Soon"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Comme"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Commissioner"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Concert One"=>array("variants"=>array("regular"),"category"=>"display")),array("Condiment"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Content"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Contrail One"=>array("variants"=>array("regular"),"category"=>"display")),array("Convergence"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Cookie"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Copse"=>array("variants"=>array("regular"),"category"=>"serif")),array("Corben"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Corinthia"=>array("variants"=>array("regular","700"),"category"=>"handwriting")),array("Cormorant"=>array("variants"=>array("300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"),"category"=>"serif")),array("Cormorant Garamond"=>array("variants"=>array("300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"serif")),array("Cormorant Infant"=>array("variants"=>array("300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"serif")),array("Cormorant SC"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"serif")),array("Cormorant Unicase"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"serif")),array("Cormorant Upright"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"serif")),array("Courgette"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Courier Prime"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"monospace")),array("Cousine"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"monospace")),array("Coustard"=>array("variants"=>array("regular","900"),"category"=>"serif")),array("Covered By Your Grace"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Crafty Girls"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Creepster"=>array("variants"=>array("regular"),"category"=>"display")),array("Crete Round"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Crimson Pro"=>array("variants"=>array("200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Crimson Text"=>array("variants"=>array("regular","italic","600","600italic","700","700italic"),"category"=>"serif")),array("Croissant One"=>array("variants"=>array("regular"),"category"=>"display")),array("Crushed"=>array("variants"=>array("regular"),"category"=>"display")),array("Cuprum"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"sans-serif")),array("Cute Font"=>array("variants"=>array("regular"),"category"=>"display")),array("Cutive"=>array("variants"=>array("regular"),"category"=>"serif")),array("Cutive Mono"=>array("variants"=>array("regular"),"category"=>"monospace")),array("DM Mono"=>array("variants"=>array("300","300italic","regular","italic","500","500italic"),"category"=>"monospace")),array("DM Sans"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("DM Serif Display"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("DM Serif Text"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Dai Banna SIL"=>array("variants"=>array("300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"serif")),array("Damion"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Dancing Script"=>array("variants"=>array("regular","500","600","700"),"category"=>"handwriting")),array("Danfo"=>array("variants"=>array("regular"),"category"=>"serif")),array("Dangrek"=>array("variants"=>array("regular"),"category"=>"display")),array("Darker Grotesque"=>array("variants"=>array("300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Darumadrop One"=>array("variants"=>array("regular"),"category"=>"display")),array("David Libre"=>array("variants"=>array("regular","500","700"),"category"=>"serif")),array("Dawning of a New Day"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Days One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Dekko"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Dela Gothic One"=>array("variants"=>array("regular"),"category"=>"display")),array("Delicious Handrawn"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Delius"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Delius Swash Caps"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Delius Unicase"=>array("variants"=>array("regular","700"),"category"=>"handwriting")),array("Della Respira"=>array("variants"=>array("regular"),"category"=>"serif")),array("Denk One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Devonshire"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Dhurjati"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Didact Gothic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Diphylleia"=>array("variants"=>array("regular"),"category"=>"serif")),array("Diplomata"=>array("variants"=>array("regular"),"category"=>"display")),array("Diplomata SC"=>array("variants"=>array("regular"),"category"=>"display")),array("Do Hyeon"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Dokdo"=>array("variants"=>array("regular"),"category"=>"display")),array("Domine"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Donegal One"=>array("variants"=>array("regular"),"category"=>"serif")),array("Dongle"=>array("variants"=>array("300","regular","700"),"category"=>"sans-serif")),array("Doppio One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Dorsa"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Dosis"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("DotGothic16"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Doto"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Dr Sugiyama"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Duru Sans"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("DynaPuff"=>array("variants"=>array("regular","500","600","700"),"category"=>"display")),array("Dynalight"=>array("variants"=>array("regular"),"category"=>"display")),array("EB Garamond"=>array("variants"=>array("regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"),"category"=>"serif")),array("Eagle Lake"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("East Sea Dokdo"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Eater"=>array("variants"=>array("regular"),"category"=>"display")),array("Economica"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Eczar"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"serif")),array("Edu AU VIC WA NT Arrows"=>array("variants"=>array("regular","500","600","700"),"category"=>"handwriting")),array("Edu AU VIC WA NT Dots"=>array("variants"=>array("regular","500","600","700"),"category"=>"handwriting")),array("Edu AU VIC WA NT Guides"=>array("variants"=>array("regular","500","600","700"),"category"=>"handwriting")),array("Edu AU VIC WA NT Hand"=>array("variants"=>array("regular","500","600","700"),"category"=>"handwriting")),array("Edu AU VIC WA NT Pre"=>array("variants"=>array("regular","500","600","700"),"category"=>"handwriting")),array("Edu NSW ACT Foundation"=>array("variants"=>array("regular","500","600","700"),"category"=>"handwriting")),array("Edu QLD Beginner"=>array("variants"=>array("regular","500","600","700"),"category"=>"handwriting")),array("Edu SA Beginner"=>array("variants"=>array("regular","500","600","700"),"category"=>"handwriting")),array("Edu TAS Beginner"=>array("variants"=>array("regular","500","600","700"),"category"=>"handwriting")),array("Edu VIC WA NT Beginner"=>array("variants"=>array("regular","500","600","700"),"category"=>"handwriting")),array("El Messiri"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Electrolize"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Elsie"=>array("variants"=>array("regular","900"),"category"=>"display")),array("Elsie Swash Caps"=>array("variants"=>array("regular","900"),"category"=>"display")),array("Emblema One"=>array("variants"=>array("regular"),"category"=>"display")),array("Emilys Candy"=>array("variants"=>array("regular"),"category"=>"display")),array("Encode Sans"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Encode Sans Condensed"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Encode Sans Expanded"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Encode Sans SC"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Encode Sans Semi Condensed"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Encode Sans Semi Expanded"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Engagement"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Englebert"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Enriqueta"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Ephesis"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Epilogue"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Erica One"=>array("variants"=>array("regular"),"category"=>"display")),array("Esteban"=>array("variants"=>array("regular"),"category"=>"serif")),array("Estonia"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Euphoria Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Ewert"=>array("variants"=>array("regular"),"category"=>"display")),array("Exo"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Exo 2"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Expletus Sans"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"display")),array("Explora"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Faculty Glyphic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Fahkwang"=>array("variants"=>array("200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"sans-serif")),array("Familjen Grotesk"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"sans-serif")),array("Fanwood Text"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Farro"=>array("variants"=>array("300","regular","500","700"),"category"=>"sans-serif")),array("Farsan"=>array("variants"=>array("regular"),"category"=>"display")),array("Fascinate"=>array("variants"=>array("regular"),"category"=>"display")),array("Fascinate Inline"=>array("variants"=>array("regular"),"category"=>"display")),array("Faster One"=>array("variants"=>array("regular"),"category"=>"display")),array("Fasthand"=>array("variants"=>array("regular"),"category"=>"display")),array("Fauna One"=>array("variants"=>array("regular"),"category"=>"serif")),array("Faustina"=>array("variants"=>array("300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"),"category"=>"serif")),array("Federant"=>array("variants"=>array("regular"),"category"=>"display")),array("Federo"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Felipa"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Fenix"=>array("variants"=>array("regular"),"category"=>"serif")),array("Festive"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Figtree"=>array("variants"=>array("300","regular","500","600","700","800","900","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Finger Paint"=>array("variants"=>array("regular"),"category"=>"display")),array("Finlandica"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"sans-serif")),array("Fira Code"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"monospace")),array("Fira Mono"=>array("variants"=>array("regular","500","700"),"category"=>"monospace")),array("Fira Sans"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Fira Sans Condensed"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Fira Sans Extra Condensed"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Fjalla One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Fjord One"=>array("variants"=>array("regular"),"category"=>"serif")),array("Flamenco"=>array("variants"=>array("300","regular"),"category"=>"display")),array("Flavors"=>array("variants"=>array("regular"),"category"=>"display")),array("Fleur De Leah"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Flow Block"=>array("variants"=>array("regular"),"category"=>"display")),array("Flow Circular"=>array("variants"=>array("regular"),"category"=>"display")),array("Flow Rounded"=>array("variants"=>array("regular"),"category"=>"display")),array("Foldit"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"display")),array("Fondamento"=>array("variants"=>array("regular","italic"),"category"=>"handwriting")),array("Fontdiner Swanky"=>array("variants"=>array("regular"),"category"=>"display")),array("Forum"=>array("variants"=>array("regular"),"category"=>"display")),array("Fragment Mono"=>array("variants"=>array("regular","italic"),"category"=>"monospace")),array("Francois One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Frank Ruhl Libre"=>array("variants"=>array("300","regular","500","600","700","800","900"),"category"=>"serif")),array("Fraunces"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Freckle Face"=>array("variants"=>array("regular"),"category"=>"display")),array("Fredericka the Great"=>array("variants"=>array("regular"),"category"=>"display")),array("Fredoka"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Freehand"=>array("variants"=>array("regular"),"category"=>"display")),array("Freeman"=>array("variants"=>array("regular"),"category"=>"display")),array("Fresca"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Frijole"=>array("variants"=>array("regular"),"category"=>"display")),array("Fruktur"=>array("variants"=>array("regular","italic"),"category"=>"display")),array("Fugaz One"=>array("variants"=>array("regular"),"category"=>"display")),array("Fuggles"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Funnel Display"=>array("variants"=>array("300","regular","500","600","700","800"),"category"=>"display")),array("Funnel Sans"=>array("variants"=>array("300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"),"category"=>"sans-serif")),array("Fustat"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Fuzzy Bubbles"=>array("variants"=>array("regular","700"),"category"=>"handwriting")),array("GFS Didot"=>array("variants"=>array("regular"),"category"=>"serif")),array("GFS Neohellenic"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Ga Maamli"=>array("variants"=>array("regular"),"category"=>"display")),array("Gabarito"=>array("variants"=>array("regular","500","600","700","800","900"),"category"=>"display")),array("Gabriela"=>array("variants"=>array("regular"),"category"=>"serif")),array("Gaegu"=>array("variants"=>array("300","regular","700"),"category"=>"handwriting")),array("Gafata"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Gajraj One"=>array("variants"=>array("regular"),"category"=>"display")),array("Galada"=>array("variants"=>array("regular"),"category"=>"display")),array("Galdeano"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Galindo"=>array("variants"=>array("regular"),"category"=>"display")),array("Gamja Flower"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Gantari"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Gasoek One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Gayathri"=>array("variants"=>array("100","regular","700"),"category"=>"sans-serif")),array("Geist"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Geist Mono"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"monospace")),array("Gelasio"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"serif")),array("Gemunu Libre"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Genos"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Gentium Book Plus"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"serif")),array("Gentium Plus"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"serif")),array("Geo"=>array("variants"=>array("regular","italic"),"category"=>"sans-serif")),array("Geologica"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Georama"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Geostar"=>array("variants"=>array("regular"),"category"=>"display")),array("Geostar Fill"=>array("variants"=>array("regular"),"category"=>"display")),array("Germania One"=>array("variants"=>array("regular"),"category"=>"display")),array("Gideon Roman"=>array("variants"=>array("regular"),"category"=>"display")),array("Gidugu"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Gilda Display"=>array("variants"=>array("regular"),"category"=>"serif")),array("Girassol"=>array("variants"=>array("regular"),"category"=>"display")),array("Give You Glory"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Glass Antiqua"=>array("variants"=>array("regular"),"category"=>"display")),array("Glegoo"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Gloock"=>array("variants"=>array("regular"),"category"=>"serif")),array("Gloria Hallelujah"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Glory"=>array("variants"=>array("100","200","300","regular","500","600","700","800","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic"),"category"=>"sans-serif")),array("Gluten"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"display")),array("Goblin One"=>array("variants"=>array("regular"),"category"=>"display")),array("Gochi Hand"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Goldman"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Golos Text"=>array("variants"=>array("regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Gorditas"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Gothic A1"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Gotu"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Goudy Bookletter 1911"=>array("variants"=>array("regular"),"category"=>"serif")),array("Gowun Batang"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Gowun Dodum"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Graduate"=>array("variants"=>array("regular"),"category"=>"serif")),array("Grand Hotel"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Grandiflora One"=>array("variants"=>array("regular"),"category"=>"serif")),array("Grandstander"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"display")),array("Grape Nuts"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Gravitas One"=>array("variants"=>array("regular"),"category"=>"display")),array("Great Vibes"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Grechen Fuemen"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Grenze"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"serif")),array("Grenze Gotisch"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"display")),array("Grey Qo"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Griffy"=>array("variants"=>array("regular"),"category"=>"display")),array("Gruppo"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Gudea"=>array("variants"=>array("regular","italic","700"),"category"=>"sans-serif")),array("Gugi"=>array("variants"=>array("regular"),"category"=>"display")),array("Gulzar"=>array("variants"=>array("regular"),"category"=>"serif")),array("Gupter"=>array("variants"=>array("regular","500","700"),"category"=>"serif")),array("Gurajada"=>array("variants"=>array("regular"),"category"=>"serif")),array("Gwendolyn"=>array("variants"=>array("regular","700"),"category"=>"handwriting")),array("Habibi"=>array("variants"=>array("regular"),"category"=>"serif")),array("Hachi Maru Pop"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Hahmlet"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Halant"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"serif")),array("Hammersmith One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Hanalei"=>array("variants"=>array("regular"),"category"=>"display")),array("Hanalei Fill"=>array("variants"=>array("regular"),"category"=>"display")),array("Handjet"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"display")),array("Handlee"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Hanken Grotesk"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Hanuman"=>array("variants"=>array("100","300","regular","700","900"),"category"=>"serif")),array("Happy Monkey"=>array("variants"=>array("regular"),"category"=>"display")),array("Harmattan"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Headland One"=>array("variants"=>array("regular"),"category"=>"serif")),array("Hedvig Letters Sans"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Hedvig Letters Serif"=>array("variants"=>array("regular"),"category"=>"serif")),array("Heebo"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Henny Penny"=>array("variants"=>array("regular"),"category"=>"display")),array("Hepta Slab"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Herr Von Muellerhoff"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Hi Melody"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Hina Mincho"=>array("variants"=>array("regular"),"category"=>"serif")),array("Hind"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Hind Guntur"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Hind Madurai"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Hind Mysuru"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Hind Siliguri"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Hind Vadodara"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Holtwood One SC"=>array("variants"=>array("regular"),"category"=>"serif")),array("Homemade Apple"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Homenaje"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Honk"=>array("variants"=>array("regular"),"category"=>"display")),array("Host Grotesk"=>array("variants"=>array("300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"),"category"=>"sans-serif")),array("Hubballi"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Hubot Sans"=>array("variants"=>array("200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Hurricane"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("IBM Plex Mono"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"monospace")),array("IBM Plex Sans"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"sans-serif")),array("IBM Plex Sans Arabic"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"sans-serif")),array("IBM Plex Sans Condensed"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"sans-serif")),array("IBM Plex Sans Devanagari"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"sans-serif")),array("IBM Plex Sans Hebrew"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"sans-serif")),array("IBM Plex Sans JP"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"sans-serif")),array("IBM Plex Sans KR"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"sans-serif")),array("IBM Plex Sans Thai"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"sans-serif")),array("IBM Plex Sans Thai Looped"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"sans-serif")),array("IBM Plex Serif"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"serif")),array("IM Fell DW Pica"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("IM Fell DW Pica SC"=>array("variants"=>array("regular"),"category"=>"serif")),array("IM Fell Double Pica"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("IM Fell Double Pica SC"=>array("variants"=>array("regular"),"category"=>"serif")),array("IM Fell English"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("IM Fell English SC"=>array("variants"=>array("regular"),"category"=>"serif")),array("IM Fell French Canon"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("IM Fell French Canon SC"=>array("variants"=>array("regular"),"category"=>"serif")),array("IM Fell Great Primer"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("IM Fell Great Primer SC"=>array("variants"=>array("regular"),"category"=>"serif")),array("Ibarra Real Nova"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"serif")),array("Iceberg"=>array("variants"=>array("regular"),"category"=>"display")),array("Iceland"=>array("variants"=>array("regular"),"category"=>"display")),array("Imbue"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Imperial Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Imprima"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Inclusive Sans"=>array("variants"=>array("regular","italic"),"category"=>"sans-serif")),array("Inconsolata"=>array("variants"=>array("200","300","regular","500","600","700","800","900"),"category"=>"monospace")),array("Inder"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Indie Flower"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Ingrid Darling"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Inika"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Inknut Antiqua"=>array("variants"=>array("300","regular","500","600","700","800","900"),"category"=>"serif")),array("Inria Sans"=>array("variants"=>array("300","300italic","regular","italic","700","700italic"),"category"=>"sans-serif")),array("Inria Serif"=>array("variants"=>array("300","300italic","regular","italic","700","700italic"),"category"=>"serif")),array("Inspiration"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Instrument Sans"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"sans-serif")),array("Instrument Serif"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Inter"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Inter Tight"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Irish Grover"=>array("variants"=>array("regular"),"category"=>"display")),array("Island Moments"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Istok Web"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Italiana"=>array("variants"=>array("regular"),"category"=>"serif")),array("Italianno"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Itim"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Jacquard 12"=>array("variants"=>array("regular"),"category"=>"display")),array("Jacquard 12 Charted"=>array("variants"=>array("regular"),"category"=>"display")),array("Jacquard 24"=>array("variants"=>array("regular"),"category"=>"display")),array("Jacquard 24 Charted"=>array("variants"=>array("regular"),"category"=>"display")),array("Jacquarda Bastarda 9"=>array("variants"=>array("regular"),"category"=>"display")),array("Jacquarda Bastarda 9 Charted"=>array("variants"=>array("regular"),"category"=>"display")),array("Jacques Francois"=>array("variants"=>array("regular"),"category"=>"serif")),array("Jacques Francois Shadow"=>array("variants"=>array("regular"),"category"=>"display")),array("Jaini"=>array("variants"=>array("regular"),"category"=>"display")),array("Jaini Purva"=>array("variants"=>array("regular"),"category"=>"display")),array("Jaldi"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Jaro"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Jersey 10"=>array("variants"=>array("regular"),"category"=>"display")),array("Jersey 10 Charted"=>array("variants"=>array("regular"),"category"=>"display")),array("Jersey 15"=>array("variants"=>array("regular"),"category"=>"display")),array("Jersey 15 Charted"=>array("variants"=>array("regular"),"category"=>"display")),array("Jersey 20"=>array("variants"=>array("regular"),"category"=>"display")),array("Jersey 20 Charted"=>array("variants"=>array("regular"),"category"=>"display")),array("Jersey 25"=>array("variants"=>array("regular"),"category"=>"display")),array("Jersey 25 Charted"=>array("variants"=>array("regular"),"category"=>"display")),array("JetBrains Mono"=>array("variants"=>array("100","200","300","regular","500","600","700","800","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic"),"category"=>"monospace")),array("Jim Nightshade"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Joan"=>array("variants"=>array("regular"),"category"=>"serif")),array("Jockey One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Jolly Lodger"=>array("variants"=>array("regular"),"category"=>"display")),array("Jomhuria"=>array("variants"=>array("regular"),"category"=>"display")),array("Jomolhari"=>array("variants"=>array("regular"),"category"=>"serif")),array("Josefin Sans"=>array("variants"=>array("100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"),"category"=>"sans-serif")),array("Josefin Slab"=>array("variants"=>array("100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"),"category"=>"serif")),array("Jost"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Joti One"=>array("variants"=>array("regular"),"category"=>"display")),array("Jua"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Judson"=>array("variants"=>array("regular","italic","700"),"category"=>"serif")),array("Julee"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Julius Sans One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Junge"=>array("variants"=>array("regular"),"category"=>"serif")),array("Jura"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Just Another Hand"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Just Me Again Down Here"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("K2D"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"),"category"=>"sans-serif")),array("Kablammo"=>array("variants"=>array("regular"),"category"=>"display")),array("Kadwa"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Kaisei Decol"=>array("variants"=>array("regular","500","700"),"category"=>"serif")),array("Kaisei HarunoUmi"=>array("variants"=>array("regular","500","700"),"category"=>"serif")),array("Kaisei Opti"=>array("variants"=>array("regular","500","700"),"category"=>"serif")),array("Kaisei Tokumin"=>array("variants"=>array("regular","500","700","800"),"category"=>"serif")),array("Kalam"=>array("variants"=>array("300","regular","700"),"category"=>"handwriting")),array("Kalnia"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"serif")),array("Kalnia Glaze"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"display")),array("Kameron"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Kanit"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Kantumruy Pro"=>array("variants"=>array("100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"),"category"=>"sans-serif")),array("Karantina"=>array("variants"=>array("300","regular","700"),"category"=>"display")),array("Karla"=>array("variants"=>array("200","300","regular","500","600","700","800","200italic","300italic","italic","500italic","600italic","700italic","800italic"),"category"=>"sans-serif")),array("Karla Tamil Inclined"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Karla Tamil Upright"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Karma"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"serif")),array("Katibeh"=>array("variants"=>array("regular"),"category"=>"display")),array("Kaushan Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Kavivanar"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Kavoon"=>array("variants"=>array("regular"),"category"=>"display")),array("Kay Pho Du"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Kdam Thmor Pro"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Keania One"=>array("variants"=>array("regular"),"category"=>"display")),array("Kelly Slab"=>array("variants"=>array("regular"),"category"=>"display")),array("Kenia"=>array("variants"=>array("regular"),"category"=>"display")),array("Khand"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Khmer"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Khula"=>array("variants"=>array("300","regular","600","700","800"),"category"=>"sans-serif")),array("Kings"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Kirang Haerang"=>array("variants"=>array("regular"),"category"=>"display")),array("Kite One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Kiwi Maru"=>array("variants"=>array("300","regular","500"),"category"=>"serif")),array("Klee One"=>array("variants"=>array("regular","600"),"category"=>"handwriting")),array("Knewave"=>array("variants"=>array("regular"),"category"=>"display")),array("KoHo"=>array("variants"=>array("200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"sans-serif")),array("Kodchasan"=>array("variants"=>array("200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"sans-serif")),array("Kode Mono"=>array("variants"=>array("regular","500","600","700"),"category"=>"monospace")),array("Koh Santepheap"=>array("variants"=>array("100","300","regular","700","900"),"category"=>"serif")),array("Kolker Brush"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Konkhmer Sleokchher"=>array("variants"=>array("regular"),"category"=>"display")),array("Kosugi"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Kosugi Maru"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Kotta One"=>array("variants"=>array("regular"),"category"=>"serif")),array("Koulen"=>array("variants"=>array("regular"),"category"=>"display")),array("Kranky"=>array("variants"=>array("regular"),"category"=>"display")),array("Kreon"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"serif")),array("Kristi"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Krona One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Krub"=>array("variants"=>array("200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"sans-serif")),array("Kufam"=>array("variants"=>array("regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Kulim Park"=>array("variants"=>array("200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"),"category"=>"sans-serif")),array("Kumar One"=>array("variants"=>array("regular"),"category"=>"display")),array("Kumar One Outline"=>array("variants"=>array("regular"),"category"=>"display")),array("Kumbh Sans"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Kurale"=>array("variants"=>array("regular"),"category"=>"serif")),array("LXGW WenKai Mono TC"=>array("variants"=>array("300","regular","700"),"category"=>"monospace")),array("LXGW WenKai TC"=>array("variants"=>array("300","regular","700"),"category"=>"handwriting")),array("La Belle Aurore"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Labrada"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Lacquer"=>array("variants"=>array("regular"),"category"=>"display")),array("Laila"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Lakki Reddy"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Lalezar"=>array("variants"=>array("regular"),"category"=>"display")),array("Lancelot"=>array("variants"=>array("regular"),"category"=>"display")),array("Langar"=>array("variants"=>array("regular"),"category"=>"display")),array("Lateef"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"serif")),array("Lato"=>array("variants"=>array("100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"),"category"=>"sans-serif")),array("Lavishly Yours"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("League Gothic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("League Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("League Spartan"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Leckerli One"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Ledger"=>array("variants"=>array("regular"),"category"=>"serif")),array("Lekton"=>array("variants"=>array("regular","italic","700"),"category"=>"monospace")),array("Lemon"=>array("variants"=>array("regular"),"category"=>"display")),array("Lemonada"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"display")),array("Lexend"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Lexend Deca"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Lexend Exa"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Lexend Giga"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Lexend Mega"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Lexend Peta"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Lexend Tera"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Lexend Zetta"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Libre Barcode 128"=>array("variants"=>array("regular"),"category"=>"display")),array("Libre Barcode 128 Text"=>array("variants"=>array("regular"),"category"=>"display")),array("Libre Barcode 39"=>array("variants"=>array("regular"),"category"=>"display")),array("Libre Barcode 39 Extended"=>array("variants"=>array("regular"),"category"=>"display")),array("Libre Barcode 39 Extended Text"=>array("variants"=>array("regular"),"category"=>"display")),array("Libre Barcode 39 Text"=>array("variants"=>array("regular"),"category"=>"display")),array("Libre Barcode EAN13 Text"=>array("variants"=>array("regular"),"category"=>"display")),array("Libre Baskerville"=>array("variants"=>array("regular","italic","700"),"category"=>"serif")),array("Libre Bodoni"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"serif")),array("Libre Caslon Display"=>array("variants"=>array("regular"),"category"=>"serif")),array("Libre Caslon Text"=>array("variants"=>array("regular","italic","700"),"category"=>"serif")),array("Libre Franklin"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Licorice"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Life Savers"=>array("variants"=>array("regular","700","800"),"category"=>"display")),array("Lilita One"=>array("variants"=>array("regular"),"category"=>"display")),array("Lily Script One"=>array("variants"=>array("regular"),"category"=>"display")),array("Limelight"=>array("variants"=>array("regular"),"category"=>"display")),array("Linden Hill"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Linefont"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"display")),array("Lisu Bosa"=>array("variants"=>array("200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"serif")),array("Literata"=>array("variants"=>array("200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Liu Jian Mao Cao"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Livvic"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"),"category"=>"sans-serif")),array("Lobster"=>array("variants"=>array("regular"),"category"=>"display")),array("Lobster Two"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"display")),array("Londrina Outline"=>array("variants"=>array("regular"),"category"=>"display")),array("Londrina Shadow"=>array("variants"=>array("regular"),"category"=>"display")),array("Londrina Sketch"=>array("variants"=>array("regular"),"category"=>"display")),array("Londrina Solid"=>array("variants"=>array("100","300","regular","900"),"category"=>"display")),array("Long Cang"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Lora"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"serif")),array("Love Light"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Love Ya Like A Sister"=>array("variants"=>array("regular"),"category"=>"display")),array("Loved by the King"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Lovers Quarrel"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Luckiest Guy"=>array("variants"=>array("regular"),"category"=>"display")),array("Lugrasimo"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Lumanosimo"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Lunasima"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Lusitana"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Lustria"=>array("variants"=>array("regular"),"category"=>"serif")),array("Luxurious Roman"=>array("variants"=>array("regular"),"category"=>"display")),array("Luxurious Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("M PLUS 1"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("M PLUS 1 Code"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"monospace")),array("M PLUS 1p"=>array("variants"=>array("100","300","regular","500","700","800","900"),"category"=>"sans-serif")),array("M PLUS 2"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("M PLUS Code Latin"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"sans-serif")),array("M PLUS Rounded 1c"=>array("variants"=>array("100","300","regular","500","700","800","900"),"category"=>"sans-serif")),array("Ma Shan Zheng"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Macondo"=>array("variants"=>array("regular"),"category"=>"display")),array("Macondo Swash Caps"=>array("variants"=>array("regular"),"category"=>"display")),array("Mada"=>array("variants"=>array("200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Madimi One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Magra"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Maiden Orange"=>array("variants"=>array("regular"),"category"=>"serif")),array("Maitree"=>array("variants"=>array("200","300","regular","500","600","700"),"category"=>"serif")),array("Major Mono Display"=>array("variants"=>array("regular"),"category"=>"monospace")),array("Mako"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Mali"=>array("variants"=>array("200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"handwriting")),array("Mallanna"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Maname"=>array("variants"=>array("regular"),"category"=>"serif")),array("Mandali"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Manjari"=>array("variants"=>array("100","regular","700"),"category"=>"sans-serif")),array("Manrope"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Mansalva"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Manuale"=>array("variants"=>array("300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"),"category"=>"serif")),array("Marcellus"=>array("variants"=>array("regular"),"category"=>"serif")),array("Marcellus SC"=>array("variants"=>array("regular"),"category"=>"serif")),array("Marck Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Margarine"=>array("variants"=>array("regular"),"category"=>"display")),array("Marhey"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"display")),array("Markazi Text"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Marko One"=>array("variants"=>array("regular"),"category"=>"serif")),array("Marmelad"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Martel"=>array("variants"=>array("200","300","regular","600","700","800","900"),"category"=>"serif")),array("Martel Sans"=>array("variants"=>array("200","300","regular","600","700","800","900"),"category"=>"sans-serif")),array("Martian Mono"=>array("variants"=>array("100","200","300","regular","500","600","700","800"),"category"=>"monospace")),array("Marvel"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Mate"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Mate SC"=>array("variants"=>array("regular"),"category"=>"serif")),array("Matemasie"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Material Icons"=>array("variants"=>array("regular"),"category"=>"monospace")),array("Material Icons Outlined"=>array("variants"=>array("regular"),"category"=>"monospace")),array("Material Icons Round"=>array("variants"=>array("regular"),"category"=>"monospace")),array("Material Icons Sharp"=>array("variants"=>array("regular"),"category"=>"monospace")),array("Material Icons Two Tone"=>array("variants"=>array("regular"),"category"=>"monospace")),array("Material Symbols Outlined"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"monospace")),array("Material Symbols Rounded"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"monospace")),array("Material Symbols Sharp"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"monospace")),array("Maven Pro"=>array("variants"=>array("regular","500","600","700","800","900"),"category"=>"sans-serif")),array("McLaren"=>array("variants"=>array("regular"),"category"=>"display")),array("Mea Culpa"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Meddon"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("MedievalSharp"=>array("variants"=>array("regular"),"category"=>"display")),array("Medula One"=>array("variants"=>array("regular"),"category"=>"display")),array("Meera Inimai"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Megrim"=>array("variants"=>array("regular"),"category"=>"display")),array("Meie Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Meow Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Merienda"=>array("variants"=>array("300","regular","500","600","700","800","900"),"category"=>"handwriting")),array("Merriweather"=>array("variants"=>array("300","300italic","regular","italic","700","700italic","900","900italic"),"category"=>"serif")),array("Merriweather Sans"=>array("variants"=>array("300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"),"category"=>"sans-serif")),array("Metal"=>array("variants"=>array("regular"),"category"=>"display")),array("Metal Mania"=>array("variants"=>array("regular"),"category"=>"display")),array("Metamorphous"=>array("variants"=>array("regular"),"category"=>"display")),array("Metrophobic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Michroma"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Micro 5"=>array("variants"=>array("regular"),"category"=>"display")),array("Micro 5 Charted"=>array("variants"=>array("regular"),"category"=>"display")),array("Milonga"=>array("variants"=>array("regular"),"category"=>"display")),array("Miltonian"=>array("variants"=>array("regular"),"category"=>"display")),array("Miltonian Tattoo"=>array("variants"=>array("regular"),"category"=>"display")),array("Mina"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Mingzat"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Miniver"=>array("variants"=>array("regular"),"category"=>"display")),array("Miriam Libre"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Mirza"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Miss Fajardose"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Mitr"=>array("variants"=>array("200","300","regular","500","600","700"),"category"=>"sans-serif")),array("Mochiy Pop One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Mochiy Pop P One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Modak"=>array("variants"=>array("regular"),"category"=>"display")),array("Modern Antiqua"=>array("variants"=>array("regular"),"category"=>"display")),array("Moderustic"=>array("variants"=>array("300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Mogra"=>array("variants"=>array("regular"),"category"=>"display")),array("Mohave"=>array("variants"=>array("300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"),"category"=>"sans-serif")),array("Moirai One"=>array("variants"=>array("regular"),"category"=>"display")),array("Molengo"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Molle"=>array("variants"=>array("italic"),"category"=>"handwriting")),array("Mona Sans"=>array("variants"=>array("200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Monda"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Monofett"=>array("variants"=>array("regular"),"category"=>"monospace")),array("Monomaniac One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Monoton"=>array("variants"=>array("regular"),"category"=>"display")),array("Monsieur La Doulaise"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Montaga"=>array("variants"=>array("regular"),"category"=>"serif")),array("Montagu Slab"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"serif")),array("MonteCarlo"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Montez"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Montserrat"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Montserrat Alternates"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Montserrat Subrayada"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Montserrat Underline"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Moo Lah Lah"=>array("variants"=>array("regular"),"category"=>"display")),array("Mooli"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Moon Dance"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Moul"=>array("variants"=>array("regular"),"category"=>"display")),array("Moulpali"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Mountains of Christmas"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Mouse Memoirs"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Mr Bedfort"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Mr Dafoe"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Mr De Haviland"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Mrs Saint Delafield"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Mrs Sheppards"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Ms Madi"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Mukta"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Mukta Mahee"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Mukta Malar"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Mukta Vaani"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Mulish"=>array("variants"=>array("200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Murecho"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("MuseoModerno"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"display")),array("My Soul"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Mynerve"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Mystery Quest"=>array("variants"=>array("regular"),"category"=>"display")),array("NTR"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Nabla"=>array("variants"=>array("regular"),"category"=>"display")),array("Namdhinggo"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"serif")),array("Nanum Brush Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Nanum Gothic"=>array("variants"=>array("regular","700","800"),"category"=>"sans-serif")),array("Nanum Gothic Coding"=>array("variants"=>array("regular","700"),"category"=>"handwriting")),array("Nanum Myeongjo"=>array("variants"=>array("regular","700","800"),"category"=>"serif")),array("Nanum Pen Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Narnoor"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"serif")),array("Neonderthaw"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Nerko One"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Neucha"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Neuton"=>array("variants"=>array("200","300","regular","italic","700","800"),"category"=>"serif")),array("New Amsterdam"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("New Rocker"=>array("variants"=>array("regular"),"category"=>"display")),array("New Tegomin"=>array("variants"=>array("regular"),"category"=>"serif")),array("News Cycle"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Newsreader"=>array("variants"=>array("200","300","regular","500","600","700","800","200italic","300italic","italic","500italic","600italic","700italic","800italic"),"category"=>"serif")),array("Niconne"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Niramit"=>array("variants"=>array("200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"sans-serif")),array("Nixie One"=>array("variants"=>array("regular"),"category"=>"display")),array("Nobile"=>array("variants"=>array("regular","italic","500","500italic","700","700italic"),"category"=>"sans-serif")),array("Nokora"=>array("variants"=>array("100","300","regular","700","900"),"category"=>"sans-serif")),array("Norican"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Nosifer"=>array("variants"=>array("regular"),"category"=>"display")),array("Notable"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Nothing You Could Do"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Noticia Text"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"serif")),array("Noto Color Emoji"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Emoji"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Noto Kufi Arabic"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Music"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Naskh Arabic"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Noto Nastaliq Urdu"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Noto Rashi Hebrew"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Sans"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Noto Sans Adlam"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Adlam Unjoined"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Anatolian Hieroglyphs"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Arabic"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Armenian"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Avestan"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Balinese"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Bamum"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Bassa Vah"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Batak"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Bengali"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Bhaiksuki"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Brahmi"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Buginese"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Buhid"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Canadian Aboriginal"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Carian"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Caucasian Albanian"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Chakma"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Cham"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Cherokee"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Chorasmian"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Coptic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Cuneiform"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Cypriot"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Cypro Minoan"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Deseret"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Devanagari"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Display"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Noto Sans Duployan"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Noto Sans Egyptian Hieroglyphs"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Elbasan"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Elymaic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Ethiopic"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Georgian"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Glagolitic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Gothic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Grantha"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Gujarati"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Gunjala Gondi"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Gurmukhi"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans HK"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Hanifi Rohingya"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Hanunoo"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Hatran"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Hebrew"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Imperial Aramaic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Indic Siyaq Numbers"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Inscriptional Pahlavi"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Inscriptional Parthian"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans JP"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Javanese"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans KR"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Kaithi"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Kannada"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Kawi"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Kayah Li"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Kharoshthi"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Khmer"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Khojki"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Khudawadi"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Lao"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Lao Looped"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Lepcha"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Limbu"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Linear A"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Linear B"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Lisu"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Lycian"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Lydian"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Mahajani"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Malayalam"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Mandaic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Manichaean"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Marchen"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Masaram Gondi"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Math"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Mayan Numerals"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Medefaidrin"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Meetei Mayek"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Mende Kikakui"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Meroitic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Miao"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Modi"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Mongolian"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Mono"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Mro"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Multani"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Myanmar"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans NKo"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans NKo Unjoined"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Nabataean"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Nag Mundari"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Nandinagari"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans New Tai Lue"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Newa"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Nushu"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Ogham"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Ol Chiki"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Old Hungarian"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Old Italic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Old North Arabian"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Old Permic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Old Persian"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Old Sogdian"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Old South Arabian"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Old Turkic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Oriya"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Osage"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Osmanya"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Pahawh Hmong"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Palmyrene"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Pau Cin Hau"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans PhagsPa"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Phoenician"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Psalter Pahlavi"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Rejang"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Runic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans SC"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Samaritan"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Saurashtra"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Sharada"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Shavian"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Siddham"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans SignWriting"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Sinhala"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Sogdian"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Sora Sompeng"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Soyombo"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Sundanese"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Syloti Nagri"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Symbols"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Symbols 2"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Syriac"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Syriac Eastern"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans TC"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Tagalog"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Tagbanwa"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Tai Le"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Tai Tham"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Tai Viet"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Takri"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Tamil"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Tamil Supplement"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Tangsa"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Telugu"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Thaana"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Thai"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Thai Looped"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Noto Sans Tifinagh"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Tirhuta"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Ugaritic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Vai"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Vithkuqi"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Noto Sans Wancho"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Warang Citi"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Yi"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Sans Zanabazar Square"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Noto Serif"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Noto Serif Ahom"=>array("variants"=>array("regular"),"category"=>"serif")),array("Noto Serif Armenian"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Balinese"=>array("variants"=>array("regular"),"category"=>"serif")),array("Noto Serif Bengali"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Devanagari"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Display"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Noto Serif Dogra"=>array("variants"=>array("regular"),"category"=>"serif")),array("Noto Serif Ethiopic"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Georgian"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Grantha"=>array("variants"=>array("regular"),"category"=>"serif")),array("Noto Serif Gujarati"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Gurmukhi"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif HK"=>array("variants"=>array("200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Hebrew"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif JP"=>array("variants"=>array("200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif KR"=>array("variants"=>array("200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Kannada"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Khitan Small Script"=>array("variants"=>array("regular"),"category"=>"serif")),array("Noto Serif Khmer"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Khojki"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Noto Serif Lao"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Makasar"=>array("variants"=>array("regular"),"category"=>"serif")),array("Noto Serif Malayalam"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Myanmar"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif NP Hmong"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Noto Serif Old Uyghur"=>array("variants"=>array("regular"),"category"=>"serif")),array("Noto Serif Oriya"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Noto Serif Ottoman Siyaq"=>array("variants"=>array("regular"),"category"=>"serif")),array("Noto Serif SC"=>array("variants"=>array("200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Sinhala"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif TC"=>array("variants"=>array("200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Tamil"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Noto Serif Tangut"=>array("variants"=>array("regular"),"category"=>"serif")),array("Noto Serif Telugu"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Thai"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Tibetan"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Noto Serif Toto"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Noto Serif Vithkuqi"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Noto Serif Yezidi"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Noto Traditional Nushu"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Noto Znamenny Musical Notation"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Nova Cut"=>array("variants"=>array("regular"),"category"=>"display")),array("Nova Flat"=>array("variants"=>array("regular"),"category"=>"display")),array("Nova Mono"=>array("variants"=>array("regular"),"category"=>"monospace")),array("Nova Oval"=>array("variants"=>array("regular"),"category"=>"display")),array("Nova Round"=>array("variants"=>array("regular"),"category"=>"display")),array("Nova Script"=>array("variants"=>array("regular"),"category"=>"display")),array("Nova Slim"=>array("variants"=>array("regular"),"category"=>"display")),array("Nova Square"=>array("variants"=>array("regular"),"category"=>"display")),array("Numans"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Nunito"=>array("variants"=>array("200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Nunito Sans"=>array("variants"=>array("200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Nuosu SIL"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Odibee Sans"=>array("variants"=>array("regular"),"category"=>"display")),array("Odor Mean Chey"=>array("variants"=>array("regular"),"category"=>"serif")),array("Offside"=>array("variants"=>array("regular"),"category"=>"display")),array("Oi"=>array("variants"=>array("regular"),"category"=>"display")),array("Ojuju"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Old Standard TT"=>array("variants"=>array("regular","italic","700"),"category"=>"serif")),array("Oldenburg"=>array("variants"=>array("regular"),"category"=>"display")),array("Ole"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Oleo Script"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Oleo Script Swash Caps"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Onest"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Oooh Baby"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Open Sans"=>array("variants"=>array("300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"),"category"=>"sans-serif")),array("Oranienbaum"=>array("variants"=>array("regular"),"category"=>"serif")),array("Orbit"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Orbitron"=>array("variants"=>array("regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Oregano"=>array("variants"=>array("regular","italic"),"category"=>"display")),array("Orelega One"=>array("variants"=>array("regular"),"category"=>"display")),array("Orienta"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Original Surfer"=>array("variants"=>array("regular"),"category"=>"display")),array("Oswald"=>array("variants"=>array("200","300","regular","500","600","700"),"category"=>"sans-serif")),array("Outfit"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Over the Rainbow"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Overlock"=>array("variants"=>array("regular","italic","700","700italic","900","900italic"),"category"=>"display")),array("Overlock SC"=>array("variants"=>array("regular"),"category"=>"display")),array("Overpass"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Overpass Mono"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"monospace")),array("Ovo"=>array("variants"=>array("regular"),"category"=>"serif")),array("Oxanium"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"display")),array("Oxygen"=>array("variants"=>array("300","regular","700"),"category"=>"sans-serif")),array("Oxygen Mono"=>array("variants"=>array("regular"),"category"=>"monospace")),array("PT Mono"=>array("variants"=>array("regular"),"category"=>"monospace")),array("PT Sans"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("PT Sans Caption"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("PT Sans Narrow"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("PT Serif"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"serif")),array("PT Serif Caption"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Pacifico"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Padauk"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Padyakke Expanded One"=>array("variants"=>array("regular"),"category"=>"serif")),array("Palanquin"=>array("variants"=>array("100","200","300","regular","500","600","700"),"category"=>"sans-serif")),array("Palanquin Dark"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Palette Mosaic"=>array("variants"=>array("regular"),"category"=>"display")),array("Pangolin"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Paprika"=>array("variants"=>array("regular"),"category"=>"display")),array("Parisienne"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Parkinsans"=>array("variants"=>array("300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Passero One"=>array("variants"=>array("regular"),"category"=>"display")),array("Passion One"=>array("variants"=>array("regular","700","900"),"category"=>"display")),array("Passions Conflict"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Pathway Extreme"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Pathway Gothic One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Patrick Hand"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Patrick Hand SC"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Pattaya"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Patua One"=>array("variants"=>array("regular"),"category"=>"display")),array("Pavanam"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Paytone One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Peddana"=>array("variants"=>array("regular"),"category"=>"serif")),array("Peralta"=>array("variants"=>array("regular"),"category"=>"serif")),array("Permanent Marker"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Petemoss"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Petit Formal Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Petrona"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Phetsarath"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Philosopher"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Phudu"=>array("variants"=>array("300","regular","500","600","700","800","900"),"category"=>"display")),array("Piazzolla"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Piedra"=>array("variants"=>array("regular"),"category"=>"display")),array("Pinyon Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Pirata One"=>array("variants"=>array("regular"),"category"=>"display")),array("Pixelify Sans"=>array("variants"=>array("regular","500","600","700"),"category"=>"display")),array("Plaster"=>array("variants"=>array("regular"),"category"=>"display")),array("Platypi"=>array("variants"=>array("300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"),"category"=>"serif")),array("Play"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Playball"=>array("variants"=>array("regular"),"category"=>"display")),array("Playfair"=>array("variants"=>array("300","regular","500","600","700","800","900","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Playfair Display"=>array("variants"=>array("regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Playfair Display SC"=>array("variants"=>array("regular","italic","700","700italic","900","900italic"),"category"=>"serif")),array("Playpen Sans"=>array("variants"=>array("100","200","300","regular","500","600","700","800"),"category"=>"handwriting")),array("Playwrite AR"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite AR Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite AT"=>array("variants"=>array("100","200","300","regular","100italic","200italic","300italic","italic"),"category"=>"handwriting")),array("Playwrite AT Guides"=>array("variants"=>array("regular","italic"),"category"=>"handwriting")),array("Playwrite AU NSW"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite AU NSW Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite AU QLD"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite AU QLD Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite AU SA"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite AU SA Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite AU TAS"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite AU TAS Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite AU VIC"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite AU VIC Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite BE VLG"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite BE VLG Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite BE WAL"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite BE WAL Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite BR"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite BR Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite CA"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite CA Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite CL"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite CL Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite CO"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite CO Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite CU"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite CU Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite CZ"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite CZ Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite DE Grund"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite DE Grund Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite DE LA"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite DE LA Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite DE SAS"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite DE SAS Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite DE VA"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite DE VA Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite DK Loopet"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite DK Loopet Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite DK Uloopet"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite DK Uloopet Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite ES"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite ES Deco"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite ES Deco Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite ES Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite FR Moderne"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite FR Moderne Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite FR Trad"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite FR Trad Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite GB J"=>array("variants"=>array("100","200","300","regular","100italic","200italic","300italic","italic"),"category"=>"handwriting")),array("Playwrite GB J Guides"=>array("variants"=>array("regular","italic"),"category"=>"handwriting")),array("Playwrite GB S"=>array("variants"=>array("100","200","300","regular","100italic","200italic","300italic","italic"),"category"=>"handwriting")),array("Playwrite GB S Guides"=>array("variants"=>array("regular","italic"),"category"=>"handwriting")),array("Playwrite HR"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite HR Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite HR Lijeva"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite HR Lijeva Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite HU"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite HU Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite ID"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite ID Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite IE"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite IE Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite IN"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite IN Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite IS"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite IS Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite IT Moderna"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite IT Moderna Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite IT Trad"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite IT Trad Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite MX"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite MX Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite NG Modern"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite NG Modern Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite NL"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite NL Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite NO"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite NO Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite NZ"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite NZ Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite PE"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite PE Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite PL"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite PL Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite PT"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite PT Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite RO"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite RO Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite SK"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite SK Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite TZ"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite TZ Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite US Modern"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite US Modern Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite US Trad"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite US Trad Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite VN"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite VN Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Playwrite ZA"=>array("variants"=>array("100","200","300","regular"),"category"=>"handwriting")),array("Playwrite ZA Guides"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Plus Jakarta Sans"=>array("variants"=>array("200","300","regular","500","600","700","800","200italic","300italic","italic","500italic","600italic","700italic","800italic"),"category"=>"sans-serif")),array("Podkova"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"serif")),array("Poetsen One"=>array("variants"=>array("regular"),"category"=>"display")),array("Poiret One"=>array("variants"=>array("regular"),"category"=>"display")),array("Poller One"=>array("variants"=>array("regular"),"category"=>"display")),array("Poltawski Nowy"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"serif")),array("Poly"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Pompiere"=>array("variants"=>array("regular"),"category"=>"display")),array("Ponnala"=>array("variants"=>array("regular"),"category"=>"display")),array("Pontano Sans"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Poor Story"=>array("variants"=>array("regular"),"category"=>"display")),array("Poppins"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Port Lligat Sans"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Port Lligat Slab"=>array("variants"=>array("regular"),"category"=>"serif")),array("Potta One"=>array("variants"=>array("regular"),"category"=>"display")),array("Pragati Narrow"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Praise"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Prata"=>array("variants"=>array("regular"),"category"=>"serif")),array("Preahvihear"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Press Start 2P"=>array("variants"=>array("regular"),"category"=>"display")),array("Pridi"=>array("variants"=>array("200","300","regular","500","600","700"),"category"=>"serif")),array("Princess Sofia"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Prociono"=>array("variants"=>array("regular"),"category"=>"serif")),array("Prompt"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Prosto One"=>array("variants"=>array("regular"),"category"=>"display")),array("Protest Guerrilla"=>array("variants"=>array("regular"),"category"=>"display")),array("Protest Revolution"=>array("variants"=>array("regular"),"category"=>"display")),array("Protest Riot"=>array("variants"=>array("regular"),"category"=>"display")),array("Protest Strike"=>array("variants"=>array("regular"),"category"=>"display")),array("Proza Libre"=>array("variants"=>array("regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"),"category"=>"sans-serif")),array("Public Sans"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Puppies Play"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Puritan"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Purple Purse"=>array("variants"=>array("regular"),"category"=>"display")),array("Qahiri"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Quando"=>array("variants"=>array("regular"),"category"=>"serif")),array("Quantico"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Quattrocento"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Quattrocento Sans"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Questrial"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Quicksand"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Quintessential"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Qwigley"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Qwitcher Grypen"=>array("variants"=>array("regular","700"),"category"=>"handwriting")),array("REM"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Racing Sans One"=>array("variants"=>array("regular"),"category"=>"display")),array("Radio Canada"=>array("variants"=>array("300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"),"category"=>"sans-serif")),array("Radio Canada Big"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"sans-serif")),array("Radley"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Rajdhani"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Rakkas"=>array("variants"=>array("regular"),"category"=>"display")),array("Raleway"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Raleway Dots"=>array("variants"=>array("regular"),"category"=>"display")),array("Ramabhadra"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Ramaraja"=>array("variants"=>array("regular"),"category"=>"serif")),array("Rambla"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Rammetto One"=>array("variants"=>array("regular"),"category"=>"display")),array("Rampart One"=>array("variants"=>array("regular"),"category"=>"display")),array("Ranchers"=>array("variants"=>array("regular"),"category"=>"display")),array("Rancho"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Ranga"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Rasa"=>array("variants"=>array("300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"),"category"=>"serif")),array("Rationale"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Ravi Prakash"=>array("variants"=>array("regular"),"category"=>"display")),array("Readex Pro"=>array("variants"=>array("200","300","regular","500","600","700"),"category"=>"sans-serif")),array("Recursive"=>array("variants"=>array("300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Red Hat Display"=>array("variants"=>array("300","regular","500","600","700","800","900","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Red Hat Mono"=>array("variants"=>array("300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"),"category"=>"monospace")),array("Red Hat Text"=>array("variants"=>array("300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"),"category"=>"sans-serif")),array("Red Rose"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"display")),array("Redacted"=>array("variants"=>array("regular"),"category"=>"display")),array("Redacted Script"=>array("variants"=>array("300","regular","700"),"category"=>"display")),array("Reddit Mono"=>array("variants"=>array("200","300","regular","500","600","700","800","900"),"category"=>"monospace")),array("Reddit Sans"=>array("variants"=>array("200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Reddit Sans Condensed"=>array("variants"=>array("200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Redressed"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Reem Kufi"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Reem Kufi Fun"=>array("variants"=>array("regular","500","600","700"),"category"=>"sans-serif")),array("Reem Kufi Ink"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Reenie Beanie"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Reggae One"=>array("variants"=>array("regular"),"category"=>"display")),array("Rethink Sans"=>array("variants"=>array("regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"),"category"=>"sans-serif")),array("Revalia"=>array("variants"=>array("regular"),"category"=>"display")),array("Rhodium Libre"=>array("variants"=>array("regular"),"category"=>"serif")),array("Ribeye"=>array("variants"=>array("regular"),"category"=>"display")),array("Ribeye Marrow"=>array("variants"=>array("regular"),"category"=>"display")),array("Righteous"=>array("variants"=>array("regular"),"category"=>"display")),array("Risque"=>array("variants"=>array("regular"),"category"=>"display")),array("Road Rage"=>array("variants"=>array("regular"),"category"=>"display")),array("Roboto"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Roboto Condensed"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Roboto Flex"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Roboto Mono"=>array("variants"=>array("100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"),"category"=>"monospace")),array("Roboto Serif"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Roboto Slab"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"serif")),array("Rochester"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Rock 3D"=>array("variants"=>array("regular"),"category"=>"display")),array("Rock Salt"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("RocknRoll One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Rokkitt"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Romanesco"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Ropa Sans"=>array("variants"=>array("regular","italic"),"category"=>"sans-serif")),array("Rosario"=>array("variants"=>array("300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"),"category"=>"sans-serif")),array("Rosarivo"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Rouge Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Rowdies"=>array("variants"=>array("300","regular","700"),"category"=>"display")),array("Rozha One"=>array("variants"=>array("regular"),"category"=>"serif")),array("Rubik"=>array("variants"=>array("300","regular","500","600","700","800","900","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Rubik 80s Fade"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Beastly"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Broken Fax"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Bubbles"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Burned"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Dirt"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Distressed"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Doodle Shadow"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Doodle Triangles"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Gemstones"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Glitch"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Glitch Pop"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Iso"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Lines"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Maps"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Marker Hatch"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Maze"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Microbe"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Mono One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Rubik Moonrocks"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Pixels"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Puddles"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Scribble"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Spray Paint"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Storm"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Vinyl"=>array("variants"=>array("regular"),"category"=>"display")),array("Rubik Wet Paint"=>array("variants"=>array("regular"),"category"=>"display")),array("Ruda"=>array("variants"=>array("regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Rufina"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Ruge Boogie"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Ruluko"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Rum Raisin"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Ruslan Display"=>array("variants"=>array("regular"),"category"=>"display")),array("Russo One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Ruthie"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Ruwudu"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Rye"=>array("variants"=>array("regular"),"category"=>"display")),array("STIX Two Text"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"serif")),array("SUSE"=>array("variants"=>array("100","200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Sacramento"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Sahitya"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Sail"=>array("variants"=>array("regular"),"category"=>"display")),array("Saira"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Saira Condensed"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Saira Extra Condensed"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Saira Semi Condensed"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Saira Stencil One"=>array("variants"=>array("regular"),"category"=>"display")),array("Salsa"=>array("variants"=>array("regular"),"category"=>"display")),array("Sanchez"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Sancreek"=>array("variants"=>array("regular"),"category"=>"display")),array("Sankofa Display"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Sansita"=>array("variants"=>array("regular","italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Sansita Swashed"=>array("variants"=>array("300","regular","500","600","700","800","900"),"category"=>"display")),array("Sarabun"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"),"category"=>"sans-serif")),array("Sarala"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Sarina"=>array("variants"=>array("regular"),"category"=>"display")),array("Sarpanch"=>array("variants"=>array("regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Sassy Frass"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Satisfy"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Sawarabi Gothic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Sawarabi Mincho"=>array("variants"=>array("regular"),"category"=>"serif")),array("Scada"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Scheherazade New"=>array("variants"=>array("regular","500","600","700"),"category"=>"serif")),array("Schibsted Grotesk"=>array("variants"=>array("regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Schoolbell"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Scope One"=>array("variants"=>array("regular"),"category"=>"serif")),array("Seaweed Script"=>array("variants"=>array("regular"),"category"=>"display")),array("Secular One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Sedan"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Sedan SC"=>array("variants"=>array("regular"),"category"=>"serif")),array("Sedgwick Ave"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Sedgwick Ave Display"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Sen"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"sans-serif")),array("Send Flowers"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Sevillana"=>array("variants"=>array("regular"),"category"=>"display")),array("Seymour One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Shadows Into Light"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Shadows Into Light Two"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Shalimar"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Shantell Sans"=>array("variants"=>array("300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"),"category"=>"display")),array("Shanti"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Share"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("Share Tech"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Share Tech Mono"=>array("variants"=>array("regular"),"category"=>"monospace")),array("Shippori Antique"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Shippori Antique B1"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Shippori Mincho"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"serif")),array("Shippori Mincho B1"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"serif")),array("Shizuru"=>array("variants"=>array("regular"),"category"=>"display")),array("Shojumaru"=>array("variants"=>array("regular"),"category"=>"display")),array("Short Stack"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Shrikhand"=>array("variants"=>array("regular"),"category"=>"display")),array("Siemreap"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Sigmar"=>array("variants"=>array("regular"),"category"=>"display")),array("Sigmar One"=>array("variants"=>array("regular"),"category"=>"display")),array("Signika"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Signika Negative"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Silkscreen"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Simonetta"=>array("variants"=>array("regular","italic","900","900italic"),"category"=>"display")),array("Single Day"=>array("variants"=>array("regular"),"category"=>"display")),array("Sintony"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Sirin Stencil"=>array("variants"=>array("regular"),"category"=>"display")),array("Six Caps"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Sixtyfour"=>array("variants"=>array("regular"),"category"=>"monospace")),array("Sixtyfour Convergence"=>array("variants"=>array("regular"),"category"=>"monospace")),array("Skranji"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Slabo 13px"=>array("variants"=>array("regular"),"category"=>"serif")),array("Slabo 27px"=>array("variants"=>array("regular"),"category"=>"serif")),array("Slackey"=>array("variants"=>array("regular"),"category"=>"display")),array("Slackside One"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Smokum"=>array("variants"=>array("regular"),"category"=>"display")),array("Smooch"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Smooch Sans"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Smythe"=>array("variants"=>array("regular"),"category"=>"display")),array("Sniglet"=>array("variants"=>array("regular","800"),"category"=>"display")),array("Snippet"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Snowburst One"=>array("variants"=>array("regular"),"category"=>"display")),array("Sofadi One"=>array("variants"=>array("regular"),"category"=>"display")),array("Sofia"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Sofia Sans"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Sofia Sans Condensed"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Sofia Sans Extra Condensed"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Sofia Sans Semi Condensed"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Solitreo"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Solway"=>array("variants"=>array("300","regular","500","700","800"),"category"=>"serif")),array("Sometype Mono"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"monospace")),array("Song Myung"=>array("variants"=>array("regular"),"category"=>"serif")),array("Sono"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Sonsie One"=>array("variants"=>array("regular"),"category"=>"display")),array("Sora"=>array("variants"=>array("100","200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Sorts Mill Goudy"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Sour Gummy"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Source Code Pro"=>array("variants"=>array("200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"monospace")),array("Source Sans 3"=>array("variants"=>array("200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Source Serif 4"=>array("variants"=>array("200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Space Grotesk"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Space Mono"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"monospace")),array("Special Elite"=>array("variants"=>array("regular"),"category"=>"display")),array("Spectral"=>array("variants"=>array("200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"),"category"=>"serif")),array("Spectral SC"=>array("variants"=>array("200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"),"category"=>"serif")),array("Spicy Rice"=>array("variants"=>array("regular"),"category"=>"display")),array("Spinnaker"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Spirax"=>array("variants"=>array("regular"),"category"=>"display")),array("Splash"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Spline Sans"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Spline Sans Mono"=>array("variants"=>array("300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"),"category"=>"monospace")),array("Squada One"=>array("variants"=>array("regular"),"category"=>"display")),array("Square Peg"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Sree Krushnadevaraya"=>array("variants"=>array("regular"),"category"=>"serif")),array("Sriracha"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Srisakdi"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Staatliches"=>array("variants"=>array("regular"),"category"=>"display")),array("Stalemate"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Stalinist One"=>array("variants"=>array("regular"),"category"=>"display")),array("Stardos Stencil"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Stick"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Stick No Bills"=>array("variants"=>array("200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Stint Ultra Condensed"=>array("variants"=>array("regular"),"category"=>"serif")),array("Stint Ultra Expanded"=>array("variants"=>array("regular"),"category"=>"serif")),array("Stoke"=>array("variants"=>array("300","regular"),"category"=>"serif")),array("Strait"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Style Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Stylish"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Sue Ellen Francisco"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Suez One"=>array("variants"=>array("regular"),"category"=>"serif")),array("Sulphur Point"=>array("variants"=>array("300","regular","700"),"category"=>"sans-serif")),array("Sumana"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Sunflower"=>array("variants"=>array("300","500","700"),"category"=>"sans-serif")),array("Sunshiney"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Supermercado One"=>array("variants"=>array("regular"),"category"=>"display")),array("Sura"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Suranna"=>array("variants"=>array("regular"),"category"=>"serif")),array("Suravaram"=>array("variants"=>array("regular"),"category"=>"serif")),array("Suwannaphum"=>array("variants"=>array("100","300","regular","700","900"),"category"=>"serif")),array("Swanky and Moo Moo"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Syncopate"=>array("variants"=>array("regular","700"),"category"=>"sans-serif")),array("Syne"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"sans-serif")),array("Syne Mono"=>array("variants"=>array("regular"),"category"=>"monospace")),array("Syne Tactile"=>array("variants"=>array("regular"),"category"=>"display")),array("Tac One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Tai Heritage Pro"=>array("variants"=>array("regular","700"),"category"=>"serif")),array("Tajawal"=>array("variants"=>array("200","300","regular","500","700","800","900"),"category"=>"sans-serif")),array("Tangerine"=>array("variants"=>array("regular","700"),"category"=>"handwriting")),array("Tapestry"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Taprom"=>array("variants"=>array("regular"),"category"=>"display")),array("Tauri"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Taviraj"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"serif")),array("Teachers"=>array("variants"=>array("regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"),"category"=>"sans-serif")),array("Teko"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Tektur"=>array("variants"=>array("regular","500","600","700","800","900"),"category"=>"display")),array("Telex"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Tenali Ramakrishna"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Tenor Sans"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Text Me One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Texturina"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Thasadith"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"sans-serif")),array("The Girl Next Door"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("The Nautigal"=>array("variants"=>array("regular","700"),"category"=>"handwriting")),array("Tienne"=>array("variants"=>array("regular","700","900"),"category"=>"serif")),array("Tillana"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"display")),array("Tilt Neon"=>array("variants"=>array("regular"),"category"=>"display")),array("Tilt Prism"=>array("variants"=>array("regular"),"category"=>"display")),array("Tilt Warp"=>array("variants"=>array("regular"),"category"=>"display")),array("Timmana"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Tinos"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"serif")),array("Tiny5"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Tiro Bangla"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Tiro Devanagari Hindi"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Tiro Devanagari Marathi"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Tiro Devanagari Sanskrit"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Tiro Gurmukhi"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Tiro Kannada"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Tiro Tamil"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Tiro Telugu"=>array("variants"=>array("regular","italic"),"category"=>"serif")),array("Titan One"=>array("variants"=>array("regular"),"category"=>"display")),array("Titillium Web"=>array("variants"=>array("200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"),"category"=>"sans-serif")),array("Tomorrow"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"sans-serif")),array("Tourney"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"display")),array("Trade Winds"=>array("variants"=>array("regular"),"category"=>"display")),array("Train One"=>array("variants"=>array("regular"),"category"=>"display")),array("Trirong"=>array("variants"=>array("100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"),"category"=>"serif")),array("Trispace"=>array("variants"=>array("100","200","300","regular","500","600","700","800"),"category"=>"sans-serif")),array("Trocchi"=>array("variants"=>array("regular"),"category"=>"serif")),array("Trochut"=>array("variants"=>array("regular","italic","700"),"category"=>"display")),array("Truculenta"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Trykker"=>array("variants"=>array("regular"),"category"=>"serif")),array("Tsukimi Rounded"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Tulpen One"=>array("variants"=>array("regular"),"category"=>"display")),array("Turret Road"=>array("variants"=>array("200","300","regular","500","700","800"),"category"=>"display")),array("Twinkle Star"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Ubuntu"=>array("variants"=>array("300","300italic","regular","italic","500","500italic","700","700italic"),"category"=>"sans-serif")),array("Ubuntu Condensed"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Ubuntu Mono"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"monospace")),array("Ubuntu Sans"=>array("variants"=>array("100","200","300","regular","500","600","700","800","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic"),"category"=>"sans-serif")),array("Ubuntu Sans Mono"=>array("variants"=>array("regular","500","600","700","italic","500italic","600italic","700italic"),"category"=>"monospace")),array("Uchen"=>array("variants"=>array("regular"),"category"=>"serif")),array("Ultra"=>array("variants"=>array("regular"),"category"=>"serif")),array("Unbounded"=>array("variants"=>array("200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Uncial Antiqua"=>array("variants"=>array("regular"),"category"=>"display")),array("Underdog"=>array("variants"=>array("regular"),"category"=>"display")),array("Unica One"=>array("variants"=>array("regular"),"category"=>"display")),array("UnifrakturCook"=>array("variants"=>array("700"),"category"=>"display")),array("UnifrakturMaguntia"=>array("variants"=>array("regular"),"category"=>"display")),array("Unkempt"=>array("variants"=>array("regular","700"),"category"=>"display")),array("Unlock"=>array("variants"=>array("regular"),"category"=>"display")),array("Unna"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"serif")),array("Updock"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Urbanist"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("VT323"=>array("variants"=>array("regular"),"category"=>"monospace")),array("Vampiro One"=>array("variants"=>array("regular"),"category"=>"display")),array("Varela"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Varela Round"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Varta"=>array("variants"=>array("300","regular","500","600","700"),"category"=>"sans-serif")),array("Vast Shadow"=>array("variants"=>array("regular"),"category"=>"serif")),array("Vazirmatn"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Vesper Libre"=>array("variants"=>array("regular","500","700","900"),"category"=>"serif")),array("Viaoda Libre"=>array("variants"=>array("regular"),"category"=>"display")),array("Vibes"=>array("variants"=>array("regular"),"category"=>"display")),array("Vibur"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Victor Mono"=>array("variants"=>array("100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"),"category"=>"monospace")),array("Vidaloka"=>array("variants"=>array("regular"),"category"=>"serif")),array("Viga"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Vina Sans"=>array("variants"=>array("regular"),"category"=>"display")),array("Voces"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Volkhov"=>array("variants"=>array("regular","italic","700","700italic"),"category"=>"serif")),array("Vollkorn"=>array("variants"=>array("regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Vollkorn SC"=>array("variants"=>array("regular","600","700","900"),"category"=>"serif")),array("Voltaire"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Vujahday Script"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Waiting for the Sunrise"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Wallpoet"=>array("variants"=>array("regular"),"category"=>"display")),array("Walter Turncoat"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Warnes"=>array("variants"=>array("regular"),"category"=>"display")),array("Water Brush"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Waterfall"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Wavefont"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"display")),array("Wellfleet"=>array("variants"=>array("regular"),"category"=>"serif")),array("Wendy One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Whisper"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("WindSong"=>array("variants"=>array("regular","500"),"category"=>"handwriting")),array("Wire One"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Wittgenstein"=>array("variants"=>array("regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"serif")),array("Wix Madefor Display"=>array("variants"=>array("regular","500","600","700","800"),"category"=>"sans-serif")),array("Wix Madefor Text"=>array("variants"=>array("regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"),"category"=>"sans-serif")),array("Work Sans"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Workbench"=>array("variants"=>array("regular"),"category"=>"monospace")),array("Xanh Mono"=>array("variants"=>array("regular","italic"),"category"=>"monospace")),array("Yaldevi"=>array("variants"=>array("200","300","regular","500","600","700"),"category"=>"sans-serif")),array("Yanone Kaffeesatz"=>array("variants"=>array("200","300","regular","500","600","700"),"category"=>"sans-serif")),array("Yantramanav"=>array("variants"=>array("100","300","regular","500","700","900"),"category"=>"sans-serif")),array("Yarndings 12"=>array("variants"=>array("regular"),"category"=>"display")),array("Yarndings 12 Charted"=>array("variants"=>array("regular"),"category"=>"display")),array("Yarndings 20"=>array("variants"=>array("regular"),"category"=>"display")),array("Yarndings 20 Charted"=>array("variants"=>array("regular"),"category"=>"display")),array("Yatra One"=>array("variants"=>array("regular"),"category"=>"display")),array("Yellowtail"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Yeon Sung"=>array("variants"=>array("regular"),"category"=>"display")),array("Yeseva One"=>array("variants"=>array("regular"),"category"=>"display")),array("Yesteryear"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Yomogi"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Young Serif"=>array("variants"=>array("regular"),"category"=>"serif")),array("Yrsa"=>array("variants"=>array("300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"),"category"=>"serif")),array("Ysabeau"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Ysabeau Infant"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Ysabeau Office"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"),"category"=>"sans-serif")),array("Ysabeau SC"=>array("variants"=>array("100","200","300","regular","500","600","700","800","900"),"category"=>"sans-serif")),array("Yuji Boku"=>array("variants"=>array("regular"),"category"=>"serif")),array("Yuji Hentaigana Akari"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Yuji Hentaigana Akebono"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Yuji Mai"=>array("variants"=>array("regular"),"category"=>"serif")),array("Yuji Syuku"=>array("variants"=>array("regular"),"category"=>"serif")),array("Yusei Magic"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("ZCOOL KuaiLe"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("ZCOOL QingKe HuangYou"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("ZCOOL XiaoWei"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Zain"=>array("variants"=>array("200","300","300italic","regular","italic","700","800","900"),"category"=>"sans-serif")),array("Zen Antique"=>array("variants"=>array("regular"),"category"=>"serif")),array("Zen Antique Soft"=>array("variants"=>array("regular"),"category"=>"serif")),array("Zen Dots"=>array("variants"=>array("regular"),"category"=>"display")),array("Zen Kaku Gothic Antique"=>array("variants"=>array("300","regular","500","700","900"),"category"=>"sans-serif")),array("Zen Kaku Gothic New"=>array("variants"=>array("300","regular","500","700","900"),"category"=>"sans-serif")),array("Zen Kurenaido"=>array("variants"=>array("regular"),"category"=>"sans-serif")),array("Zen Loop"=>array("variants"=>array("regular","italic"),"category"=>"display")),array("Zen Maru Gothic"=>array("variants"=>array("300","regular","500","700","900"),"category"=>"sans-serif")),array("Zen Old Mincho"=>array("variants"=>array("regular","500","600","700","900"),"category"=>"serif")),array("Zen Tokyo Zoo"=>array("variants"=>array("regular"),"category"=>"display")),array("Zeyada"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Zhi Mang Xing"=>array("variants"=>array("regular"),"category"=>"handwriting")),array("Zilla Slab"=>array("variants"=>array("300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"),"category"=>"serif")),array("Zilla Slab Highlight"=>array("variants"=>array("regular","700"),"category"=>"serif"))); PK�����zmZq������8��modules/posts-structures/class-astra-post-structures.phpnu�[����������+>��4��modules/posts-structures/css/special-dynamic.css.phpnu�[�������� $special_type ) { $title_section = 'section-' . $special_type . '-page-title'; $layout_type = astra_get_option( $title_section . '-layout', 'layout-1' ); $layout_2_active = ( 'layout-2' === $layout_type ) ? true : false; if ( $layout_2_active ) { $selector = '.search .ast-archive-entry-banner'; } else { $selector = '.search .ast-archive-description'; } $horizontal_alignment = astra_get_option( $title_section . '-horizontal-alignment' ); $desk_h_alignment = ( isset( $horizontal_alignment['desktop'] ) ) ? $horizontal_alignment['desktop'] : ''; $tab_h_alignment = ( isset( $horizontal_alignment['tablet'] ) ) ? $horizontal_alignment['tablet'] : ''; $mob_h_alignment = ( isset( $horizontal_alignment['mobile'] ) ) ? $horizontal_alignment['mobile'] : ''; if ( 'layout-1' === $layout_type ) { $desk_h_alignment = ( '' !== $desk_h_alignment ) ? $desk_h_alignment : 'left'; $tab_h_alignment = ( '' !== $tab_h_alignment ) ? $tab_h_alignment : 'left'; $mob_h_alignment = ( '' !== $mob_h_alignment ) ? $mob_h_alignment : 'left'; } $elements_gap = astra_get_option( $title_section . '-elements-gap', 10 ); $banner_padding = astra_get_option( $title_section . '-banner-padding', Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-padding' ) ); $banner_margin = astra_get_option( $title_section . '-banner-margin' ); $banner_height = astra_get_option( $title_section . '-banner-height' ); $desk_banner_height = ( $layout_2_active && isset( $banner_height['desktop'] ) ) ? astra_get_css_value( $banner_height['desktop'], 'px' ) : ''; $tab_banner_height = ( $layout_2_active && isset( $banner_height['tablet'] ) ) ? astra_get_css_value( $banner_height['tablet'], 'px' ) : ''; $mob_banner_height = ( $layout_2_active && isset( $banner_height['mobile'] ) ) ? astra_get_css_value( $banner_height['mobile'], 'px' ) : ''; $text_color = astra_get_option( $title_section . '-banner-text-color' ); $title_color = astra_get_option( $title_section . '-banner-title-color' ); $link_color = astra_get_option( $title_section . '-banner-link-color' ); $link_hover_color = astra_get_option( $title_section . '-banner-link-hover-color' ); $vert_alignment = ( $layout_2_active ) ? astra_get_option( $title_section . '-vertical-alignment', 'center' ) : 'center'; $width_type = astra_get_option( $title_section . '-banner-width-type', 'fullwidth' ); $custom_width = astra_get_option( $title_section . '-banner-custom-width', 1200 ); $background_type = astra_get_option( $title_section . '-banner-image-type', 'none' ); // Banner Text typography dynamic stylings. $banner_text_font_size = astra_get_option( $title_section . '-text-font-size' ); // Banner Title typography dynamic stylings. $banner_title_font_size = astra_get_option( $title_section . '-title-font-size', Astra_Posts_Structure_Loader::get_customizer_default( 'title-font-size' ) ); $css_output_min_tablet = array(); $narrow_container_width = astra_get_option( 'narrow-container-max-width', apply_filters( 'astra_narrow_container_width', 750 ) ); // Few settings from banner section are also applicable to 'layout-1' so adding this condition & compatibility. if ( 'layout-1' === $layout_type ) { $site_content_width = astra_get_option( 'site-content-width', 1200 ); /** * Desktop CSS. */ $css_output_desktop = array( $selector => array( 'max-width' => $site_content_width . 'px', 'width' => '100%', 'text-align' => $desk_h_alignment, 'padding-top' => astra_responsive_spacing( $banner_padding, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $banner_padding, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $banner_padding, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $banner_padding, 'left', 'desktop' ), 'margin-top' => astra_responsive_spacing( $banner_margin, 'top', 'desktop' ), 'margin-bottom' => astra_responsive_spacing( $banner_margin, 'bottom', 'desktop' ), 'margin-left' => astra_responsive_spacing( $banner_margin, 'left', 'desktop' ), 'margin-right' => astra_responsive_spacing( $banner_margin, 'right', 'desktop' ), ), $selector . ' *' => astra_get_font_array_css( astra_get_option( $title_section . '-text-font-family' ), astra_get_option( $title_section . '-text-font-weight' ), $banner_text_font_size, $title_section . '-text-font-extras', $text_color ), $selector . ' h1, ' . $selector . ' h1 *' => astra_get_font_array_css( astra_get_option( $title_section . '-title-font-family' ), astra_get_option( $title_section . '-title-font-weight', Astra_Posts_Structure_Loader::get_customizer_default( 'title-font-weight' ) ), $banner_title_font_size, $title_section . '-title-font-extras', $title_color ), $selector . ' a, ' . $selector . ' a *' => array( 'color' => esc_attr( $link_color ), ), $selector . ' a:hover, ' . $selector . ' a:hover *' => array( 'color' => esc_attr( $link_hover_color ), ), $selector . ' > *:not(:last-child)' => array( 'margin-bottom' => $elements_gap . 'px', ), ); /** * Tablet CSS. */ $css_output_tablet = array( $selector => array( 'text-align' => $tab_h_alignment, 'padding-top' => astra_responsive_spacing( $banner_padding, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $banner_padding, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $banner_padding, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $banner_padding, 'left', 'tablet' ), 'margin-top' => astra_responsive_spacing( $banner_margin, 'top', 'tablet' ), 'margin-right' => astra_responsive_spacing( $banner_margin, 'right', 'tablet' ), 'margin-bottom' => astra_responsive_spacing( $banner_margin, 'bottom', 'tablet' ), 'margin-left' => astra_responsive_spacing( $banner_margin, 'left', 'tablet' ), ), $selector . ' h1' => array( 'font-size' => astra_responsive_font( $banner_title_font_size, 'tablet' ), ), $selector . ' *' => array( 'font-size' => astra_responsive_font( $banner_text_font_size, 'tablet' ), ), ); /** * Mobile CSS. */ $css_output_mobile = array( $selector => array( 'text-align' => $mob_h_alignment, 'padding-top' => astra_responsive_spacing( $banner_padding, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $banner_padding, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $banner_padding, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $banner_padding, 'left', 'mobile' ), 'margin-top' => astra_responsive_spacing( $banner_margin, 'top', 'mobile' ), 'margin-right' => astra_responsive_spacing( $banner_margin, 'right', 'mobile' ), 'margin-bottom' => astra_responsive_spacing( $banner_margin, 'bottom', 'mobile' ), 'margin-left' => astra_responsive_spacing( $banner_margin, 'left', 'mobile' ), ), $selector . ' h1' => array( 'font-size' => astra_responsive_font( $banner_title_font_size, 'mobile' ), ), $selector . ' *' => array( 'font-size' => astra_responsive_font( $banner_text_font_size, 'mobile' ), ), ); if ( 'none' !== $background_type ) { $custom_background = astra_get_option( $title_section . '-banner-custom-bg' ); $css_output_desktop['.search section.ast-archive-description'] = astra_get_responsive_background_obj( $custom_background, 'desktop' ); $css_output_tablet['.search section.ast-archive-description'] = astra_get_responsive_background_obj( $custom_background, 'tablet' ); $css_output_mobile['.search section.ast-archive-description'] = astra_get_responsive_background_obj( $custom_background, 'mobile' ); } } else { /** * Desktop CSS. */ $css_output_desktop = array( $selector => array( 'text-align' => $desk_h_alignment, 'justify-content' => $vert_alignment, 'min-height' => $desk_banner_height, 'margin-top' => astra_responsive_spacing( $banner_margin, 'top', 'desktop' ), 'margin-bottom' => astra_responsive_spacing( $banner_margin, 'bottom', 'desktop' ), 'margin-left' => astra_responsive_spacing( $banner_margin, 'left', 'desktop' ), 'margin-right' => astra_responsive_spacing( $banner_margin, 'right', 'desktop' ), 'padding-top' => astra_responsive_spacing( $banner_padding, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $banner_padding, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $banner_padding, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $banner_padding, 'left', 'desktop' ), ), $selector . ' .ast-container' => array( 'width' => '100%', ), $selector . ' .ast-container *' => astra_get_font_array_css( astra_get_option( $title_section . '-text-font-family' ), astra_get_option( $title_section . '-text-font-weight' ), $banner_text_font_size, $title_section . '-text-font-extras', $text_color ), $selector . ' .ast-container h1, ' . $selector . ' .ast-container h1 *' => astra_get_font_array_css( astra_get_option( $title_section . '-title-font-family' ), astra_get_option( $title_section . '-title-font-weight', Astra_Posts_Structure_Loader::get_customizer_default( 'title-font-weight' ) ), $banner_title_font_size, $title_section . '-title-font-extras', $title_color ), $selector . ' .ast-container h1' => array( 'margin-bottom' => '0', ), '.ast-page-builder-template ' . $selector . ' .ast-container' => array( 'max-width' => '100%', ), '.ast-narrow-container ' . $selector . ' .ast-container' => array( 'max-width' => $narrow_container_width . 'px', ), $selector . ' .ast-container a, ' . $selector . ' .ast-container a *' => array( 'color' => esc_attr( $link_color ), ), $selector . ' .ast-container a:hover, ' . $selector . ' .ast-container a:hover *' => array( 'color' => esc_attr( $link_hover_color ), ), $selector . ' .ast-container > *:not(:last-child)' => array( 'margin-bottom' => $elements_gap . 'px', ), ); /** * Min tablet width CSS. */ $css_output_min_tablet = array( '.ast-narrow-container ' . $selector . ' .ast-container' => array( 'max-width' => $narrow_container_width . 'px', 'padding-left' => '0', 'padding-right' => '0', ), ); /** * Tablet CSS. */ $css_output_tablet = array( $selector => array( 'text-align' => $tab_h_alignment, 'min-height' => $tab_banner_height, 'padding-top' => astra_responsive_spacing( $banner_padding, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $banner_padding, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $banner_padding, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $banner_padding, 'left', 'tablet' ), 'margin-top' => astra_responsive_spacing( $banner_margin, 'top', 'tablet' ), 'margin-right' => astra_responsive_spacing( $banner_margin, 'right', 'tablet' ), 'margin-bottom' => astra_responsive_spacing( $banner_margin, 'bottom', 'tablet' ), 'margin-left' => astra_responsive_spacing( $banner_margin, 'left', 'tablet' ), ), $selector . ' .ast-container' => array( 'padding-left' => '0', 'padding-right' => '0', ), $selector . ' .ast-container h1' => array( 'font-size' => astra_responsive_font( $banner_title_font_size, 'tablet' ), ), $selector . ' *' => array( 'font-size' => astra_responsive_font( $banner_text_font_size, 'tablet' ), ), ); /** * Mobile CSS. */ $css_output_mobile = array( $selector => array( 'text-align' => $mob_h_alignment, 'min-height' => $mob_banner_height, 'padding-top' => astra_responsive_spacing( $banner_padding, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $banner_padding, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $banner_padding, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $banner_padding, 'left', 'mobile' ), 'margin-top' => astra_responsive_spacing( $banner_margin, 'top', 'mobile' ), 'margin-right' => astra_responsive_spacing( $banner_margin, 'right', 'mobile' ), 'margin-bottom' => astra_responsive_spacing( $banner_margin, 'bottom', 'mobile' ), 'margin-left' => astra_responsive_spacing( $banner_margin, 'left', 'mobile' ), ), $selector . ' .ast-container h1' => array( 'font-size' => astra_responsive_font( $banner_title_font_size, 'mobile' ), ), $selector . ' *' => array( 'font-size' => astra_responsive_font( $banner_text_font_size, 'mobile' ), ), ); if ( ( 'custom' === $width_type ) ) { $css_output_desktop[ $selector . '[data-banner-width-type="custom"]' ]['max-width'] = $custom_width . 'px'; } if ( 'custom' === $background_type ) { $custom_background = astra_get_option( $title_section . '-banner-custom-bg' ); $css_output_desktop[ $selector . '[data-banner-background-type="custom"]' ] = astra_get_responsive_background_obj( $custom_background, 'desktop' ); $css_output_tablet[ $selector . '[data-banner-background-type="custom"]' ] = astra_get_responsive_background_obj( $custom_background, 'tablet' ); $css_output_mobile[ $selector . '[data-banner-background-type="custom"]' ] = astra_get_responsive_background_obj( $custom_background, 'mobile' ); } } /* Parse CSS from array() */ $dynamic_css .= astra_parse_css( $css_output_desktop ); $dynamic_css .= astra_parse_css( $css_output_min_tablet, astra_get_tablet_breakpoint( '', 1 ) ); $dynamic_css .= astra_parse_css( $css_output_tablet, '', astra_get_tablet_breakpoint() ); $dynamic_css .= astra_parse_css( $css_output_mobile, '', astra_get_mobile_breakpoint() ); } $dynamic_css .= ' .ast-archive-entry-banner { -js-display: flex; display: flex; flex-direction: column; justify-content: center; text-align: center; position: relative; background: #eeeeee; } .ast-archive-entry-banner[data-banner-width-type="custom"] { margin: 0 auto; width: 100%; } .ast-archive-entry-banner[data-banner-layout="layout-1"] { background: inherit; padding: 20px 0; text-align: left; } '; if ( is_customize_preview() ) { $dynamic_css .= ' .site-header-focus-item .ast-container div.customize-partial-edit-shortcut, .site-header-focus-item .ast-container button.item-customizer-focus { font-size: inherit; } '; } return $dynamic_css; } PK�����zmZ/W��W��4��modules/posts-structures/css/archive-dynamic.css.phpnu�[�������� array( 'max-width' => $site_content_width . 'px', 'width' => '100%', 'text-align' => $desk_h_alignment, 'padding-top' => astra_responsive_spacing( $banner_padding, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $banner_padding, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $banner_padding, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $banner_padding, 'left', 'desktop' ), 'margin-top' => astra_responsive_spacing( $banner_margin, 'top', 'desktop' ), 'margin-bottom' => astra_responsive_spacing( $banner_margin, 'bottom', 'desktop' ), 'margin-left' => astra_responsive_spacing( $banner_margin, 'left', 'desktop' ), 'margin-right' => astra_responsive_spacing( $banner_margin, 'right', 'desktop' ), ), $selector . ' *' => astra_get_font_array_css( astra_get_option( 'ast-dynamic-archive-' . $current_post_type . '-text-font-family' ), astra_get_option( 'ast-dynamic-archive-' . $current_post_type . '-text-font-weight' ), $banner_text_font_size, 'ast-dynamic-archive-' . $current_post_type . '-text-font-extras', $text_color ), $selector . ' .ast-archive-title, ' . $selector . ' .ast-archive-title *' => astra_get_font_array_css( astra_get_option( 'ast-dynamic-archive-' . $current_post_type . '-title-font-family' ), astra_get_option( 'ast-dynamic-archive-' . $current_post_type . '-title-font-weight', Astra_Posts_Structure_Loader::get_customizer_default( 'title-font-weight' ) ), $banner_title_font_size, 'ast-dynamic-archive-' . $current_post_type . '-title-font-extras', $title_color ), $selector . ' a, ' . $selector . ' a *' => array( 'color' => esc_attr( $link_color ), ), $selector . ' a:hover, ' . $selector . ' a:hover *' => array( 'color' => esc_attr( $link_hover_color ), ), $selector . ' > *:not(:last-child)' => array( 'margin-bottom' => $elements_gap . 'px', ), ); /** * Tablet CSS. */ $css_output_tablet = array( $selector => array( 'text-align' => $tab_h_alignment, 'padding-top' => astra_responsive_spacing( $banner_padding, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $banner_padding, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $banner_padding, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $banner_padding, 'left', 'tablet' ), 'margin-top' => astra_responsive_spacing( $banner_margin, 'top', 'tablet' ), 'margin-right' => astra_responsive_spacing( $banner_margin, 'right', 'tablet' ), 'margin-bottom' => astra_responsive_spacing( $banner_margin, 'bottom', 'tablet' ), 'margin-left' => astra_responsive_spacing( $banner_margin, 'left', 'tablet' ), ), $selector . ' .ast-archive-title' => array( 'font-size' => astra_responsive_font( $banner_title_font_size, 'tablet' ), ), $selector . ' *' => array( 'font-size' => astra_responsive_font( $banner_text_font_size, 'tablet' ), ), ); /** * Mobile CSS. */ $css_output_mobile = array( $selector => array( 'text-align' => $mob_h_alignment, 'padding-top' => astra_responsive_spacing( $banner_padding, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $banner_padding, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $banner_padding, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $banner_padding, 'left', 'mobile' ), 'margin-top' => astra_responsive_spacing( $banner_margin, 'top', 'mobile' ), 'margin-right' => astra_responsive_spacing( $banner_margin, 'right', 'mobile' ), 'margin-bottom' => astra_responsive_spacing( $banner_margin, 'bottom', 'mobile' ), 'margin-left' => astra_responsive_spacing( $banner_margin, 'left', 'mobile' ), ), $selector . ' .ast-archive-title' => array( 'font-size' => astra_responsive_font( $banner_title_font_size, 'mobile' ), ), $selector . ' *' => array( 'font-size' => astra_responsive_font( $banner_text_font_size, 'mobile' ), ), ); if ( 'none' !== $background_type ) { if ( class_exists( 'WooCommerce' ) && 'product' === $current_post_type ) { if ( 'custom' === $background_type ) { $custom_background = astra_get_option( 'ast-dynamic-archive-' . $current_post_type . '-banner-custom-bg' ); $css_output_desktop['.archive section.ast-archive-description'] = astra_get_responsive_background_obj( $custom_background, 'desktop' ); $css_output_tablet['.archive section.ast-archive-description'] = astra_get_responsive_background_obj( $custom_background, 'tablet' ); $css_output_mobile['.archive section.ast-archive-description'] = astra_get_responsive_background_obj( $custom_background, 'mobile' ); } else { // @codingStandardsIgnoreStart /** * @psalm-suppress RedundantCondition * @psalm-suppress InvalidGlobal */ global $wp_query; /** * @psalm-suppress RedundantCondition * @psalm-suppress InvalidGlobal */ // @codingStandardsIgnoreEnd $overlay_color = astra_get_option( 'ast-dynamic-archive-' . $current_post_type . '-banner-featured-overlay', '' ); $taxonomy = $wp_query->get_queried_object(); if ( is_callable( 'is_shop' ) && is_shop() && '' !== $overlay_color ) { $css_output_desktop['.archive section.ast-archive-description']['background'] = $overlay_color; } if ( ! empty( $taxonomy->term_id ) ) { $thumbnail_id = get_term_meta( $taxonomy->term_id, 'thumbnail_id', true ); $feat_image_src = wp_get_attachment_url( $thumbnail_id ); if ( $feat_image_src ) { $css_output_desktop['.archive section.ast-archive-description'] = array( 'background' => 'url( ' . esc_url( $feat_image_src ) . ' )', 'background-repeat' => 'no-repeat', 'background-attachment' => 'scroll', 'background-position' => 'center center', 'background-size' => 'cover', ); if ( '' !== $overlay_color ) { $css_output_desktop['.archive section.ast-archive-description']['background'] = 'url( ' . esc_url( $feat_image_src ) . ' ) ' . $overlay_color; $css_output_desktop['.archive section.ast-archive-description']['background-blend-mode'] = 'multiply'; } } } } } else { $custom_background = astra_get_option( 'ast-dynamic-archive-' . $current_post_type . '-banner-custom-bg' ); $css_output_desktop['.archive section.ast-archive-description'] = astra_get_responsive_background_obj( $custom_background, 'desktop' ); $css_output_tablet['.archive section.ast-archive-description'] = astra_get_responsive_background_obj( $custom_background, 'tablet' ); $css_output_mobile['.archive section.ast-archive-description'] = astra_get_responsive_background_obj( $custom_background, 'mobile' ); } } } else { /** * Desktop CSS. */ $css_output_desktop = array( $selector => array( 'text-align' => $desk_h_alignment, 'justify-content' => $vert_alignment, 'min-height' => $desk_banner_height, 'margin-top' => astra_responsive_spacing( $banner_margin, 'top', 'desktop' ), 'margin-bottom' => astra_responsive_spacing( $banner_margin, 'bottom', 'desktop' ), 'margin-left' => astra_responsive_spacing( $banner_margin, 'left', 'desktop' ), 'margin-right' => astra_responsive_spacing( $banner_margin, 'right', 'desktop' ), 'padding-top' => astra_responsive_spacing( $banner_padding, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $banner_padding, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $banner_padding, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $banner_padding, 'left', 'desktop' ), ), $selector . ' .ast-container' => array( 'width' => '100%', ), $selector . ' .ast-container *' => astra_get_font_array_css( astra_get_option( 'ast-dynamic-archive-' . $current_post_type . '-text-font-family' ), astra_get_option( 'ast-dynamic-archive-' . $current_post_type . '-text-font-weight' ), $banner_text_font_size, 'ast-dynamic-archive-' . $current_post_type . '-text-font-extras', $text_color ), $selector . ' .ast-container h1' => astra_get_font_array_css( astra_get_option( 'ast-dynamic-archive-' . $current_post_type . '-title-font-family' ), astra_get_option( 'ast-dynamic-archive-' . $current_post_type . '-title-font-weight', Astra_Posts_Structure_Loader::get_customizer_default( 'title-font-weight' ) ), $banner_title_font_size, 'ast-dynamic-archive-' . $current_post_type . '-title-font-extras', $title_color ), '.ast-page-builder-template ' . $selector . ' .ast-container' => array( 'max-width' => '100%', ), '.ast-narrow-container ' . $selector . ' .ast-container' => array( 'max-width' => $narrow_container_width . 'px', ), $selector . ' .ast-container a, ' . $selector . ' .ast-container a *' => array( 'color' => esc_attr( $link_color ), ), $selector . ' .ast-container a:hover, ' . $selector . ' .ast-container a:hover *' => array( 'color' => esc_attr( $link_hover_color ), ), $selector . ' .ast-container > *:not(:last-child)' => array( 'margin-bottom' => $elements_gap . 'px', ), $selector . ' .ast-container > *:last-child' => array( 'margin-bottom' => '0', ), ); /** * Min tablet width CSS. */ $css_output_min_tablet = array( '.ast-narrow-container ' . $selector . ' .ast-container' => array( 'max-width' => $narrow_container_width . 'px', 'padding-left' => '0', 'padding-right' => '0', ), ); /** * Tablet CSS. */ $css_output_tablet = array( $selector => array( 'text-align' => $tab_h_alignment, 'min-height' => $tab_banner_height, 'padding-top' => astra_responsive_spacing( $banner_padding, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $banner_padding, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $banner_padding, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $banner_padding, 'left', 'tablet' ), 'margin-top' => astra_responsive_spacing( $banner_margin, 'top', 'tablet' ), 'margin-right' => astra_responsive_spacing( $banner_margin, 'right', 'tablet' ), 'margin-bottom' => astra_responsive_spacing( $banner_margin, 'bottom', 'tablet' ), 'margin-left' => astra_responsive_spacing( $banner_margin, 'left', 'tablet' ), ), $selector . ' .ast-container' => array( 'padding-left' => '0', 'padding-right' => '0', ), $selector . ' .ast-container h1' => array( 'font-size' => astra_responsive_font( $banner_title_font_size, 'tablet' ), ), $selector . ' *' => array( 'font-size' => astra_responsive_font( $banner_text_font_size, 'tablet' ), ), ); /** * Mobile CSS. */ $css_output_mobile = array( $selector => array( 'text-align' => $mob_h_alignment, 'min-height' => $mob_banner_height, 'padding-top' => astra_responsive_spacing( $banner_padding, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $banner_padding, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $banner_padding, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $banner_padding, 'left', 'mobile' ), 'margin-top' => astra_responsive_spacing( $banner_margin, 'top', 'mobile' ), 'margin-right' => astra_responsive_spacing( $banner_margin, 'right', 'mobile' ), 'margin-bottom' => astra_responsive_spacing( $banner_margin, 'bottom', 'mobile' ), 'margin-left' => astra_responsive_spacing( $banner_margin, 'left', 'mobile' ), ), $selector . ' .ast-container h1' => array( 'font-size' => astra_responsive_font( $banner_title_font_size, 'mobile' ), ), $selector . ' *' => array( 'font-size' => astra_responsive_font( $banner_text_font_size, 'mobile' ), ), ); if ( ( 'custom' === $width_type ) ) { $css_output_desktop[ $selector . '[data-banner-width-type="custom"]' ]['max-width'] = $custom_width . 'px'; } if ( 'none' !== $background_type ) { if ( 'product' !== $current_post_type ) { $custom_background = astra_get_option( 'ast-dynamic-archive-' . $current_post_type . '-banner-custom-bg' ); $css_output_desktop[ $selector . '[data-banner-background-type="custom"]' ] = astra_get_responsive_background_obj( $custom_background, 'desktop' ); $css_output_tablet[ $selector . '[data-banner-background-type="custom"]' ] = astra_get_responsive_background_obj( $custom_background, 'tablet' ); $css_output_mobile[ $selector . '[data-banner-background-type="custom"]' ] = astra_get_responsive_background_obj( $custom_background, 'mobile' ); } else { if ( 'custom' === $background_type ) { $custom_background = astra_get_option( 'ast-dynamic-archive-' . $current_post_type . '-banner-custom-bg' ); $css_output_desktop[ $selector . '[data-banner-background-type="custom"]' ] = astra_get_responsive_background_obj( $custom_background, 'desktop' ); $css_output_tablet[ $selector . '[data-banner-background-type="custom"]' ] = astra_get_responsive_background_obj( $custom_background, 'tablet' ); $css_output_mobile[ $selector . '[data-banner-background-type="custom"]' ] = astra_get_responsive_background_obj( $custom_background, 'mobile' ); } else { // @codingStandardsIgnoreStart /** * @psalm-suppress RedundantCondition * @psalm-suppress InvalidGlobal */ global $wp_query; /** * @psalm-suppress RedundantCondition * @psalm-suppress InvalidGlobal */ // @codingStandardsIgnoreEnd $overlay_color = astra_get_option( 'ast-dynamic-archive-' . $current_post_type . '-banner-featured-overlay', '' ); $taxonomy = $wp_query->get_queried_object(); $feat_image_src = ''; // Checking if the is_shop function and wc_get_page_id are callable. if ( is_callable( 'is_shop' ) && is_shop() && is_callable( 'wc_get_page_id' ) ) { $shop_page_id = wc_get_page_id( 'shop' ); // Retrieving the featured image URL of the shop page. $feat_image_src = get_the_post_thumbnail_url( $shop_page_id ); } // Checking if we are in a taxonomy (category/archive) page. if ( ! empty( $taxonomy->term_id ) ) { $thumbnail_id = get_term_meta( $taxonomy->term_id, 'thumbnail_id', true ); $feat_image_src = wp_get_attachment_url( $thumbnail_id ); } // Apply the background if a featured image is set. if ( $feat_image_src ) { $css_output_desktop[ $selector . '[data-banner-background-type="featured"]' ] = array( 'background' => 'url( ' . esc_url( $feat_image_src ) . ' )', 'background-repeat' => 'no-repeat', 'background-attachment' => 'scroll', 'background-position' => 'center center', 'background-size' => 'cover', ); // Apply overlay if set. if ( '' !== $overlay_color ) { $css_output_desktop[ $selector . '[data-banner-background-type="featured"]' ]['background'] = 'url( ' . esc_url( $feat_image_src ) . ' ) ' . $overlay_color; $css_output_desktop[ $selector . '[data-banner-background-type="featured"]' ]['background-blend-mode'] = 'multiply'; } } elseif ( '' !== $overlay_color ) { // If no featured image is set, apply only the overlay color. $css_output_desktop[ $selector . '[data-banner-background-type="featured"]' ]['background'] = $overlay_color; } } } } } $dynamic_css .= ' .ast-archive-entry-banner { -js-display: flex; display: flex; flex-direction: column; justify-content: center; text-align: center; position: relative; background: #eeeeee; } .ast-archive-entry-banner[data-banner-width-type="custom"] { margin: 0 auto; width: 100%; } .ast-archive-entry-banner[data-banner-layout="layout-1"] { background: inherit; padding: 20px 0; text-align: left; } '; if ( is_customize_preview() ) { $dynamic_css .= ' .site-header-focus-item .ast-container div.customize-partial-edit-shortcut, .site-header-focus-item .ast-container button.item-customizer-focus { font-size: inherit; } '; } /* Parse CSS from array() */ $dynamic_css .= astra_parse_css( $css_output_desktop ); $dynamic_css .= astra_parse_css( $css_output_min_tablet, astra_get_tablet_breakpoint( '', 1 ) ); $dynamic_css .= astra_parse_css( $css_output_tablet, '', astra_get_tablet_breakpoint() ); $dynamic_css .= astra_parse_css( $css_output_mobile, '', astra_get_mobile_breakpoint() ); return $dynamic_css; } PK�����zmZs��s��3��modules/posts-structures/css/single-dynamic.css.phpnu�[�������� array( // Margin CSS. 'margin-top' => astra_responsive_spacing( $margin, 'top', 'desktop' ), 'margin-bottom' => astra_responsive_spacing( $margin, 'bottom', 'desktop' ), 'margin-left' => astra_responsive_spacing( $margin, 'left', 'desktop' ), 'margin-right' => astra_responsive_spacing( $margin, 'right', 'desktop' ), ), $padding_selector => array( // Padding CSS. 'padding-top' => astra_responsive_spacing( $padding, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $padding, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $padding, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $padding, 'right', 'desktop' ), ), ); // Tablet CSS. $css_output_tablet = array( $margin_selector => array( // Margin CSS. 'margin-top' => astra_responsive_spacing( $margin, 'top', 'tablet' ), 'margin-bottom' => astra_responsive_spacing( $margin, 'bottom', 'tablet' ), 'margin-left' => astra_responsive_spacing( $margin, 'left', 'tablet' ), 'margin-right' => astra_responsive_spacing( $margin, 'right', 'tablet' ), ), $padding_selector => array( // Padding CSS. 'padding-top' => astra_responsive_spacing( $padding, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $padding, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $padding, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $padding, 'right', 'tablet' ), ), ); // Mobile CSS. $css_output_mobile = array( $margin_selector => array( // Margin CSS. 'margin-top' => astra_responsive_spacing( $margin, 'top', 'mobile' ), 'margin-bottom' => astra_responsive_spacing( $margin, 'bottom', 'mobile' ), 'margin-left' => astra_responsive_spacing( $margin, 'left', 'mobile' ), 'margin-right' => astra_responsive_spacing( $margin, 'right', 'mobile' ), ), $padding_selector => array( // Padding CSS. 'padding-top' => astra_responsive_spacing( $padding, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $padding, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $padding, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $padding, 'right', 'mobile' ), ), ); $css_output = astra_parse_css( $css_output_desktop ); $css_output .= astra_parse_css( $css_output_tablet, '', astra_get_tablet_breakpoint() ); $css_output .= astra_parse_css( $css_output_mobile, '', astra_get_mobile_breakpoint() ); $dynamic_css .= $css_output; if ( false === astra_get_option( 'ast-single-' . $current_post_type . '-title', ( class_exists( 'WooCommerce' ) && 'product' === $current_post_type ) ? false : true ) ) { return $dynamic_css; } $layout_type = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-layout', 'layout-1' ); $layout_2_active = ( 'layout-2' === $layout_type ) ? true : false; $exclude_attr = astra_get_option( 'enable-related-posts', false ) ? ':not(.related-entry-header)' : ''; if ( $layout_2_active ) { $selector = '.ast-single-entry-banner[data-post-type="' . $current_post_type . '"]'; } else { $selector = 'header.entry-header' . $exclude_attr; } $site_content_width = astra_get_option( 'site-content-width', 1200 ); $horz_alignment = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-horizontal-alignment' ); $desk_h_alignment = ( isset( $horz_alignment['desktop'] ) ) ? $horz_alignment['desktop'] : ''; $tab_h_alignment = ( isset( $horz_alignment['tablet'] ) ) ? $horz_alignment['tablet'] : ''; $mob_h_alignment = ( isset( $horz_alignment['mobile'] ) ) ? $horz_alignment['mobile'] : ''; $banner_padding = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-banner-padding', Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-padding' ) ); $banner_margin = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-banner-margin' ); $text_color = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-banner-text-color' ); $title_color = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-banner-title-color' ); $link_color = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-banner-link-color' ); $link_hover_color = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-banner-link-hover-color' ); $elements_gap = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-elements-gap', 10 ); $banner_height = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-banner-height' ); $desk_banner_height = ( $layout_2_active && isset( $banner_height['desktop'] ) ) ? astra_get_css_value( $banner_height['desktop'], 'px' ) : ''; $tab_banner_height = ( $layout_2_active && isset( $banner_height['tablet'] ) ) ? astra_get_css_value( $banner_height['tablet'], 'px' ) : ''; $mob_banner_height = ( $layout_2_active && isset( $banner_height['mobile'] ) ) ? astra_get_css_value( $banner_height['mobile'], 'px' ) : ''; $vert_alignment = ( $layout_2_active ) ? astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-vertical-alignment', 'center' ) : 'center'; $width_type = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-banner-width-type', 'fullwidth' ); $custom_width = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-banner-custom-width', 1200 ); $single_structure = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-structure', 'page' === $current_post_type ? array( 'ast-dynamic-single-' . $current_post_type . '-image', 'ast-dynamic-single-' . $current_post_type . '-title' ) : array( 'ast-dynamic-single-' . $current_post_type . '-title', 'ast-dynamic-single-' . $current_post_type . '-meta' ) ); // Banner Text typography dynamic stylings. $banner_text_font_size = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-text-font-size' ); // Banner Title typography dynamic stylings. $banner_title_font_size = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-title-font-size', Astra_Posts_Structure_Loader::get_customizer_default( 'title-font-size' ) ); // Banner Meta typography dynamic stylings. $banner_meta_font_size = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-meta-font-size' ); $css_output_min_tablet = array(); $narrow_container_width = astra_get_option( 'narrow-container-max-width', apply_filters( 'astra_narrow_container_width', 750 ) ); $author_avatar_size = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-author-avatar-size' ); // Aspect ratio. $aspect_ratio_type = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-article-featured-image-ratio-type', 'predefined' ); $predefined_scale = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-article-featured-image-ratio-pre-scale', '16/9' ); $custom_scale_width = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-article-featured-image-custom-scale-width', 16 ); $custom_scale_height = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-article-featured-image-custom-scale-height', 9 ); $aspect_ratio = astra_get_dynamic_image_aspect_ratio( $aspect_ratio_type, $predefined_scale, $custom_scale_width, $custom_scale_height ); $object_fit_style = 'custom' === $aspect_ratio_type ? 'cover' : ''; // Remove featured image padding. $remove_featured_image_padding = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-remove-featured-padding', false ) && 'layout-1' === $layout_type && 'none' === astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-article-featured-image-position-layout-1' ) ? true : false; // Few settings from banner section are also applicable to 'layout-1' so adding this condition & compatibility. if ( 'layout-1' === $layout_type ) { $image_wrap_alignment = Astra_Dynamic_CSS::astra_4_4_0_compatibility() ? 'center' : ''; /** * Desktop CSS. */ $css_output_desktop = array( $selector => array( 'text-align' => $desk_h_alignment, ), $selector . ' *' => astra_get_font_array_css( astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-text-font-family' ), astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-text-font-weight' ), $banner_text_font_size, 'ast-dynamic-single-' . $current_post_type . '-text-font-extras', $text_color ), $selector . ' .entry-title' => astra_get_font_array_css( astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-title-font-family' ), astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-title-font-weight', Astra_Posts_Structure_Loader::get_customizer_default( 'title-font-weight' ) ), $banner_title_font_size, 'ast-dynamic-single-' . $current_post_type . '-title-font-extras', $title_color ), $selector . ' .entry-meta, ' . $selector . ' .entry-meta *' => astra_get_font_array_css( astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-meta-font-family' ), astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-meta-font-weight' ), $banner_meta_font_size, 'ast-dynamic-single-' . $current_post_type . '-meta-font-extras' ), $selector . ' a, ' . $selector . ' a *' => array( 'color' => esc_attr( $link_color ), ), $selector . ' a:hover, ' . $selector . ' a:hover *' => array( 'color' => esc_attr( $link_hover_color ), ), $selector . ' > *:not(:last-child)' => array( 'margin-bottom' => $elements_gap . 'px', ), $selector . ' .post-thumb-img-content' => array( 'text-align' => $image_wrap_alignment, ), $selector . ' .post-thumb img, .ast-single-post-featured-section.post-thumb img' => array( 'aspect-ratio' => $aspect_ratio, 'width' => Astra_Dynamic_CSS::astra_4_6_0_compatibility() && 'default' !== $aspect_ratio_type ? '100%' : '', 'height' => Astra_Dynamic_CSS::astra_4_6_0_compatibility() && 'default' !== $aspect_ratio_type ? '100%' : '', 'object-fit' => $object_fit_style, ), ); /** * Tablet CSS. */ $css_output_tablet = array( $selector => array( 'text-align' => $tab_h_alignment, ), $selector . ' .entry-title' => array( 'font-size' => astra_responsive_font( $banner_title_font_size, 'tablet' ), ), $selector . ' *' => array( 'font-size' => astra_responsive_font( $banner_text_font_size, 'tablet' ), ), $selector . ' .entry-meta, ' . $selector . ' .entry-meta *' => array( 'font-size' => astra_responsive_font( $banner_meta_font_size, 'tablet' ), ), ); /** * Mobile CSS. */ $css_output_mobile = array( $selector => array( 'text-align' => $mob_h_alignment, ), $selector . ' .entry-title' => array( 'font-size' => astra_responsive_font( $banner_title_font_size, 'mobile' ), ), $selector . ' *' => array( 'font-size' => astra_responsive_font( $banner_text_font_size, 'mobile' ), ), $selector . ' .entry-meta, ' . $selector . ' .entry-meta *' => array( 'font-size' => astra_responsive_font( $banner_meta_font_size, 'mobile' ), ), ); if ( $remove_featured_image_padding ) { $single_post_container_spacing = astra_get_option( 'single-post-inside-spacing' ); $container_padding_defaults = Astra_Dynamic_CSS::astra_4_6_0_compatibility() && is_single() ? '2.5em' : '3em'; $container_lg_horz_spacing = ( true === astra_check_is_structural_setup() ) ? $container_padding_defaults : '6.67'; $container_lg_vert_spacing = ( true === astra_check_is_structural_setup() ) ? $container_padding_defaults : '5.34'; $astra_desktop_container_left_spacing = defined( 'ASTRA_EXT_VER' ) && astra_responsive_spacing( $single_post_container_spacing, 'left', 'desktop' ) ? astra_responsive_spacing( $single_post_container_spacing, 'left', 'desktop', $container_lg_horz_spacing ) : 'var(--ast-container-default-xlg-padding)'; $astra_desktop_container_right_spacing = defined( 'ASTRA_EXT_VER' ) && astra_responsive_spacing( $single_post_container_spacing, 'right', 'desktop' ) ? astra_responsive_spacing( $single_post_container_spacing, 'right', 'desktop', $container_lg_horz_spacing ) : 'var(--ast-container-default-xlg-padding)'; $astra_desktop_container_top_spacing = defined( 'ASTRA_EXT_VER' ) && astra_responsive_spacing( $single_post_container_spacing, 'right', 'desktop' ) ? astra_responsive_spacing( $single_post_container_spacing, 'right', 'desktop', $container_lg_vert_spacing ) : 'var(--ast-container-default-xlg-padding)'; $astra_tablet_container_left_spacing = defined( 'ASTRA_EXT_VER' ) && astra_responsive_spacing( $single_post_container_spacing, 'left', 'tablet' ) ? astra_responsive_spacing( $single_post_container_spacing, 'left', 'tablet', $container_lg_horz_spacing ) : 'var(--ast-container-default-xlg-padding)'; $astra_tablet_container_right_spacing = defined( 'ASTRA_EXT_VER' ) && astra_responsive_spacing( $single_post_container_spacing, 'right', 'tablet' ) ? astra_responsive_spacing( $single_post_container_spacing, 'right', 'tablet', $container_lg_horz_spacing ) : 'var(--ast-container-default-xlg-padding)'; $astra_tablet_container_top_spacing = defined( 'ASTRA_EXT_VER' ) && astra_responsive_spacing( $single_post_container_spacing, 'right', 'tablet' ) ? astra_responsive_spacing( $single_post_container_spacing, 'right', 'tablet', $container_lg_vert_spacing ) : 'var(--ast-container-default-xlg-padding)'; $astra_mobile_container_left_spacing = defined( 'ASTRA_EXT_VER' ) && astra_responsive_spacing( $single_post_container_spacing, 'left', 'mobile' ) ? astra_responsive_spacing( $single_post_container_spacing, 'left', 'mobile', $container_lg_horz_spacing ) : '1em'; $astra_mobile_container_right_spacing = defined( 'ASTRA_EXT_VER' ) && astra_responsive_spacing( $single_post_container_spacing, 'right', 'mobile' ) ? astra_responsive_spacing( $single_post_container_spacing, 'right', 'mobile', $container_lg_horz_spacing ) : '1em'; $astra_mobile_container_top_spacing = defined( 'ASTRA_EXT_VER' ) && astra_responsive_spacing( $single_post_container_spacing, 'right', 'mobile' ) ? astra_responsive_spacing( $single_post_container_spacing, 'right', 'mobile', $container_lg_vert_spacing ) : '1.5em'; $css_output_desktop[ '.ast-separate-container ' . $selector . ' .post-thumb' ]['margin-left'] = $astra_desktop_container_left_spacing ? 'calc( -1 * ' . $astra_desktop_container_left_spacing . ' )' : ''; $css_output_desktop[ '.ast-separate-container ' . $selector . ' > *:first-child.post-thumb' ]['margin-top'] = $astra_desktop_container_top_spacing ? 'calc( -1 * ' . $astra_desktop_container_top_spacing . ' )' : ''; $css_output_desktop[ '.ast-separate-container ' . $selector . ' .post-thumb' ]['margin-right'] = $astra_desktop_container_right_spacing ? 'calc( -1 * ' . $astra_desktop_container_right_spacing . ' )' : ''; $css_output_tablet[ '.ast-separate-container ' . $selector . ' .post-thumb' ]['margin-left'] = $astra_tablet_container_left_spacing ? 'calc( -1 * ' . $astra_tablet_container_left_spacing . ' )' : ''; $css_output_tablet[ '.ast-separate-container ' . $selector . ' > *:first-child.post-thumb' ]['margin-top'] = $astra_tablet_container_top_spacing ? 'calc( -1 * ' . $astra_tablet_container_top_spacing . ' )' : ''; $css_output_tablet[ '.ast-separate-container ' . $selector . ' .post-thumb' ]['margin-right'] = $astra_tablet_container_right_spacing ? 'calc( -1 * ' . $astra_tablet_container_right_spacing . ' )' : ''; $css_output_mobile[ '.ast-separate-container ' . $selector . ' .post-thumb' ]['margin-left'] = $astra_mobile_container_left_spacing ? 'calc( -1 * ' . $astra_mobile_container_left_spacing . ' )' : ''; $css_output_mobile[ '.ast-separate-container ' . $selector . ' > *:first-child.post-thumb' ]['margin-top'] = $astra_mobile_container_top_spacing ? 'calc( -1 * ' . $astra_mobile_container_top_spacing . ' )' : ''; $css_output_mobile[ '.ast-separate-container ' . $selector . ' .post-thumb' ]['margin-right'] = $astra_mobile_container_right_spacing ? 'calc( -1 * ' . $astra_mobile_container_right_spacing . ' )' : ''; } } else { $entry_title_selector = is_customize_preview() ? $selector . ' .ast-container .entry-title' : $selector . ' .entry-title'; $image_position = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-image-position', 'inside' ); $use_featured_background = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-featured-as-background', false ); $custom_background = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-banner-background', Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-background' ) ); /** * Desktop CSS. */ $css_output_desktop = array( $selector => array( 'text-align' => $desk_h_alignment, 'justify-content' => $vert_alignment, 'min-height' => $desk_banner_height, 'margin-top' => astra_responsive_spacing( $banner_margin, 'top', 'desktop' ), 'margin-right' => astra_responsive_spacing( $banner_margin, 'right', 'desktop' ), 'margin-bottom' => astra_responsive_spacing( $banner_margin, 'bottom', 'desktop' ), 'margin-left' => astra_responsive_spacing( $banner_margin, 'left', 'desktop' ), 'width' => '100%', 'padding-top' => astra_responsive_spacing( $banner_padding, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $banner_padding, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $banner_padding, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $banner_padding, 'left', 'desktop' ), ), $selector . '[data-banner-layout="layout-2"]' => astra_get_responsive_background_obj( $custom_background, 'desktop' ), $selector . ' .ast-container *' => astra_get_font_array_css( astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-text-font-family' ), astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-text-font-weight' ), $banner_text_font_size, 'ast-dynamic-single-' . $current_post_type . '-text-font-extras', $text_color ), $selector . ' .ast-container > *:not(:last-child), ' . $selector . ' .read-more' => array( 'margin-bottom' => $elements_gap . 'px', ), $selector . ' .ast-container' => array( 'width' => '100%', ), $entry_title_selector => astra_get_font_array_css( astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-title-font-family' ), astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-title-font-weight', Astra_Posts_Structure_Loader::get_customizer_default( 'title-font-weight' ) ), $banner_title_font_size, 'ast-dynamic-single-' . $current_post_type . '-title-font-extras', $title_color ), $selector . ' > .entry-title' => array( 'margin-bottom' => '0', ), $selector . ' .entry-meta, ' . $selector . ' .entry-meta *' => astra_get_font_array_css( astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-meta-font-family' ), astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-meta-font-weight' ), $banner_meta_font_size, 'ast-dynamic-single-' . $current_post_type . '-meta-font-extras' ), $selector . ' .ast-container a, ' . $selector . ' .ast-container a *' => array( 'color' => esc_attr( $link_color ), ), $selector . ' .ast-container a:hover, ' . $selector . ' .ast-container a:hover *' => array( 'color' => esc_attr( $link_hover_color ), ), '.ast-single-entry-banner .read-more .ast-button' => array( 'margin-top' => '0.5em', 'display' => 'inline-block', ), $selector . ' .post-thumb img, .ast-single-post-featured-section img' => array( 'aspect-ratio' => $aspect_ratio, 'width' => Astra_Dynamic_CSS::astra_4_6_0_compatibility() && 'default' !== $aspect_ratio_type ? '100%' : '', 'height' => Astra_Dynamic_CSS::astra_4_6_0_compatibility() && 'default' !== $aspect_ratio_type ? '100%' : '', 'object-fit' => $object_fit_style, ), $selector . ' .ast-container > *:last-child' => array( 'margin-bottom' => '0', ), ); /** * Min tablet width CSS. */ $css_output_min_tablet = array( '.ast-narrow-container ' . $selector . ' .ast-container' => array( 'max-width' => $narrow_container_width . 'px', 'padding-left' => '0', 'padding-right' => '0', ), ); /** * Tablet CSS. */ $css_output_tablet = array( $selector => array( 'text-align' => $tab_h_alignment, 'min-height' => $tab_banner_height, 'padding-top' => astra_responsive_spacing( $banner_padding, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $banner_padding, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $banner_padding, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $banner_padding, 'left', 'tablet' ), 'margin-top' => astra_responsive_spacing( $banner_margin, 'top', 'tablet' ), 'margin-right' => astra_responsive_spacing( $banner_margin, 'right', 'tablet' ), 'margin-bottom' => astra_responsive_spacing( $banner_margin, 'bottom', 'tablet' ), 'margin-left' => astra_responsive_spacing( $banner_margin, 'left', 'tablet' ), ), $selector . '[data-banner-layout="layout-2"]' => astra_get_responsive_background_obj( $custom_background, 'tablet' ), $selector . ' .entry-title' => array( 'font-size' => astra_responsive_font( $banner_title_font_size, 'tablet' ), ), $selector . ' .ast-container' => array( 'padding-left' => '0', 'padding-right' => '0', ), $selector . ' *' => array( 'font-size' => astra_responsive_font( $banner_text_font_size, 'tablet' ), ), $selector . ' .entry-meta, ' . $selector . ' .entry-meta *' => array( 'font-size' => astra_responsive_font( $banner_meta_font_size, 'tablet' ), ), ); /** * Mobile CSS. */ $css_output_mobile = array( $selector => array( 'text-align' => $mob_h_alignment, 'min-height' => $mob_banner_height, 'padding-top' => astra_responsive_spacing( $banner_padding, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $banner_padding, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $banner_padding, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $banner_padding, 'left', 'mobile' ), 'margin-top' => astra_responsive_spacing( $banner_margin, 'top', 'mobile' ), 'margin-right' => astra_responsive_spacing( $banner_margin, 'right', 'mobile' ), 'margin-bottom' => astra_responsive_spacing( $banner_margin, 'bottom', 'mobile' ), 'margin-left' => astra_responsive_spacing( $banner_margin, 'left', 'mobile' ), ), $selector . '[data-banner-layout="layout-2"]' => astra_get_responsive_background_obj( $custom_background, 'mobile' ), $selector . ' .entry-title' => array( 'font-size' => astra_responsive_font( $banner_title_font_size, 'mobile' ), ), $selector . ' *' => array( 'font-size' => astra_responsive_font( $banner_text_font_size, 'mobile' ), ), $selector . ' .entry-meta, ' . $selector . ' .entry-meta *' => array( 'font-size' => astra_responsive_font( $banner_meta_font_size, 'mobile' ), ), ); if ( ( $layout_2_active && 'custom' === $width_type ) || is_customize_preview() ) { $css_output_desktop[ $selector . '[data-banner-width-type="custom"]' ]['max-width'] = $custom_width . 'px'; } if ( 'outside' !== $image_position && in_array( 'ast-dynamic-single-' . $current_post_type . '-image', $single_structure ) && $use_featured_background ) { /** @psalm-suppress PossiblyFalseArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $feat_image_src = wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) ); /** @psalm-suppress PossiblyFalseArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( $feat_image_src ) { $css_output_desktop[ $selector . '[data-banner-background-type="featured"]' ] = array( 'background' => 'url( ' . esc_url( $feat_image_src ) . ' )', 'background-repeat' => 'no-repeat', 'background-attachment' => 'scroll', 'background-position' => 'center center', 'background-size' => 'cover', ); $overlay_color = astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-banner-featured-overlay', '' ); if ( '' !== $overlay_color && 'unset' !== $overlay_color ) { $css_output_desktop[ $selector . '[data-banner-background-type="featured"]' ]['background'] = 'url( ' . esc_url( $feat_image_src ) . ' ) ' . $overlay_color; $css_output_desktop[ $selector . '[data-banner-background-type="featured"]' ]['background-blend-mode'] = 'multiply'; } } } if ( 'outside' === $image_position ) { $css_output_desktop['.single article .post-thumb'] = array( 'margin-bottom' => '2em', ); } } $dynamic_css .= ' .ast-single-entry-banner { -js-display: flex; display: flex; flex-direction: column; justify-content: center; text-align: center; position: relative; background: #eeeeee; } .ast-single-entry-banner[data-banner-layout="layout-1"] { max-width: ' . astra_get_css_value( $site_content_width, 'px' ) . '; background: inherit; padding: 20px 0; } .ast-single-entry-banner[data-banner-width-type="custom"] { margin: 0 auto; width: 100%; } .ast-single-entry-banner + .site-content .entry-header { margin-bottom: 0; } .site .ast-author-avatar { --ast-author-avatar-size: ' . astra_get_css_value( $author_avatar_size, 'px' ) . '; } a.ast-underline-text { text-decoration: underline; } .ast-container > .ast-terms-link { position: relative; display: block; } a.ast-button.ast-badge-tax { padding: 4px 8px; border-radius: 3px; font-size: inherit; } '; if ( is_customize_preview() ) { $dynamic_css .= ' .site-header-focus-item .ast-container div.customize-partial-edit-shortcut, .site-header-focus-item .ast-container button.item-customizer-focus { font-size: inherit; } '; } $margin_top = astra_responsive_spacing( $margin, 'top', 'desktop' ); // To add top spacing for SureCart shop page default title. if ( class_exists( 'SureCart' ) && $margin_top && 0 === intval( $margin_top ) && get_the_ID() === intval( get_option( 'surecart_shop_page_id' ) ) ) { $dynamic_css .= ' .page .entry-header { margin-top: 3em; } '; } /* Parse CSS from array() */ $dynamic_css .= astra_parse_css( $css_output_desktop ); $dynamic_css .= astra_parse_css( $css_output_min_tablet, astra_get_tablet_breakpoint( '', 1 ) ); $dynamic_css .= astra_parse_css( $css_output_tablet, '', astra_get_tablet_breakpoint() ); $dynamic_css .= astra_parse_css( $css_output_mobile, '', astra_get_mobile_breakpoint() ); return $dynamic_css; } PK�����zmZm *�� *��?��modules/posts-structures/class-astra-posts-structure-loader.phpnu�[�������� array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', 'background-type' => '', 'background-media' => '', ), 'tablet' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', 'background-type' => '', 'background-media' => '', ), 'mobile' => array( 'background-color' => '', 'background-image' => '', 'background-repeat' => 'repeat', 'background-position' => 'center center', 'background-size' => 'auto', 'background-attachment' => 'scroll', 'overlay-type' => '', 'overlay-color' => '', 'overlay-opacity' => '', 'overlay-gradient' => '', 'background-type' => '', 'background-media' => '', ), ); self::$customizer_defaults['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', ); self::$customizer_defaults['responsive-padding'] = array( 'desktop' => array( 'top' => 3, 'right' => 3, 'bottom' => 3, 'left' => 3, ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'em', 'tablet-unit' => 'em', 'mobile-unit' => 'em', ); self::$customizer_defaults['font-size'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); self::$customizer_defaults['title-font-size'] = array( 'desktop' => $apply_new_default_color_typo_values ? '32' : '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); self::$customizer_defaults['title-font-weight'] = $apply_new_default_color_typo_values ? '600' : 'inherit'; self::$customizer_defaults['responsive-slider'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); self::$customizer_defaults['responsive-color'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); self::$customizer_defaults['font-extras'] = array( 'line-height' => '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => '', 'text-decoration' => '', ); add_action( 'customize_register', array( $this, 'posts_structures_customize_register' ), 2 ); add_action( 'astra_get_fonts', array( $this, 'add_fonts' ), 1 ); add_action( 'customize_preview_init', array( $this, 'preview_scripts' ) ); } /** * Enqueue google fonts. * * @return void * @since 4.0.0 */ public function add_fonts() { $post_types = self::get_supported_post_types(); foreach ( $post_types as $index => $post_type ) { // Single Banner - Font Support. $title_section = 'ast-dynamic-single-' . $post_type; $single_title_font_family = astra_get_option( $title_section . '-title-font-family' ); $single_title_font_weight = astra_get_option( $title_section . '-title-font-weight' ); Astra_Fonts::add_font( $single_title_font_family, $single_title_font_weight ); $single_text_font_family = astra_get_option( $title_section . '-text-font-family' ); $single_text_font_weight = astra_get_option( $title_section . '-text-font-weight' ); Astra_Fonts::add_font( $single_text_font_family, $single_text_font_weight ); $single_meta_font_family = astra_get_option( $title_section . '-meta-font-family' ); $single_meta_font_weight = astra_get_option( $title_section . '-meta-font-weight' ); Astra_Fonts::add_font( $single_meta_font_family, $single_meta_font_weight ); // Archive Banner - Font Support. $title_section = 'ast-dynamic-archive-' . $post_type; $archive_text_font_family = astra_get_option( $title_section . '-text-font-family' ); $archive_text_font_weight = astra_get_option( $title_section . '-text-font-weight' ); Astra_Fonts::add_font( $archive_text_font_family, $archive_text_font_weight ); $archive_title_font_family = astra_get_option( $title_section . '-title-font-family' ); $archive_title_font_weight = astra_get_option( $title_section . '-title-font-weight' ); Astra_Fonts::add_font( $archive_title_font_family, $archive_title_font_weight ); } foreach ( self::get_special_page_types() as $index => $special_type ) { $title_section = 'section-' . $special_type . '-page-title'; $instance_text_font_family = astra_get_option( $title_section . '-text-font-family' ); $instance_text_font_weight = astra_get_option( $title_section . '-text-font-weight' ); Astra_Fonts::add_font( $instance_text_font_family, $instance_text_font_weight ); $instance_title_font_family = astra_get_option( $title_section . '-title-font-family' ); $instance_title_font_weight = astra_get_option( $title_section . '-title-font-weight' ); Astra_Fonts::add_font( $instance_title_font_family, $instance_title_font_weight ); } } /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. * * @since 4.0.0 */ public function posts_structures_customize_register( $wp_customize ) { /** * Register Config control in Related Posts. */ // @codingStandardsIgnoreStart WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound require_once ASTRA_THEME_POST_STRUCTURE_DIR . 'customizer/class-astra-posts-structures-configs.php'; require_once ASTRA_THEME_POST_STRUCTURE_DIR . 'customizer/class-astra-posts-single-structures-configs.php'; require_once ASTRA_THEME_POST_STRUCTURE_DIR . 'customizer/class-astra-posts-archive-structures-configs.php'; require_once ASTRA_THEME_POST_STRUCTURE_DIR . 'customizer/class-astra-posts-special-archive-structures-configs.php'; // @codingStandardsIgnoreEnd WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound } /** * Get all supported pots types & filter the public ones for further query. * * @since 4.0.0 * @return array $post_types */ public static function get_supported_post_types() { if ( empty( self::$supported_post_types ) || is_customize_preview() ) { self::$supported_post_types = astra_get_queried_post_types(); // If Elementor is active, reindex the array. if ( defined( 'ELEMENTOR_VERSION' ) ) { self::$supported_post_types = array_values( self::$supported_post_types ); } } return apply_filters( 'astra_dynamic_post_structure_posttypes', self::$supported_post_types ); } /** * Get special pages query. * * @since 4.6.0 * @return array $special_pages */ public static function get_special_page_types() { $special_pages = array( 'search', ); return apply_filters( 'astra_dynamic_special_pages', $special_pages ); } /** * Customizer preview support. * * @since 4.0.0 */ public function preview_scripts() { /** @psalm-suppress RedundantCondition */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $dir_name = ( SCRIPT_DEBUG ) ? 'unminified' : 'minified'; /** @psalm-suppress RedundantCondition */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @psalm-suppress RedundantCondition */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $file_prefix = ( SCRIPT_DEBUG ) ? '' : '.min'; /** @psalm-suppress RedundantCondition */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort wp_enqueue_script( 'astra-post-strctures-customizer-preview', ASTRA_THEME_POST_STRUCTURE_URI . 'assets/js/' . $dir_name . '/customizer-preview' . $file_prefix . '.js', array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_THEME_VERSION, true ); // Localize variables for further JS. wp_localize_script( 'astra-post-strctures-customizer-preview', 'AstraPostStrcturesData', array( 'post_types' => self::get_supported_post_types(), 'special_pages' => self::get_special_page_types(), 'tablet_break_point' => astra_get_tablet_breakpoint(), 'mobile_break_point' => astra_get_mobile_breakpoint(), 'enabled_related_post' => astra_get_option( 'enable-related-posts', false ), ) ); } /** * Get customizer dynamic default. * * @param string $key Retrieve default for this parameter. * * @since 4.0.0 */ public static function get_customizer_default( $key ) { return isset( self::$customizer_defaults[ $key ] ) ? self::$customizer_defaults[ $key ] : array(); } } /** * Initialize class object with 'new' instance. */ new Astra_Posts_Structure_Loader(); PK�����{mZт��т��C��modules/posts-structures/assets/js/unminified/customizer-preview.jsnu�[��������/** * This file adds some LIVE to the Customizer live preview. To leverage * this, set your custom settings to 'postMessage' and then add your handling * here. Your javascript should grab settings from customizer controls, and * then make any necessary changes to the page using jQuery. * * @package Astra * @since x.x.x */ function astra_dynamic_build_css( addon, control, css_property, selector, unitSupport = false ) { var tablet_break_point = AstraPostStrcturesData.tablet_break_point || 768, mobile_break_point = AstraPostStrcturesData.mobile_break_point || 544, unitSuffix = unitSupport || ''; wp.customize( control, function( value ) { value.bind( function( value ) { if ( value.desktop || value.mobile || value.tablet ) { // Remove ', ), ), 'contextual_sub_control' => true, 'input_attrs' => array( 'dependents' => array( 'layout-1' => array( $title_section . '-empty-layout-message', $title_section . '-article-featured-image-position-layout-1', $title_section . '-article-featured-image-width-type' ), 'layout-2' => array( $title_section . '-featured-as-background', $title_section . '-banner-featured-overlay', $title_section . '-image-position', $title_section . '-featured-help-notice', $title_section . '-article-featured-image-position-layout-2' ), ), ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-width-type]', 'type' => 'control', 'control' => 'ast-selector', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-width-type', 'fullwidth' ), 'priority' => 10, 'title' => __( 'Container Width', 'astra' ), 'choices' => array( 'fullwidth' => __( 'Full Width', 'astra' ), 'custom' => __( 'Custom', 'astra' ), ), 'divider' => array( 'ast_class' => 'ast-top-divider ast-bottom-spacing' ), 'responsive' => false, 'renderAs' => 'text', 'context' => array( Astra_Builder_Helper::$general_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-custom-width]', 'type' => 'control', 'control' => 'ast-slider', 'section' => $title_section, 'transport' => 'postMessage', 'default' => astra_get_option( $title_section . '-banner-custom-width', 1200 ), 'context' => array( Astra_Builder_Helper::$general_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-width-type]', 'operator' => '===', 'value' => 'custom', ), ), 'priority' => 15, 'title' => __( 'Custom Width', 'astra' ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'type' => 'control', 'control' => 'ast-sortable', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_multi_choices' ), 'section' => $title_section, 'context' => Astra_Builder_Helper::$general_tab, 'default' => astra_get_option( $title_section . '-structure' ), 'priority' => 20, 'title' => __( 'Structure', 'astra' ), 'divider' => array( 'ast_class' => 'ast-bottom-spacing' ), 'choices' => $archive_structure_choices, ), array( 'name' => $title_section . '-custom-title', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'default' => astra_get_option( $title_section . '-custom-title' ), 'linked' => $title_section . '-title', 'type' => 'sub-control', 'control' => 'ast-text-input', 'settings' => array(), 'section' => $title_section, 'priority' => 1, 'title' => __( 'Text', 'astra' ), ), array( 'name' => $title_section . '-found-custom-description', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'default' => astra_get_option( $title_section . '-found-custom-description' ), 'linked' => $title_section . '-description', 'type' => 'sub-control', 'control' => 'ast-text-input', 'input_attrs' => array( 'textarea' => true, ), 'section' => $title_section, 'priority' => 1, 'title' => __( 'When Results Found', 'astra' ), ), array( 'name' => $title_section . '-not-found-custom-description', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'default' => astra_get_option( $title_section . '-not-found-custom-description' ), 'linked' => $title_section . '-description', 'type' => 'sub-control', 'control' => 'ast-text-input', 'input_attrs' => array( 'textarea' => true, ), 'section' => $title_section, 'priority' => 1, 'title' => __( 'When Results Not Found', 'astra' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-horizontal-alignment]', 'default' => astra_get_option( $title_section . '-horizontal-alignment' ), 'type' => 'control', 'control' => 'ast-selector', 'section' => $title_section, 'priority' => 21, 'title' => __( 'Horizontal Alignment', 'astra' ), 'context' => Astra_Builder_Helper::$general_tab, 'transport' => 'postMessage', 'choices' => array( 'left' => 'align-left', 'center' => 'align-center', 'right' => 'align-right', ), 'divider' => array( 'ast_class' => 'ast-top-divider' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-vertical-alignment]', 'default' => astra_get_option( $title_section . '-vertical-alignment', 'center' ), 'type' => 'control', 'control' => 'ast-selector', 'section' => $title_section, 'priority' => 22, 'title' => __( 'Vertical Alignment', 'astra' ), 'choices' => array( 'flex-start' => __( 'Top', 'astra' ), 'center' => __( 'Middle', 'astra' ), 'flex-end' => __( 'Bottom', 'astra' ), ), 'divider' => array( 'ast_class' => 'ast-top-divider ast-section-spacing' ), 'context' => array( Astra_Builder_Helper::$general_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), ), 'transport' => 'postMessage', 'renderAs' => 'text', 'responsive' => false, ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-height]', 'type' => 'control', 'control' => 'ast-responsive-slider', 'section' => $title_section, 'transport' => 'postMessage', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'default' => astra_get_option( $title_section . '-banner-height', Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-slider' ) ), 'context' => array( Astra_Builder_Helper::$design_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), ), 'priority' => 1, 'title' => __( 'Banner Min Height', 'astra' ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 1000, ), 'divider' => array( 'ast_class' => 'ast-bottom-divider ast-section-spacing' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-elements-gap]', 'type' => 'control', 'control' => 'ast-slider', 'section' => $title_section, 'transport' => 'postMessage', 'default' => astra_get_option( $title_section . '-elements-gap', 10 ), 'context' => Astra_Builder_Helper::$design_tab, 'priority' => 5, 'title' => __( 'Inner Elements Spacing', 'astra' ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), 'divider' => array( 'ast_class' => 'ast-bottom-divider ast-section-spacing' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-image-type]', 'type' => 'control', 'control' => 'ast-selector', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-image-type', 'none' ), 'priority' => 5, 'context' => Astra_Builder_Helper::$design_tab, 'title' => __( 'Container Background', 'astra' ), 'choices' => array( 'none' => __( 'None', 'astra' ), 'custom' => __( 'Custom', 'astra' ), ), 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-spacing' ), 'responsive' => false, 'renderAs' => 'text', ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-custom-bg]', 'default' => astra_get_option( $title_section . '-banner-custom-bg', Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-background' ) ), 'type' => 'control', 'control' => 'ast-responsive-background', 'section' => $title_section, 'title' => __( 'Background', 'astra' ), 'transport' => 'postMessage', 'priority' => 5, 'context' => array( Astra_Builder_Helper::$design_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-image-type]', 'operator' => '===', 'value' => 'custom', ), ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-color]', 'type' => 'control', 'control' => 'ast-color', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-title-color' ), 'transport' => 'postMessage', 'priority' => 9, 'title' => __( 'Title Color', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-divider ast-top-spacing' ), 'context' => Astra_Builder_Helper::$design_tab, ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-color]', 'type' => 'control', 'control' => 'ast-color', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-text-color' ), 'priority' => 10, 'title' => __( 'Text Color', 'astra' ), 'transport' => 'postMessage', 'context' => Astra_Builder_Helper::$design_tab, ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-link-color]', 'type' => 'control', 'control' => 'ast-color', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-link-color' ), 'transport' => 'postMessage', 'priority' => 15, 'title' => __( 'Link Color', 'astra' ), 'context' => Astra_Builder_Helper::$design_tab, ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-link-hover-color]', 'type' => 'control', 'control' => 'ast-color', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-link-hover-color' ), 'transport' => 'postMessage', 'priority' => 20, 'title' => __( 'Link Hover Color', 'astra' ), 'context' => Astra_Builder_Helper::$design_tab, 'divider' => array( 'ast_class' => 'ast-bottom-spacing' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-typography-group]', 'type' => 'control', 'priority' => 22, 'control' => 'ast-settings-group', 'context' => array( Astra_Builder_Helper::$design_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'operator' => 'contains', 'value' => $title_section . '-title', ), ), 'divider' => array( 'ast_class' => 'ast-top-divider' ), 'title' => __( 'Title Font', 'astra' ), 'section' => $title_section, 'transport' => 'postMessage', ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-typography-group]', 'type' => 'control', 'priority' => 25, 'control' => 'ast-settings-group', 'context' => Astra_Builder_Helper::$design_tab, 'title' => __( 'Text Font', 'astra' ), 'divider' => array( 'ast_class' => 'ast-bottom-spacing' ), 'section' => $title_section, 'transport' => 'postMessage', ), array( 'name' => $title_section . '-text-font-family', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-family', 'default' => astra_get_option( $title_section . '-text-font-family', 'inherit' ), 'title' => __( 'Font Family', 'astra' ), 'connect' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-text-font-weight]', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), array( 'name' => $title_section . '-text-font-weight', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-weight', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'default' => astra_get_option( $title_section . '-text-font-weight', 'inherit' ), 'title' => __( 'Font Weight', 'astra' ), 'connect' => $title_section . '-text-font-family', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), array( 'name' => $title_section . '-text-font-size', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-responsive-slider', 'default' => astra_get_option( $title_section . '-text-font-size', Astra_Posts_Structure_Loader::get_customizer_default( 'font-size' ) ), 'transport' => 'postMessage', 'title' => __( 'Font Size', 'astra' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'suffix' => array( 'px', 'em', 'vw', 'rem' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 200, ), 'em' => array( 'min' => 0, 'step' => 1, 'max' => 20, ), 'vw' => array( 'min' => 0, 'step' => 0.1, 'max' => 25, ), 'rem' => array( 'min' => 0, 'step' => 0.1, 'max' => 20, ), ), ), array( 'name' => $title_section . '-text-font-extras', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font-extras', 'default' => astra_get_option( $title_section . '-text-font-extras', Astra_Posts_Structure_Loader::get_customizer_default( 'font-extras' ) ), 'title' => __( 'Font Extras', 'astra' ), ), array( 'name' => $title_section . '-title-font-family', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-family', 'default' => astra_get_option( $title_section . '-title-font-family', 'inherit' ), 'title' => __( 'Font Family', 'astra' ), 'connect' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-title-font-weight]', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), array( 'name' => $title_section . '-title-font-weight', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-weight', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'default' => astra_get_option( $title_section . '-title-font-weight' ), 'title' => __( 'Font Weight', 'astra' ), 'connect' => $title_section . '-title-font-family', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), array( 'name' => $title_section . '-title-font-size', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-responsive-slider', 'default' => astra_get_option( $title_section . '-title-font-size' ), 'transport' => 'postMessage', 'title' => __( 'Font Size', 'astra' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'suffix' => array( 'px', 'em', 'vw', 'rem' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 200, ), 'em' => array( 'min' => 0, 'step' => 1, 'max' => 20, ), 'vw' => array( 'min' => 0, 'step' => 0.1, 'max' => 25, ), 'rem' => array( 'min' => 0, 'step' => 0.1, 'max' => 20, ), ), ), array( 'name' => $title_section . '-title-font-extras', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font-extras', 'default' => astra_get_option( $title_section . '-title-font-extras', Astra_Posts_Structure_Loader::get_customizer_default( 'font-extras' ) ), 'title' => __( 'Font Extras', 'astra' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-margin]', 'default' => astra_get_option( $title_section . '-banner-margin', Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-spacing' ) ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => $title_section, 'divider' => array( 'ast_class' => 'ast-top-divider' ), 'title' => __( 'Margin', 'astra' ), 'linked_choices' => true, 'transport' => 'postMessage', 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), 'context' => Astra_Builder_Helper::$design_tab, 'priority' => 100, 'connected' => false, ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-padding]', 'default' => astra_get_option( $title_section . '-banner-padding', Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-padding' ) ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => $title_section, 'title' => __( 'Padding', 'astra' ), 'linked_choices' => true, 'transport' => 'postMessage', 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), 'context' => Astra_Builder_Helper::$design_tab, 'priority' => 120, 'connected' => false, ), array( 'name' => ASTRA_THEME_SETTINGS . '[ast-' . $special_type . '-content-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => $section, 'default' => astra_get_option( 'ast-' . $special_type . '-content-layout', 'default' ), 'priority' => 3, 'title' => __( 'Container Layout', 'astra' ), 'choices' => array( 'default' => array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'normal-width-container' => array( 'label' => __( 'Normal', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'normal-width-container', false ) : '', ), 'narrow-width-container' => array( 'label' => __( 'Narrow', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'narrow-width-container', false ) : '', ), 'full-width-container' => array( 'label' => __( 'Full Width', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'full-width-container', false ) : '', ), ), 'divider' => array( 'ast_class' => 'ast-top-divider ast-bottom-spacing' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[ast-' . $special_type . '-content-style]', 'type' => 'control', 'control' => 'ast-selector', 'section' => $section, 'default' => astra_get_option( 'ast-' . $special_type . '-content-style', 'default' ), 'priority' => 3, 'title' => __( 'Container Style', 'astra' ), 'description' => __( 'Container style will apply only when layout is set to either normal or narrow.', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ), 'renderAs' => 'text', 'responsive' => false, 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[ast-' . $special_type . '-sidebar-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => $section, 'default' => astra_get_option( 'ast-' . $special_type . '-sidebar-layout', 'default' ), 'description' => __( 'Sidebar will only apply when container layout is set to normal.', 'astra' ), 'priority' => 3, 'title' => __( 'Sidebar Layout', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), 'choices' => array( 'default' => array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'no-sidebar' => array( 'label' => __( 'No Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'no-sidebar', false ) : '', ), 'left-sidebar' => array( 'label' => __( 'Left Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'left-sidebar', false ) : '', ), 'right-sidebar' => array( 'label' => __( 'Right Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'right-sidebar', false ) : '', ), ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[ast-' . $special_type . '-sidebar-style]', 'type' => 'control', 'control' => 'ast-selector', 'section' => $section, 'default' => astra_get_option( 'ast-' . $special_type . '-sidebar-style', 'default' ), 'priority' => 3, 'title' => __( 'Sidebar Style', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ), 'responsive' => false, 'renderAs' => 'text', 'divider' => array( 'ast_class' => 'ast-top-divider' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[ast-' . $special_type . '-results-style]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => $section, 'default' => astra_get_option( 'ast-' . $special_type . '-results-style' ), 'priority' => 14, 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), 'title' => __( 'Results Layout', 'astra' ), 'choices' => $blog_layout, ), array( 'name' => ASTRA_THEME_SETTINGS . '[ast-' . $special_type . '-results-per-page]', 'default' => astra_get_option( 'ast-' . $special_type . '-results-per-page' ), 'type' => 'control', 'control' => 'ast-number', 'qty_selector' => true, 'section' => $section, 'title' => __( 'Post Per Page', 'astra' ), 'priority' => 14, 'responsive' => false, 'input_attrs' => array( 'min' => 1, 'step' => 1, 'max' => 500, ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider ast-bottom-section-divider' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[ast-' . $special_type . '-live-search]', 'default' => astra_get_option( 'ast-' . $special_type . '-live-search' ), 'type' => 'control', 'control' => 'ast-toggle-control', 'section' => $section, 'description' => __( 'This option activates Live Search support for the search box on the no results page.', 'astra' ), 'title' => __( 'Live Search', 'astra' ), 'priority' => 15, 'context' => Astra_Builder_Helper::$general_tab, ), array( 'name' => ASTRA_THEME_SETTINGS . '[ast-' . $special_type . '-live-search-post-types]', 'default' => astra_get_option( 'ast-' . $special_type . '-live-search-post-types' ), 'type' => 'control', 'section' => $section, 'control' => 'ast-multi-selector', 'priority' => 15, 'title' => __( 'Search Within Post Types', 'astra' ), 'context' => array( Astra_Builder_Helper::$general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[ast-' . $special_type . '-live-search]', 'operator' => '==', 'value' => true, ), ), 'transport' => 'refresh', 'choices' => astra_customizer_search_post_types_choices(), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), 'renderAs' => 'text', 'input_attrs' => array( 'stack_after' => 2, // Currently stack options supports after 2 & 3. ), ), ); $configurations = array_merge( $configurations, $_configs ); } return $configurations; } } /** * Kicking this off by creating new object. */ new Astra_Posts_Special_Archive_Structures_Configs(); PKmZR||Smodules/posts-structures/customizer/class-astra-posts-single-structures-configs.phpnu[ array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'normal-width-container' => array( 'label' => __( 'Normal', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'normal-width-container', false ) : '', ), 'narrow-width-container' => array( 'label' => __( 'Narrow', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'narrow-width-container', false ) : '', ), 'full-width-container' => array( 'label' => __( 'Full Width', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'full-width-container', false ) : '', ), ); } else { return array( 'default' => array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'normal-width-container' => array( 'label' => __( 'Normal', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'normal-width-container', false ) : '', ), 'full-width-container' => array( 'label' => __( 'Full Width', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'full-width-container', false ) : '', ), ); } } /** * Register Single Post's Structures Customizer Configurations. * * @param string $parent_section Section of dynamic customizer. * @param string $post_type Post Type. * @since 4.0.0 * * @return array Customizer Configurations. */ public function get_layout_configuration( $parent_section, $post_type ) { return array( /** * Option: Revamped Single Container Layout. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-' . $post_type . '-ast-content-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => $parent_section, 'default' => astra_get_option( 'single-' . $post_type . '-ast-content-layout', 'default' ), 'priority' => 3, 'title' => __( 'Container Layout', 'astra' ), 'choices' => $this->get_new_content_layout_choices( $post_type ), 'divider' => array( 'ast_class' => 'ast-top-divider ast-bottom-spacing' ), ), /** * Option: Single Content Style. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-' . $post_type . '-content-style]', 'type' => 'control', 'control' => 'ast-selector', 'section' => $parent_section, 'default' => astra_get_option( 'single-' . $post_type . '-content-style', 'default' ), 'priority' => 3, 'title' => __( 'Container Style', 'astra' ), 'description' => __( 'Container style will apply only when layout is set to either normal or narrow.', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ), 'renderAs' => 'text', 'responsive' => false, 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), /** * Option: Single Sidebar Layout. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-' . $post_type . '-sidebar-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => $parent_section, 'default' => astra_get_option( 'single-' . $post_type . '-sidebar-layout', 'default' ), 'description' => __( 'Sidebar will only apply when container layout is set to normal.', 'astra' ), 'priority' => 3, 'title' => __( 'Sidebar Layout', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), 'choices' => array( 'default' => array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'no-sidebar' => array( 'label' => __( 'No Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'no-sidebar', false ) : '', ), 'left-sidebar' => array( 'label' => __( 'Left Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'left-sidebar', false ) : '', ), 'right-sidebar' => array( 'label' => __( 'Right Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'right-sidebar', false ) : '', ), ), ), /** * Option: Single Sidebar Style. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-' . $post_type . '-sidebar-style]', 'type' => 'control', 'control' => 'ast-selector', 'section' => $parent_section, 'default' => astra_get_option( 'single-' . $post_type . '-sidebar-style', 'default' ), 'priority' => 3, 'title' => __( 'Sidebar Style', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ), 'responsive' => false, 'renderAs' => 'text', 'divider' => array( 'ast_class' => 'ast-top-divider' ), ), /** * Option: Single Page Content Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[page-single-width]', 'type' => 'control', 'control' => 'ast-selector', 'section' => $parent_section, 'default' => astra_get_option( 'page-single-width' ), 'priority' => 6, 'title' => __( 'Content Width', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'custom' => __( 'Custom', 'astra' ), ), 'transport' => 'postMessage', 'responsive' => false, 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), 'renderAs' => 'text', ), /** * Option: Enter Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[page-single-max-width]', 'type' => 'control', 'control' => 'ast-slider', 'section' => $parent_section, 'transport' => 'postMessage', 'default' => astra_get_option( 'page-single-max-width' ), 'context' => array( Astra_Builder_Helper::$general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[page-single-width]', 'operator' => '===', 'value' => 'custom', ), ), 'priority' => 6, 'title' => __( 'Custom Width', 'astra' ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 1920, ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), ); } /** * Register Posts Strctures Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 4.0.0 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $post_types = Astra_Posts_Structure_Loader::get_supported_post_types(); foreach ( $post_types as $index => $post_type ) { $raw_taxonomies = array_diff( get_object_taxonomies( $post_type ), array( 'post_format' ) ); $raw_taxonomies[''] = __( 'Select', 'astra' ); // Filter out taxonomies in index-value format. $taxonomies = array(); foreach ( $raw_taxonomies as $index => $value ) { /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $tax_object = get_taxonomy( $value ); /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort // @codingStandardsIgnoreStart $tax_val = ( is_object( $tax_object ) && ! empty( $tax_object->label ) ) ? $tax_object->label : $value; // @codingStandardsIgnoreEnd if ( '' === $index ) { $taxonomies[''] = $tax_val; } else { $taxonomies[ $value ] = $tax_val; } } /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $taxonomies = array_reverse( $taxonomies ); /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $section = 'single-posttype-' . $post_type; $title_section = 'ast-dynamic-single-' . $post_type; $post_type_object = get_post_type_object( $post_type ); $_structure_defaults = 'page' === $post_type ? array( $title_section . '-image', $title_section . '-title' ) : array( $title_section . '-title', $title_section . '-meta' ); $default_edd_featured_image = ( true === astra_enable_edd_featured_image_defaults() ); if ( 'product' === $post_type ) { $parent_section = 'section-woo-shop-single'; } elseif ( 'post' === $post_type ) { $parent_section = 'section-blog-single'; } elseif ( 'page' === $post_type ) { $parent_section = 'section-single-page'; } elseif ( 'download' === $post_type ) { $parent_section = 'section-edd-single'; $_structure_defaults[] = $default_edd_featured_image ? $title_section . '-image' : ''; } else { $parent_section = $section; } $structure_defaults = astra_get_option( $title_section . '-structure', $_structure_defaults ); $meta_config_options = array(); $clone_limit = 0; /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( count( $taxonomies ) > 1 ) { /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $clone_limit = 3; $to_clone = true; if ( absint( astra_get_option( $title_section . '-taxonomy-clone-tracker', 1 ) ) === $clone_limit ) { $to_clone = false; } $meta_config_options[ $title_section . '-taxonomy' ] = array( 'clone' => $to_clone, 'is_parent' => true, 'main_index' => $title_section . '-taxonomy', 'clone_limit' => $clone_limit, 'clone_tracker' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-taxonomy-clone-tracker]', 'title' => __( 'Taxonomies', 'astra' ), ); $meta_config_options[ $title_section . '-taxonomy-1' ] = array( 'clone' => $to_clone, 'is_parent' => true, 'main_index' => $title_section . '-taxonomy', 'clone_limit' => $clone_limit, 'clone_tracker' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-taxonomy-clone-tracker]', 'title' => __( 'Taxonomies', 'astra' ), ); $meta_config_options[ $title_section . '-taxonomy-2' ] = array( 'clone' => $to_clone, 'is_parent' => true, 'main_index' => $title_section . '-taxonomy', 'clone_limit' => $clone_limit, 'clone_tracker' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-taxonomy-clone-tracker]', 'title' => __( 'Taxonomies', 'astra' ), ); } $meta_config_options['date'] = array( 'clone' => false, 'is_parent' => true, 'main_index' => 'date', 'clone_limit' => 1, 'title' => __( 'Date', 'astra' ), ); $meta_config_options['author'] = array( 'clone' => false, 'is_parent' => true, 'main_index' => 'author', 'clone_limit' => 1, 'title' => __( 'Author', 'astra' ), ); // Display Read Time option in Meta options only when Astra Addon is activated. /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'blog-pro' ) ) { $meta_config_options['read-time'] = __( 'Read Time', 'astra' ); } $structure_sub_controls = array(); $structure_sub_controls[ $title_section . '-meta' ] = array( 'clone' => false, 'is_parent' => true, 'main_index' => $title_section . '-meta', 'clone_limit' => 2, 'title' => __( 'Meta', 'astra' ), ); // Add featured as background sub-control. $structure_sub_controls[ $title_section . '-image' ] = array( 'clone' => false, 'is_parent' => true, 'main_index' => $title_section . '-image', 'clone_limit' => 2, 'title' => __( 'Featured Image', 'astra' ), ); // Add taxonomy in structural sub-control. $structure_sub_controls[ $title_section . '-str-taxonomy' ] = array( 'clone' => false, 'is_parent' => true, 'main_index' => $title_section . '-str-taxonomy', 'clone_limit' => 2, 'title' => __( 'Taxonomies', 'astra' ), ); $configurations = array_merge( $configurations, $this->get_layout_configuration( $parent_section, $post_type ) ); // Conditional tooltip. $default_tooltip = __( "'None' respects hierarchy; 'Behind' positions the image under the article.", 'astra' ); $tooltip_product = __( "'None' respects hierarchy; 'Behind' position is not applicable for single product page.", 'astra' ); $second_layout_default_tooltip = __( "'None' respects hierarchy; 'Below' positions image on top of the article.", 'astra' ); $second_layout_tooltip_product = __( "'None' respects hierarchy; 'Below' position is not applicable for single product page.", 'astra' ); // Added check if current panel is for the single product option. $tooltip_description = ( $parent_section === 'section-woo-shop-single' ) ? $tooltip_product : $default_tooltip; $second_layout_tooltip_description = ( $parent_section === 'section-woo-shop-single' ) ? $second_layout_tooltip_product : $second_layout_default_tooltip; $_configs = array( /** * Option: Builder Tabs */ array( 'name' => $title_section . '-ast-context-tabs', 'section' => $title_section, 'type' => 'control', 'control' => 'ast-builder-header-control', 'priority' => 0, 'description' => '', 'context' => array(), ), array( 'name' => $title_section, // @codingStandardsIgnoreStart 'title' => $this->get_dynamic_section_title( $post_type_object, $post_type ), // @codingStandardsIgnoreEnd 'type' => 'section', 'section' => $parent_section, 'panel' => ( 'product' === $post_type ) ? 'woocommerce' : '', 'priority' => 1, ), array( 'name' => ASTRA_THEME_SETTINGS . '[ast-single-' . $post_type . '-title]', 'type' => 'control', 'default' => astra_get_option( 'ast-single-' . $post_type . '-title', ( class_exists( 'WooCommerce' ) && 'product' === $post_type ) ? false : true ), 'control' => 'ast-section-toggle', 'section' => $parent_section, 'priority' => 2, 'linked' => $title_section, 'linkText' => $this->get_dynamic_section_title( $post_type_object, $post_type ), 'divider' => array( 'ast_class' => 'ast-bottom-divider ast-bottom-section-divider' ), ), /** * Layout option. */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => $title_section, 'default' => astra_get_option( $title_section . '-layout', 'layout-1' ), 'priority' => 5, 'context' => Astra_Builder_Helper::$general_tab, 'title' => __( 'Banner Layout', 'astra' ), 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-spacing' ), 'choices' => array( 'layout-1' => array( 'label' => __( 'Layout 1', 'astra' ), 'path' => Astra_Builder_UI_Controller::fetch_svg_icon( 'post-layout' ), ), 'layout-2' => array( 'label' => __( 'Layout 2', 'astra' ), 'path' => ' ', ), ), 'contextual_sub_control' => true, 'input_attrs' => array( 'dependents' => array( 'layout-1' => array( $title_section . '-empty-layout-message', $title_section . '-article-featured-image-position-layout-1', $title_section . '-article-featured-image-width-type', $title_section . '-remove-featured-padding' ), 'layout-2' => array( $title_section . '-featured-as-background', $title_section . '-banner-featured-overlay', $title_section . '-image-position', $title_section . '-featured-help-notice', $title_section . '-article-featured-image-position-layout-2' ), ), ), ), /** * Option: Banner Content Width. */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-width-type]', 'type' => 'control', 'control' => 'ast-selector', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-width-type', 'fullwidth' ), 'priority' => 10, 'title' => __( 'Container Width', 'astra' ), 'choices' => array( 'fullwidth' => __( 'Full Width', 'astra' ), 'custom' => __( 'Custom', 'astra' ), ), 'divider' => array( 'ast_class' => 'ast-top-divider ast-bottom-spacing' ), 'responsive' => false, 'renderAs' => 'text', 'context' => array( Astra_Builder_Helper::$general_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), ), ), /** * Option: Enter Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-custom-width]', 'type' => 'control', 'control' => 'ast-slider', 'section' => $title_section, 'transport' => 'postMessage', 'default' => astra_get_option( $title_section . '-banner-custom-width', 1200 ), 'context' => array( Astra_Builder_Helper::$general_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-width-type]', 'operator' => '===', 'value' => 'custom', ), ), 'priority' => 15, 'title' => __( 'Custom Width', 'astra' ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), ), /** * Option: Display Post Structure */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'type' => 'control', 'control' => 'ast-sortable', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_multi_choices' ), 'section' => $title_section, 'context' => Astra_Builder_Helper::$general_tab, 'default' => $structure_defaults, 'priority' => 20, 'title' => __( 'Structure', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-divider ast-bottom-spacing' ), 'choices' => array_merge( array( $title_section . '-title' => __( 'Title', 'astra' ), $title_section . '-breadcrumb' => __( 'Breadcrumb', 'astra' ), $title_section . '-excerpt' => __( 'Excerpt', 'astra' ), ), $structure_sub_controls ), ), array( 'name' => $title_section . '-article-featured-image-position-layout-1', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'type' => 'sub-control', 'control' => 'ast-selector', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-article-featured-image-position-layout-1', 'behind' ), 'priority' => 28, 'linked' => $title_section . '-image', 'transport' => 'postMessage', 'title' => __( 'Image Position', 'astra' ), 'choices' => array( 'none' => __( 'None', 'astra' ), 'behind' => __( 'Behind', 'astra' ), ), 'description' => $tooltip_description, 'responsive' => false, 'renderAs' => 'text', ), array( 'name' => $title_section . '-article-featured-image-position-layout-2', 'type' => 'sub-control', 'control' => 'ast-selector', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'linked' => $title_section . '-image', 'transport' => 'postMessage', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-article-featured-image-position-layout-2', 'none' ), 'priority' => 28, 'title' => __( 'Image Position', 'astra' ), 'choices' => array( 'none' => __( 'None', 'astra' ), 'below' => __( 'Below', 'astra' ), ), 'description' => $second_layout_tooltip_description, 'responsive' => false, 'renderAs' => 'text', ), array( 'name' => $title_section . '-article-featured-image-width-type', 'type' => 'sub-control', 'control' => 'ast-selector', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'linked' => $title_section . '-image', 'transport' => 'postMessage', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-article-featured-image-width-type', 'wide' ), 'priority' => 28, 'title' => __( 'Behind Positioned Image Width', 'astra' ), 'choices' => array( 'wide' => __( 'Wide', 'astra' ), 'full' => __( 'Full Width', 'astra' ), ), 'responsive' => false, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), 'renderAs' => 'text', ), array( 'name' => $title_section . '-article-featured-image-ratio-type', 'default' => astra_get_option( $title_section . '-article-featured-image-ratio-type', 'predefined' ), 'type' => 'sub-control', 'section' => $title_section, 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'linked' => $title_section . '-image', 'transport' => 'postMessage', 'priority' => 28, 'control' => 'ast-selector', 'title' => __( 'Image Ratio', 'astra' ), 'choices' => array( 'default' => __( 'Original', 'astra' ), 'predefined' => __( 'Predefined', 'astra' ), 'custom' => __( 'Custom', 'astra' ), ), 'contextual_sub_control' => true, 'input_attrs' => array( 'dependents' => array( 'default' => array(), 'predefined' => array( $title_section . '-article-featured-image-ratio-pre-scale' ), 'custom' => array( $title_section . '-article-featured-image-custom-scale-width', $title_section . '-article-featured-image-custom-scale-height', $title_section . '-article-featured-image-custom-scale-description' ), ), ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), 'responsive' => false, 'renderAs' => 'text', ), array( 'name' => $title_section . '-article-featured-image-ratio-pre-scale', 'default' => astra_get_option( $title_section . '-article-featured-image-ratio-pre-scale', '16/9' ), 'type' => 'sub-control', 'section' => $title_section, 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'linked' => $title_section . '-image', 'transport' => 'postMessage', 'priority' => 28, 'control' => 'ast-selector', 'choices' => array( '1/1' => __( '1:1', 'astra' ), '4/3' => __( '4:3', 'astra' ), '16/9' => __( '16:9', 'astra' ), '2/1' => __( '2:1', 'astra' ), ), 'responsive' => false, 'renderAs' => 'text', ), array( 'name' => $title_section . '-article-featured-image-custom-scale-width', 'default' => astra_get_option( $title_section . '-article-featured-image-custom-scale-width', 16 ), 'type' => 'sub-control', 'control' => 'ast-number', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'linked' => $title_section . '-image', 'transport' => 'postMessage', 'section' => $title_section, 'priority' => 28, 'qty_selector' => true, 'title' => __( 'Width', 'astra' ), 'input_attrs' => array( 'style' => 'text-align:center;', 'placeholder' => __( 'Auto', 'astra' ), 'min' => 1, 'max' => 1000, ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), ), array( 'name' => $title_section . '-article-featured-image-custom-scale-height', 'default' => astra_get_option( $title_section . '-article-featured-image-custom-scale-height', 9 ), 'type' => 'sub-control', 'control' => 'ast-number', 'transport' => 'postMessage', 'section' => $title_section, 'priority' => 28, 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'linked' => $title_section . '-image', 'qty_selector' => true, 'title' => __( 'Height', 'astra' ), 'input_attrs' => array( 'style' => 'text-align:center;', 'placeholder' => __( 'Auto', 'astra' ), 'min' => 1, 'max' => 1000, ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), ), array( 'name' => $title_section . '-article-featured-image-custom-scale-description', 'type' => 'sub-control', 'transport' => 'postMessage', 'control' => 'ast-description', 'section' => $title_section, 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'linked' => $title_section . '-image', 'priority' => 28, 'label' => '', 'help' => sprintf( /* translators: 1: link open markup, 2: link close markup */ __( 'Calculate a personalized image ratio using this %1$s online tool %2$s for your image dimensions.', 'astra' ), '', '' ), ), array( 'name' => $title_section . '-article-featured-image-size', 'default' => astra_get_option( $title_section . '-article-featured-image-size', 'large' ), 'section' => $title_section, 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'linked' => $title_section . '-image', 'priority' => 28, 'title' => __( 'Image Size', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), 'control' => 'ast-select', 'choices' => astra_get_site_image_sizes( true ), 'description' => defined( 'ASTRA_EXT_VER' ) ? __( "You can specify Custom image sizes from the Single Post's 'Featured Image Size' option.", 'astra' ) : '', ), array( 'name' => $title_section . '-remove-featured-padding', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'default' => astra_get_option( $title_section . '-remove-featured-padding', false ), 'linked' => $title_section . '-image', 'type' => 'sub-control', 'control' => 'ast-toggle', 'section' => $title_section, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), 'priority' => 28, 'title' => __( 'Remove Image Padding', 'astra' ), 'description' => __( 'Remove the padding around featured image when position is "None".', 'astra' ), 'transport' => 'postMessage', ), array( 'name' => $title_section . '-featured-as-background', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'default' => astra_get_option( $title_section . '-featured-as-background', false ), 'linked' => $title_section . '-image', 'type' => 'sub-control', 'control' => 'ast-toggle', 'section' => $title_section, 'divider' => array( 'ast_class' => 'ast-section-spacing ast-top-dotted-divider' ), 'priority' => 28, 'title' => __( 'Use as Background', 'astra' ), 'transport' => 'postMessage', ), array( 'name' => $title_section . '-banner-featured-overlay', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'default' => astra_get_option( $title_section . '-banner-featured-overlay', '' ), 'linked' => $title_section . '-image', 'type' => 'sub-control', 'control' => 'ast-color', 'section' => $title_section, 'priority' => 28, 'title' => __( 'Overlay Color', 'astra' ), 'context' => array( Astra_Builder_Helper::$general_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-taxonomy-clone-tracker]', 'section' => $title_section, 'type' => 'control', 'control' => 'ast-hidden', 'priority' => 22, 'transport' => 'postMessage', 'partial' => false, 'default' => astra_get_option( $title_section . '-taxonomy-clone-tracker', 1 ), ), array( 'name' => $title_section . '-structural-taxonomy', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'default' => astra_get_option( $title_section . '-structural-taxonomy' ), 'linked' => $title_section . '-str-taxonomy', 'type' => 'sub-control', 'control' => 'ast-select', 'transport' => 'refresh', 'section' => $title_section, 'priority' => 1, 'title' => __( 'Taxonomy', 'astra' ), 'choices' => $taxonomies, ), array( 'name' => $title_section . '-structural-taxonomy-style', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'type' => 'sub-control', 'control' => 'ast-selector', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-structural-taxonomy-style', '' ), 'priority' => 2, 'linked' => $title_section . '-str-taxonomy', 'transport' => 'refresh', 'title' => __( 'Style', 'astra' ), 'choices' => array( '' => __( 'Default', 'astra' ), 'badge' => __( 'Badge', 'astra' ), 'underline' => __( 'Underline', 'astra' ), ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), 'responsive' => false, 'renderAs' => 'text', ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-metadata]', 'type' => 'control', 'control' => 'ast-sortable', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_multi_choices' ), 'default' => astra_get_option( $title_section . '-metadata', array( 'comments', 'author', 'date' ) ), 'context' => array( Astra_Builder_Helper::$general_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'operator' => 'contains', 'value' => $title_section . '-meta', ), ), 'section' => $title_section, 'priority' => 25, 'title' => __( 'Meta', 'astra' ), 'choices' => array_merge( array( 'comments' => __( 'Comments', 'astra' ), ), $meta_config_options ), ), /** * Option: Author Prefix Label. */ array( 'name' => $title_section . '-author-prefix-label', 'default' => astra_get_option( $title_section . '-author-prefix-label', astra_default_strings( 'string-blog-meta-author-by', false ) ), 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-metadata]', 'linked' => 'author', 'type' => 'sub-control', 'control' => 'ast-text-input', 'section' => $title_section, 'divider' => array( 'ast_class' => 'ast-bottom-dotted-divider ast-bottom-section-spacing' ), 'title' => __( 'Prefix Label', 'astra' ), 'priority' => 1, 'transport' => 'postMessage', ), /** * Option: Author Avatar. */ array( 'name' => $title_section . '-author-avatar', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-metadata]', 'default' => astra_get_option( $title_section . '-author-avatar', false ), 'linked' => 'author', 'type' => 'sub-control', 'control' => 'ast-toggle', 'section' => $title_section, 'priority' => 5, 'title' => __( 'Author Avatar', 'astra' ), 'transport' => 'postMessage', ), /** * Option: Author Avatar Width. */ array( 'name' => $title_section . '-author-avatar-size', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-metadata]', 'default' => astra_get_option( $title_section . '-author-avatar-size', 30 ), 'linked' => 'author', 'type' => 'sub-control', 'control' => 'ast-slider', 'transport' => 'postMessage', 'section' => $title_section, 'priority' => 10, 'title' => __( 'Image Size', 'astra' ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 1, 'step' => 1, 'max' => 200, ), ), /** * Option: Date Meta Type. */ array( 'name' => $title_section . '-meta-date-type', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-metadata]', 'type' => 'sub-control', 'control' => 'ast-selector', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-meta-date-type', 'published' ), 'priority' => 1, 'linked' => 'date', 'transport' => 'refresh', 'title' => __( 'Type', 'astra' ), 'choices' => array( 'published' => __( 'Published', 'astra' ), 'updated' => __( 'Last Updated', 'astra' ), ), 'divider' => array( 'ast_class' => 'ast-bottom-spacing' ), 'responsive' => false, 'renderAs' => 'text', ), /** * Date format support for meta field. */ array( 'name' => $title_section . '-date-format', 'default' => astra_get_option( $title_section . '-date-format', '' ), 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-metadata]', 'linked' => 'date', 'type' => 'sub-control', 'control' => 'ast-select', 'section' => $title_section, 'priority' => 2, 'responsive' => false, 'renderAs' => 'text', 'title' => __( 'Format', 'astra' ), 'choices' => array( '' => __( 'Default', 'astra' ), 'F j, Y' => 'November 6, 2010', 'Y-m-d' => '2010-11-06', 'm/d/Y' => '11/06/2010', 'd/m/Y' => '06/11/2010', ), ), /** * Option: Meta Data Separator. */ array( 'name' => $title_section . '-metadata-separator', 'default' => astra_get_option( $title_section . '-metadata-separator', '/' ), 'type' => 'sub-control', 'transport' => 'postMessage', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'linked' => $title_section . '-meta', 'section' => $title_section, 'priority' => 10, 'control' => 'ast-selector', 'title' => __( 'Divider Type', 'astra' ), 'choices' => array( '/' => '/', '-' => '-', '|' => '|', '•' => '•', 'none' => __( 'None', 'astra' ), ), 'responsive' => false, 'renderAs' => 'text', ), /** * Option: Horizontal Alignment. */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-horizontal-alignment]', 'default' => astra_get_option( $title_section . '-horizontal-alignment' ), 'type' => 'control', 'control' => 'ast-selector', 'section' => $title_section, 'priority' => 29, 'title' => __( 'Horizontal Alignment', 'astra' ), 'context' => Astra_Builder_Helper::$general_tab, 'transport' => 'postMessage', 'choices' => array( 'left' => 'align-left', 'center' => 'align-center', 'right' => 'align-right', ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), /** * Option: Vertical Alignment */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-vertical-alignment]', 'default' => astra_get_option( $title_section . '-vertical-alignment', 'center' ), 'type' => 'control', 'control' => 'ast-selector', 'section' => $title_section, 'priority' => 30, 'title' => __( 'Vertical Alignment', 'astra' ), 'choices' => array( 'flex-start' => __( 'Top', 'astra' ), 'center' => __( 'Middle', 'astra' ), 'flex-end' => __( 'Bottom', 'astra' ), ), 'divider' => array( 'ast_class' => 'ast-top-divider ast-section-spacing ast-bottom-section-divider' ), 'context' => array( Astra_Builder_Helper::$general_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), ), 'transport' => 'postMessage', 'renderAs' => 'text', 'responsive' => false, ), /** * Option: Container min height. */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-height]', 'type' => 'control', 'control' => 'ast-responsive-slider', 'section' => $title_section, 'transport' => 'postMessage', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'default' => astra_get_option( $title_section . '-banner-height', Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-slider' ) ), 'context' => array( Astra_Builder_Helper::$design_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), ), 'priority' => 2, 'title' => __( 'Banner Min Height', 'astra' ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 1000, ), 'divider' => array( 'ast_class' => 'ast-bottom-divider ast-section-spacing' ), ), /** * Option: Elements gap. */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-elements-gap]', 'type' => 'control', 'control' => 'ast-slider', 'section' => $title_section, 'transport' => 'postMessage', 'default' => astra_get_option( $title_section . '-elements-gap', 10 ), 'context' => Astra_Builder_Helper::$design_tab, 'priority' => 5, 'title' => __( 'Inner Elements Spacing', 'astra' ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), 'divider' => array( 'ast_class' => 'ast-bottom-divider ast-bottom-spacing ast-section-spacing' ), ), /** * Option: Featured Image Custom Banner BG. */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-background]', 'type' => 'control', 'default' => astra_get_option( $title_section . '-banner-background', Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-background' ) ), 'section' => $title_section, 'control' => 'ast-responsive-background', 'title' => __( 'Background', 'astra' ), 'transport' => 'postMessage', 'context' => array( Astra_Builder_Helper::$design_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-featured-as-background]', 'operator' => '!=', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), ), 'priority' => 5, ), /** * Option: Title Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-color]', 'type' => 'control', 'control' => 'ast-color', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-title-color' ), 'transport' => 'postMessage', 'priority' => 5, 'title' => __( 'Title Color', 'astra' ), 'context' => Astra_Builder_Helper::$design_tab, ), /** * Option: Text Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-color]', 'type' => 'control', 'control' => 'ast-color', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-text-color' ), 'priority' => 10, 'title' => __( 'Text Color', 'astra' ), 'transport' => 'postMessage', 'context' => Astra_Builder_Helper::$design_tab, ), /** * Option: Link Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-link-color]', 'type' => 'control', 'control' => 'ast-color', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-link-color' ), 'transport' => 'postMessage', 'priority' => 15, 'title' => __( 'Link Color', 'astra' ), 'context' => Astra_Builder_Helper::$design_tab, ), /** * Option: Link Hover Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-link-hover-color]', 'type' => 'control', 'control' => 'ast-color', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-link-hover-color' ), 'transport' => 'postMessage', 'priority' => 20, 'title' => __( 'Link Hover Color', 'astra' ), 'divider' => array( 'ast_class' => 'ast-bottom-spacing' ), 'context' => Astra_Builder_Helper::$design_tab, ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-typography-group]', 'type' => 'control', 'priority' => 25, 'control' => 'ast-settings-group', 'context' => array( Astra_Builder_Helper::$design_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'operator' => 'contains', 'value' => $title_section . '-title', ), ), 'divider' => array( 'ast_class' => 'ast-top-divider' ), 'title' => __( 'Title Font', 'astra' ), 'section' => $title_section, 'transport' => 'postMessage', ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-typography-group]', 'type' => 'control', 'priority' => 30, 'control' => 'ast-settings-group', 'context' => Astra_Builder_Helper::$design_tab, 'title' => __( 'Text Font', 'astra' ), 'section' => $title_section, 'transport' => 'postMessage', ), /** * Option: Text Font Family */ array( 'name' => $title_section . '-text-font-family', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-family', 'default' => astra_get_option( $title_section . '-text-font-family', 'inherit' ), 'title' => __( 'Font Family', 'astra' ), 'connect' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-text-font-weight]', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), /** * Option: Text Font Weight */ array( 'name' => $title_section . '-text-font-weight', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-weight', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'default' => astra_get_option( $title_section . '-text-font-weight', 'inherit' ), 'title' => __( 'Font Weight', 'astra' ), 'connect' => $title_section . '-text-font-family', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), /** * Option: Text Font Size */ array( 'name' => $title_section . '-text-font-size', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-responsive-slider', 'default' => astra_get_option( $title_section . '-text-font-size', Astra_Posts_Structure_Loader::get_customizer_default( 'font-size' ) ), 'transport' => 'postMessage', 'title' => __( 'Font Size', 'astra' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'suffix' => array( 'px', 'em', 'vw', 'rem' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 200, ), 'em' => array( 'min' => 0, 'step' => 0.01, 'max' => 20, ), 'vw' => array( 'min' => 0, 'step' => 0.1, 'max' => 25, ), 'rem' => array( 'min' => 0, 'step' => 0.1, 'max' => 20, ), ), ), /** * Option: Single Post Banner Text Font Extras */ array( 'name' => $title_section . '-text-font-extras', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font-extras', 'default' => astra_get_option( $title_section . '-text-font-extras', Astra_Posts_Structure_Loader::get_customizer_default( 'font-extras' ) ), 'title' => __( 'Font Extras', 'astra' ), ), /** * Option: Title Font Family */ array( 'name' => $title_section . '-title-font-family', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-family', 'default' => astra_get_option( $title_section . '-title-font-family', 'inherit' ), 'title' => __( 'Font Family', 'astra' ), 'connect' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-title-font-weight]', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), /** * Option: Title Font Weight */ array( 'name' => $title_section . '-title-font-weight', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-weight', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'default' => astra_get_option( $title_section . '-title-font-weight', Astra_Posts_Structure_Loader::get_customizer_default( 'title-font-weight' ) ), 'title' => __( 'Font Weight', 'astra' ), 'connect' => $title_section . '-title-font-family', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), /** * Option: Title Font Size */ array( 'name' => $title_section . '-title-font-size', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-responsive-slider', 'default' => astra_get_option( $title_section . '-title-font-size', Astra_Posts_Structure_Loader::get_customizer_default( 'title-font-size' ) ), 'transport' => 'postMessage', 'title' => __( 'Font Size', 'astra' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'suffix' => array( 'px', 'em', 'vw', 'rem' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 200, ), 'em' => array( 'min' => 0, 'step' => 0.01, 'max' => 20, ), 'vw' => array( 'min' => 0, 'step' => 0.1, 'max' => 25, ), 'rem' => array( 'min' => 0, 'step' => 0.1, 'max' => 20, ), ), ), /** * Option: Single Post Banner Title Font Extras */ array( 'name' => $title_section . '-title-font-extras', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font-extras', 'default' => astra_get_option( $title_section . '-title-font-extras', Astra_Posts_Structure_Loader::get_customizer_default( 'font-extras' ) ), 'title' => __( 'Font Extras', 'astra' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-meta-typography-group]', 'type' => 'control', 'priority' => 35, 'control' => 'ast-settings-group', 'context' => array( Astra_Builder_Helper::$design_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'operator' => 'contains', 'value' => $title_section . '-meta', ), ), 'title' => __( 'Meta Font', 'astra' ), 'divider' => array( 'ast_class' => 'ast-bottom-spacing' ), 'section' => $title_section, 'transport' => 'postMessage', ), /** * Option: Meta Font Family */ array( 'name' => $title_section . '-meta-font-family', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-meta-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-family', 'default' => astra_get_option( $title_section . '-meta-font-family', 'inherit' ), 'title' => __( 'Font Family', 'astra' ), 'connect' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-meta-font-weight]', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), /** * Option: Meta Font Weight */ array( 'name' => $title_section . '-meta-font-weight', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-meta-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-weight', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'default' => astra_get_option( $title_section . '-meta-font-weight', 'inherit' ), 'title' => __( 'Font Weight', 'astra' ), 'connect' => $title_section . '-meta-font-family', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), /** * Option: Meta Font Size */ array( 'name' => $title_section . '-meta-font-size', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-meta-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-responsive-slider', 'default' => astra_get_option( $title_section . '-meta-font-size', Astra_Posts_Structure_Loader::get_customizer_default( 'font-size' ) ), 'transport' => 'postMessage', 'title' => __( 'Font Size', 'astra' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'suffix' => array( 'px', 'em', 'vw', 'rem' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 200, ), 'em' => array( 'min' => 0, 'step' => 0.01, 'max' => 20, ), 'vw' => array( 'min' => 0, 'step' => 0.1, 'max' => 25, ), 'rem' => array( 'min' => 0, 'step' => 0.1, 'max' => 20, ), ), ), /** * Option: Single Post Banner Title Font Extras */ array( 'name' => $title_section . '-meta-font-extras', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-meta-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font-extras', 'default' => astra_get_option( $title_section . '-meta-font-extras', Astra_Posts_Structure_Loader::get_customizer_default( 'font-extras' ) ), 'title' => __( 'Font Extras', 'astra' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-margin]', 'default' => astra_get_option( $title_section . '-banner-margin', Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-spacing' ) ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => $title_section, 'title' => __( 'Margin', 'astra' ), 'linked_choices' => true, 'transport' => 'postMessage', 'divider' => array( 'ast_class' => 'ast-top-divider' ), 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), 'context' => array( Astra_Builder_Helper::$design_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), ), 'priority' => 100, 'connected' => false, ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-padding]', 'default' => astra_get_option( $title_section . '-banner-padding', Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-padding' ) ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => $title_section, 'title' => __( 'Padding', 'astra' ), 'linked_choices' => true, 'transport' => 'postMessage', 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), 'context' => array( Astra_Builder_Helper::$design_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), ), 'priority' => 120, 'connected' => false, ), ); if ( 'page' === $post_type ) { /** * Option: Disable structure and meta on the front page. */ $_configs[] = array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-disable-structure-meta-on-front-page]', 'default' => astra_get_option( $title_section . '-disable-structure-meta-on-front-page', false ), 'type' => 'control', 'section' => $title_section, 'context' => array( Astra_Builder_Helper::$general_tab_config, 'relation' => 'AND', array( 'setting' => 'show_on_front', 'operator' => '===', 'value' => 'page', ), ), 'title' => __( 'Disable on Front Page?', 'astra' ), 'priority' => 5, 'control' => 'ast-toggle-control', 'divider' => array( 'ast_class' => 'ast-top-divider ast-bottom-spacing' ), ); } if ( 'post' !== $post_type && 'product' !== $post_type ) { $_configs[] = array( 'name' => $title_section . '-parent-ast-context-tabs', 'section' => $parent_section, 'type' => 'control', 'control' => 'ast-builder-header-control', 'priority' => 0, 'description' => '', ); } if ( 'post' !== $post_type && Astra_Builder_Helper::$is_header_footer_builder_active ) { $_configs = array_merge( $_configs, Astra_Extended_Base_Configuration::prepare_advanced_tab( $parent_section ) ); } /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( count( $taxonomies ) > 1 ) { /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort for ( $index = 1; $index <= $clone_limit; $index++ ) { $control_suffix = ( 1 === $index ) ? '' : '-' . ( $index - 1 ); /** * Option: Taxonomy Selection. */ $_configs[] = array( 'name' => $title_section . '-taxonomy' . $control_suffix, 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-metadata]', 'default' => astra_get_option( $title_section . '-taxonomy' . $control_suffix ), 'linked' => $title_section . '-taxonomy' . $control_suffix, 'type' => 'sub-control', 'control' => 'ast-select', 'transport' => 'refresh', 'section' => $title_section, 'priority' => 5, 'title' => __( 'Taxonomy', 'astra' ), 'choices' => $taxonomies, ); $_configs[] = array( 'name' => $title_section . '-taxonomy' . $control_suffix . '-style', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-metadata]', 'default' => astra_get_option( $title_section . '-taxonomy' . $control_suffix . '-style', '' ), 'linked' => $title_section . '-taxonomy' . $control_suffix, 'type' => 'sub-control', 'control' => 'ast-selector', 'section' => $title_section, 'priority' => 10, 'transport' => 'refresh', 'title' => __( 'Style', 'astra' ), 'choices' => array( '' => __( 'Default', 'astra' ), 'badge' => __( 'Badge', 'astra' ), 'underline' => __( 'Underline', 'astra' ), ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), 'responsive' => false, 'renderAs' => 'text', ); } } $configurations = array_merge( $configurations, $_configs ); } return $configurations; } /** * Get Dynamic Section Title. * * @since 4.4.0 * @param object|null $post_type_object Post type object. * @param string $post_type Post type. * @return string */ public function get_dynamic_section_title( $post_type_object, $post_type ) { if ( ! is_null( $post_type_object ) ) { $title = isset( $post_type_object->labels->singular_name ) ? ucfirst( $post_type_object->labels->singular_name ) : ucfirst( $post_type ); } else { $title = __( 'Single Banner', 'astra' ); } /** @psalm-suppress TooManyArguments */ return apply_filters( 'astra_single_post_title', $title . __( ' Title Area', 'astra' ), $post_type ); } } /** * Kicking this off by creating new object. */ new Astra_Posts_Single_Structures_Configs(); PKmZZ̚̚Tmodules/posts-structures/customizer/class-astra-posts-archive-structures-configs.phpnu[ array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'normal-width-container' => array( 'label' => __( 'Normal', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'normal-width-container', false ) : '', ), 'narrow-width-container' => array( 'label' => __( 'Narrow', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'narrow-width-container', false ) : '', ), 'full-width-container' => array( 'label' => __( 'Full Width', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'full-width-container', false ) : '', ), ); } else { return array( 'default' => array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'normal-width-container' => array( 'label' => __( 'Normal', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'normal-width-container', false ) : '', ), 'full-width-container' => array( 'label' => __( 'Full Width', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'full-width-container', false ) : '', ), ); } } /** * Register Archive Post's Structures Customizer Configurations. * * @param string $parent_section Section of dynamic customizer. * @param string $post_type Post Type. * @since 4.0.0 * * @return array Customizer Configurations. */ public function get_layout_configuration( $parent_section, $post_type ) { if ( 'page' === $post_type ) { return array(); // Page archive not require. } $reveal_effect = array(); /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'blog-pro' ) && ! ( 'post' === $post_type || 'product' === $post_type ) ) { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $reveal_effect = array( 'name' => ASTRA_THEME_SETTINGS . '[archive-' . $post_type . '-ast-reveal-effect]', 'section' => $parent_section, 'type' => 'control', 'control' => 'ast-toggle-control', 'default' => astra_get_option( 'archive-' . $post_type . '-ast-reveal-effect', false ), 'title' => __( 'Reveal Effect', 'astra' ), 'priority' => 5, 'divider' => array( 'ast_class' => 'ast-section-spacing ast-top-section-divider' ), ); } return array( /** * Option: Revamped Archive Container Layout. */ array( 'name' => ASTRA_THEME_SETTINGS . '[archive-' . $post_type . '-ast-content-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => $parent_section, 'default' => astra_get_option( 'archive-' . $post_type . '-ast-content-layout', 'default' ), 'priority' => 5, 'title' => __( 'Container Layout', 'astra' ), 'choices' => $this->get_new_content_layout_choices( $post_type ), 'transport' => 'refresh', 'divider' => array( 'ast_class' => 'ast-top-divider ast-bottom-spacing' ), ), /** * Option: Archive Content Style. */ array( 'name' => ASTRA_THEME_SETTINGS . '[archive-' . $post_type . '-content-style]', 'type' => 'control', 'control' => 'ast-selector', 'section' => $parent_section, 'default' => astra_get_option( 'archive-' . $post_type . '-content-style', 'default' ), 'priority' => 5, 'title' => __( 'Container Style', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ), 'responsive' => false, 'renderAs' => 'text', 'description' => __( 'Container style will apply only when layout is set to either normal or narrow.', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), /** * Option: Archive Sidebar Layout. */ array( 'name' => ASTRA_THEME_SETTINGS . '[archive-' . $post_type . '-sidebar-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => $parent_section, 'default' => astra_get_option( 'archive-' . $post_type . '-sidebar-layout', 'default' ), 'priority' => 5, 'title' => __( 'Sidebar Layout', 'astra' ), 'description' => __( 'Sidebar will only apply when container layout is set to normal.', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), 'choices' => array( 'default' => array( 'label' => __( 'Default', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'layout-default', false ) : '', ), 'no-sidebar' => array( 'label' => __( 'No Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'no-sidebar', false ) : '', ), 'left-sidebar' => array( 'label' => __( 'Left Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'left-sidebar', false ) : '', ), 'right-sidebar' => array( 'label' => __( 'Right Sidebar', 'astra' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'right-sidebar', false ) : '', ), ), ), /** * Option: Archive Sidebar Style. */ array( 'name' => ASTRA_THEME_SETTINGS . '[archive-' . $post_type . '-sidebar-style]', 'type' => 'control', 'control' => 'ast-selector', 'section' => $parent_section, 'default' => astra_get_option( 'archive-' . $post_type . '-sidebar-style', 'default' ), 'priority' => 5, 'title' => __( 'Sidebar Style', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'unboxed' => __( 'Unboxed', 'astra' ), 'boxed' => __( 'Boxed', 'astra' ), ), 'responsive' => false, 'renderAs' => 'text', 'divider' => array( 'ast_class' => 'ast-top-divider' ), ), $reveal_effect, ); } /** * Register Posts Structures Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 4.0.0 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $post_types = Astra_Posts_Structure_Loader::get_supported_post_types(); foreach ( $post_types as $index => $post_type ) { if ( 'page' === $post_type ) { continue; } $section = 'archive-posttype-' . $post_type; $title_section = 'ast-dynamic-archive-' . $post_type; $post_type_object = get_post_type_object( $post_type ); $background_choices = array( 'none' => __( 'None', 'astra' ), 'custom' => __( 'Custom', 'astra' ), ); if ( 'product' === $post_type ) { $parent_section = 'woocommerce_product_catalog'; $background_choices = array( 'none' => __( 'None', 'astra' ), 'custom' => __( 'Custom', 'astra' ), 'featured' => __( 'Featured', 'astra' ), ); } elseif ( 'download' === $post_type ) { $parent_section = 'section-edd-archive'; } elseif ( 'post' === $post_type ) { $parent_section = 'section-blog'; } else { $parent_section = $section; } $configurations = array_merge( $configurations, $this->get_layout_configuration( $parent_section, $post_type ) ); $archive_structure_choices = array(); /** * Archive sortable title control. */ $archive_structure_choices[ $title_section . '-title' ] = array( 'clone' => false, 'is_parent' => true, 'main_index' => $title_section . '-title', 'clone_limit' => 2, 'title' => __( 'Title', 'astra' ), ); /** * Archive sortable title control. */ $archive_structure_choices[ $title_section . '-description' ] = array( 'clone' => false, 'is_parent' => true, 'main_index' => $title_section . '-description', 'clone_limit' => 2, 'title' => __( 'Description', 'astra' ), ); $_configs = array( /** * Option: Builder Tabs */ array( 'name' => $title_section . '-ast-context-tabs', 'section' => $title_section, 'type' => 'control', 'control' => 'ast-builder-header-control', 'priority' => 0, 'description' => '', 'context' => array(), ), array( 'name' => $title_section, // @codingStandardsIgnoreStart 'title' => $this->get_dynamic_section_title( get_post_type_object( $post_type ), $post_type ), // @codingStandardsIgnoreEnd 'type' => 'section', 'section' => $parent_section, 'panel' => ( 'product' === $post_type ) ? 'woocommerce' : '', 'priority' => 1, ), array( 'name' => ASTRA_THEME_SETTINGS . '[ast-archive-' . $post_type . '-title]', 'type' => 'control', 'default' => astra_get_option( 'ast-archive-' . $post_type . '-title', ( class_exists( 'WooCommerce' ) && 'product' === $post_type ) ? false : true ), 'control' => 'ast-section-toggle', 'section' => $parent_section, 'priority' => 2, 'linked' => $title_section, // @codingStandardsIgnoreStart 'linkText' => $this->get_dynamic_section_title( get_post_type_object( $post_type ), $post_type ), // @codingStandardsIgnoreEnd ), /** * Layout option. */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => $title_section, 'default' => astra_get_option( $title_section . '-layout', 'layout-1' ), 'priority' => 5, 'context' => Astra_Builder_Helper::$general_tab, 'title' => __( 'Banner Layout', 'astra' ), 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-spacing' ), 'choices' => array( 'layout-1' => array( 'label' => __( 'Layout 1', 'astra' ), 'path' => Astra_Builder_UI_Controller::fetch_svg_icon( 'post-layout' ), ), 'layout-2' => array( 'label' => __( 'Layout 2', 'astra' ), 'path' => ' ', ), ), ), /** * Option: Banner Content Width. */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-width-type]', 'type' => 'control', 'control' => 'ast-selector', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-width-type', 'fullwidth' ), 'priority' => 10, 'title' => __( 'Container Width', 'astra' ), 'choices' => array( 'fullwidth' => __( 'Full Width', 'astra' ), 'custom' => __( 'Custom', 'astra' ), ), 'divider' => array( 'ast_class' => 'ast-top-divider ast-bottom-spacing' ), 'responsive' => false, 'renderAs' => 'text', 'context' => array( Astra_Builder_Helper::$general_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), ), ), /** * Option: Enter Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-custom-width]', 'type' => 'control', 'control' => 'ast-slider', 'section' => $title_section, 'transport' => 'postMessage', 'default' => astra_get_option( $title_section . '-banner-custom-width', 1200 ), 'context' => array( Astra_Builder_Helper::$general_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-width-type]', 'operator' => '===', 'value' => 'custom', ), ), 'priority' => 15, 'title' => __( 'Custom Width', 'astra' ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), ), /** * Option: Display Post Structure */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'type' => 'control', 'control' => 'ast-sortable', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_multi_choices' ), 'section' => $title_section, 'context' => Astra_Builder_Helper::$general_tab, 'default' => astra_get_option( $title_section . '-structure', array( $title_section . '-title', $title_section . '-description' ) ), 'priority' => 20, 'title' => __( 'Structure', 'astra' ), 'divider' => ( 'post' !== $post_type ) ? array( 'ast_class' => 'ast-top-divider ast-bottom-spacing' ) : array( 'ast_class' => 'ast-bottom-spacing' ), 'choices' => array_merge( array( $title_section . '-breadcrumb' => __( 'Breadcrumb', 'astra' ), ), $archive_structure_choices ), ), /** * Title support for archive. */ array( 'name' => $title_section . '-custom-title', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'default' => astra_get_option( $title_section . '-custom-title', '' ), 'linked' => $title_section . '-title', 'type' => 'sub-control', 'control' => 'ast-text-input', 'settings' => array(), 'section' => $title_section, 'priority' => 1, 'title' => ( 'post' === $post_type ) ? __( 'Blog Title', 'astra' ) : __( 'Archive Title', 'astra' ), ), /** * Help description for title support. */ array( 'name' => $title_section . '-custom-title-support', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'linked' => $title_section . '-title', 'type' => 'sub-control', 'control' => 'ast-description', 'section' => $title_section, 'priority' => 2, 'label' => '', 'help' => esc_html( sprintf( /* translators: 1: post type */ __( 'Note: This title appear on %1$s archive for banner Layout 2.', 'astra' ), $post_type ) ), ), /** * Description support for archive. */ array( 'name' => $title_section . '-custom-description', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'default' => astra_get_option( $title_section . '-custom-description', '' ), 'linked' => $title_section . '-description', 'type' => 'sub-control', 'control' => 'ast-text-input', 'input_attrs' => array( 'textarea' => true, ), 'section' => $title_section, 'priority' => 1, 'title' => ( 'post' === $post_type ) ? __( 'Blog Description', 'astra' ) : __( 'Archive Description', 'astra' ), ), /** * Help description for description support. */ array( 'name' => $title_section . '-custom-description-support', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'linked' => $title_section . '-description', 'type' => 'sub-control', 'control' => 'ast-description', 'section' => $title_section, 'priority' => 2, 'label' => '', 'help' => esc_html( sprintf( /* translators: 1: post type */ __( 'Note: This description appear on %1$s archive for banner Layout 2.', 'astra' ), $post_type ) ), ), /** * Option: Horizontal Alignment. */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-horizontal-alignment]', 'default' => astra_get_option( $title_section . '-horizontal-alignment' ), 'type' => 'control', 'control' => 'ast-selector', 'section' => $title_section, 'priority' => 21, 'title' => __( 'Horizontal Alignment', 'astra' ), 'context' => Astra_Builder_Helper::$general_tab, 'transport' => 'postMessage', 'choices' => array( 'left' => 'align-left', 'center' => 'align-center', 'right' => 'align-right', ), 'divider' => array( 'ast_class' => 'ast-top-divider' ), ), /** * Option: Vertical Alignment */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-vertical-alignment]', 'default' => astra_get_option( $title_section . '-vertical-alignment', 'center' ), 'type' => 'control', 'control' => 'ast-selector', 'section' => $title_section, 'priority' => 22, 'title' => __( 'Vertical Alignment', 'astra' ), 'choices' => array( 'flex-start' => __( 'Top', 'astra' ), 'center' => __( 'Middle', 'astra' ), 'flex-end' => __( 'Bottom', 'astra' ), ), 'divider' => array( 'ast_class' => 'ast-top-divider ast-section-spacing' ), 'context' => array( Astra_Builder_Helper::$general_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), ), 'transport' => 'postMessage', 'renderAs' => 'text', 'responsive' => false, ), /** * Option: Container min height. */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-height]', 'type' => 'control', 'control' => 'ast-responsive-slider', 'section' => $title_section, 'transport' => 'postMessage', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'default' => astra_get_option( $title_section . '-banner-height', Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-slider' ) ), 'context' => array( Astra_Builder_Helper::$design_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '===', 'value' => 'layout-2', ), ), 'priority' => 1, 'title' => __( 'Banner Min Height', 'astra' ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 1000, ), 'divider' => array( 'ast_class' => 'ast-bottom-divider ast-section-spacing' ), ), /** * Option: Elements gap. */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-elements-gap]', 'type' => 'control', 'control' => 'ast-slider', 'section' => $title_section, 'transport' => 'postMessage', 'default' => astra_get_option( $title_section . '-elements-gap', 10 ), 'context' => Astra_Builder_Helper::$design_tab, 'priority' => 5, 'title' => __( 'Inner Elements Spacing', 'astra' ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), 'divider' => array( 'ast_class' => 'ast-bottom-divider ast-section-spacing' ), ), /** * Option: Banner Content Width. */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-image-type]', 'type' => 'control', 'control' => 'ast-selector', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-image-type', 'none' ), 'priority' => 5, 'context' => Astra_Builder_Helper::$design_tab, 'title' => __( 'Container Background', 'astra' ), 'choices' => $background_choices, 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-spacing' ), 'responsive' => false, 'renderAs' => 'text', ), /** * Option: Featured Image Custom Banner BG. */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-custom-bg]', 'default' => astra_get_option( $title_section . '-banner-custom-bg', Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-background' ) ), 'type' => 'control', 'control' => 'ast-responsive-background', 'section' => $title_section, 'title' => __( 'Background', 'astra' ), 'transport' => 'postMessage', 'priority' => 5, 'context' => array( Astra_Builder_Helper::$design_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-image-type]', 'operator' => '===', 'value' => 'custom', ), ), ), /** * Option: Title Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-color]', 'type' => 'control', 'control' => 'ast-color', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-title-color' ), 'transport' => 'postMessage', 'priority' => 9, 'title' => __( 'Title Color', 'astra' ), 'divider' => array( 'ast_class' => 'ast-top-divider ast-top-spacing' ), 'context' => Astra_Builder_Helper::$design_tab, ), /** * Option: Text Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-color]', 'type' => 'control', 'control' => 'ast-color', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-text-color' ), 'priority' => 10, 'title' => __( 'Text Color', 'astra' ), 'transport' => 'postMessage', 'context' => Astra_Builder_Helper::$design_tab, ), /** * Option: Link Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-link-color]', 'type' => 'control', 'control' => 'ast-color', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-link-color' ), 'transport' => 'postMessage', 'priority' => 15, 'title' => __( 'Link Color', 'astra' ), 'context' => Astra_Builder_Helper::$design_tab, ), /** * Option: Link Hover Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-link-hover-color]', 'type' => 'control', 'control' => 'ast-color', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-link-hover-color' ), 'transport' => 'postMessage', 'priority' => 20, 'title' => __( 'Link Hover Color', 'astra' ), 'context' => Astra_Builder_Helper::$design_tab, 'divider' => array( 'ast_class' => 'ast-bottom-spacing' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-typography-group]', 'type' => 'control', 'priority' => 22, 'control' => 'ast-settings-group', 'context' => array( Astra_Builder_Helper::$design_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-structure]', 'operator' => 'contains', 'value' => $title_section . '-title', ), ), 'divider' => array( 'ast_class' => 'ast-top-divider' ), 'title' => __( 'Title Font', 'astra' ), 'section' => $title_section, 'transport' => 'postMessage', ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-typography-group]', 'type' => 'control', 'priority' => 25, 'control' => 'ast-settings-group', 'context' => Astra_Builder_Helper::$design_tab, 'title' => __( 'Text Font', 'astra' ), 'divider' => array( 'ast_class' => 'ast-bottom-spacing' ), 'section' => $title_section, 'transport' => 'postMessage', ), /** * Option: Text Font Family */ array( 'name' => $title_section . '-text-font-family', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-family', 'default' => astra_get_option( $title_section . '-text-font-family', 'inherit' ), 'title' => __( 'Font Family', 'astra' ), 'connect' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-text-font-weight]', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), /** * Option: Text Font Weight */ array( 'name' => $title_section . '-text-font-weight', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-weight', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'default' => astra_get_option( $title_section . '-text-font-weight', 'inherit' ), 'title' => __( 'Font Weight', 'astra' ), 'connect' => $title_section . '-text-font-family', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), /** * Option: Text Font Size */ array( 'name' => $title_section . '-text-font-size', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-responsive-slider', 'default' => astra_get_option( $title_section . '-text-font-size', Astra_Posts_Structure_Loader::get_customizer_default( 'font-size' ) ), 'transport' => 'postMessage', 'title' => __( 'Font Size', 'astra' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'suffix' => array( 'px', 'em', 'vw', 'rem' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 200, ), 'em' => array( 'min' => 0, 'step' => 0.01, 'max' => 20, ), 'vw' => array( 'min' => 0, 'step' => 0.1, 'max' => 25, ), 'rem' => array( 'min' => 0, 'step' => 0.1, 'max' => 20, ), ), ), /** * Option: Archive Post Banner Text Font Extras */ array( 'name' => $title_section . '-text-font-extras', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-text-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font-extras', 'default' => astra_get_option( $title_section . '-text-font-extras', Astra_Posts_Structure_Loader::get_customizer_default( 'font-extras' ) ), 'title' => __( 'Font Extras', 'astra' ), ), /** * Option: Title Font Family */ array( 'name' => $title_section . '-title-font-family', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-family', 'default' => astra_get_option( $title_section . '-title-font-family', 'inherit' ), 'title' => __( 'Font Family', 'astra' ), 'connect' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-title-font-weight]', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), /** * Option: Title Font Weight */ array( 'name' => $title_section . '-title-font-weight', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-weight', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'default' => astra_get_option( $title_section . '-title-font-weight', Astra_Posts_Structure_Loader::get_customizer_default( 'title-font-weight' ) ), 'title' => __( 'Font Weight', 'astra' ), 'connect' => $title_section . '-title-font-family', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), /** * Option: Title Font Size */ array( 'name' => $title_section . '-title-font-size', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-responsive-slider', 'default' => astra_get_option( $title_section . '-title-font-size', Astra_Posts_Structure_Loader::get_customizer_default( 'title-font-size' ) ), 'transport' => 'postMessage', 'title' => __( 'Font Size', 'astra' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'suffix' => array( 'px', 'em', 'vw', 'rem' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 200, ), 'em' => array( 'min' => 0, 'step' => 0.01, 'max' => 20, ), 'vw' => array( 'min' => 0, 'step' => 0.1, 'max' => 25, ), 'rem' => array( 'min' => 0, 'step' => 0.1, 'max' => 20, ), ), ), /** * Option: Archive Post Banner Title Font Extras */ array( 'name' => $title_section . '-title-font-extras', 'parent' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-title-typography-group]', 'section' => $title_section, 'type' => 'sub-control', 'control' => 'ast-font-extras', 'default' => astra_get_option( $title_section . '-title-font-extras', Astra_Posts_Structure_Loader::get_customizer_default( 'font-extras' ) ), 'title' => __( 'Font Extras', 'astra' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-margin]', 'default' => astra_get_option( $title_section . '-banner-margin', Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-spacing' ) ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => $title_section, 'divider' => array( 'ast_class' => 'ast-top-divider' ), 'title' => __( 'Margin', 'astra' ), 'linked_choices' => true, 'transport' => 'postMessage', 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), 'context' => Astra_Builder_Helper::$design_tab, 'priority' => 100, 'connected' => false, ), array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-padding]', 'default' => astra_get_option( $title_section . '-banner-padding', ( class_exists( 'WooCommerce' ) && 'product' === $post_type ) ? Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-spacing' ) : Astra_Posts_Structure_Loader::get_customizer_default( 'responsive-padding' ) ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => $title_section, 'title' => __( 'Padding', 'astra' ), 'linked_choices' => true, 'transport' => 'postMessage', 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), 'context' => Astra_Builder_Helper::$design_tab, 'priority' => 120, 'connected' => false, ), ); if ( 'post' === $post_type ) { /** * Option: Disable Transparent Header on Your latest posts index Page */ $_configs[] = array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-on-blog]', 'default' => astra_get_option( $title_section . '-banner-on-blog', false ), 'type' => 'control', 'section' => $title_section, 'context' => array( Astra_Builder_Helper::$general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-layout]', 'operator' => '!=', 'value' => 'layout-1', ), ), 'title' => __( 'Enable on Blog / Posts Page?', 'astra' ), 'priority' => 7, 'control' => 'ast-toggle-control', 'divider' => array( 'ast_class' => 'ast-top-divider ast-bottom-spacing' ), ); } if ( 'product' === $post_type ) { /** * Option: Featured Image Overlay Color. */ $_configs[] = array( 'name' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-featured-overlay]', 'type' => 'control', 'control' => 'ast-color', 'section' => $title_section, 'default' => astra_get_option( $title_section . '-banner-featured-overlay', '' ), 'priority' => 6, 'title' => __( 'Overlay Color', 'astra' ), 'context' => array( Astra_Builder_Helper::$design_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[' . $title_section . '-banner-image-type]', 'operator' => '===', 'value' => 'featured', ), ), ); } $configurations = array_merge( $configurations, $_configs ); } return $configurations; } /** * Get Dynamic Section Title. * * @since 4.4.0 * @param object|null $post_type_object Post type object. * @param string $post_type Post type. * @return string */ public function get_dynamic_section_title( $post_type_object, $post_type ) { if ( ! is_null( $post_type_object ) ) { $title = ( 'post' === $post_type ) ? __( 'Blog', 'astra' ) : Astra_Posts_Structures_Configs::astra_get_dynamic_section_title( get_post_type_object( $post_type ), $post_type ); } else { $title = __( 'Archive Banner', 'astra' ); } /** @psalm-suppress TooManyArguments */ return apply_filters( 'astra_archive_post_title', $title . __( ' Title Area', 'astra' ), $post_type ); } } /** * Kicking this off by creating new object. */ new Astra_Posts_Archive_Structures_Configs(); PKmZK}>>:modules/related-posts/class-astra-related-posts-markup.phpnu[ Related Posts section. * * @since 3.5.0 * @return void */ public function astra_related_posts_markup() { if ( astra_target_rules_for_related_posts() ) { $this->astra_get_related_posts(); } } /** * Related Posts markup. * * @since 3.5.0 * @return bool */ public function astra_get_related_posts() { global $post; $post_id = $post->ID; $related_posts_title = astra_get_i18n_option( 'related-posts-title', _x( '%astra%', 'Single Blog/Post Related Posts: Title', 'astra' ) ); $related_post_meta = astra_get_option( 'related-posts-meta-structure' ); $related_post_structure = astra_get_option_meta( 'related-posts-structure' ); $exclude_ids = apply_filters( 'astra_related_posts_exclude_post_ids', array( $post_id ), $post_id ); $related_posts_total_count = absint( astra_get_option( 'related-posts-total-count', 2 ) ); $module_container_width = astra_get_option( 'related-posts-container-width' ); $module_container_width = 'inside' === astra_get_option( 'related-posts-box-placement' ) ? '' : 'ast-container--' . $module_container_width; $related_category_style = astra_get_option( 'related-posts-category-style' ); $related_tag_style = astra_get_option( 'related-posts-tag-style' ); // Get related posts by WP_Query. $query_posts = $this->astra_get_related_posts_by_query( $post_id ); if ( $query_posts ) { if ( ! $query_posts->have_posts() ) { return apply_filters( 'astra_related_posts_no_posts_avilable_message', '', $post_id ); } // Added flag to load wrapper section 'ast-single-related-posts-container' only once, because as we removed 'posts__not_in' param from WP_Query and we conditionally handle posts__not_in below so it needs to verify if there are other posts as well to load, then only we will display wrapper. $related_posts_section_loaded = false; do_action( 'astra_related_posts_loop_before' ); /** * WP_Query posts loop. * * Used $post_counter & ( $post_counter < $total_posts_count ) condition to manage posts in while loop because there is case where manual 'post__not_in' condition handling scenario fails within loop. * * # CASE EXAMPLE - If total posts set to 4 (where 'post__not_in' not used in WP_Query) so there is a chance that out of those 4 posts, 1 post will be currently active on frontend. * * So what will happen in this case - Within following loop the current post will exclude by if condition & only 3 posts will be shown up. * * To avoid such cases $post_counter & ( $post_counter < $total_posts_count ) condition used. * * @since 3.5.0 */ $post_counter = 1; $total_posts_count = $related_posts_total_count + 1; while ( $query_posts->have_posts() && $post_counter < $total_posts_count ) { $query_posts->the_post(); $post_id = get_the_ID(); $separator = astra_get_option( 'related-metadata-separator', '/' ); $output_str = astra_get_post_meta( $related_post_meta, $separator, 'related-posts' ); if ( is_array( $exclude_ids ) && ! in_array( $post_id, $exclude_ids ) ) { if ( false === $related_posts_section_loaded ) { if ( is_customize_preview() ) { echo ''; } } else { $submenu_class = apply_filters( 'astra_primary_submenu_border_class', ' submenu-with-border' ); // Menu Animation. $menu_animation = astra_get_option( 'header-main-submenu-container-animation' ); if ( ! empty( $menu_animation ) ) { $submenu_class .= ' astra-menu-animation-' . esc_attr( $menu_animation ) . ' '; } /** * Filter the classes(array) for Primary Menu (
    ). * * @since 1.5.0 * @var Array */ $primary_menu_classes = apply_filters( 'astra_primary_menu_classes', array( 'main-header-menu', 'ast-menu-shadow', 'ast-nav-menu', 'ast-flex', 'ast-justify-content-flex-end', $submenu_class ) ); // Fallback Menu if primary menu not set. $fallback_menu_args = array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu', 'menu_class' => 'main-navigation', 'container' => 'div', 'before' => '
      ', 'after' => '
    ', 'walker' => new Astra_Walker_Page(), ); $items_wrap = ''; // Primary Menu. $primary_menu_args = array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu', 'menu_class' => esc_attr( implode( ' ', $primary_menu_classes ) ), 'container' => 'div', 'container_class' => 'main-header-bar-navigation', 'items_wrap' => $items_wrap, ); if ( has_nav_menu( 'primary' ) ) { // To add default alignment for navigation which can be added through any third party plugin. // Do not add any CSS from theme except header alignment. echo '
    '; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped wp_nav_menu( $primary_menu_args ); echo '
    '; } else { echo '
    '; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo '
    '; echo ''; echo '
    '; echo '
    '; } } } } add_action( 'astra_masthead_content', 'astra_primary_navigation_markup', 10 ); /** * Add CSS classes for all menu links inside WP Nav menu items. * * Right now, if Addon is active we add 'menu-link' class through walker_nav_menu_start_el, but if only theme is being used no class is assigned to anchors. * * As we are replacing tag based selector assets to class selector, adding 'menu-link' selector to all anchors inside menu items. * Ex. .main-header-menu a => .main-header-menu .menu-link * * @since 2.5.0 * @param array $atts An array of all parameters assigned to menu anchors. */ function astra_menu_anchor_class_for_nav_menus( $atts ) { if ( ! empty( $atts['class'] ) ) { $atts['class'] = $atts['class'] . ' menu-link'; } else { $atts['class'] = 'menu-link'; } return $atts; } add_filter( 'nav_menu_link_attributes', 'astra_menu_anchor_class_for_nav_menus', 11 ); /** * Add CSS classes for all menu links inside WP Page Menu items. * * As we are replacing tag based selector to class selector, adding 'menu-link' selector to all anchors inside menu items. * * @since 2.5.0 * @param array $atts An array of all parameters assigned to menu anchors. */ function astra_menu_anchor_class_for_page_menus( $atts ) { if ( ! empty( $atts['class'] ) ) { $atts['class'] = $atts['class'] . ' menu-link'; } else { $atts['class'] = 'menu-link'; } return $atts; } add_filter( 'page_menu_link_attributes', 'astra_menu_anchor_class_for_page_menus' ); /** * Add CSS classes from wp_nav_menu the wp_page_menu()'s menu items. * This will help avoid targeting wp_page_menu and wp_nav_manu separately in CSS/JS. * * @since 1.6.9 * @param array $css_class An array of CSS classes to be applied * to each list item. * @param WP_Post $page Page data object. * @param int $depth Depth of page, used for padding. * @param array $args An array of arguments. * @param int $current_page ID of the current page. * @return Array CSS classes with added menu class `menu-item` */ function astra_page_css_class( $css_class, $page, $depth, $args, $current_page ) { $css_class[] = 'menu-item'; if ( isset( $args['pages_with_children'][ $page->ID ] ) ) { $css_class[] = 'menu-item-has-children'; } if ( ! empty( $current_page ) ) { $_current_page = get_post( $current_page ); if ( $_current_page && in_array( $page->ID, $_current_page->ancestors ) ) { $css_class[] = 'current-menu-ancestor'; } if ( $page->ID == $current_page ) { $css_class[] = 'current-menu-item'; } elseif ( $_current_page && $page->ID == $_current_page->post_parent ) { $css_class[] = 'current-menu-parent'; } } elseif ( get_option( 'page_for_posts' ) == $page->ID ) { $css_class[] = 'current-menu-parent'; } return $css_class; } add_filter( 'page_css_class', 'astra_page_css_class', 20, 5 ); /** * Function to get site Footer */ if ( ! function_exists( 'astra_footer_markup' ) ) { /** * Site Footer -