File manager - Edit - /home/premiey/www/wp-includes/images/media/spacing.tar
Back
classes/dynamic.css.php 0000666 00000545561 15165501465 0011161 0 ustar 00 <?php /** * Spacing - Dynamic CSS * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_ext_spacing_dynamic_css' ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_ext_spacing_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { // Spacing. $is_site_rtl = is_rtl(); $site_identity_spacing = astra_get_option( 'site-identity-spacing' ); $continder_outside_spacing = astra_get_option( 'container-outside-spacing' ); $container_inside_spacing = astra_get_option( 'container-inside-spacing' ); $single_post_inside_spacing = astra_get_option( 'single-post-inside-spacing' ); $header_spacing = astra_get_option( 'header-spacing' ); $primary_menu_spacing = astra_get_option( 'primary-menu-spacing' ); $primary_submenu_spacing = astra_get_option( 'primary-submenu-spacing' ); $above_header_spacing = astra_get_option( 'above-header-spacing' ); $above_header_menu_spacing = astra_get_option( 'above-header-menu-spacing' ); $above_header_submenu_spacing = astra_get_option( 'above-header-submenu-spacing' ); $below_header_spacing = astra_get_option( 'below-header-spacing' ); $below_header_menu_spacing = astra_get_option( 'below-header-menu-spacing' ); $below_header_submenu_spacing = astra_get_option( 'below-header-submenu-spacing' ); $sidebar_outside_spacing = astra_get_option( 'sidebar-outside-spacing' ); $sidebar_inside_spacing = astra_get_option( 'sidebar-inside-spacing' ); $astra_footer_width = astra_get_option( 'footer-layout-width' ); $footer_spacing = astra_get_option( 'footer-sml-spacing' ); $footer_menu_spacing = astra_get_option( 'footer-menu-spacing' ); $site_content_layout = astra_get_option( 'site-content-layout' ); $header_content_layout = astra_get_option( 'header-main-layout-width' ); $header_layouts = astra_get_option( 'header-layouts' ); // Sticky header. $stick_header_main = astra_get_option( 'header-main-stick' ); $stick_header_main_meta = astra_get_option_meta( 'header-main-stick-meta' ); $stick_header_above = astra_get_option( 'header-above-stick' ); $stick_header_above_meta = astra_get_option_meta( 'header-above-stick-meta' ); $stick_header_below = astra_get_option( 'header-below-stick' ); $stick_header_below_meta = astra_get_option_meta( 'header-below-stick-meta' ); $header_main_shrink = astra_get_option( 'header-main-shrink' ); // Blog Grid spacing. $blog_grid = astra_get_option( 'blog-grid' ); $blog_layout = astra_get_option( 'blog-layout' ); $blog_post_outside_spacing = astra_get_option( 'blog-post-outside-spacing' ); $blog_post_inside_spacing = astra_get_option( 'blog-post-inside-spacing' ); $blog_post_pagination_spacing = astra_get_option( 'blog-post-pagination-spacing' ); $blog_featured_image_padding = astra_get_option( 'blog-featured-image-padding' ); $remove_single_featured_padding = astra_get_option( 'single-featured-image-padding' ); $alignfull_editor_selector = ( true === astra_get_option( 'improve-gb-editor-ui' ) ) ? '.ast-no-sidebar.ast-separate-container .entry-content > .alignfull, .ast-no-sidebar.ast-narrow-container .entry-content > .alignfull' : '.ast-no-sidebar.ast-separate-container .entry-content .alignfull, .ast-no-sidebar.ast-narrow-container .entry-content .alignfull'; // Updated selector here because there is no requirement of extra spacing for nested alignfull blocks. // Desktop Spacing. $is_new_strctural_defaults = astra_get_option( 'customizer-default-layout-update', true ); $spacing = array( /** * Content Spacing */ '.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single, .ast-separate-container .ast-comment-list li.depth-1, .ast-separate-container .comment-respond, .single.ast-separate-container .ast-author-details, .ast-separate-container .ast-related-posts-wrap, .ast-separate-container .ast-woocommerce-container' => array( 'padding-top' => astra_responsive_spacing( $container_inside_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $container_inside_spacing, 'bottom', 'desktop' ), ), // Narrow Container global inside spacing support. '.ast-narrow-container .ast-article-post, .ast-narrow-container .ast-article-single, .ast-narrow-container .ast-comment-list li.depth-1, .ast-narrow-container .comment-respond, .single.ast-narrow-container .ast-author-details, .ast-narrow-container .ast-related-posts-wrap, .ast-narrow-container .ast-woocommerce-container, .ast-narrow-container .ast-single-related-posts-container' => array( 'padding-top' => astra_responsive_spacing( $container_inside_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $container_inside_spacing, 'bottom', 'desktop' ), ), '.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single,.ast-separate-container .comments-count-wrapper, .ast-separate-container .ast-comment-list li.depth-1, .ast-separate-container .comment-respond,.ast-separate-container .related-posts-title-wrapper,.ast-separate-container .related-posts-title-wrapper, .single.ast-separate-container .ast-author-details, .single.ast-separate-container .about-author-title-wrapper, .ast-separate-container .ast-related-posts-wrap, .ast-separate-container .ast-woocommerce-container' => array( 'padding-right' => astra_responsive_spacing( $container_inside_spacing, 'right', 'desktop' ), 'padding-left' => astra_responsive_spacing( $container_inside_spacing, 'left', 'desktop' ), ), // Narrow Container global inside spacing support. '.ast-narrow-container .ast-article-post, .ast-narrow-container .ast-article-single,.ast-narrow-container .comments-count-wrapper, .ast-narrow-container .ast-comment-list li.depth-1, .ast-narrow-container .comment-respond,.ast-narrow-container .related-posts-title-wrapper,.ast-narrow-container .related-posts-title-wrapper, .single.ast-narrow-container .ast-author-details, .single.ast-narrow-container .about-author-title-wrapper, .ast-narrow-container .ast-related-posts-wrap, .ast-narrow-container .ast-woocommerce-container, .ast-narrow-container .ast-single-related-posts-container' => array( 'padding-right' => astra_responsive_spacing( $container_inside_spacing, 'right', 'desktop' ), 'padding-left' => astra_responsive_spacing( $container_inside_spacing, 'left', 'desktop' ), ), '.ast-separate-container.ast-right-sidebar #primary, .ast-separate-container.ast-left-sidebar #primary, .ast-separate-container #primary, .ast-plain-container #primary, .ast-narrow-container #primary' => array( 'margin-top' => astra_responsive_spacing( $continder_outside_spacing, 'top', 'desktop' ), 'margin-bottom' => astra_responsive_spacing( $continder_outside_spacing, 'bottom', 'desktop' ), ), '.ast-left-sidebar #primary, .ast-right-sidebar #primary, .ast-separate-container.ast-right-sidebar #primary, .ast-separate-container.ast-left-sidebar #primary, .ast-separate-container #primary, .ast-narrow-container #primary' => array( 'padding-left' => astra_responsive_spacing( $continder_outside_spacing, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $continder_outside_spacing, 'right', 'desktop' ), ), // Negative margin for the alignfull gutenberg class based on the padding. $alignfull_editor_selector => array( 'margin-right' => astra_responsive_spacing( $container_inside_spacing, 'right', 'desktop', '', '-' ), 'margin-left' => astra_responsive_spacing( $container_inside_spacing, 'left', 'desktop', '', '-' ), ), /** * Single Post Content Spacing */ '.ast-separate-container.ast-single-post .ast-article-post, .ast-separate-container.ast-single-post .ast-article-single, .ast-separate-container.ast-single-post .ast-comment-list li.depth-1, .ast-separate-container.ast-single-post .comment-respond, .ast-separate-container.ast-single-post .ast-related-posts-wrap, .ast-separate-container.ast-single-post .ast-woocommerce-container, .single.ast-separate-container.ast-single-post .ast-author-meta' => array( 'padding-top' => astra_responsive_spacing( $single_post_inside_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $single_post_inside_spacing, 'bottom', 'desktop' ), ), // Narrow Container single post inside spacing support. '.ast-narrow-container.ast-single-post .ast-article-post, .ast-narrow-container.ast-single-post .ast-article-single, .ast-narrow-container.ast-single-post .ast-comment-list li.depth-1, .ast-narrow-container.ast-single-post .comment-respond, .ast-narrow-container.ast-single-post .ast-related-posts-wrap, .ast-narrow-container.ast-single-post .ast-woocommerce-container, .single.ast-narrow-container.ast-single-post .ast-author-meta, .ast-narrow-container.ast-single-post .ast-single-related-posts-container' => array( 'padding-top' => astra_responsive_spacing( $single_post_inside_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $single_post_inside_spacing, 'bottom', 'desktop' ), ), '.ast-separate-container.ast-single-post .ast-article-post, .ast-separate-container.ast-single-post .ast-article-single, .ast-separate-container.ast-single-post .comments-count-wrapper, .ast-separate-container.ast-single-post .ast-comment-list li.depth-1, .ast-separate-container.ast-single-post .comment-respond,.ast-separate-container.ast-single-post .related-posts-title-wrapper,.ast-separate-container.ast-single-post .related-posts-title-wrapper, .single.ast-separate-container.ast-single-post .ast-author-meta, .ast-separate-container.ast-single-post .ast-related-posts-wrap, .ast-separate-container.ast-single-post .ast-woocommerce-container' => array( 'padding-right' => astra_responsive_spacing( $single_post_inside_spacing, 'right', 'desktop' ), 'padding-left' => astra_responsive_spacing( $single_post_inside_spacing, 'left', 'desktop' ), ), // Narrow Container single post inside spacing support. '.ast-narrow-container.ast-single-post .ast-article-post, .ast-narrow-container.ast-single-post .ast-article-single, .ast-narrow-container.ast-single-post .comments-count-wrapper, .ast-narrow-container.ast-single-post .ast-comment-list li.depth-1, .ast-narrow-container.ast-single-post .comment-respond,.ast-narrow-container.ast-single-post .related-posts-title-wrapper,.ast-narrow-container.ast-single-post .related-posts-title-wrapper, .single.ast-narrow-container.ast-single-post .ast-author-meta, .ast-narrow-container.ast-single-post .ast-related-posts-wrap, .ast-narrow-container.ast-single-post .ast-woocommerce-container, .ast-narrow-container.ast-single-post .ast-single-related-posts-container' => array( 'padding-right' => astra_responsive_spacing( $single_post_inside_spacing, 'right', 'desktop' ), 'padding-left' => astra_responsive_spacing( $single_post_inside_spacing, 'left', 'desktop' ), ), /** * Sidebar Spacing */ '.ast-plain-container #secondary, .ast-separate-container #secondary, .ast-page-builder-template #secondary' => array( 'margin-top' => astra_responsive_spacing( $sidebar_outside_spacing, 'top', 'desktop' ), 'margin-bottom' => astra_responsive_spacing( $sidebar_outside_spacing, 'bottom', 'desktop' ), ), '.ast-right-sidebar #secondary, .ast-left-sidebar #secondary, .ast-separate-container.ast-two-container.ast-left-sidebar #secondary, .ast-separate-container.ast-two-container.ast-right-sidebar #secondary, .ast-separate-container.ast-right-sidebar #secondary, .ast-separate-container.ast-left-sidebar #secondary' => array( 'padding-left' => astra_responsive_spacing( $sidebar_outside_spacing, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $sidebar_outside_spacing, 'right', 'desktop' ), ), // Sidebar Inside Spacing Top / Bottom / Left / Right Padding. '.ast-separate-container.ast-two-container #secondary .widget, .ast-separate-container #secondary .widget, .ast-plain-container #secondary .widget' => array( 'padding-top' => astra_responsive_spacing( $sidebar_inside_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $sidebar_inside_spacing, 'bottom', 'desktop' ), ), '.ast-two-container.ast-right-sidebar #secondary .widget, .ast-two-container.ast-left-sidebar #secondary .widget, .ast-separate-container #secondary .widget, .ast-plain-container #secondary .widget' => array( 'padding-left' => astra_responsive_spacing( $sidebar_inside_spacing, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $sidebar_inside_spacing, 'right', 'desktop' ), ), /** * Blog Grid Spacing */ // Blog Grid Outside Spacing. '.ast-separate-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-separate-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-separate-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-separate-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-separate-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-separate-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+1)' => array( 'padding-top' => astra_responsive_spacing( $blog_post_outside_spacing, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $blog_post_outside_spacing, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_outside_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $blog_post_outside_spacing, 'left', 'desktop' ), ), // Narrow Container blog grid support for outside spacing. '.ast-narrow-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-narrow-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-narrow-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-narrow-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-narrow-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-narrow-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+1)' => array( 'padding-top' => astra_responsive_spacing( $blog_post_outside_spacing, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $blog_post_outside_spacing, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_outside_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $blog_post_outside_spacing, 'left', 'desktop' ), ), // Blog Grid Inside Spacing. '.ast-separate-container .ast-grid-2 .blog-layout-1, .ast-separate-container .ast-grid-2 .blog-layout-2, .ast-separate-container .ast-grid-2 .blog-layout-3, .ast-separate-container .ast-grid-3 .blog-layout-1, .ast-separate-container .ast-grid-3 .blog-layout-2, .ast-separate-container .ast-grid-3 .blog-layout-3, .ast-separate-container .ast-grid-4 .blog-layout-1, .ast-separate-container .ast-grid-4 .blog-layout-2, .ast-separate-container .ast-grid-4 .blog-layout-3' => array( 'padding-top' => astra_responsive_spacing( $blog_post_inside_spacing, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $blog_post_inside_spacing, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_inside_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $blog_post_inside_spacing, 'left', 'desktop' ), ), // Narrow Container blog grid support for inside spacing. '.ast-narrow-container .ast-grid-2 .blog-layout-1, .ast-narrow-container .ast-grid-2 .blog-layout-2, .ast-narrow-container .ast-grid-2 .blog-layout-3, .ast-narrow-container .ast-grid-3 .blog-layout-1, .ast-narrow-container .ast-grid-3 .blog-layout-2, .ast-narrow-container .ast-grid-3 .blog-layout-3, .ast-narrow-container .ast-grid-4 .blog-layout-1, .ast-narrow-container .ast-grid-4 .blog-layout-2, .ast-narrow-container .ast-grid-4 .blog-layout-3' => array( 'padding-top' => astra_responsive_spacing( $blog_post_inside_spacing, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $blog_post_inside_spacing, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_inside_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $blog_post_inside_spacing, 'left', 'desktop' ), ), // Blog Pagination Spacing. '.ast-pagination' => array( 'padding-top' => astra_responsive_spacing( $blog_post_pagination_spacing, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $blog_post_pagination_spacing, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_pagination_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $blog_post_pagination_spacing, 'left', 'desktop' ), ), ); if ( $is_new_strctural_defaults ) { $spacing['.ast-separate-container .comments-title, .ast-narrow-container .comments-title'] = array( 'padding-right' => astra_responsive_spacing( $single_post_inside_spacing, 'right', 'desktop' ), 'padding-left' => astra_responsive_spacing( $single_post_inside_spacing, 'left', 'desktop' ), 'padding-top' => astra_responsive_spacing( $single_post_inside_spacing, 'top', 'desktop' ), 'padding-bottom' => '0', ); } if ( false === astra_addon_builder_helper()->is_header_footer_builder_active ) { /** * Site Identity Spacing */ $spacing['.site-header .ast-site-identity'] = array( 'padding-top' => astra_responsive_spacing( $site_identity_spacing, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $site_identity_spacing, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $site_identity_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $site_identity_spacing, 'left', 'desktop' ), ); } $spacing_css_output = astra_parse_css( $spacing ); $tablet_spacing = array( /** * Content Spacing */ '.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single, .ast-separate-container .ast-comment-list li.depth-1, .ast-separate-container .comment-respond, .single.ast-separate-container .ast-author-details, .ast-separate-container .ast-related-posts-wrap, .ast-separate-container .ast-woocommerce-container' => array( 'padding-top' => astra_responsive_spacing( $container_inside_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $container_inside_spacing, 'bottom', 'tablet' ), ), '.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single,.ast-separate-container .comments-count-wrapper, .ast-separate-container .ast-comment-list li.depth-1, .ast-separate-container .comment-respond,.ast-separate-container .related-posts-title-wrapper,.ast-separate-container .related-posts-title-wrapper, .single.ast-separate-container .ast-author-details, .single.ast-separate-container .about-author-title-wrapper, .ast-separate-container .ast-related-posts-wrap, .ast-separate-container .ast-woocommerce-container, .ast-separate-container .ast-single-related-posts-container' => array( 'padding-right' => astra_responsive_spacing( $container_inside_spacing, 'right', 'tablet' ), 'padding-left' => astra_responsive_spacing( $container_inside_spacing, 'left', 'tablet' ), ), // Narrow Container global tablet support for inside spacing. '.ast-narrow-container .ast-article-post, .ast-narrow-container .ast-article-single, .ast-narrow-container .ast-comment-list li.depth-1, .ast-narrow-container .comment-respond, .single.ast-narrow-container .ast-author-details, .ast-narrow-container .ast-related-posts-wrap, .ast-narrow-container .ast-woocommerce-container, .ast-narrow-container .ast-single-related-posts-container' => array( 'padding-top' => astra_responsive_spacing( $container_inside_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $container_inside_spacing, 'bottom', 'tablet' ), ), // Narrow Container global tablet support for inside spacing. '.ast-narrow-container .ast-article-post, .ast-narrow-container .ast-article-single,.ast-narrow-container .comments-count-wrapper, .ast-narrow-container .ast-comment-list li.depth-1, .ast-narrow-container .comment-respond,.ast-narrow-container .related-posts-title-wrapper,.ast-narrow-container .related-posts-title-wrapper, .single.ast-narrow-container .ast-author-details, .single.ast-narrow-container .about-author-title-wrapper, .ast-narrow-container .ast-related-posts-wrap, .ast-narrow-container .ast-woocommerce-container, .ast-narrow-container .ast-single-related-posts-container' => array( 'padding-right' => astra_responsive_spacing( $container_inside_spacing, 'right', 'tablet' ), 'padding-left' => astra_responsive_spacing( $container_inside_spacing, 'left', 'tablet' ), ), '.ast-separate-container.ast-right-sidebar #primary, .ast-separate-container.ast-left-sidebar #primary, .ast-separate-container #primary, .ast-plain-container #primary, .ast-narrow-container #primary' => array( 'margin-top' => astra_responsive_spacing( $continder_outside_spacing, 'top', 'tablet' ), 'margin-bottom' => astra_responsive_spacing( $continder_outside_spacing, 'bottom', 'tablet' ), ), '.ast-left-sidebar #primary, .ast-right-sidebar #primary, .ast-separate-container.ast-right-sidebar #primary, .ast-separate-container.ast-left-sidebar #primary, .ast-separate-container #primary, .ast-narrow-container #primary' => array( 'padding-left' => astra_responsive_spacing( $continder_outside_spacing, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $continder_outside_spacing, 'right', 'tablet' ), ), /** * Single Post Content Spacing */ '.ast-separate-container.ast-single-post .ast-article-post, .ast-separate-container.ast-single-post .ast-article-single, .ast-separate-container.ast-single-post .ast-comment-list li.depth-1, .ast-separate-container.ast-single-post .comment-respond, .ast-separate-container.ast-single-post .ast-related-posts-wrap, .ast-separate-container.ast-single-post .ast-woocommerce-container, .single.ast-separate-container.ast-single-post .ast-author-meta' => array( 'padding-top' => astra_responsive_spacing( $single_post_inside_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $single_post_inside_spacing, 'bottom', 'tablet' ), ), // Narrow Container single post tablet support for inside spacing. '.ast-narrow-container.ast-single-post .ast-article-post, .ast-narrow-container.ast-single-post .ast-article-single, .ast-narrow-container.ast-single-post .ast-comment-list li.depth-1, .ast-narrow-container.ast-single-post .comment-respond, .ast-narrow-container.ast-single-post .ast-related-posts-wrap, .ast-narrow-container.ast-single-post .ast-woocommerce-container, .single.ast-narrow-container.ast-single-post .ast-author-meta, .ast-narrow-container.ast-single-post .ast-single-related-posts-container' => array( 'padding-top' => astra_responsive_spacing( $single_post_inside_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $single_post_inside_spacing, 'bottom', 'tablet' ), ), '.ast-separate-container.ast-single-post .ast-article-post, .ast-separate-container.ast-single-post .ast-article-single,.ast-separate-container.ast-single-post .comments-count-wrapper, .ast-separate-container.ast-single-post .ast-comment-list li.depth-1, .ast-separate-container.ast-single-post .comment-respond,.ast-separate-container.ast-single-post .related-posts-title-wrapper,.ast-separate-container.ast-single-post .related-posts-title-wrapper, .single.ast-separate-container.ast-single-post .ast-author-meta, .ast-separate-container.ast-single-post .ast-related-posts-wrap, .ast-separate-container.ast-single-post .ast-woocommerce-container' => array( 'padding-right' => astra_responsive_spacing( $single_post_inside_spacing, 'right', 'tablet' ), 'padding-left' => astra_responsive_spacing( $single_post_inside_spacing, 'left', 'tablet' ), ), '.ast-separate-container.ast-single-post .ast-article-post, .ast-separate-container.ast-single-post .ast-article-single,.ast-separate-container.ast-single-post .comments-count-wrapper, .ast-separate-container.ast-single-post .ast-comment-list li.depth-1, .ast-separate-container.ast-single-post .comment-respond,.ast-separate-container.ast-single-post .related-posts-title-wrapper,.ast-separate-container.ast-single-post .related-posts-title-wrapper, .single.ast-separate-container.ast-single-post .ast-author-meta, .ast-separate-container.ast-single-post .ast-related-posts-wrap, .ast-separate-container.ast-single-post .ast-woocommerce-container' => array( 'padding-right' => astra_responsive_spacing( $single_post_inside_spacing, 'right', 'tablet' ), 'padding-left' => astra_responsive_spacing( $single_post_inside_spacing, 'left', 'tablet' ), ), // Narrow Container single post tablet support for inside spacing. '.ast-narrow-container.ast-single-post .ast-article-post, .ast-narrow-container.ast-single-post .ast-article-single,.ast-narrow-container.ast-single-post .comments-count-wrapper, .ast-narrow-container.ast-single-post .ast-comment-list li.depth-1, .ast-narrow-container.ast-single-post .comment-respond,.ast-narrow-container.ast-single-post .related-posts-title-wrapper,.ast-narrow-container.ast-single-post .related-posts-title-wrapper, .single.ast-narrow-container.ast-single-post .ast-author-meta, .ast-narrow-container.ast-single-post .ast-related-posts-wrap, .ast-narrow-container.ast-single-post .ast-woocommerce-container, .ast-narrow-container.ast-single-post .ast-single-related-posts-container' => array( 'padding-right' => astra_responsive_spacing( $single_post_inside_spacing, 'right', 'tablet' ), 'padding-left' => astra_responsive_spacing( $single_post_inside_spacing, 'left', 'tablet' ), ), /** * Blog Grid Spacing */ // Blog Grid Outside Spacing. '.ast-separate-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-separate-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-separate-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-separate-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-separate-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-separate-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+1)' => array( 'padding-top' => astra_responsive_spacing( $blog_post_outside_spacing, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $blog_post_outside_spacing, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_outside_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $blog_post_outside_spacing, 'left', 'tablet' ), ), // Narrow Container blog grid tablet support for outside spacing. '.ast-narrow-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-narrow-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-narrow-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-narrow-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-narrow-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-narrow-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+1)' => array( 'padding-top' => astra_responsive_spacing( $blog_post_outside_spacing, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $blog_post_outside_spacing, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_outside_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $blog_post_outside_spacing, 'left', 'tablet' ), ), // Blog Grid Inside Spacing. '.ast-separate-container .ast-grid-2 .blog-layout-1, .ast-separate-container .ast-grid-2 .blog-layout-2, .ast-separate-container .ast-grid-2 .blog-layout-3, .ast-separate-container .ast-grid-3 .blog-layout-1, .ast-separate-container .ast-grid-3 .blog-layout-2, .ast-separate-container .ast-grid-3 .blog-layout-3, .ast-separate-container .ast-grid-4 .blog-layout-1, .ast-separate-container .ast-grid-4 .blog-layout-2, .ast-separate-container .ast-grid-4 .blog-layout-3' => array( 'padding-top' => astra_responsive_spacing( $blog_post_inside_spacing, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $blog_post_inside_spacing, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_inside_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $blog_post_inside_spacing, 'left', 'tablet' ), ), // Narrow Container blog grid tablet support for inside spacing. '.ast-narrow-container .ast-grid-2 .blog-layout-1, .ast-narrow-container .ast-grid-2 .blog-layout-2, .ast-narrow-container .ast-grid-2 .blog-layout-3, .ast-narrow-container .ast-grid-3 .blog-layout-1, .ast-narrow-container .ast-grid-3 .blog-layout-2, .ast-narrow-container .ast-grid-3 .blog-layout-3, .ast-narrow-container .ast-grid-4 .blog-layout-1, .ast-narrow-container .ast-grid-4 .blog-layout-2, .ast-narrow-container .ast-grid-4 .blog-layout-3' => array( 'padding-top' => astra_responsive_spacing( $blog_post_inside_spacing, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $blog_post_inside_spacing, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_inside_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $blog_post_inside_spacing, 'left', 'tablet' ), ), // Blog Pagination Spacing. '.ast-pagination' => array( 'padding-top' => astra_responsive_spacing( $blog_post_pagination_spacing, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $blog_post_pagination_spacing, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_pagination_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $blog_post_pagination_spacing, 'left', 'tablet' ), ), $alignfull_editor_selector => array( 'margin-right' => astra_responsive_spacing( $container_inside_spacing, 'right', 'tablet', '', '-' ), 'margin-left' => astra_responsive_spacing( $container_inside_spacing, 'left', 'tablet', '', '-' ), ), ); if ( $is_new_strctural_defaults ) { $tablet_spacing['.ast-separate-container .comments-title, .ast-narrow-container .comments-title'] = array( 'padding-right' => astra_responsive_spacing( $single_post_inside_spacing, 'right', 'tablet' ), 'padding-left' => astra_responsive_spacing( $single_post_inside_spacing, 'left', 'tablet' ), 'padding-top' => astra_responsive_spacing( $single_post_inside_spacing, 'top', 'tablet' ), 'padding-bottom' => '0', ); } if ( false === astra_addon_builder_helper()->is_header_footer_builder_active ) { /** * Site Identity Spacing */ $tablet_spacing['.site-header .ast-site-identity'] = array( 'padding-top' => astra_responsive_spacing( $site_identity_spacing, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $site_identity_spacing, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $site_identity_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $site_identity_spacing, 'left', 'tablet' ), ); } $spacing_css_output .= astra_parse_css( $tablet_spacing, '', astra_addon_get_tablet_breakpoint() ); $mobile_spacing = array( /** * Content Spacing */ '.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single, .ast-separate-container .ast-comment-list li.depth-1, .ast-separate-container .comment-respond, .single.ast-separate-container .ast-author-details, .ast-separate-container .ast-related-posts-wrap, .ast-separate-container .ast-woocommerce-container' => array( 'padding-top' => astra_responsive_spacing( $container_inside_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $container_inside_spacing, 'bottom', 'mobile' ), ), // Narrow Container global mobile support for inside spacing. '.ast-narrow-container .ast-article-post, .ast-narrow-container .ast-article-single, .ast-narrow-container .ast-comment-list li.depth-1, .ast-narrow-container .comment-respond, .single.ast-narrow-container .ast-author-details, .ast-narrow-container .ast-related-posts-wrap, .ast-narrow-container .ast-woocommerce-container, .ast-narrow-container .ast-single-related-posts-container' => array( 'padding-top' => astra_responsive_spacing( $container_inside_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $container_inside_spacing, 'bottom', 'mobile' ), ), '.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single,.ast-separate-container .comments-count-wrapper, .ast-separate-container .ast-comment-list li.depth-1, .ast-separate-container .comment-respond,.ast-separate-container .related-posts-title-wrapper,.ast-separate-container .related-posts-title-wrapper, .single.ast-separate-container .ast-author-details, .single.ast-separate-container .about-author-title-wrapper, .ast-separate-container .ast-related-posts-wrap, .ast-separate-container .ast-woocommerce-container' => array( 'padding-right' => astra_responsive_spacing( $container_inside_spacing, 'right', 'mobile' ), 'padding-left' => astra_responsive_spacing( $container_inside_spacing, 'left', 'mobile' ), ), // Narrow Container global mobile support for inside spacing. '.ast-narrow-container .ast-article-post, .ast-narrow-container .ast-article-single,.ast-narrow-container .comments-count-wrapper, .ast-narrow-container .ast-comment-list li.depth-1, .ast-narrow-container .comment-respond,.ast-narrow-container .related-posts-title-wrapper,.ast-narrow-container .related-posts-title-wrapper, .single.ast-narrow-container .ast-author-details, .single.ast-narrow-container .about-author-title-wrapper, .ast-narrow-container .ast-related-posts-wrap, .ast-narrow-container .ast-woocommerce-container, .ast-narrow-container .ast-single-related-posts-container' => array( 'padding-right' => astra_responsive_spacing( $container_inside_spacing, 'right', 'mobile' ), 'padding-left' => astra_responsive_spacing( $container_inside_spacing, 'left', 'mobile' ), ), '.ast-separate-container.ast-right-sidebar #primary, .ast-separate-container.ast-left-sidebar #primary, .ast-separate-container #primary, .ast-plain-container #primary, .ast-narrow-container #primary' => array( 'margin-top' => astra_responsive_spacing( $continder_outside_spacing, 'top', 'mobile' ), 'margin-bottom' => astra_responsive_spacing( $continder_outside_spacing, 'bottom', 'mobile' ), ), '.ast-left-sidebar #primary, .ast-right-sidebar #primary, .ast-separate-container.ast-right-sidebar #primary, .ast-separate-container.ast-left-sidebar #primary, .ast-separate-container #primary, .ast-narrow-container #primary' => array( 'padding-left' => astra_responsive_spacing( $continder_outside_spacing, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $continder_outside_spacing, 'right', 'mobile' ), ), /** * Single Post Content Spacing */ '.main-navigation ul .menu-item .menu-link, .ast-header-break-point .main-navigation ul .menu-item .menu-link, .ast-header-break-point li.ast-masthead-custom-menu-items, li.ast-masthead-custom-menu-items' => array( 'padding-top' => astra_responsive_spacing( $primary_menu_spacing, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $primary_menu_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $primary_menu_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $primary_menu_spacing, 'left', 'mobile' ), ), '.ast-header-break-point .main-navigation ul .menu-item.menu-item-has-children button' => array( 'padding-right' => astra_responsive_spacing( $primary_menu_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $primary_menu_spacing, 'bottom', 'mobile' ), ), '.ast-separate-container.ast-single-post .ast-article-post, .ast-separate-container.ast-single-post .ast-article-single,.ast-separate-container.ast-single-post .comments-count-wrapper, .ast-separate-container.ast-single-post .ast-comment-list li.depth-1, .ast-separate-container.ast-single-post .comment-respond, .ast-separate-container.ast-single-post .related-posts-title-wrapper, .single.ast-separate-container.ast-single-post .ast-author-meta, .ast-separate-container.ast-single-post .ast-related-posts-wrap, .ast-separate-container.ast-single-post .ast-woocommerce-container' => array( 'padding-right' => astra_responsive_spacing( $single_post_inside_spacing, 'right', 'mobile' ), 'padding-left' => astra_responsive_spacing( $single_post_inside_spacing, 'left', 'mobile' ), 'padding-top' => astra_responsive_spacing( $single_post_inside_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $single_post_inside_spacing, 'bottom', 'mobile' ), ), // Narrow Container single post mobile support for inside spacing. '.ast-narrow-container.ast-single-post .ast-article-post, .ast-narrow-container.ast-single-post .ast-article-single,.ast-narrow-container.ast-single-post .comments-count-wrapper, .ast-narrow-container.ast-single-post .ast-comment-list li.depth-1, .ast-narrow-container.ast-single-post .comment-respond, .ast-narrow-container.ast-single-post .related-posts-title-wrapper, .single.ast-narrow-container.ast-single-post .ast-author-meta, .ast-narrow-container.ast-single-post .ast-related-posts-wrap, .ast-narrow-container.ast-single-post .ast-woocommerce-container' => array( 'padding-right' => astra_responsive_spacing( $single_post_inside_spacing, 'right', 'mobile' ), 'padding-left' => astra_responsive_spacing( $single_post_inside_spacing, 'left', 'mobile' ), 'padding-top' => astra_responsive_spacing( $single_post_inside_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $single_post_inside_spacing, 'bottom', 'mobile' ), ), /** * Sidebar Spacing */ // Sidebar Spacing Top / Bottom Padding. '.ast-plain-container #secondary,.ast-separate-container #secondary, .ast-page-builder-template #secondary' => array( 'margin-top' => astra_responsive_spacing( $sidebar_outside_spacing, 'top', 'mobile' ), 'margin-bottom' => astra_responsive_spacing( $sidebar_outside_spacing, 'bottom', 'mobile' ), ), '.ast-right-sidebar #secondary, .ast-left-sidebar #secondary, .ast-separate-container.ast-two-container.ast-left-sidebar #secondary, .ast-separate-container.ast-two-container.ast-right-sidebar #secondary, .ast-separate-container.ast-right-sidebar #secondary, .ast-separate-container.ast-left-sidebar #secondary' => array( 'padding-left' => astra_responsive_spacing( $sidebar_outside_spacing, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $sidebar_outside_spacing, 'right', 'mobile' ), ), // Sidebar Inside Spacing Top / Bottom / Left / Right Padding. '.ast-separate-container.ast-two-container #secondary .widget, .ast-separate-container #secondary .widget, .ast-plain-container #secondary .widget' => array( 'padding-top' => astra_responsive_spacing( $sidebar_inside_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $sidebar_inside_spacing, 'bottom', 'mobile' ), ), '.ast-two-container.ast-right-sidebar #secondary .widget, .ast-two-container.ast-left-sidebar #secondary .widget, .ast-separate-container #secondary .widget, .ast-plain-container #secondary .widget' => array( 'padding-left' => astra_responsive_spacing( $sidebar_inside_spacing, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $sidebar_inside_spacing, 'right', 'mobile' ), ), /** * Blog Grid Spacing */ // Blog Grid Outside Spacing. '.ast-separate-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-separate-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-separate-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-separate-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-separate-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-separate-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+1)' => array( 'padding-top' => astra_responsive_spacing( $blog_post_outside_spacing, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $blog_post_outside_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_outside_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $blog_post_outside_spacing, 'left', 'mobile' ), ), // Narrow Container blog grid mobile support for outside spacing. '.ast-narrow-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-narrow-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-narrow-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-narrow-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-narrow-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-narrow-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+1)' => array( 'padding-top' => astra_responsive_spacing( $blog_post_outside_spacing, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $blog_post_outside_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_outside_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $blog_post_outside_spacing, 'left', 'mobile' ), ), // Blog Grid Inside Spacing. '.ast-separate-container .ast-grid-2 .blog-layout-1, .ast-separate-container .ast-grid-2 .blog-layout-2, .ast-separate-container .ast-grid-2 .blog-layout-3, .ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-1, .ast-separate-container .ast-grid-3 .blog-layout-2, .ast-separate-container .ast-grid-3 .blog-layout-3, .ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-1, .ast-separate-container .ast-grid-4 .blog-layout-2, .ast-separate-container .ast-grid-4 .blog-layout-3' => array( 'padding-top' => astra_responsive_spacing( $blog_post_inside_spacing, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $blog_post_inside_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_inside_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $blog_post_inside_spacing, 'left', 'mobile' ), ), // Narrow Container blog grid mobile support for inside spacing. '.ast-narrow-container .ast-grid-2 .blog-layout-1, .ast-narrow-container .ast-grid-2 .blog-layout-2, .ast-narrow-container .ast-grid-2 .blog-layout-3, .ast-narrow-container .ast-grid-3 .ast-article-post .blog-layout-1, .ast-narrow-container .ast-grid-3 .blog-layout-2, .ast-narrow-container .ast-grid-3 .blog-layout-3, .ast-narrow-container .ast-grid-4 .ast-article-post .blog-layout-1, .ast-narrow-container .ast-grid-4 .blog-layout-2, .ast-narrow-container .ast-grid-4 .blog-layout-3' => array( 'padding-top' => astra_responsive_spacing( $blog_post_inside_spacing, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $blog_post_inside_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_inside_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $blog_post_inside_spacing, 'left', 'mobile' ), ), // Blog Pagination Spacing. '.ast-pagination' => array( 'padding-top' => astra_responsive_spacing( $blog_post_pagination_spacing, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $blog_post_pagination_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_pagination_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $blog_post_pagination_spacing, 'left', 'mobile' ), ), $alignfull_editor_selector => array( 'margin-right' => astra_responsive_spacing( $container_inside_spacing, 'right', 'mobile', '', '-' ), 'margin-left' => astra_responsive_spacing( $container_inside_spacing, 'left', 'mobile', '', '-' ), ), ); if ( $is_new_strctural_defaults ) { $mobile_spacing['.ast-separate-container .comments-title, .ast-narrow-container .comments-title'] = array( 'padding-right' => astra_responsive_spacing( $single_post_inside_spacing, 'right', 'mobile' ), 'padding-left' => astra_responsive_spacing( $single_post_inside_spacing, 'left', 'mobile' ), 'padding-top' => astra_responsive_spacing( $single_post_inside_spacing, 'top', 'mobile' ), 'padding-bottom' => '0', ); } if ( false === astra_addon_builder_helper()->is_header_footer_builder_active ) { /** * Site Identity Spacing */ $mobile_spacing['.site-header .ast-site-identity'] = array( 'padding-top' => astra_responsive_spacing( $site_identity_spacing, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $site_identity_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $site_identity_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $site_identity_spacing, 'left', 'mobile' ), ); } $spacing_css_output .= astra_parse_css( $mobile_spacing, '', astra_addon_get_mobile_breakpoint() ); // Fixed submenu icon issue for RTL in responsive devices. if ( $is_site_rtl ) { $rtl_desktop_submenu_arrow_css = array( '.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $primary_menu_spacing, 'top', 'desktop' ), 'left' => astra_calc_spacing( astra_responsive_spacing( $primary_menu_spacing, 'left', 'desktop' ), '-', '0.907', 'em' ), ), '.ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu > .menu-item-has-children > .ast-menu-toggle' => array( 'left' => astra_calc_spacing( astra_responsive_spacing( $primary_menu_spacing, 'left', 'desktop' ), '-', '0.907', 'em' ), ), ); $rtl_tablet_submenu_arrow_css = array( '.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $primary_menu_spacing, 'top', 'tablet' ), 'left' => astra_calc_spacing( astra_responsive_spacing( $primary_menu_spacing, 'left', 'tablet' ), '-', '0.907', 'em' ), ), '.ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu > .menu-item-has-children > .ast-menu-toggle' => array( 'left' => astra_calc_spacing( astra_responsive_spacing( $primary_menu_spacing, 'left', 'tablet' ), '-', '0.907', 'em' ), ), ); $rtl_mobile_submenu_arrow_css = array( '.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $primary_menu_spacing, 'top', 'mobile' ), 'left' => astra_calc_spacing( astra_responsive_spacing( $primary_menu_spacing, 'left', 'mobile' ), '-', '0.907', 'em' ), ), '.ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu > .menu-item-has-children > .ast-menu-toggle' => array( 'left' => astra_calc_spacing( astra_responsive_spacing( $primary_menu_spacing, 'left', 'mobile' ), '-', '0.907', 'em' ), ), ); $spacing_css_output .= astra_parse_css( $rtl_desktop_submenu_arrow_css ); $spacing_css_output .= astra_parse_css( $rtl_tablet_submenu_arrow_css, '', astra_addon_get_tablet_breakpoint() ); $spacing_css_output .= astra_parse_css( $rtl_mobile_submenu_arrow_css, '', astra_addon_get_mobile_breakpoint() ); } else { $desktop_submenu_arrow_css = array( '.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $primary_menu_spacing, 'top', 'desktop' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $primary_menu_spacing, 'right', 'desktop' ), '-', '0.907', 'em' ), ), '.ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu > .menu-item-has-children > .ast-menu-toggle' => array( 'right' => astra_calc_spacing( astra_responsive_spacing( $primary_menu_spacing, 'right', 'desktop' ), '-', '0.907', 'em' ), ), ); $tablet_submenu_arrow_css = array( '.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $primary_menu_spacing, 'top', 'tablet' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $primary_menu_spacing, 'right', 'tablet' ), '-', '0.907', 'em' ), ), '.ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu > .menu-item-has-children > .ast-menu-toggle' => array( 'right' => astra_calc_spacing( astra_responsive_spacing( $primary_menu_spacing, 'right', 'tablet' ), '-', '0.907', 'em' ), ), ); $mobile_submenu_arrow_css = array( '.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $primary_menu_spacing, 'top', 'mobile' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $primary_menu_spacing, 'right', 'mobile' ), '-', '0.907', 'em' ), ), '.ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu > .menu-item-has-children > .ast-menu-toggle' => array( 'right' => astra_calc_spacing( astra_responsive_spacing( $primary_menu_spacing, 'right', 'mobile' ), '-', '0.907', 'em' ), ), ); $spacing_css_output .= astra_parse_css( $desktop_submenu_arrow_css ); $spacing_css_output .= astra_parse_css( $tablet_submenu_arrow_css, '', astra_addon_get_tablet_breakpoint() ); $spacing_css_output .= astra_parse_css( $mobile_submenu_arrow_css, '', astra_addon_get_mobile_breakpoint() ); } $remove_bottom_sire_brancing = array( '.ast-header-break-point .header-main-layout-2 .site-branding, .ast-header-break-point .ast-mobile-header-stack .ast-mobile-menu-buttons' => array( 'padding-bottom' => astra_get_css_value( 0, 'px' ), ), ); if ( isset( $header_spacing['mobile']['bottom'] ) && ( '' != $header_spacing['mobile']['bottom'] ) ) { $spacing_css_output .= astra_parse_css( $remove_bottom_sire_brancing, '', astra_addon_get_mobile_breakpoint() ); } /** * * Sidebar Desktop/Tablet/Mobile Spacing */ $remove_sidebar_widget_outside_margin_desktop = array( '.ast-separate-container.ast-two-container #secondary .widget, .ast-separate-container #secondary .widget' => array( 'margin-bottom' => astra_responsive_spacing( $sidebar_outside_spacing, 'bottom', 'desktop' ), ), ); $spacing_css_output .= astra_parse_css( $remove_sidebar_widget_outside_margin_desktop ); // Tablet. $remove_sidebar_widget_outside_margin_tablet = array( '.ast-separate-container.ast-two-container #secondary .widget, .ast-separate-container #secondary .widget' => array( 'margin-bottom' => astra_responsive_spacing( $sidebar_outside_spacing, 'bottom', 'tablet' ), ), ); $spacing_css_output .= astra_parse_css( $remove_sidebar_widget_outside_margin_tablet, '', astra_addon_get_tablet_breakpoint() ); // Mobile. $remove_sidebar_widget_outside_margin_mobile = array( '.ast-separate-container.ast-two-container #secondary .widget, .ast-separate-container #secondary .widget' => array( 'margin-bottom' => astra_responsive_spacing( $sidebar_outside_spacing, 'bottom', 'mobile' ), ), ); $spacing_css_output .= astra_parse_css( $remove_sidebar_widget_outside_margin_mobile, '', astra_addon_get_mobile_breakpoint() ); /** * Container Outer spacing */ // To apply Container Outside Spacing we need to remove default top padding given from the theme. $remove_top_padding_container = array( '.ast-separate-container #primary, .ast-narrow-container #primary' => array( 'padding-top' => astra_get_css_value( 0, 'px' ), ), ); if ( '' != $continder_outside_spacing['desktop']['top'] ) { $spacing_css_output .= astra_parse_css( $remove_top_padding_container ); } if ( '' != $continder_outside_spacing['tablet']['top'] ) { $spacing_css_output .= astra_parse_css( $remove_top_padding_container, '', astra_addon_get_tablet_breakpoint() ); } if ( '' != $continder_outside_spacing['mobile']['top'] ) { $spacing_css_output .= astra_parse_css( $remove_top_padding_container, '', astra_addon_get_mobile_breakpoint() ); } // To apply Container Outside Spacing we need to remove default bottom padding given from the theme. $remove_bottom_padding_container = array( '.ast-separate-container #primary, .ast-narrow-container #primary' => array( 'padding-bottom' => astra_get_css_value( 0, 'px' ), ), ); if ( '' != $continder_outside_spacing['desktop']['top'] ) { $spacing_css_output .= astra_parse_css( $remove_bottom_padding_container ); } if ( '' != $continder_outside_spacing['tablet']['top'] ) { $spacing_css_output .= astra_parse_css( $remove_bottom_padding_container, '', astra_addon_get_tablet_breakpoint() ); } if ( '' != $continder_outside_spacing['mobile']['top'] ) { $spacing_css_output .= astra_parse_css( $remove_bottom_padding_container, '', astra_addon_get_mobile_breakpoint() ); } /** * Blog Grid Outer spacing */ if ( ( 1 == $blog_grid || 'blog-layout-2' === $blog_layout || 'blog-layout-3' === $blog_layout || ! Astra_Ext_Extension::is_active( 'blog-pro' ) ) ) { // Apply margin only if grid is selected 1 column. $single_column_margin_blog_pro = array( '.ast-separate-container .ast-article-post, .ast-separate-container .ast-separate-posts.ast-article-post, .ast-narrow-container .ast-article-post, .ast-narrow-container .ast-separate-posts.ast-article-post' => array( 'margin-top' => astra_responsive_spacing( $blog_post_outside_spacing, 'top', 'desktop' ), 'margin-right' => astra_responsive_spacing( $blog_post_outside_spacing, 'right', 'desktop' ), 'margin-bottom' => astra_responsive_spacing( $blog_post_outside_spacing, 'bottom', 'desktop' ), 'margin-left' => astra_responsive_spacing( $blog_post_outside_spacing, 'left', 'desktop' ), ), '.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-post, .ast-narrow-container .ast-article-post, .ast-narrow-container .ast-separate-posts.ast-article-post' => array( 'padding-top' => astra_responsive_spacing( $blog_post_inside_spacing, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $blog_post_inside_spacing, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_inside_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $blog_post_inside_spacing, 'left', 'desktop' ), ), ); $spacing_css_output .= astra_parse_css( $single_column_margin_blog_pro ); $single_column_margin_blog_pro_tablet = array( '.ast-separate-container .ast-article-post, .ast-separate-container .ast-separate-posts.ast-article-post, .ast-narrow-container .ast-article-post, .ast-narrow-container .ast-separate-posts.ast-article-post' => array( 'margin-top' => astra_responsive_spacing( $blog_post_outside_spacing, 'top', 'tablet' ), 'margin-right' => astra_responsive_spacing( $blog_post_outside_spacing, 'right', 'tablet' ), 'margin-bottom' => astra_responsive_spacing( $blog_post_outside_spacing, 'bottom', 'tablet' ), 'margin-left' => astra_responsive_spacing( $blog_post_outside_spacing, 'left', 'tablet' ), ), '.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-post, .ast-narrow-container .ast-article-post, .ast-narrow-container .ast-article-post' => array( 'padding-top' => astra_responsive_spacing( $blog_post_inside_spacing, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $blog_post_inside_spacing, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_inside_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $blog_post_inside_spacing, 'left', 'tablet' ), ), ); $spacing_css_output .= astra_parse_css( $single_column_margin_blog_pro_tablet, '', astra_addon_get_tablet_breakpoint() ); $single_column_margin_blog_pro_mobile = array( '.ast-separate-container .ast-article-post, .ast-separate-container .ast-separate-posts.ast-article-post, .ast-narrow-container .ast-article-post, .ast-narrow-container .ast-separate-posts.ast-article-post' => array( 'margin-top' => astra_responsive_spacing( $blog_post_outside_spacing, 'top', 'mobile' ), 'margin-right' => astra_responsive_spacing( $blog_post_outside_spacing, 'right', 'mobile' ), 'margin-bottom' => astra_responsive_spacing( $blog_post_outside_spacing, 'bottom', 'mobile' ), 'margin-left' => astra_responsive_spacing( $blog_post_outside_spacing, 'left', 'mobile' ), ), '.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-post, .ast-narrow-container .ast-article-post, .ast-narrow-container .ast-article-post' => array( 'padding-top' => astra_responsive_spacing( $blog_post_inside_spacing, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $blog_post_inside_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $blog_post_inside_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $blog_post_inside_spacing, 'left', 'mobile' ), ), ); $spacing_css_output .= astra_parse_css( $single_column_margin_blog_pro_mobile, '', astra_addon_get_mobile_breakpoint() ); } else { // To apply Blog Grid Outside Spacing we need to remove default bottom margin given from the blog pro. $remove_bottom_margin_blog_pro = array( '.ast-separate-container .ast-separate-posts.ast-article-post, .ast-narrow-container .ast-separate-posts.ast-article-post' => array( 'margin-bottom' => astra_get_css_value( 0, 'px' ), ), ); if ( '' != $blog_post_outside_spacing['desktop']['bottom'] ) { $spacing_css_output .= astra_parse_css( $remove_bottom_margin_blog_pro ); } if ( '' != $blog_post_outside_spacing['tablet']['bottom'] ) { $spacing_css_output .= astra_parse_css( $remove_bottom_margin_blog_pro, '', astra_addon_get_tablet_breakpoint() ); } if ( '' != $blog_post_outside_spacing['mobile']['bottom'] ) { $spacing_css_output .= astra_parse_css( $remove_bottom_margin_blog_pro, '', astra_addon_get_mobile_breakpoint() ); } } /** * Blog Pro Featured Image padding */ if ( $blog_featured_image_padding ) { $remove_featured_image_margin_top = array( '.ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content,.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on,.ast-desktop.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on' => array( 'margin-top' => ( isset( $blog_post_inside_spacing['desktop']['top'] ) ? ( '-' . astra_responsive_spacing( $blog_post_inside_spacing, 'top', 'desktop' ) ) : '' ), ), '.ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on' => array( 'margin-left' => ( isset( $blog_post_inside_spacing['desktop']['left'] ) ? ( '-' . astra_responsive_spacing( $blog_post_inside_spacing, 'left', 'desktop' ) ) : '' ), 'margin-right' => ( isset( $blog_post_inside_spacing['desktop']['right'] ) ? ( '-' . astra_responsive_spacing( $blog_post_inside_spacing, 'right', 'desktop' ) ) : '' ), ), '.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on' => array( 'margin-left' => ( isset( $blog_post_inside_spacing['desktop']['left'] ) ? ( '-' . astra_responsive_spacing( $blog_post_inside_spacing, 'left', 'desktop' ) ) : '' ), ), ); $spacing_css_output .= astra_parse_css( $remove_featured_image_margin_top ); $remove_featured_image_margin_top_tablet = array( '.ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content,.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content' => array( 'margin-top' => ( isset( $blog_post_inside_spacing['tablet']['top'] ) ? ( '-' . astra_responsive_spacing( $blog_post_inside_spacing, 'top', 'tablet' ) ) : '' ), ), '.ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content,.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on' => array( 'margin-left' => ( isset( $blog_post_inside_spacing['tablet']['left'] ) ? ( '-' . astra_responsive_spacing( $blog_post_inside_spacing, 'left', 'tablet' ) ) : '' ), 'margin-right' => ( isset( $blog_post_inside_spacing['tablet']['right'] ) ? ( '-' . astra_responsive_spacing( $blog_post_inside_spacing, 'right', 'tablet' ) ) : '' ), ), '.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on' => array( 'margin-left' => ( isset( $blog_post_inside_spacing['tablet']['left'] ) ? ( '-' . astra_responsive_spacing( $blog_post_inside_spacing, 'left', 'tablet' ) ) : '' ), ), ); $spacing_css_output .= astra_parse_css( $remove_featured_image_margin_top_tablet, '', astra_addon_get_tablet_breakpoint() ); $remove_featured_image_margin_top_mobile = array( '.ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content,.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content' => array( 'margin-top' => ( isset( $blog_post_inside_spacing['mobile']['top'] ) ? ( '-' . astra_responsive_spacing( $blog_post_inside_spacing, 'top', 'mobile' ) ) : '' ), ), '.ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content,.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on' => array( 'margin-left' => ( isset( $blog_post_inside_spacing['mobile']['left'] ) ? ( '-' . astra_responsive_spacing( $blog_post_inside_spacing, 'left', 'mobile' ) ) : '' ), 'margin-right' => ( isset( $blog_post_inside_spacing['mobile']['right'] ) ? ( '-' . astra_responsive_spacing( $blog_post_inside_spacing, 'right', 'mobile' ) ) : '' ), ), '.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on' => array( 'margin-left' => ( isset( $blog_post_inside_spacing['mobile']['left'] ) ? ( '-' . astra_responsive_spacing( $blog_post_inside_spacing, 'left', 'mobile' ) ) : '' ), ), ); $spacing_css_output .= astra_parse_css( $remove_featured_image_margin_top_mobile, '', astra_addon_get_mobile_breakpoint() ); } /** * Single Blog Featured Image padding */ if ( $remove_single_featured_padding ) { // Container inside spacing for single post if single_post_inside_spacing is not given then fallback to container_inside_spacing. $remove_single_featured_image_margin_top = array( '.ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child' => array( 'margin-top' => ( isset( $container_inside_spacing['desktop']['top'] ) && ( '' != $container_inside_spacing['desktop']['top'] ) ? ( '-' . astra_responsive_spacing( $container_inside_spacing, 'top', 'desktop' ) ) : '' ), ), '.ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content' => array( 'margin-left' => ( isset( $container_inside_spacing['desktop']['left'] ) && ( '' != $container_inside_spacing['desktop']['left'] ) ? ( '-' . astra_responsive_spacing( $container_inside_spacing, 'left', 'desktop' ) ) : '' ), 'margin-right' => ( isset( $container_inside_spacing['desktop']['right'] ) && ( '' != $container_inside_spacing['desktop']['right'] ) ? ( '-' . astra_responsive_spacing( $container_inside_spacing, 'right', 'desktop' ) ) : '' ), ), ); $spacing_css_output .= astra_parse_css( $remove_single_featured_image_margin_top ); $remove_single_featured_image_margin_top_tablet = array( '.ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child' => array( 'margin-top' => ( isset( $container_inside_spacing['tablet']['top'] ) && ( '' != $container_inside_spacing['tablet']['top'] ) ? ( '-' . astra_responsive_spacing( $container_inside_spacing, 'top', 'tablet' ) ) : '' ), ), '.ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content' => array( 'margin-left' => ( isset( $container_inside_spacing['tablet']['left'] ) && ( '' != $container_inside_spacing['tablet']['left'] ) ? ( '-' . astra_responsive_spacing( $container_inside_spacing, 'left', 'tablet' ) ) : '' ), 'margin-right' => ( isset( $container_inside_spacing['tablet']['right'] ) && ( '' != $container_inside_spacing['tablet']['right'] ) ? ( '-' . astra_responsive_spacing( $container_inside_spacing, 'right', 'tablet' ) ) : '' ), ), ); $spacing_css_output .= astra_parse_css( $remove_single_featured_image_margin_top_tablet, '', astra_addon_get_tablet_breakpoint() ); $remove_single_featured_image_margin_top_mobile = array( '.ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child' => array( 'margin-top' => ( isset( $container_inside_spacing['mobile']['top'] ) && ( '' != $container_inside_spacing['mobile']['top'] ) ? ( '-' . astra_responsive_spacing( $container_inside_spacing, 'top', 'mobile' ) ) : '' ), ), '.ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content' => array( 'margin-left' => ( isset( $container_inside_spacing['mobile']['left'] ) && ( '' != $container_inside_spacing['mobile']['left'] ) ? ( '-' . astra_responsive_spacing( $container_inside_spacing, 'left', 'mobile' ) ) : '' ), 'margin-right' => ( isset( $container_inside_spacing['mobile']['right'] ) && ( '' != $container_inside_spacing['mobile']['right'] ) ? ( '-' . astra_responsive_spacing( $container_inside_spacing, 'right', 'mobile' ) ) : '' ), ), ); $spacing_css_output .= astra_parse_css( $remove_single_featured_image_margin_top_mobile, '', astra_addon_get_mobile_breakpoint() ); // Single Post inside spacing for single post. // Works only for single post if single_post_inside_spacing is given. $remove_single_post_featured_image_margin_top = array( '.ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child' => array( 'margin-top' => ( isset( $single_post_inside_spacing['desktop']['top'] ) && ( '' != $single_post_inside_spacing['desktop']['top'] ) ? ( '-' . astra_responsive_spacing( $single_post_inside_spacing, 'top', 'desktop' ) ) : '' ), ), '.ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content' => array( 'margin-left' => ( isset( $single_post_inside_spacing['desktop']['left'] ) && ( '' != $single_post_inside_spacing['desktop']['left'] ) ? ( '-' . astra_responsive_spacing( $single_post_inside_spacing, 'left', 'desktop' ) ) : '' ), 'margin-right' => ( isset( $single_post_inside_spacing['desktop']['right'] ) && ( '' != $single_post_inside_spacing['desktop']['right'] ) ? ( '-' . astra_responsive_spacing( $single_post_inside_spacing, 'right', 'desktop' ) ) : '' ), ), ); $spacing_css_output .= astra_parse_css( $remove_single_post_featured_image_margin_top ); $remove_single_post_featured_image_margin_top_tablet = array( '.ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child' => array( 'margin-top' => ( isset( $single_post_inside_spacing['tablet']['top'] ) && ( '' != $single_post_inside_spacing['tablet']['top'] ) ? ( '-' . astra_responsive_spacing( $single_post_inside_spacing, 'top', 'tablet' ) ) : '' ), ), '.ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content' => array( 'margin-left' => ( isset( $single_post_inside_spacing['tablet']['left'] ) && ( '' != $single_post_inside_spacing['tablet']['left'] ) ? ( '-' . astra_responsive_spacing( $single_post_inside_spacing, 'left', 'tablet' ) ) : '' ), 'margin-right' => ( isset( $single_post_inside_spacing['tablet']['right'] ) && ( '' != $single_post_inside_spacing['tablet']['right'] ) ? ( '-' . astra_responsive_spacing( $single_post_inside_spacing, 'right', 'tablet' ) ) : '' ), ), ); $spacing_css_output .= astra_parse_css( $remove_single_post_featured_image_margin_top_tablet, '', astra_addon_get_tablet_breakpoint() ); $remove_single_post_featured_image_margin_top_mobile = array( '.ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child' => array( 'margin-top' => ( isset( $single_post_inside_spacing['mobile']['top'] ) && ( '' != $single_post_inside_spacing['mobile']['top'] ) ? ( '-' . astra_responsive_spacing( $single_post_inside_spacing, 'top', 'mobile' ) ) : '' ), ), '.ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content' => array( 'margin-left' => ( isset( $single_post_inside_spacing['mobile']['left'] ) && ( '' != $single_post_inside_spacing['mobile']['left'] ) ? ( '-' . astra_responsive_spacing( $single_post_inside_spacing, 'left', 'mobile' ) ) : '' ), 'margin-right' => ( isset( $single_post_inside_spacing['mobile']['right'] ) && ( '' != $single_post_inside_spacing['mobile']['right'] ) ? ( '-' . astra_responsive_spacing( $single_post_inside_spacing, 'right', 'mobile' ) ) : '' ), ), ); $spacing_css_output .= astra_parse_css( $remove_single_post_featured_image_margin_top_mobile, '', astra_addon_get_mobile_breakpoint() ); } /** * Sticky Header - Shrink realted spacing * Remove Top, Bottom spacing from Site Identity, Header Spacing, Primary Menu and Add default Sub menu top */ if ( Astra_Ext_Extension::is_active( 'sticky-header' ) && ( $stick_header_main || $stick_header_main_meta ) && $header_main_shrink ) { /** * Site Identity Spacing */ $remove_header_shrink_padding = array( '.site-header .ast-sticky-shrunk .ast-site-identity, .ast-sticky-shrunk .main-header-menu > .menu-item > .menu-link, .ast-sticky-shrunk li.ast-masthead-custom-menu-items' => array( 'padding-top' => astra_get_css_value( 0, 'px' ), 'padding-bottom' => astra_get_css_value( 0, 'px' ), ), // Remove Priamry submenu top-bottom padding for responsive devices. ' .ast-header-break-point .ast-sticky-shrunk .main-navigation .sub-menu .menu-item .menu-link' => array( 'padding-top' => astra_get_css_value( 0, 'px' ), 'padding-bottom' => astra_get_css_value( 0, 'px' ), ), '.ast-sticky-shrunk .main-header-menu .sub-menu .menu-link' => array( 'padding-top' => astra_get_css_value( 0.9, 'em' ), 'padding-bottom' => astra_get_css_value( 0.9, 'em' ), ), '.site-header .ast-sticky-shrunk .ast-site-identity, .ast-sticky-shrunk li.ast-masthead-custom-menu-items' => array( 'padding-top' => astra_get_css_value( 0.5, 'em' ), 'padding-bottom' => astra_get_css_value( 0.5, 'em' ), ), // Remove Priamry submenu top-bottom padding for responsive devices. ' .ast-header-break-point .ast-sticky-shrunk .main-navigation .sub-menu .menu-item .menu-link' => array( 'padding-top' => astra_get_css_value( 0, 'px' ), 'padding-bottom' => astra_get_css_value( 0, 'px' ), ), '.ast-sticky-shrunk .main-header-menu .sub-menu .menu-link' => array( 'padding-top' => astra_get_css_value( 0.9, 'em' ), 'padding-bottom' => astra_get_css_value( 0.9, 'em' ), ), ); $spacing_css_output .= astra_parse_css( $remove_header_shrink_padding ); } if ( true === astra_addon_builder_helper()->is_header_footer_builder_active && Astra_Ext_Extension::is_active( 'sticky-header' ) && ( $stick_header_main || $stick_header_main_meta || $stick_header_above || $stick_header_above_meta || $stick_header_below || $stick_header_below_meta ) && $header_main_shrink ) { $hb_header_height = astra_get_option( 'hb-header-height' ); $hba_header_height = astra_get_option( 'hba-header-height' ); $hbb_header_height = astra_get_option( 'hbb-header-height' ); $hb_header_height_desktop = ( isset( $hb_header_height['desktop'] ) && is_numeric( $hb_header_height['desktop'] ) ) ? $hb_header_height['desktop'] - 10 : ''; $hb_header_height_tablet = ( isset( $hb_header_height['tablet'] ) && is_numeric( $hb_header_height['tablet'] ) ) ? $hb_header_height['tablet'] - 10 : ''; $hb_header_height_mobile = ( isset( $hb_header_height['mobile'] ) && is_numeric( $hb_header_height['mobile'] ) ) ? $hb_header_height['mobile'] - 10 : ''; $hba_header_height_desktop = ( isset( $hba_header_height['desktop'] ) && is_numeric( $hba_header_height['desktop'] ) ) ? $hba_header_height['desktop'] - 10 : ''; $hba_header_height_tablet = ( isset( $hba_header_height['tablet'] ) && is_numeric( $hba_header_height['tablet'] ) ) ? $hba_header_height['tablet'] - 10 : ''; $hba_header_height_mobile = ( isset( $hba_header_height['mobile'] ) && is_numeric( $hba_header_height['mobile'] ) ) ? $hba_header_height['mobile'] - 10 : ''; $hbb_header_height_desktop = ( isset( $hbb_header_height['desktop'] ) && is_numeric( $hbb_header_height['desktop'] ) ) ? $hbb_header_height['desktop'] - 10 : ''; $hbb_header_height_tablet = ( isset( $hbb_header_height['tablet'] ) && is_numeric( $hbb_header_height['tablet'] ) ) ? $hbb_header_height['tablet'] - 10 : ''; $hbb_header_height_mobile = ( isset( $hbb_header_height['mobile'] ) && is_numeric( $hbb_header_height['mobile'] ) ) ? $hbb_header_height['mobile'] - 10 : ''; $css_output_shrink_desktop = array( // Primary Header Shrink for Desktop & mobile. '.ast-sticky-header-shrink .ast-primary-header-bar.ast-header-sticked, .ast-sticky-header-shrink .ast-primary-header-bar.ast-header-sticked .site-primary-header-wrap, .ast-header-sticked .ast-primary-header-bar .site-primary-header-wrap, .ast-sticky-header-shrink .ast-mobile-header-wrap .ast-primary-header-bar.ast-header-sticked, .ast-sticky-header-shrink .ast-mobile-header-wrap .ast-stick-primary-below-wrapper.ast-header-sticked .ast-below-header , .ast-sticky-header-shrink .ast-stick-primary-below-wrapper.ast-header-sticked .ast-primary-header-bar .site-primary-header-wrap' => array( 'min-height' => astra_get_css_value( $hb_header_height_desktop, 'px' ), ), '.ast-desktop.ast-sticky-header-shrink .ast-primary-header-bar.ast-header-sticked .main-header-menu > .menu-item' => array( 'line-height' => astra_get_css_value( $hb_header_height_desktop, 'px' ), ), // Above Header Shrink for Desktop & mobile. '.ast-sticky-header-shrink .ast-above-header-bar.ast-header-sticked .site-above-header-wrap, .ast-sticky-header-shrink .ast-above-header-bar.ast-header-sticked .site-above-header-wrap, .ast-header-sticked .ast-above-header-bar .site-above-header-wrap, .ast-header-sticked .ast-above-header-bar, .ast-sticky-header-shrink .ast-mobile-header-wrap .ast-above-header-bar.ast-header-sticked' => array( 'min-height' => astra_get_css_value( $hba_header_height_desktop, 'px' ), ), '.ast-desktop.ast-sticky-header-shrink .ast-above-header-bar.ast-header-sticked .main-header-menu > .menu-item' => array( 'line-height' => astra_get_css_value( $hba_header_height_desktop, 'px' ), ), // Below Header Shrink for Desktop & mobile. '.ast-sticky-header-shrink .ast-below-header-bar.ast-header-sticked, .ast-sticky-header-shrink .ast-below-header-bar.ast-header-sticked .site-below-header-wrap, .ast-sticky-header-shrink .ast-below-header-bar.ast-header-sticked.site-below-header-wrap, .ast-header-sticked .ast-below-header-bar .site-below-header-wrap, .ast-sticky-header-shrink .ast-mobile-header-wrap .ast-below-header-bar.ast-header-sticked .site-below-header-wrap' => array( 'min-height' => astra_get_css_value( $hbb_header_height_desktop, 'px' ), ), '.ast-desktop.ast-sticky-header-shrink .ast-below-header-bar.ast-header-sticked .main-header-menu > .menu-item' => array( 'line-height' => astra_get_css_value( $hbb_header_height_desktop, 'px' ), ), ); $css_output_shrink_tablet = array( // Primary Header Shrink for tablet & mobile. '.ast-sticky-header-shrink .ast-primary-header-bar.ast-header-sticked, .ast-sticky-header-shrink .ast-primary-header-bar.ast-header-sticked, .ast-header-sticked .ast-primary-header-bar, .ast-sticky-header-shrink .ast-stick-primary-below-wrapper.ast-header-sticked' => array( 'min-height' => astra_get_css_value( $hb_header_height_tablet, 'px' ), ), // Above Header Shrink for tablet & mobile. '.ast-sticky-header-shrink .ast-above-header-bar.ast-header-sticked .site-above-header-wrap, .ast-sticky-header-shrink .ast-above-header-bar.ast-header-sticked .site-above-header-wrap, .ast-header-sticked .ast-above-header-bar .site-above-header-wrap, .ast-header-sticked .ast-above-header-bar' => array( 'min-height' => astra_get_css_value( $hba_header_height_tablet, 'px' ), ), // Below Header Shrink for tablet & mobile. '.ast-sticky-header-shrink .ast-below-header-bar.ast-header-sticked, .ast-sticky-header-shrink .ast-below-header-bar.ast-header-sticked .site-below-header-wrap, .ast-sticky-header-shrink .ast-below-header-bar.ast-header-sticked.site-below-header-wrap, .ast-header-sticked .ast-below-header-bar .site-below-header-wrap' => array( 'min-height' => astra_get_css_value( $hbb_header_height_tablet, 'px' ), ), ); $css_output_shrink_mobile = array( // Primary Header Shrink for mobile & mobile. '.ast-sticky-header-shrink .ast-primary-header-bar.ast-header-sticked, .ast-sticky-header-shrink .ast-primary-header-bar.ast-header-sticked, .ast-header-sticked .ast-primary-header-bar, .ast-sticky-header-shrink .ast-stick-primary-below-wrapper.ast-header-sticked' => array( 'min-height' => astra_get_css_value( $hb_header_height_mobile, 'px' ), ), // Above Header Shrink for mobile & mobile. '.ast-sticky-header-shrink .ast-above-header-bar.ast-header-sticked .site-above-header-wrap, .ast-sticky-header-shrink .ast-above-header-bar.ast-header-sticked .site-above-header-wrap, .ast-header-sticked .ast-above-header-bar .site-above-header-wrap, .ast-header-sticked .ast-above-header-bar' => array( 'min-height' => astra_get_css_value( $hba_header_height_mobile, 'px' ), ), // Below Header Shrink for mobile & mobile. '.ast-sticky-header-shrink .ast-below-header-bar.ast-header-sticked, .ast-sticky-header-shrink .ast-below-header-bar.ast-header-sticked .site-below-header-wrap, .ast-sticky-header-shrink .ast-below-header-bar.ast-header-sticked.site-below-header-wrap, .ast-header-sticked .ast-below-header-bar .site-below-header-wrap' => array( 'min-height' => astra_get_css_value( $hbb_header_height_mobile, 'px' ), ), ); $spacing_css_output .= astra_parse_css( $css_output_shrink_desktop ); $spacing_css_output .= astra_parse_css( $css_output_shrink_tablet, '', astra_addon_get_tablet_breakpoint() ); $spacing_css_output .= astra_parse_css( $css_output_shrink_mobile, '', astra_addon_get_mobile_breakpoint() ); } /** * Header Builder Menu - Spacing. */ if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { $num_of_header_menu = astra_addon_builder_helper()->num_of_header_menu; for ( $index = 1; $index <= $num_of_header_menu; $index++ ) { if ( ! Astra_Addon_Builder_Helper::is_component_loaded( 'menu-' . $index, 'header' ) ) { continue; } $_prefix = 'menu' . $index; $_section = 'section-hb-menu-' . $index; $selector = '.ast-builder-menu-' . $index . ' .main-header-menu'; $sub_menu_spacing = astra_get_option( 'header-' . $_prefix . '-submenu-spacing' ); $mega_menu_heading_spacing = astra_get_option( 'header-' . $_prefix . '-megamenu-heading-space' ); $sub_menu_border = astra_get_option( 'header-' . $_prefix . '-submenu-border' ); $sub_menu_border_top = ( isset( $sub_menu_border ) && ! empty( $sub_menu_border['top'] ) ) ? $sub_menu_border['top'] : 0; $sub_menu_border_bottom = ( isset( $sub_menu_border ) && ! empty( $sub_menu_border['bottom'] ) ) ? $sub_menu_border['bottom'] : 0; $sub_menu_border_right = ( isset( $sub_menu_border ) && ! empty( $sub_menu_border['right'] ) ) ? $sub_menu_border['right'] : 0; $sub_menu_border_left = ( isset( $sub_menu_border ) && ! empty( $sub_menu_border['left'] ) ) ? $sub_menu_border['left'] : 0; // SubMenu Spacing. // - Desktop $sub_menu_desktop_spacing_top = ( isset( $sub_menu_spacing['desktop']['top'] ) ) ? $sub_menu_spacing['desktop']['top'] : ''; $sub_menu_desktop_spacing_bottom = ( isset( $sub_menu_spacing['desktop']['bottom'] ) ) ? $sub_menu_spacing['desktop']['bottom'] : ''; $sub_menu_desktop_spacing_right = ( isset( $sub_menu_spacing['desktop']['right'] ) ) ? $sub_menu_spacing['desktop']['right'] : ''; $sub_menu_desktop_spacing_left = ( isset( $sub_menu_spacing['desktop']['left'] ) ) ? $sub_menu_spacing['desktop']['left'] : ''; $sub_menu_desktop_spacing_unit = ( isset( $sub_menu_spacing['desktop-unit'] ) && ! empty( $sub_menu_spacing['desktop-unit'] ) ) ? $sub_menu_spacing['desktop-unit'] : 'px'; // - Tablet. $sub_menu_tablet_spacing_top = ( isset( $sub_menu_spacing['tablet']['top'] ) ) ? $sub_menu_spacing['tablet']['top'] : ''; $sub_menu_tablet_spacing_bottom = ( isset( $sub_menu_spacing['tablet']['bottom'] ) ) ? $sub_menu_spacing['tablet']['bottom'] : ''; $sub_menu_tablet_spacing_right = ( isset( $sub_menu_spacing['tablet']['right'] ) ) ? $sub_menu_spacing['tablet']['right'] : ''; $sub_menu_tablet_spacing_left = ( isset( $sub_menu_spacing['tablet']['left'] ) ) ? $sub_menu_spacing['tablet']['left'] : ''; $sub_menu_tablet_spacing_unit = ( isset( $sub_menu_spacing['tablet-unit'] ) && ! empty( $sub_menu_spacing['tablet-unit'] ) ) ? $sub_menu_spacing['tablet-unit'] : 'px'; // - Mobile. $sub_menu_mobile_spacing_top = ( isset( $sub_menu_spacing['mobile']['top'] ) ) ? $sub_menu_spacing['mobile']['top'] : ''; $sub_menu_mobile_spacing_bottom = ( isset( $sub_menu_spacing['mobile']['bottom'] ) ) ? $sub_menu_spacing['mobile']['bottom'] : ''; $sub_menu_mobile_spacing_right = ( isset( $sub_menu_spacing['mobile']['right'] ) ) ? $sub_menu_spacing['mobile']['right'] : ''; $sub_menu_mobile_spacing_left = ( isset( $sub_menu_spacing['mobile']['left'] ) ) ? $sub_menu_spacing['mobile']['left'] : ''; $sub_menu_mobile_spacing_unit = ( isset( $sub_menu_spacing['mobile-unit'] ) && ! empty( $sub_menu_spacing['mobile-unit'] ) ) ? $sub_menu_spacing['mobile-unit'] : 'px'; $css_output_desktop = array( // Sub Menu. $selector . ' .sub-menu .menu-link' => array( 'padding-top' => astra_get_css_value( $sub_menu_desktop_spacing_top, $sub_menu_desktop_spacing_unit ), 'padding-bottom' => astra_get_css_value( $sub_menu_desktop_spacing_bottom, $sub_menu_desktop_spacing_unit ), 'padding-left' => astra_get_css_value( $sub_menu_desktop_spacing_left, $sub_menu_desktop_spacing_unit ), 'padding-right' => astra_get_css_value( $sub_menu_desktop_spacing_right, $sub_menu_desktop_spacing_unit ), ), $selector . '.submenu-with-border .astra-megamenu, ' . $selector . '.submenu-with-border .astra-full-megamenu-wrapper' => array( 'border-top-width' => astra_get_css_value( $sub_menu_border_top, 'px' ), 'border-bottom-width' => astra_get_css_value( $sub_menu_border_bottom, 'px' ), 'border-right-width' => astra_get_css_value( $sub_menu_border_right, 'px' ), 'border-left-width' => astra_get_css_value( $sub_menu_border_left, 'px' ), 'border-color' => esc_attr( astra_get_option( 'header-' . $_prefix . '-submenu-b-color' ) ), 'border-style' => 'solid', ), ); $mobile_selector = '.ast-header-break-point .ast-builder-menu-' . $index; $sub_menu_spacing_tablet_top = astra_responsive_spacing( $sub_menu_spacing, 'top', 'tablet' ); if ( isset( $sub_menu_spacing_tablet_top ) && '' === $sub_menu_spacing_tablet_top && isset( $sub_menu_spacing_desktop_top ) && '' !== $sub_menu_spacing_desktop_top && 0 !== $sub_menu_spacing_desktop_top ) { $sub_menu_spacing_tablet_top = $sub_menu_spacing_desktop_top; } $sub_menu_spacing_tablet_top = ( isset( $sub_menu_spacing_tablet_top ) && ! empty( $sub_menu_spacing_tablet_top ) ) ? $sub_menu_spacing_tablet_top : 0; $sub_menu_spacing_mobile_top = astra_responsive_spacing( $sub_menu_spacing, 'top', 'mobile' ); if ( isset( $sub_menu_spacing_mobile_top ) && '' === $sub_menu_spacing_mobile_top && isset( $sub_menu_spacing_tablet_top ) && '' !== $sub_menu_spacing_tablet_top && 0 !== $sub_menu_spacing_tablet_top ) { $sub_menu_spacing_mobile_top = $sub_menu_spacing_tablet_top; } $sub_menu_spacing_mobile_top = ( isset( $sub_menu_spacing_mobile_top ) && ! empty( $sub_menu_spacing_mobile_top ) ) ? $sub_menu_spacing_mobile_top : 0; $css_output_tablet = array( // Sub Menu. '.ast-header-break-point ' . $selector . ' .sub-menu > .menu-item > .menu-link' => array( 'padding-top' => astra_get_css_value( $sub_menu_tablet_spacing_top, $sub_menu_tablet_spacing_unit ), 'padding-bottom' => astra_get_css_value( $sub_menu_tablet_spacing_bottom, $sub_menu_tablet_spacing_unit ), 'padding-left' => astra_get_css_value( $sub_menu_tablet_spacing_left, $sub_menu_tablet_spacing_unit ), 'padding-right' => astra_get_css_value( $sub_menu_tablet_spacing_right, $sub_menu_tablet_spacing_unit ), ), $mobile_selector . ' .sub-menu .menu-item.menu-item-has-children > .ast-menu-toggle' => array( 'top' => $sub_menu_spacing_tablet_top, 'right' => class_exists( 'Astra_Addon_Builder_Helper' ) ? astra_calc_spacing( astra_responsive_spacing( $sub_menu_spacing, 'right', 'tablet' ), '-', '0.907', 'em' ) : '', ), ); $css_output_mobile = array( // Sub Menu. '.ast-header-break-point ' . $selector . ' .sub-menu > .menu-item > .menu-link' => array( 'padding-top' => astra_get_css_value( $sub_menu_mobile_spacing_top, $sub_menu_mobile_spacing_unit ), 'padding-bottom' => astra_get_css_value( $sub_menu_mobile_spacing_bottom, $sub_menu_mobile_spacing_unit ), 'padding-left' => astra_get_css_value( $sub_menu_mobile_spacing_left, $sub_menu_mobile_spacing_unit ), 'padding-right' => astra_get_css_value( $sub_menu_mobile_spacing_right, $sub_menu_mobile_spacing_unit ), ), $mobile_selector . ' .sub-menu .menu-item.menu-item-has-children > .ast-menu-toggle' => array( 'top' => $sub_menu_spacing_mobile_top, 'right' => class_exists( 'Astra_Addon_Builder_Helper' ) ? astra_calc_spacing( astra_responsive_spacing( $sub_menu_spacing, 'right', 'mobile' ), '-', '0.907', 'em' ) : '', ), ); if ( 3 > $index ) { // Mega Menu heading Spacing. // - Desktop $mega_menu_desktop_spacing_top = ( isset( $mega_menu_heading_spacing['desktop']['top'] ) ) ? $mega_menu_heading_spacing['desktop']['top'] : ''; $mega_menu_desktop_spacing_bottom = ( isset( $mega_menu_heading_spacing['desktop']['bottom'] ) ) ? $mega_menu_heading_spacing['desktop']['bottom'] : ''; $mega_menu_desktop_spacing_right = ( isset( $mega_menu_heading_spacing['desktop']['right'] ) ) ? $mega_menu_heading_spacing['desktop']['right'] : ''; $mega_menu_desktop_spacing_left = ( isset( $mega_menu_heading_spacing['desktop']['left'] ) ) ? $mega_menu_heading_spacing['desktop']['left'] : ''; $mega_menu_desktop_spacing_unit = ( isset( $mega_menu_heading_spacing['desktop-unit'] ) && ! empty( $mega_menu_heading_spacing['desktop-unit'] ) ) ? $mega_menu_heading_spacing['desktop-unit'] : 'px'; // - Tablet. $mega_menu_tablet_spacing_top = ( isset( $mega_menu_heading_spacing['tablet']['top'] ) ) ? $mega_menu_heading_spacing['tablet']['top'] : ''; $mega_menu_tablet_spacing_bottom = ( isset( $mega_menu_heading_spacing['tablet']['bottom'] ) ) ? $mega_menu_heading_spacing['tablet']['bottom'] : ''; $mega_menu_tablet_spacing_right = ( isset( $mega_menu_heading_spacing['tablet']['right'] ) ) ? $mega_menu_heading_spacing['tablet']['right'] : ''; $mega_menu_tablet_spacing_left = ( isset( $mega_menu_heading_spacing['tablet']['left'] ) ) ? $mega_menu_heading_spacing['tablet']['left'] : ''; $mega_menu_tablet_spacing_unit = ( isset( $mega_menu_heading_spacing['tablet-unit'] ) && ! empty( $mega_menu_heading_spacing['tablet-unit'] ) ) ? $mega_menu_heading_spacing['tablet-unit'] : 'px'; // - Mobile. $mega_menu_mobile_spacing_top = ( isset( $mega_menu_heading_spacing['mobile']['top'] ) ) ? $mega_menu_heading_spacing['mobile']['top'] : ''; $mega_menu_mobile_spacing_bottom = ( isset( $mega_menu_heading_spacing['mobile']['bottom'] ) ) ? $mega_menu_heading_spacing['mobile']['bottom'] : ''; $mega_menu_mobile_spacing_right = ( isset( $mega_menu_heading_spacing['mobile']['right'] ) ) ? $mega_menu_heading_spacing['mobile']['right'] : ''; $mega_menu_mobile_spacing_left = ( isset( $mega_menu_heading_spacing['mobile']['left'] ) ) ? $mega_menu_heading_spacing['mobile']['left'] : ''; $mega_menu_mobile_spacing_unit = ( isset( $mega_menu_heading_spacing['mobile-unit'] ) && ! empty( $mega_menu_heading_spacing['mobile-unit'] ) ) ? $mega_menu_heading_spacing['mobile-unit'] : 'px'; $css_megamenu_output_desktop = array( // Mega Menu. $selector . ' .menu-item.menu-item-heading > .menu-link' => array( 'padding-top' => astra_get_css_value( $mega_menu_desktop_spacing_top, $mega_menu_desktop_spacing_unit ), 'padding-bottom' => astra_get_css_value( $mega_menu_desktop_spacing_bottom, $mega_menu_desktop_spacing_unit ), 'padding-left' => astra_get_css_value( $mega_menu_desktop_spacing_left, $mega_menu_desktop_spacing_unit ), 'padding-right' => astra_get_css_value( $mega_menu_desktop_spacing_right, $mega_menu_desktop_spacing_unit ), ), ); $css_megamenu_output_tablet = array( // Mega Menu. '.ast-header-break-point ' . $selector . ' .menu-item.menu-item-heading > .menu-link' => array( 'padding-top' => astra_get_css_value( $mega_menu_tablet_spacing_top, $mega_menu_tablet_spacing_unit ), 'padding-bottom' => astra_get_css_value( $mega_menu_tablet_spacing_bottom, $mega_menu_tablet_spacing_unit ), 'padding-left' => astra_get_css_value( $mega_menu_tablet_spacing_left, $mega_menu_tablet_spacing_unit ), 'padding-right' => astra_get_css_value( $mega_menu_tablet_spacing_right, $mega_menu_tablet_spacing_unit ), ), ); $css_megamenu_output_mobile = array( // Mega Menu. '.ast-header-break-point ' . $selector . ' .menu-item.menu-item-heading > .menu-link' => array( 'padding-top' => astra_get_css_value( $mega_menu_mobile_spacing_top, $mega_menu_mobile_spacing_unit ), 'padding-bottom' => astra_get_css_value( $mega_menu_mobile_spacing_bottom, $mega_menu_mobile_spacing_unit ), 'padding-left' => astra_get_css_value( $mega_menu_mobile_spacing_left, $mega_menu_mobile_spacing_unit ), 'padding-right' => astra_get_css_value( $mega_menu_mobile_spacing_right, $mega_menu_mobile_spacing_unit ), ), ); $spacing_css_output .= astra_parse_css( $css_megamenu_output_desktop ); $spacing_css_output .= astra_parse_css( $css_megamenu_output_tablet, '', astra_addon_get_tablet_breakpoint() ); $spacing_css_output .= astra_parse_css( $css_megamenu_output_mobile, '', astra_addon_get_mobile_breakpoint() ); } $spacing_css_output .= astra_parse_css( $css_output_desktop ); $spacing_css_output .= astra_parse_css( $css_output_tablet, '', astra_addon_get_tablet_breakpoint() ); $spacing_css_output .= astra_parse_css( $css_output_mobile, '', astra_addon_get_mobile_breakpoint() ); } if ( is_callable( 'Astra_Addon_Builder_Helper::is_component_loaded' ) && Astra_Addon_Builder_Helper::is_component_loaded( 'mobile-menu', 'header', 'mobile' ) ) { $selector = '.ast-hfb-header .ast-builder-menu-mobile'; $sub_menu_spacing = astra_get_option( 'header-mobile-menu-submenu-spacing' ); // SubMenu Spacing. // - Desktop. $sub_menu_desktop_spacing_top = ( isset( $sub_menu_spacing['desktop']['top'] ) && ! empty( $sub_menu_spacing['desktop']['top'] ) ) ? $sub_menu_spacing['desktop']['top'] : ''; $sub_menu_desktop_spacing_bottom = ( isset( $sub_menu_spacing['desktop']['bottom'] ) && ! empty( $sub_menu_spacing['desktop']['bottom'] ) ) ? $sub_menu_spacing['desktop']['bottom'] : ''; $sub_menu_desktop_spacing_right = ( isset( $sub_menu_spacing['desktop']['right'] ) && ! empty( $sub_menu_spacing['desktop']['right'] ) ) ? $sub_menu_spacing['desktop']['right'] : ''; $sub_menu_desktop_spacing_left = ( isset( $sub_menu_spacing['desktop']['left'] ) && ! empty( $sub_menu_spacing['desktop']['left'] ) ) ? $sub_menu_spacing['desktop']['left'] : ''; $sub_menu_desktop_spacing_unit = ( isset( $sub_menu_spacing['desktop-unit'] ) && ! empty( $sub_menu_spacing['desktop-unit'] ) ) ? $sub_menu_spacing['desktop-unit'] : ''; // - Tablet. $sub_menu_tablet_spacing_top = ( isset( $sub_menu_spacing['tablet']['top'] ) && ! empty( $sub_menu_spacing['tablet']['top'] ) ) ? $sub_menu_spacing['tablet']['top'] : ''; $sub_menu_tablet_spacing_bottom = ( isset( $sub_menu_spacing['tablet']['bottom'] ) && ! empty( $sub_menu_spacing['tablet']['bottom'] ) ) ? $sub_menu_spacing['tablet']['bottom'] : ''; $sub_menu_tablet_spacing_right = ( isset( $sub_menu_spacing['tablet']['right'] ) && ! empty( $sub_menu_spacing['tablet']['right'] ) ) ? $sub_menu_spacing['tablet']['right'] : ''; $sub_menu_tablet_spacing_left = ( isset( $sub_menu_spacing['tablet']['left'] ) && ! empty( $sub_menu_spacing['tablet']['left'] ) ) ? $sub_menu_spacing['tablet']['left'] : ''; $sub_menu_tablet_spacing_unit = ( isset( $sub_menu_spacing['tablet-unit'] ) && ! empty( $sub_menu_spacing['tablet-unit'] ) ) ? $sub_menu_spacing['tablet-unit'] : ''; // - Mobile. $sub_menu_mobile_spacing_top = ( isset( $sub_menu_spacing['mobile']['top'] ) && ! empty( $sub_menu_spacing['mobile']['top'] ) ) ? $sub_menu_spacing['mobile']['top'] : ''; $sub_menu_mobile_spacing_bottom = ( isset( $sub_menu_spacing['mobile']['bottom'] ) && ! empty( $sub_menu_spacing['mobile']['bottom'] ) ) ? $sub_menu_spacing['mobile']['bottom'] : ''; $sub_menu_mobile_spacing_right = ( isset( $sub_menu_spacing['mobile']['right'] ) && ! empty( $sub_menu_spacing['mobile']['right'] ) ) ? $sub_menu_spacing['mobile']['right'] : ''; $sub_menu_mobile_spacing_left = ( isset( $sub_menu_spacing['mobile']['left'] ) && ! empty( $sub_menu_spacing['mobile']['left'] ) ) ? $sub_menu_spacing['mobile']['left'] : ''; $sub_menu_mobile_spacing_unit = ( isset( $sub_menu_spacing['mobile-unit'] ) && ! empty( $sub_menu_spacing['mobile-unit'] ) ) ? $sub_menu_spacing['mobile-unit'] : ''; $css_output_desktop = array( // Sub Menu. $selector . ' .ast-nav-menu .sub-menu .menu-item > .menu-link' => array( 'padding-top' => astra_get_css_value( $sub_menu_desktop_spacing_top, $sub_menu_desktop_spacing_unit ), 'padding-bottom' => astra_get_css_value( $sub_menu_desktop_spacing_bottom, $sub_menu_desktop_spacing_unit ), 'padding-left' => astra_get_css_value( $sub_menu_desktop_spacing_left, $sub_menu_desktop_spacing_unit ), 'padding-right' => astra_get_css_value( $sub_menu_desktop_spacing_right, $sub_menu_desktop_spacing_unit ), ), $selector . ' .ast-nav-menu .sub-menu .menu-item.menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $sub_menu_spacing, 'top', 'desktop' ), 'right' => class_exists( 'Astra_Addon_Builder_Helper' ) ? astra_calc_spacing( astra_responsive_spacing( $sub_menu_spacing, 'right', 'desktop' ), '-', '0.907', 'em' ) : '', ), ); $css_output_tablet = array( // Sub Menu. $selector . ' .ast-nav-menu .sub-menu .menu-item > .menu-link' => array( 'padding-top' => astra_get_css_value( $sub_menu_tablet_spacing_top, $sub_menu_tablet_spacing_unit ), 'padding-bottom' => astra_get_css_value( $sub_menu_tablet_spacing_bottom, $sub_menu_tablet_spacing_unit ), 'padding-left' => astra_get_css_value( $sub_menu_tablet_spacing_left, $sub_menu_tablet_spacing_unit ), 'padding-right' => astra_get_css_value( $sub_menu_tablet_spacing_right, $sub_menu_tablet_spacing_unit ), ), $selector . ' .ast-nav-menu .sub-menu .menu-item.menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $sub_menu_spacing, 'top', 'tablet' ), 'right' => class_exists( 'Astra_Addon_Builder_Helper' ) ? astra_calc_spacing( astra_responsive_spacing( $sub_menu_spacing, 'right', 'tablet' ), '-', '0.907', 'em' ) : '', ), ); $css_output_mobile = array( // Sub Menu. $selector . ' .ast-nav-menu .sub-menu .menu-item > .menu-link' => array( 'padding-top' => astra_get_css_value( $sub_menu_mobile_spacing_top, $sub_menu_mobile_spacing_unit ), 'padding-bottom' => astra_get_css_value( $sub_menu_mobile_spacing_bottom, $sub_menu_mobile_spacing_unit ), 'padding-left' => astra_get_css_value( $sub_menu_mobile_spacing_left, $sub_menu_mobile_spacing_unit ), 'padding-right' => astra_get_css_value( $sub_menu_mobile_spacing_right, $sub_menu_mobile_spacing_unit ), ), $selector . ' .ast-nav-menu .sub-menu .menu-item.menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $sub_menu_spacing, 'top', 'mobile' ), 'right' => class_exists( 'Astra_Addon_Builder_Helper' ) ? astra_calc_spacing( astra_responsive_spacing( $sub_menu_spacing, 'right', 'mobile' ), '-', '0.907', 'em' ) : '', ), ); $spacing_css_output .= astra_parse_css( $css_output_desktop ); $spacing_css_output .= astra_parse_css( $css_output_tablet, '', astra_addon_get_tablet_breakpoint() ); $spacing_css_output .= astra_parse_css( $css_output_mobile, '', astra_addon_get_mobile_breakpoint() ); } /** * Account CSS. */ if ( is_callable( 'Astra_Addon_Builder_Helper::is_component_loaded' ) && Astra_Addon_Builder_Helper::is_component_loaded( 'account', 'header' ) ) { $selector = '.ast-header-account-wrap'; $adv_selector = '.ast-advanced-headers .ast-header-account-wrap'; // Spacing. $menu_spacing = astra_get_option( 'header-account-menu-spacing' ); $css_output_desktop = array( $selector . ' .main-header-menu.ast-account-nav-menu .menu-item .menu-link, ' . $adv_selector . ' .main-header-menu.ast-account-nav-menu .menu-item .menu-link' => array( 'padding-top' => astra_responsive_spacing( $menu_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $menu_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $menu_spacing, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $menu_spacing, 'right', 'desktop' ), ), ); $css_output_tablet = array( $selector . ' .main-header-menu.ast-account-nav-menu .menu-item .menu-link, ' . $adv_selector . ' .main-header-menu.ast-account-nav-menu .menu-item .menu-link' => array( 'padding-top' => astra_responsive_spacing( $menu_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $menu_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $menu_spacing, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $menu_spacing, 'right', 'tablet' ), ), ); $css_output_mobile = array( $selector . ' .main-header-menu.ast-account-nav-menu .menu-item .menu-link, ' . $adv_selector . ' .main-header-menu.ast-account-nav-menu .menu-item .menu-link' => array( 'padding-top' => astra_responsive_spacing( $menu_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $menu_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $menu_spacing, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $menu_spacing, 'right', 'mobile' ), ), ); /* Parse CSS from array() */ $spacing_css_output .= astra_parse_css( $css_output_desktop ); $spacing_css_output .= astra_parse_css( $css_output_tablet, '', astra_addon_get_tablet_breakpoint() ); $spacing_css_output .= astra_parse_css( $css_output_mobile, '', astra_addon_get_mobile_breakpoint() ); } /** * Language switcher CSS. */ if ( is_callable( 'Astra_Addon_Builder_Helper::is_component_loaded' ) && Astra_Addon_Builder_Helper::is_component_loaded( 'language-switcher', 'header' ) ) { $_section = 'section-hb-language-switcher'; $selector = '.ast-header-language-switcher'; $margin = astra_get_option( $_section . '-margin' ); $item_spacing = astra_get_option( $_section . '-item-spacing' ); /** * Desktop CSS. */ $lswitcher_css_output_desktop = array( $selector => array( // Margin. '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' ), ), '.ast-builder-language-switcher-menu-item-header' => array( // Margin. 'padding-top' => astra_responsive_spacing( $item_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $item_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $item_spacing, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $item_spacing, 'right', 'desktop' ), ), ); /** * Tablet CSS. */ $lswitcher_css_output_tablet = array( $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' ), ), '.ast-builder-language-switcher-menu-item-header' => array( // Padding. 'padding-top' => astra_responsive_spacing( $item_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $item_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $item_spacing, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $item_spacing, 'right', 'tablet' ), ), ); /** * Mobile CSS. */ $lswitcher_css_output_mobile = array( $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' ), ), '.ast-builder-language-switcher-menu-item-header' => array( // Padding. 'padding-top' => astra_responsive_spacing( $item_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $item_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $item_spacing, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $item_spacing, 'right', 'mobile' ), ), ); /* Parse CSS from array() */ $spacing_css_output .= astra_parse_css( $lswitcher_css_output_desktop ); $spacing_css_output .= astra_parse_css( $lswitcher_css_output_tablet, '', astra_addon_get_tablet_breakpoint() ); $spacing_css_output .= astra_parse_css( $lswitcher_css_output_mobile, '', astra_addon_get_mobile_breakpoint() ); } /** * Language switcher CSS. */ if ( is_callable( 'Astra_Addon_Builder_Helper::is_component_loaded' ) && Astra_Addon_Builder_Helper::is_component_loaded( 'language-switcher', 'footer' ) ) { $_section = 'section-fb-language-switcher'; $selector = '.ast-footer-language-switcher'; $margin = astra_get_option( $_section . '-margin' ); $item_spacing = astra_get_option( $_section . '-item-spacing' ); /** * Desktop CSS. */ $lswitcher_css_output_desktop = array( $selector => array( // Margin. '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' ), ), '.ast-builder-language-switcher-menu-item-footer' => array( // Margin. 'padding-top' => astra_responsive_spacing( $item_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $item_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $item_spacing, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $item_spacing, 'right', 'desktop' ), ), ); /** * Tablet CSS. */ $lswitcher_css_output_tablet = array( $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' ), ), '.ast-builder-language-switcher-menu-item-footer' => array( // Padding. 'padding-top' => astra_responsive_spacing( $item_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $item_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $item_spacing, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $item_spacing, 'right', 'tablet' ), ), ); /** * Mobile CSS. */ $lswitcher_css_output_mobile = array( $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' ), ), '.ast-builder-language-switcher-menu-item-footer' => array( // Padding. 'padding-top' => astra_responsive_spacing( $item_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $item_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $item_spacing, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $item_spacing, 'right', 'mobile' ), ), ); /* Parse CSS from array() */ $spacing_css_output .= astra_parse_css( $lswitcher_css_output_desktop ); $spacing_css_output .= astra_parse_css( $lswitcher_css_output_tablet, '', astra_addon_get_tablet_breakpoint() ); $spacing_css_output .= astra_parse_css( $lswitcher_css_output_mobile, '', astra_addon_get_mobile_breakpoint() ); } } else { // Desktop Spacing. $spacing = array( // Header Spacing Top / Bottom Padding. '.main-header-bar, .ast-header-break-point .main-header-bar, .ast-header-break-point .header-main-layout-2 .main-header-bar' => array( 'padding-top' => astra_responsive_spacing( $header_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $header_spacing, 'bottom', 'desktop' ), ), // Header Spacing Left / Right Padding apply to inside container. '.main-header-bar .ast-container, #masthead .ast-container' => array( 'padding-left' => astra_responsive_spacing( $header_spacing, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $header_spacing, 'right', 'desktop' ), ), /** * Header Spacing */ '.ast-default-menu-enable.ast-main-header-nav-open.ast-header-break-point .main-header-bar, .ast-main-header-nav-open .main-header-bar' => array( 'padding-bottom' => 0, ), /** * Main Menu Spacing */ '.main-navigation ul .menu-item .menu-link, .ast-header-break-point .main-navigation ul .menu-item .menu-link, .ast-header-break-point li.ast-masthead-custom-menu-items, li.ast-masthead-custom-menu-items' => array( 'padding-top' => astra_responsive_spacing( $primary_menu_spacing, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $primary_menu_spacing, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $primary_menu_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $primary_menu_spacing, 'left', 'desktop' ), ), '.ast-header-break-point .main-navigation ul .menu-item.menu-item-has-children button' => array( 'padding-right' => astra_responsive_spacing( $primary_menu_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $primary_menu_spacing, 'bottom', 'mobile' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu > .menu-item-has-children > .ast-menu-toggle' => array( 'right' => esc_attr( 0 ), ), '.ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $primary_menu_spacing, 'top', 'desktop' ), ), /** * Main Submenu Spacing */ '.ast-desktop .main-navigation .ast-mm-template-content, .ast-desktop .main-navigation .ast-mm-custom-content, .ast-desktop .main-navigation .ast-mm-custom-text-content,.main-navigation .sub-menu .menu-item .menu-link, .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-link' => array( 'padding-top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $primary_submenu_spacing, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $primary_submenu_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $primary_submenu_spacing, 'left', 'desktop' ), ), '.ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'desktop' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $primary_submenu_spacing, 'right', 'desktop' ), '-', '0.907', 'em' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle' => array( 'right' => esc_attr( 0 ), ), '.ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle' => array( 'right' => astra_calc_spacing( astra_responsive_spacing( $primary_submenu_spacing, 'right', 'desktop' ), '-', '0.907', 'em' ), ), '.ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children .sub-menu .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'desktop' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .main-navigation .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-default-menu-enable.ast-header-break-point .main-navigation .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-flyout-menu-enable.ast-header-break-point .main-navigation .sub-menu .menu-item.menu-item-has-children > .menu-link' => array( 'padding-top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $primary_submenu_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $primary_submenu_spacing, 'left', 'desktop' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .ast-above-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-default-menu-enable.ast-header-break-point .ast-above-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-flyout-menu-enable.ast-header-break-point .ast-above-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link' => array( 'padding-right' => 0, 'padding-top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $primary_submenu_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $primary_submenu_spacing, 'left', 'desktop' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .ast-below-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-default-menu-enable.ast-header-break-point .ast-below-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-flyout-menu-enable.ast-header-break-point .ast-below-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link' => array( 'padding-right' => 0, 'padding-top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $primary_submenu_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $primary_submenu_spacing, 'left', 'desktop' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .ast-below-header-menu .sub-menu .menu-link, .ast-fullscreen-menu-enable.ast-header-break-point .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-link, .ast-fullscreen-menu-enable.ast-header-break-point .ast-below-header-navigation .sub-menu .menu-item .menu-link, .ast-fullscreen-menu-enable.ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-link, .ast-fullscreen-menu-enable.ast-header-break-point .main-navigation .sub-menu .menu-item .menu-link' => array( 'padding-top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $primary_submenu_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $primary_submenu_spacing, 'left', 'desktop' ), ), /** * Below Header Spacing */ // Below Header Spacing Top / Bottom Padding. '.ast-below-header, .ast-header-break-point .ast-below-header' => array( 'padding-top' => astra_responsive_spacing( $below_header_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $below_header_spacing, 'bottom', 'desktop' ), ), // Below Header Spacing Left / Right Padding apply to inside container. '.ast-below-header .ast-container, #masthead .ast-below-header .ast-container' => array( 'padding-left' => astra_responsive_spacing( $below_header_spacing, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $below_header_spacing, 'right', 'desktop' ), ), /** * Below Header Menu Spacing */ '.ast-below-header-menu .menu-link, .below-header-nav-padding-support .below-header-section-1 .below-header-menu > .menu-item > .menu-link, .below-header-nav-padding-support .below-header-section-2 .below-header-menu > .menu-item > .menu-link, .ast-header-break-point .ast-below-header-actual-nav > .ast-below-header-menu > .menu-item > .menu-link' => array( 'padding-top' => astra_responsive_spacing( $below_header_menu_spacing, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $below_header_menu_spacing, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $below_header_menu_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $below_header_menu_spacing, 'left', 'desktop' ), ), /** * Below Header Submenu Spacing */ '.ast-desktop .ast-below-header-menu .ast-mm-template-content, .ast-desktop .ast-below-header-menu .ast-mm-custom-text-content, .ast-below-header-menu .sub-menu .menu-link, .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-link' => array( 'padding-top' => astra_responsive_spacing( $below_header_submenu_spacing, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $below_header_submenu_spacing, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $below_header_submenu_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $below_header_submenu_spacing, 'left', 'desktop' ), ), /* Padding right set to zero to all the menu elements that have submenu*/ '.ast-fullscreen-below-menu-enable.ast-header-break-point .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children > .menu-link, .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children > .menu-link, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children > .menu-link' => array( 'padding-right' => 0, ), /* Align submenu toggle button with menu text for menu */ '.ast-default-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $below_header_menu_spacing, 'top', 'desktop' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $below_header_menu_spacing, 'right', 'desktop' ), '-', '0.907', 'em' ), ), /* Align submenu toggle button with menu text for sub menu */ '.ast-default-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $below_header_submenu_spacing, 'top', 'desktop' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $below_header_submenu_spacing, 'right', 'desktop' ), '-', '0.907', 'em' ), ), /* Align submenu toggle button with menu text for full screen menu */ '.ast-fullscreen-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-fullscreen-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle' => array( 'right' => esc_attr( 0 ), ), /* Align submenu toggle button with menu text for full screen sub menu */ '.ast-fullscreen-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle' => array( 'right' => esc_attr( 0 ), ), /** * Above Header Spacing */ // Above Header Spacing Top / Bottom Padding. '.ast-above-header' => array( 'padding-top' => astra_responsive_spacing( $above_header_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $above_header_spacing, 'bottom', 'desktop' ), ), // Above Header Spacing Left / Right Padding apply to inside container. '.ast-above-header-wrap .ast-above-header .ast-container, #masthead .ast-above-header-wrap .ast-above-header .ast-container' => array( 'padding-left' => astra_responsive_spacing( $above_header_spacing, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $above_header_spacing, 'right', 'desktop' ), ), /** * Above Header Menu Spacing */ '.ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu > .menu-item > .menu-link, .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu > .menu-item:first-child > .menu-link, .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu > .menu-item:last-child > .menu-link' => array( 'padding-top' => astra_responsive_spacing( $above_header_menu_spacing, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $above_header_menu_spacing, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $above_header_menu_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $above_header_menu_spacing, 'left', 'desktop' ), ), /** * Above Header Toggle Button Top */ '.ast-header-break-point .ast-above-header-navigation > ul > .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $above_header_menu_spacing, 'top', 'desktop' ), ), /** * Above Header Submenu Spacing */ '.ast-desktop .ast-above-header-navigation .ast-mm-custom-text-content, .ast-desktop .ast-above-header-navigation .ast-mm-template-content, .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item .sub-menu .menu-link, .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-link, .ast-above-header-enabled .ast-above-header-menu > .menu-item:first-child .sub-menu .menu-item .menu-link' => array( 'padding-top' => astra_responsive_spacing( $above_header_submenu_spacing, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $above_header_submenu_spacing, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $above_header_submenu_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $above_header_submenu_spacing, 'left', 'desktop' ), ), /* Padding right set to zero to all the menu elements that have submenu*/ '.ast-fullscreen-above-menu-enable.ast-header-break-point .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children > .menu-link, .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children > .menu-link, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children > .menu-link' => array( 'padding-right' => 0, ), /* Align submenu toggle button with menu text for menu */ '.ast-default-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $above_header_menu_spacing, 'top', 'desktop' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $above_header_menu_spacing, 'right', 'desktop' ), '-', '0.907', 'em' ), ), /* Align submenu toggle button with menu text for sub menu */ '.ast-default-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $above_header_submenu_spacing, 'top', 'desktop' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $above_header_submenu_spacing, 'right', 'desktop' ), '-', '0.907', 'em' ), ), /* Align submenu toggle button with menu text for full screen menu */ '.ast-fullscreen-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-fullscreen-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle' => array( 'right' => esc_attr( 0 ), ), /* Align submenu toggle button with menu text for full screen sub menu */ '.ast-fullscreen-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle' => array( 'margin-right' => astra_responsive_spacing( $above_header_submenu_spacing, 'right', 'desktop' ), 'right' => esc_attr( 0 ), ), /** * Footer Spacing */ // Footer Spacing Top / Bottom Padding. '.ast-footer-overlay' => array( 'padding-top' => astra_responsive_spacing( $footer_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $footer_spacing, 'bottom', 'desktop' ), ), // Footer Spacing Left / Right Padding to inside container. '.ast-small-footer .ast-container' => array( 'padding-left' => astra_responsive_spacing( $footer_spacing, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $footer_spacing, 'right', 'desktop' ), ), // Default margin for .ast-row is -20px, Managing Margin to fix repsonsive design. '.ast-small-footer .ast-row' => array( 'margin-left' => astra_responsive_spacing( $footer_spacing, 'left', 'desktop' ), 'margin-right' => astra_responsive_spacing( $footer_spacing, 'right', 'desktop' ), ), /** * Footer Menu Spacing */ '.ast-small-footer .nav-menu a, .footer-sml-layout-2 .ast-small-footer-section-1 .menu-item a, .footer-sml-layout-2 .ast-small-footer-section-2 .menu-item a' => array( 'padding-top' => astra_responsive_spacing( $footer_menu_spacing, 'top', 'desktop' ), 'padding-right' => astra_responsive_spacing( $footer_menu_spacing, 'right', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $footer_menu_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $footer_menu_spacing, 'left', 'desktop' ), ), ); $spacing_css_output .= astra_parse_css( $spacing ); // Tablet Spacing. $tablet_spacing = array( // Header Spacing Top / Bottom Padding. '.main-header-bar, .ast-header-break-point .main-header-bar, .ast-header-break-point .header-main-layout-2 .main-header-bar' => array( 'padding-top' => astra_responsive_spacing( $header_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $header_spacing, 'bottom', 'tablet' ), ), // Header Spacing Left / Right Padding apply to inside container. '.main-header-bar .ast-container, #masthead .ast-container' => array( 'padding-left' => astra_responsive_spacing( $header_spacing, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $header_spacing, 'right', 'tablet' ), ), /** * Header Tablet Spacing */ '.ast-default-menu-enable.ast-main-header-nav-open.ast-header-break-point .main-header-bar, .ast-main-header-nav-open .main-header-bar' => array( 'padding-bottom' => 0, ), /** * Main Menu Spacing */ '.main-navigation ul .menu-item .menu-link, .ast-header-break-point .main-navigation ul .menu-item .menu-link, .ast-header-break-point li.ast-masthead-custom-menu-items, li.ast-masthead-custom-menu-items' => array( 'padding-top' => astra_responsive_spacing( $primary_menu_spacing, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $primary_menu_spacing, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $primary_menu_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $primary_menu_spacing, 'left', 'tablet' ), ), '.ast-header-break-point .main-navigation ul .menu-item.menu-item-has-children button' => array( 'padding-right' => astra_responsive_spacing( $primary_menu_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $primary_menu_spacing, 'bottom', 'mobile' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu > .menu-item-has-children > .ast-menu-toggle' => array( 'right' => esc_attr( 0 ), ), '.ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $primary_menu_spacing, 'top', 'tablet' ), ), /** * Main Submenu Spacing */ '.ast-desktop .main-navigation .ast-mm-template-content, .ast-desktop .main-navigation .ast-mm-custom-content, .ast-desktop .main-navigation .ast-mm-custom-text-content,.main-navigation .sub-menu .menu-item .menu-link, .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-link' => array( 'padding-top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'tablet' ), 'padding-right' => 0, 'padding-bottom' => astra_responsive_spacing( $primary_submenu_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $primary_submenu_spacing, 'left', 'tablet' ), ), // Primary Header Submenu level 2. '.ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $primary_submenu_spacing, 'left', 'tablet' ), '+', '10', 'px' ), ), // Primary Header Submenu level 3. '.ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $primary_submenu_spacing, 'left', 'tablet' ), '+', '20', 'px' ), ), // Primary Header Submenu level 4. '.ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $primary_submenu_spacing, 'left', 'tablet' ), '+', '30', 'px' ), ), // Primary Header Submenu level 5. '.ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $primary_submenu_spacing, 'left', 'tablet' ), '+', '40', 'px' ), ), '.ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'tablet' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $primary_submenu_spacing, 'right', 'tablet' ), '-', '0.907', 'em' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle' => array( 'margin-right' => astra_responsive_spacing( $primary_submenu_spacing, 'right', 'tablet' ), 'right' => esc_attr( 0 ), ), '.ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle' => array( 'right' => astra_calc_spacing( astra_responsive_spacing( $primary_submenu_spacing, 'right', 'tablet' ), '-', '0.907', 'em' ), ), '.ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children .sub-menu .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'tablet' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .main-navigation .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-default-menu-enable.ast-header-break-point .main-navigation .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-flyout-menu-enable.ast-header-break-point .main-navigation .sub-menu .menu-item.menu-item-has-children > .menu-link' => array( 'padding-top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $primary_submenu_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $primary_submenu_spacing, 'left', 'tablet' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .ast-above-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-default-menu-enable.ast-header-break-point .ast-above-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-flyout-menu-enable.ast-header-break-point .ast-above-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link' => array( 'padding-right' => 0, 'padding-top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $primary_submenu_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $primary_submenu_spacing, 'left', 'tablet' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .ast-below-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-default-menu-enable.ast-header-break-point .ast-below-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-flyout-menu-enable.ast-header-break-point .ast-below-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link' => array( 'padding-right' => 0, 'padding-top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $primary_submenu_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $primary_submenu_spacing, 'left', 'tablet' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .ast-below-header-menu .sub-menu .menu-link, .ast-fullscreen-menu-enable.ast-header-break-point .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-link, .ast-fullscreen-menu-enable.ast-header-break-point .ast-below-header-navigation .sub-menu .menu-item .menu-link, .ast-fullscreen-menu-enable.ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-link, .ast-fullscreen-menu-enable.ast-header-break-point .main-navigation .sub-menu .menu-item .menu-link' => array( 'padding-top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $primary_submenu_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $primary_submenu_spacing, 'left', 'tablet' ), ), /** * Below Header Spacing */ // Below Header Spacing Top / Bottom Padding. '.ast-below-header, .ast-header-break-point .ast-below-header' => array( 'padding-top' => astra_responsive_spacing( $below_header_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $below_header_spacing, 'bottom', 'tablet' ), ), // Below Header Spacing Left / Right Padding apply to inside container. '.ast-below-header .ast-container, #masthead .ast-below-header .ast-container' => array( 'padding-left' => astra_responsive_spacing( $below_header_spacing, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $below_header_spacing, 'right', 'tablet' ), ), /** * Below Header Menu Spacing */ '.ast-below-header-menu .menu-link, .below-header-nav-padding-support .below-header-section-1 .below-header-menu > .menu-item > .menu-link, .below-header-nav-padding-support .below-header-section-2 .below-header-menu > .menu-item > .menu-link, .ast-header-break-point .ast-below-header-actual-nav > .ast-below-header-menu > .menu-item > .menu-link' => array( 'padding-top' => astra_responsive_spacing( $below_header_menu_spacing, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $below_header_menu_spacing, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $below_header_menu_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $below_header_menu_spacing, 'left', 'tablet' ), ), /** * Below Header Submenu Spacing */ '.ast-desktop .ast-below-header-menu .ast-mm-template-content, .ast-desktop .ast-below-header-menu .ast-mm-custom-text-content, .ast-below-header-menu .sub-menu .menu-link, .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-link' => array( 'padding-top' => astra_responsive_spacing( $below_header_submenu_spacing, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $below_header_submenu_spacing, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $below_header_submenu_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $below_header_submenu_spacing, 'left', 'tablet' ), ), // Below Header Submenu level 2. '.ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-link, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $below_header_submenu_spacing, 'left', 'tablet' ), '+', '10', 'px' ), ), // Below Header Submenu level 3. '.ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-link, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $below_header_submenu_spacing, 'left', 'tablet' ), '+', '20', 'px' ), ), // Below Header Submenu level 4. '.ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $below_header_submenu_spacing, 'left', 'tablet' ), '+', '30', 'px' ), ), // Below Header Submenu level 5. '.ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-link, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $below_header_submenu_spacing, 'left', 'tablet' ), '+', '40', 'px' ), ), /* Align submenu toggle button with menu text for menu */ '.ast-default-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $below_header_menu_spacing, 'top', 'tablet' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $below_header_menu_spacing, 'right', 'tablet' ), '-', '0.907', 'em' ), ), /* Align submenu toggle button with menu text for sub menu */ '.ast-default-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $below_header_submenu_spacing, 'top', 'tablet' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $below_header_submenu_spacing, 'right', 'tablet' ), '-', '0.907', 'em' ), ), /* Align submenu toggle button with menu text for full screen menu */ '.ast-fullscreen-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-fullscreen-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle' => array( 'right' => esc_attr( 0 ), ), /* Align submenu toggle button with menu text for full screen sub menu */ '.ast-fullscreen-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle' => array( 'right' => esc_attr( 0 ), ), /** * Above Header Spacing */ // Above Header Spacing Top / Bottom Padding. '.ast-above-header' => array( 'padding-top' => astra_responsive_spacing( $above_header_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $above_header_spacing, 'bottom', 'tablet' ), ), // Above Header Spacing Left / Right Padding apply to inside container. '.ast-above-header-wrap .ast-above-header .ast-container, #masthead .ast-above-header-wrap .ast-above-header .ast-container' => array( 'padding-left' => astra_responsive_spacing( $above_header_spacing, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $above_header_spacing, 'right', 'tablet' ), ), /** * Above Header Menu Spacing */ '.ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu > .menu-item > .menu-link, .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu > .menu-item:first-child > .menu-link, .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu > .menu-item:last-child > .menu-link' => array( 'padding-top' => astra_responsive_spacing( $above_header_menu_spacing, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $above_header_menu_spacing, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $above_header_menu_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $above_header_menu_spacing, 'left', 'tablet' ), ), /** * Above Header Toggle Button Top */ '.ast-header-break-point .ast-above-header-navigation > ul > .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $above_header_menu_spacing, 'top', 'tablet' ), ), /** * Above Header Submenu Spacing */ '.ast-desktop .ast-above-header-navigation .ast-mm-custom-text-content, .ast-desktop .ast-above-header-navigation .ast-mm-template-content, .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item .sub-menu .menu-link, .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-link, .ast-above-header-enabled .ast-above-header-menu > .menu-item:first-child .sub-menu .menu-item .menu-link' => array( 'padding-top' => astra_responsive_spacing( $above_header_submenu_spacing, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $above_header_submenu_spacing, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $above_header_submenu_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $above_header_submenu_spacing, 'left', 'tablet' ), ), // Above Header Submenu level 2. '.ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $above_header_submenu_spacing, 'left', 'tablet' ), '+', '10', 'px' ), ), // Above Header Submenu level 3. '.ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $above_header_submenu_spacing, 'left', 'tablet' ), '+', '20', 'px' ), ), // Above Header Submenu level 4. '.ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $above_header_submenu_spacing, 'left', 'tablet' ), '+', '30', 'px' ), ), // Above Header Submenu level 5. '.ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $above_header_submenu_spacing, 'left', 'tablet' ), '+', '40', 'px' ), ), /* Align submenu toggle button with menu text for menu */ '.ast-default-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $above_header_menu_spacing, 'top', 'tablet' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $above_header_menu_spacing, 'right', 'tablet' ), '-', '0.907', 'em' ), ), /* Align submenu toggle button with menu text for sub menu */ '.ast-default-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $above_header_submenu_spacing, 'top', 'tablet' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $above_header_submenu_spacing, 'right', 'tablet' ), '-', '0.907', 'em' ), ), /* Align submenu toggle button with menu text for full screen menu */ '.ast-fullscreen-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-fullscreen-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle' => array( 'right' => esc_attr( 0 ), ), /* Align submenu toggle button with menu text for full screen sub menu */ '.ast-fullscreen-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle' => array( 'margin-right' => astra_responsive_spacing( $above_header_submenu_spacing, 'right', 'tablet' ), 'right' => esc_attr( 0 ), ), /** * Footer Spacing */ // Footer Spacing Top / Bottom Padding. '.ast-footer-overlay' => array( 'padding-top' => astra_responsive_spacing( $footer_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $footer_spacing, 'bottom', 'tablet' ), ), // Footer Spacing Left / Right Padding to inside container. '.ast-small-footer .ast-container' => array( 'padding-left' => astra_responsive_spacing( $footer_spacing, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $footer_spacing, 'right', 'tablet' ), ), // Default margin for .ast-row is -20px, Managing Margin to fix repsonsive design. '.ast-small-footer .ast-row' => array( 'margin-left' => astra_responsive_spacing( $footer_spacing, 'left', 'tablet' ), 'margin-right' => astra_responsive_spacing( $footer_spacing, 'right', 'tablet' ), ), /** * Footer Menu Spacing */ '.ast-small-footer .nav-menu a, .footer-sml-layout-2 .ast-small-footer-section-1 .menu-item a, .footer-sml-layout-2 .ast-small-footer-section-2 .menu-item a' => array( 'padding-top' => astra_responsive_spacing( $footer_menu_spacing, 'top', 'tablet' ), 'padding-right' => astra_responsive_spacing( $footer_menu_spacing, 'right', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $footer_menu_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $footer_menu_spacing, 'left', 'tablet' ), ), ); $spacing_css_output .= astra_parse_css( $tablet_spacing, '', astra_addon_get_tablet_breakpoint() ); // Mobile Spacing. $mobile_spacing = array( // Header Spacing Top / Bottom Padding. '.main-header-bar, .ast-header-break-point .main-header-bar, .ast-header-break-point .header-main-layout-2 .main-header-bar, .ast-header-break-point .ast-mobile-header-stack .main-header-bar' => array( 'padding-top' => astra_responsive_spacing( $header_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $header_spacing, 'bottom', 'mobile' ), ), // Header Spacing Left / Right Padding apply to inside container. '.main-header-bar .ast-container, #masthead .ast-container' => array( 'padding-left' => astra_responsive_spacing( $header_spacing, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $header_spacing, 'right', 'mobile' ), ), /** * Header Mobile Spacing */ '.ast-default-menu-enable.ast-main-header-nav-open.ast-header-break-point .main-header-bar, .ast-main-header-nav-open .main-header-bar' => array( 'padding-bottom' => 0, ), /** * Main Menu Spacing */ '.main-navigation ul .menu-item .menu-link, .ast-header-break-point .main-navigation ul .menu-item .menu-link, .ast-header-break-point li.ast-masthead-custom-menu-items, li.ast-masthead-custom-menu-items' => array( 'padding-top' => astra_responsive_spacing( $primary_menu_spacing, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $primary_menu_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $primary_menu_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $primary_menu_spacing, 'left', 'mobile' ), ), '.ast-header-break-point .main-navigation ul .menu-item.menu-item-has-children button' => array( 'padding-right' => astra_responsive_spacing( $primary_menu_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $primary_menu_spacing, 'bottom', 'mobile' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu > .menu-item-has-children > .ast-menu-toggle' => array( 'right' => esc_attr( 0 ), ), '.ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $primary_menu_spacing, 'top', 'mobile' ), ), /** * Main Submenu Spacing */ '.ast-desktop .main-navigation .ast-mm-template-content, .ast-desktop .main-navigation .ast-mm-custom-content, .ast-desktop .main-navigation .ast-mm-custom-text-content,.main-navigation .sub-menu .menu-item .menu-link, .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-link' => array( 'padding-top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'mobile' ), 'padding-right' => 0, 'padding-bottom' => astra_responsive_spacing( $primary_submenu_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $primary_submenu_spacing, 'left', 'mobile' ), ), // Primary Header Submenu level 2. '.ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $primary_submenu_spacing, 'left', 'mobile' ), '+', '10', 'px' ), ), // Primary Header Submenu level 3. '.ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $primary_submenu_spacing, 'left', 'mobile' ), '+', '20', 'px' ), ), // Primary Header Submenu level 4. '.ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $primary_submenu_spacing, 'left', 'mobile' ), '+', '30', 'px' ), ), // Primary Header Submenu level 5. '.ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $primary_submenu_spacing, 'left', 'mobile' ), '+', '40', 'px' ), ), '.ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'mobile' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $primary_submenu_spacing, 'right', 'mobile' ), '-', '0.907', 'em' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle' => array( 'margin-right' => astra_responsive_spacing( $primary_submenu_spacing, 'right', 'mobile' ), 'right' => esc_attr( 0 ), ), '.ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle' => array( 'right' => astra_calc_spacing( astra_responsive_spacing( $primary_submenu_spacing, 'right', 'mobile' ), '-', '0.907', 'em' ), ), '.ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children .sub-menu .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'mobile' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .main-navigation .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-default-menu-enable.ast-header-break-point .main-navigation .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-flyout-menu-enable.ast-header-break-point .main-navigation .sub-menu .menu-item.menu-item-has-children > .menu-link' => array( 'padding-top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $primary_submenu_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $primary_submenu_spacing, 'left', 'mobile' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .ast-above-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-default-menu-enable.ast-header-break-point .ast-above-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-flyout-menu-enable.ast-header-break-point .ast-above-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link' => array( 'padding-right' => 0, 'padding-top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $primary_submenu_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $primary_submenu_spacing, 'left', 'mobile' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .ast-below-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-default-menu-enable.ast-header-break-point .ast-below-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link, .ast-flyout-menu-enable.ast-header-break-point .ast-below-header-menu .sub-menu .menu-item.menu-item-has-children > .menu-link' => array( 'padding-right' => 0, 'padding-top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $primary_submenu_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $primary_submenu_spacing, 'left', 'mobile' ), ), '.ast-fullscreen-menu-enable.ast-header-break-point .ast-below-header-menu .sub-menu .menu-link, .ast-fullscreen-menu-enable.ast-header-break-point .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-link, .ast-fullscreen-menu-enable.ast-header-break-point .ast-below-header-navigation .sub-menu .menu-item .menu-link, .ast-fullscreen-menu-enable.ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-link, .ast-fullscreen-menu-enable.ast-header-break-point .main-navigation .sub-menu .menu-item .menu-link' => array( 'padding-top' => astra_responsive_spacing( $primary_submenu_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $primary_submenu_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $primary_submenu_spacing, 'left', 'mobile' ), ), /** * Below Header Spacing */ // Below Header Spacing Top / Bottom Padding. '.ast-below-header, .ast-header-break-point .ast-below-header' => array( 'padding-top' => astra_responsive_spacing( $below_header_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $below_header_spacing, 'bottom', 'mobile' ), ), // Below Header Spacing Left / Right Padding apply to inside container. '.ast-below-header .ast-container, #masthead .ast-below-header .ast-container' => array( 'padding-left' => astra_responsive_spacing( $below_header_spacing, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $below_header_spacing, 'right', 'mobile' ), ), /** * Below Header Menu Spacing */ '.ast-below-header-menu .menu-link, .below-header-nav-padding-support .below-header-section-1 .below-header-menu > .menu-item > .menu-link, .below-header-nav-padding-support .below-header-section-2 .below-header-menu > .menu-item > .menu-link, .ast-header-break-point .ast-below-header-actual-nav > .ast-below-header-menu > .menu-item > .menu-link' => array( 'padding-top' => astra_responsive_spacing( $below_header_menu_spacing, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $below_header_menu_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $below_header_menu_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $below_header_menu_spacing, 'left', 'mobile' ), ), /** * Below Header Submenu Spacing */ '.ast-desktop .ast-below-header-menu .ast-mm-template-content, .ast-desktop .ast-below-header-menu .ast-mm-custom-text-content, .ast-below-header-menu .sub-menu .menu-link, .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-link' => array( 'padding-top' => astra_responsive_spacing( $below_header_submenu_spacing, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $below_header_submenu_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $below_header_submenu_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $below_header_submenu_spacing, 'left', 'mobile' ), ), // Below Header Submenu level 2. '.ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-link, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $below_header_submenu_spacing, 'left', 'mobile' ), '+', '10', 'px' ), ), // Below Header Submenu level 3. '.ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-link, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $below_header_submenu_spacing, 'left', 'mobile' ), '+', '20', 'px' ), ), // Below Header Submenu level 4. '.ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $below_header_submenu_spacing, 'left', 'mobile' ), '+', '30', 'px' ), ), // Below Header Submenu level 5. '.ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-link, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $below_header_submenu_spacing, 'left', 'mobile' ), '+', '40', 'px' ), ), /* Align submenu toggle button with menu text for menu */ '.ast-default-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $below_header_menu_spacing, 'top', 'mobile' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $below_header_menu_spacing, 'right', 'mobile' ), '-', '0.907', 'em' ), ), /* Align submenu toggle button with menu text for sub menu */ '.ast-default-below-menu-enable.ast-header-break-point .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $below_header_submenu_spacing, 'top', 'mobile' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $below_header_submenu_spacing, 'right', 'mobile' ), '-', '0.907', 'em' ), ), /* Align submenu toggle button with menu text for full screen menu */ '.ast-fullscreen-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-fullscreen-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle' => array( 'right' => esc_attr( 0 ), ), /* Align submenu toggle button with menu text for full screen sub menu */ '.ast-fullscreen-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle' => array( 'right' => esc_attr( 0 ), ), /** * Above Header Spacing */ // Above Header Spacing Top / Bottom Padding. '.ast-above-header' => array( 'padding-top' => astra_responsive_spacing( $above_header_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $above_header_spacing, 'bottom', 'mobile' ), ), // Above Header Spacing Left / Right Padding apply to inside container. '.ast-above-header-wrap .ast-above-header .ast-container, #masthead .ast-above-header-wrap .ast-above-header .ast-container' => array( 'padding-left' => astra_responsive_spacing( $above_header_spacing, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $above_header_spacing, 'right', 'mobile' ), ), /** * Above Header Menu Spacing */ '.ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu > .menu-item > .menu-link, .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu > .menu-item:first-child > .menu-link, .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu > .menu-item:last-child > .menu-link' => array( 'padding-top' => astra_responsive_spacing( $above_header_menu_spacing, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $above_header_menu_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $above_header_menu_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $above_header_menu_spacing, 'left', 'mobile' ), ), /** * Above Header Toggle Button Top */ '.ast-header-break-point .ast-above-header-navigation > ul > .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $above_header_menu_spacing, 'top', 'mobile' ), ), /** * Above Header Submenu Spacing */ '.ast-desktop .ast-above-header-navigation .ast-mm-custom-text-content, .ast-desktop .ast-above-header-navigation .ast-mm-template-content, .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item .sub-menu .menu-link, .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-link, .ast-above-header-enabled .ast-above-header-menu > .menu-item:first-child .sub-menu .menu-item .menu-link' => array( 'padding-top' => astra_responsive_spacing( $above_header_submenu_spacing, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $above_header_submenu_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $above_header_submenu_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $above_header_submenu_spacing, 'left', 'mobile' ), ), // Above Header Submenu level 2. '.ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $above_header_submenu_spacing, 'left', 'mobile' ), '+', '10', 'px' ), ), // Above Header Submenu level 3. '.ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $above_header_submenu_spacing, 'left', 'mobile' ), '+', '20', 'px' ), ), // Above Header Submenu level 4. '.ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $above_header_submenu_spacing, 'left', 'mobile' ), '+', '30', 'px' ), ), // Above Header Submenu level 5. '.ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link' => array( 'padding-left' => astra_calc_spacing( astra_responsive_spacing( $above_header_submenu_spacing, 'left', 'mobile' ), '+', '40', 'px' ), ), /* Padding right set to zero to all the menu elements that have submenu*/ '.ast-fullscreen-above-menu-enable.ast-header-break-point .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children > .menu-link, .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children > .menu-link, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children > .menu-link' => array( 'padding-right' => 0, ), /* Align submenu toggle button with menu text for menu */ '.ast-default-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $above_header_menu_spacing, 'top', 'mobile' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $above_header_menu_spacing, 'right', 'mobile' ), '-', '0.907', 'em' ), ), /* Align submenu toggle button with menu text for sub menu */ '.ast-default-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle' => array( 'top' => astra_responsive_spacing( $above_header_submenu_spacing, 'top', 'mobile' ), 'right' => astra_calc_spacing( astra_responsive_spacing( $above_header_submenu_spacing, 'right', 'mobile' ), '-', '0.907', 'em' ), ), /* Align submenu toggle button with menu text for full screen menu */ '.ast-fullscreen-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-fullscreen-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle' => array( 'right' => esc_attr( 0 ), ), /* Align submenu toggle button with menu text for full screen sub menu */ '.ast-fullscreen-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle' => array( 'right' => esc_attr( 0 ), ), /** * Footer Spacing */ // Footer Spacing Top / Bottom Padding. '.ast-footer-overlay' => array( 'padding-top' => astra_responsive_spacing( $footer_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $footer_spacing, 'bottom', 'mobile' ), ), // Footer Spacing Left / Right Padding to inside container. '.ast-small-footer .ast-container' => array( 'padding-left' => astra_responsive_spacing( $footer_spacing, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $footer_spacing, 'right', 'mobile' ), ), // Default margin for .ast-row is -20px, Managing Margin to fix repsonsive design. '.ast-small-footer .ast-row' => array( 'margin-left' => astra_responsive_spacing( $footer_spacing, 'left', 'mobile' ), 'margin-right' => astra_responsive_spacing( $footer_spacing, 'right', 'mobile' ), ), /** * Footer Menu Spacing */ '.ast-small-footer .nav-menu a, .footer-sml-layout-2 .ast-small-footer-section-1 .menu-item a, .footer-sml-layout-2 .ast-small-footer-section-2 .menu-item a' => array( 'padding-top' => astra_responsive_spacing( $footer_menu_spacing, 'top', 'mobile' ), 'padding-right' => astra_responsive_spacing( $footer_menu_spacing, 'right', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $footer_menu_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $footer_menu_spacing, 'left', 'mobile' ), ), ); $spacing_css_output .= astra_parse_css( $mobile_spacing, '', astra_addon_get_mobile_breakpoint() ); $remove_bottom_sire_brancing = array( '.ast-header-break-point .header-main-layout-2 .site-branding, .ast-header-break-point .ast-mobile-header-stack .ast-mobile-menu-buttons' => array( 'padding-bottom' => astra_get_css_value( 0, 'px' ), ), ); if ( isset( $header_spacing['mobile']['bottom'] ) && ( '' != $header_spacing['mobile']['bottom'] ) ) { $spacing_css_output .= astra_parse_css( $remove_bottom_sire_brancing, '', astra_addon_get_mobile_breakpoint() ); } } return $dynamic_css . $spacing_css_output; } classes/index.php 0000666 00000000170 15165501465 0010033 0 ustar 00 <?php /** * Index file * * @package Astra * @since Astra 1.2.0 */ /* Silence is golden, and we agree. */ classes/sections/class-astra-customizer-header-spacing-configs.php 0000666 00000010261 15165501465 0021472 0 ustar 00 <?php /** * Header Spacing Options for our theme. * * @package Astra * @link https://www.brainstormforce.com * @since Astra 1.4.3 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } /** * Customizer Sanitizes * * @since 1.4.3 */ if ( ! class_exists( 'Astra_Customizer_Header_Spacing_Configs' ) ) { /** * Register Header Spacing Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Header_Spacing_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Header Spacing Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option - Header Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-spacing]', 'default' => astra_get_option( 'header-spacing' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'transport' => 'postMessage', 'section' => 'section-header', 'priority' => 105, 'title' => __( 'Header Space', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), /** * Option - Primary Menu Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[primary-menu-spacing]', 'default' => astra_get_option( 'primary-menu-spacing' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'transport' => 'postMessage', 'section' => 'section-primary-menu', 'priority' => 110, 'title' => __( 'Menu Space', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), /** * Option - Primary Menu Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[primary-submenu-spacing]', 'default' => astra_get_option( 'primary-submenu-spacing' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'section-primary-menu', 'priority' => 115, 'title' => __( 'Submenu Space', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Header_Spacing_Configs(); classes/sections/class-astra-customizer-footer-small-spacing-configs.php 0000666 00000010121 15165501465 0022641 0 ustar 00 <?php /** * Footer Spacing Options for our theme. * * @package Astra * @link https://www.brainstormforce.com * @since Astra 1.4.3 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } /** * Customizer Sanitizes * * @since 1.4.3 */ if ( ! class_exists( 'Astra_Customizer_Footer_Small_Spacing_Configs' ) ) { /** * Register Footer Spacing Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Footer_Small_Spacing_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Footer Spacing Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option - Footer Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-sml-spacing]', 'default' => astra_get_option( 'footer-sml-spacing' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'section-footer-small', 'priority' => 90, 'title' => __( 'Footer Space', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[footer-sml-layout]', 'operator' => '!=', 'value' => 'disabled', ), ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), /** * Option - Footer Menu Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-menu-spacing]', 'default' => astra_get_option( 'footer-menu-spacing' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'section-footer-small', 'priority' => 90, 'title' => __( 'Menu Space', 'astra-addon' ), 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), 'context' => array( 'relation' => 'AND', astra_addon_builder_helper()->general_tab_config, array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[footer-sml-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[footer-sml-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Footer_Small_Spacing_Configs(); classes/sections/class-astra-customizer-single-post-spacing-configs.php 0000666 00000010722 15165501465 0022510 0 ustar 00 <?php /** * Single Post Spacing Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since Astra 3.5.0 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } /** * Customizer Sanitizes * * @since 3.5.0 */ if ( ! class_exists( 'Astra_Customizer_Single_Post_Spacing_Configs' ) ) { /** * Register Single Post Spacing Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Single_Post_Spacing_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Single Post Spacing Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 3.5.0 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[section-blog-single-spacing-divider]', 'section' => 'section-blog-single', 'title' => __( 'Container Spacing', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 24, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Single Post Spacing */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-outside-spacing]', 'default' => astra_get_option( 'single-post-outside-spacing' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'section-blog-single', 'title' => __( 'Outside', 'astra-addon' ), 'linked_choices' => true, 'transport' => 'postMessage', 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'priority' => 25, 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-section-divider' ), 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Single Post Margin */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-inside-spacing]', 'default' => astra_get_option( 'single-post-inside-spacing' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'section-blog-single', 'title' => __( 'Inside', 'astra-addon' ), 'linked_choices' => true, 'transport' => 'postMessage', 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'priority' => 30, 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by creating NEW instance. */ new Astra_Customizer_Single_Post_Spacing_Configs(); classes/sections/class-astra-customizer-blog-spacing-configs.php 0000666 00000013274 15165501465 0021174 0 ustar 00 <?php /** * Blog Spacing Options for our theme. * * @package Astra * @link https://www.brainstormforce.com * @since Astra 1.4.3 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } /** * Customizer Sanitizes * * @since 1.4.3 */ if ( ! class_exists( 'Astra_Customizer_Blog_Spacing_Configs' ) ) { /** * Register Blog Spacing Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Blog_Spacing_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Blog Spacing Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-post-layout-divider]', 'section' => 'section-blog', 'title' => __( 'Post Spacing', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 164, 'divider' => array( 'ast_class' => 'ast-bottom-spacing' ), 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Post Outside Spacing */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-post-outside-spacing]', 'default' => astra_get_option( 'blog-post-outside-spacing' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'transport' => 'postMessage', 'section' => 'section-blog', 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'priority' => 165, 'title' => __( 'Outside', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'divider' => array( 'ast_class' => 'ast-bottom-section-divider' ), ), /** * Option: Post Inside Spacing */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-post-inside-spacing]', 'default' => astra_get_option( 'blog-post-inside-spacing' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'transport' => 'postMessage', 'section' => 'section-blog', 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'priority' => 170, 'title' => __( 'Inside', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), /** * Option: Post Pagination Spacing */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-post-pagination-spacing]', 'default' => astra_get_option( 'blog-post-pagination-spacing' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'transport' => 'postMessage', 'section' => 'section-blog', 'priority' => 175, 'title' => __( 'Pagination', 'astra-addon' ), 'context' => array( 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab_config : astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-pagination]', 'operator' => '==', 'value' => 'number', ), ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Blog_Spacing_Configs(); classes/sections/class-astra-customizer-sidebar-spacing-configs.php 0000666 00000011271 15165501465 0021655 0 ustar 00 <?php /** * Sidebar Spacing Options for our theme. * * @package Astra * @link https://www.brainstormforce.com * @since Astra 1.4.3 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } /** * Customizer Sanitizes * * @since 1.4.3 */ if ( ! class_exists( 'Astra_Customizer_Sidebar_Spacing_Configs' ) ) { /** * Register Sidebar Spacing Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Sidebar_Spacing_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sidebar Spacing Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[sidebar-spacing-divider]', 'section' => 'section-sidebars', 'title' => __( 'Sidebar Spacing', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 25, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option - Sidebar Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[sidebar-outside-spacing]', 'default' => astra_get_option( 'sidebar-outside-spacing' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'section-sidebars', 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'priority' => 25, 'title' => __( 'Outside', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'divider' => array( 'ast_class' => 'ast-bottom-section-divider ast-section-spacing' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), /** * Option - Two Boxed Sidebar Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[sidebar-inside-spacing]', 'default' => astra_get_option( 'sidebar-inside-spacing' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'section-sidebars', 'priority' => 25, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'title' => __( 'Inside', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), ); if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { $_configs[] = array( 'name' => 'section-sidebars-ast-context-tabs', 'section' => 'section-sidebars', 'type' => 'control', 'control' => 'ast-builder-header-control', 'priority' => 0, 'description' => '', ); } return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Sidebar_Spacing_Configs(); classes/sections/index.php 0000666 00000000170 15165501465 0011662 0 ustar 00 <?php /** * Index file * * @package Astra * @since Astra 1.2.0 */ /* Silence is golden, and we agree. */ classes/sections/class-astra-customizer-below-header-spacing-configs.php 0000666 00000013555 15165501465 0022611 0 ustar 00 <?php /** * Below Header Spacing Options for our theme. * * @package Astra * @link https://www.brainstormforce.com * @since Astra 1.4.3 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } /** * Customizer Sanitizes * * @since 1.4.3 */ if ( ! class_exists( 'Astra_Customizer_Below_Header_Spacing_Configs' ) ) { /** * Register Below Header Spacing Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Below_Header_Spacing_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Below Header Spacing Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option - Below Header Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[below-header-spacing]', 'default' => astra_get_option( 'below-header-spacing' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'transport' => 'postMessage', 'section' => 'section-below-header', 'priority' => 155, 'title' => __( 'Header Space', 'astra-addon' ), 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), 'context' => array( array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-layout]', 'operator' => '!=', 'value' => 'disabled', ), ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), /** * Option - Below Header Menu Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[below-header-menu-spacing]', 'default' => astra_get_option( 'below-header-menu-spacing' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'transport' => 'postMessage', 'section' => 'section-below-header', 'priority' => 160, 'title' => __( 'Menu Space', 'astra-addon' ), 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), 'context' => array( 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-layout]', 'operator' => '!=', 'value' => 'disabled', ), array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), /** * Option - Below Header Subenu Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[below-header-submenu-spacing]', 'default' => astra_get_option( 'below-header-submenu-spacing' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'section-below-header', 'priority' => 165, 'title' => __( 'Submenu Space', 'astra-addon' ), 'context' => array( 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-layout]', 'operator' => '!=', 'value' => 'disabled', ), array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Below_Header_Spacing_Configs(); classes/sections/class-astra-customizer-site-identity-spacing-configs.php 0000666 00000011026 15165501465 0023035 0 ustar 00 <?php /** * Site Identity Spacing Options for our theme. * * @package Astra * @link https://www.brainstormforce.com * @since Astra 1.4.3 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } /** * Customizer Sanitizes * * @since 1.4.3 */ if ( ! class_exists( 'Astra_Customizer_Site_Identity_Spacing_Configs' ) ) { /** * Register Site Identity Spacing Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Site_Identity_Spacing_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Site Identity Spacing Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-site-identity-spacing]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'title_tagline', 'title' => __( 'Spacing', 'astra-addon' ), 'context' => array( 'relation' => 'AND', astra_addon_builder_helper()->general_tab_config, array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-title-responsive]', 'setting-key' => 'desktop', 'operator' => '!=', 'value' => 0, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-title-responsive]', 'setting-key' => 'tablet', 'operator' => '!=', 'value' => 0, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-title-responsive]', 'setting-key' => 'mobile', 'operator' => '!=', 'value' => 0, ), array( 'setting' => 'custom_logo', 'operator' => '!=', 'value' => '', ), ), ), 'priority' => 50, 'settings' => array(), ), /** * Option - Header Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-identity-spacing]', 'default' => astra_get_option( 'site-identity-spacing' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'title_tagline', 'priority' => 50, 'title' => __( 'Site Identity Space', 'astra-addon' ), 'context' => array( 'relation' => 'AND', astra_addon_builder_helper()->general_tab_config, array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-title-responsive]', 'setting-key' => 'desktop', 'operator' => '!=', 'value' => 0, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-title-responsive]', 'setting-key' => 'tablet', 'operator' => '!=', 'value' => 0, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-title-responsive]', 'setting-key' => 'mobile', 'operator' => '!=', 'value' => 0, ), array( 'setting' => 'custom_logo', 'operator' => '!=', 'value' => '', ), ), ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Site_Identity_Spacing_Configs(); classes/sections/class-astra-customizer-header-builder-menu-configs.php 0000666 00000027000 15165501465 0022435 0 ustar 00 <?php /** * Content Spacing Options for our theme. * * @package Astra * @link https://www.brainstormforce.com * @since Astra 1.4.3 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } /** * Customizer Sanitizes * * @since 1.4.3 */ if ( ! class_exists( 'Astra_Customizer_Header_Builder_Menu_Configs' ) ) { /** * Register Content Spacing Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Header_Builder_Menu_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Content Spacing Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $html_config = array(); $component_limit = astra_addon_builder_helper()->component_limit; for ( $index = 1; $index <= $component_limit; $index++ ) { $_section = 'section-hb-menu-' . $index; $_prefix = 'menu' . $index; $_configs = array( // Option - Primary Sub Menu Space. array( 'name' => ASTRA_THEME_SETTINGS . '[header-' . $_prefix . '-submenu-spacing]', 'default' => astra_get_option( 'header-' . $_prefix . '-submenu-spacing' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => $_section, 'priority' => 160, 'title' => __( 'Submenu', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'context' => astra_addon_builder_helper()->design_tab, 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), ); $html_config[] = $_configs; if ( 3 > $index ) { $_configs = array( // Option - Megamenu Heading Space. array( 'name' => ASTRA_THEME_SETTINGS . '[header-' . $_prefix . '-megamenu-heading-space]', 'default' => astra_get_option( 'header-' . $_prefix . '-megamenu-heading-space' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'priority' => 170, 'title' => __( 'Megamenu Heading', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'section' => $_section, 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'context' => astra_addon_builder_helper()->design_tab, 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), ); $html_config[] = $_configs; } } $html_config[] = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[section-hb-language-switcher-item-spacing-divider]', 'section' => 'section-hb-language-switcher', 'title' => __( 'Spacing', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 320, 'settings' => array(), 'context' => astra_addon_builder_helper()->design_tab, ), /** * Option: Item Spacing */ array( 'name' => ASTRA_THEME_SETTINGS . '[section-hb-language-switcher-item-spacing]', 'default' => astra_get_option( 'section-hb-language-switcher-item-spacing' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'section' => 'section-hb-language-switcher', 'priority' => 320, 'title' => __( 'Item Spacing', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'divider' => array( 'ast_class' => 'ast-bottom-section-divider ast-section-spacing' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'context' => astra_addon_builder_helper()->design_tab, ), /** * Option: Margin Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[section-hb-language-switcher-margin]', 'default' => astra_get_option( 'section-hb-language-switcher-margin' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'section' => 'section-hb-language-switcher', 'priority' => 330, 'title' => __( 'Margin', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'context' => astra_addon_builder_helper()->design_tab, ), ); $html_config[] = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[section-fb-language-switcher-item-spacing-divider]', 'section' => 'section-fb-language-switcher', 'title' => __( 'Spacing', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 320, 'settings' => array(), 'context' => astra_addon_builder_helper()->design_tab, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Item Spacing */ array( 'name' => ASTRA_THEME_SETTINGS . '[section-fb-language-switcher-item-spacing]', 'default' => astra_get_option( 'section-fb-language-switcher-item-spacing' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'section' => 'section-fb-language-switcher', 'priority' => 320, 'title' => __( 'Item Spacing', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'context' => astra_addon_builder_helper()->design_tab, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Margin Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[section-fb-language-switcher-margin]', 'default' => astra_get_option( 'section-fb-language-switcher-margin' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'section' => 'section-fb-language-switcher', 'priority' => 330, 'title' => __( 'Margin', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'context' => astra_addon_builder_helper()->design_tab, 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), ); /** * Mobile Menu - Spacing. */ $html_config[] = array( // Option - Primary Sub Menu Space. array( 'name' => ASTRA_THEME_SETTINGS . '[header-mobile-menu-submenu-spacing]', 'default' => astra_get_option( 'header-mobile-menu-submenu-spacing' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'section-header-mobile-menu', 'priority' => 160, 'title' => __( 'Submenu Spacing', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'context' => astra_addon_builder_helper()->design_tab, 'divider' => array( 'ast_class' => 'ast-bottom-section-divider' ), ), // Option - Account Menu Space. array( 'name' => ASTRA_THEME_SETTINGS . '[header-account-menu-spacing]', 'default' => astra_get_option( 'header-account-menu-spacing' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'transport' => 'postMessage', 'section' => 'section-header-account', 'priority' => 510, 'title' => __( 'Menu Spacing', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'divider' => array( 'ast_class' => 'ast-bottom-section-divider ast-section-spacing' ), 'context' => array( array( 'setting' => ASTRA_THEME_SETTINGS . '[header-account-action-type]', 'operator' => '==', 'value' => 'menu', ), astra_addon_builder_helper()->design_tab_config, ), ), ); $html_config = call_user_func_array( 'array_merge', $html_config + array( array() ) ); $configurations = array_merge( $configurations, $html_config ); return $configurations; } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Header_Builder_Menu_Configs(); classes/sections/class-astra-customizer-above-header-spacing-configs.php 0000666 00000012662 15165501465 0022573 0 ustar 00 <?php /** * Above Header Spacing Options for our theme. * * @package Astra * @link https://www.brainstormforce.com * @since Astra 1.4.3 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } /** * Customizer Sanitizes * * @since 1.4.3 */ if ( ! class_exists( 'Astra_Customizer_Above_Header_Spacing_Configs' ) ) { /** * Register Above Header Spacing Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Above_Header_Spacing_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Above Header Spacing Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option - Above Header Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[above-header-spacing]', 'default' => astra_get_option( 'above-header-spacing' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'transport' => 'postMessage', 'section' => 'section-above-header', 'priority' => 160, 'title' => __( 'Header Space', 'astra-addon' ), 'context' => array( array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-layout]', 'operator' => '!=', 'value' => 'disabled', ), ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), /** * Option - Above Header Menu Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[above-header-menu-spacing]', 'default' => astra_get_option( 'above-header-menu-spacing' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'transport' => 'postMessage', 'section' => 'section-above-header', 'priority' => 165, 'title' => __( 'Menu Space', 'astra-addon' ), 'context' => array( 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-layout]', 'operator' => '!=', 'value' => 'disabled', ), array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), /** * Option - Above Header Submenu Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[above-header-submenu-spacing]', 'default' => astra_get_option( 'above-header-submenu-spacing' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'transport' => 'postMessage', 'section' => 'section-above-header', 'priority' => 170, 'title' => __( 'Submenu Space', 'astra-addon' ), 'context' => array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Above_Header_Spacing_Configs(); classes/sections/class-astra-customizer-container-layout-spacing-configs.php 0000666 00000012445 15165501465 0023545 0 ustar 00 <?php /** * Content Spacing Options for our theme. * * @package Astra * @link https://www.brainstormforce.com * @since Astra 1.4.3 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } /** * Customizer Sanitizes * * @since 1.4.3 */ if ( ! class_exists( 'Astra_Customizer_Container_Layout_Spacing_Configs' ) ) { /** * Register Content Spacing Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Container_Layout_Spacing_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Content Spacing Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[container-spacing-layout-divider]', 'section' => 'section-container-layout', 'title' => __( 'Container Spacing', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 90, 'divider' => array( 'ast_class' => 'ast-bottom-spacing' ), 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option - Content Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[container-outside-spacing]', 'default' => astra_get_option( 'container-outside-spacing' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'transport' => 'postMessage', 'section' => 'section-container-layout', 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'priority' => 95, 'title' => __( 'Outside', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), /** * Option - Content Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[container-inside-spacing]', 'default' => astra_get_option( 'container-inside-spacing' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'transport' => 'postMessage', 'section' => 'section-container-layout', 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), 'priority' => 100, 'title' => __( 'Inside', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), ); if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { array_push( $_configs, /** * Option: Container Tabs */ array( 'name' => 'section-container-layout-ast-context-tabs', 'section' => 'section-container-layout', 'type' => 'control', 'control' => 'ast-builder-header-control', 'priority' => 0, 'description' => '', ) ); } else { array_push( $_configs, /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[content-spacing-divider]', 'section' => 'section-container-layout', 'type' => 'control', 'control' => 'ast-heading', 'title' => __( 'Spacing', 'astra-addon' ), 'priority' => 90, 'settings' => array(), 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ) ); } return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Container_Layout_Spacing_Configs(); classes/class-astra-ext-spacing-loader.php 0000666 00000040541 15165501465 0014633 0 ustar 00 <?php /** * Spacing - Customizer. * * @package Astra * @since 1.2.0 */ if ( ! class_exists( 'Astra_Ext_Spacing_Loader' ) ) { /** * Customizer Initialization * * @since 1.2.0 */ // @codingStandardsIgnoreStart class Astra_Ext_Spacing_Loader { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Member Variable * * @var instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { add_filter( 'astra_theme_defaults', array( $this, 'theme_defaults' ) ); add_action( 'customize_register', array( $this, 'new_customize_register' ), 2 ); add_action( 'customize_preview_init', array( $this, 'preview_scripts' ) ); add_action( 'body_class', array( $this, 'add_body_class' ) ); } /** * Set Options Default Values * * @param array $defaults Astra options default value array. * @return array */ public function theme_defaults( $defaults ) { $defaults['header-account-menu-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', ); $defaults['container-outside-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '1.5', 'right' => '0', 'bottom' => '1.5', 'left' => '0', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'em', 'mobile-unit' => 'px', ); $defaults['container-inside-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '1.5', 'right' => '2.14', 'bottom' => '1.5', 'left' => '2.14', ), 'mobile' => array( 'top' => '1.5', 'right' => '1', 'bottom' => '1.5', 'left' => '1', ), 'desktop-unit' => 'px', 'tablet-unit' => 'em', 'mobile-unit' => 'em', ); $defaults['sidebar-outside-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '1.5', 'right' => '1', 'bottom' => '1.5', 'left' => '1', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'em', 'mobile-unit' => 'px', ); $defaults['sidebar-inside-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', ); $defaults['blog-post-outside-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', ); $defaults['blog-post-inside-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', ); $defaults['blog-post-pagination-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', ); $defaults['header-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '1.5', 'right' => '', 'bottom' => '1.5', 'left' => '', ), 'mobile' => array( 'top' => '1', 'right' => '', 'bottom' => '1', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'em', 'mobile-unit' => 'em', ); $defaults['sticky-header-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', ); $defaults['footer-sml-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '2', 'right' => '', 'bottom' => '2', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'em', 'mobile-unit' => 'px', ); $defaults['primary-menu-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '0', 'right' => '20', 'bottom' => '0', 'left' => '20', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['primary-submenu-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '0', 'right' => '20', 'bottom' => '0', 'left' => '30', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['above-header-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '0', 'right' => '', 'bottom' => '0', 'left' => '', ), 'mobile' => array( 'top' => '0.5', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'em', ); $defaults['above-header-menu-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '0', 'right' => '20', 'bottom' => '0', 'left' => '20', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['above-header-submenu-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '0', 'right' => '20', 'bottom' => '0', 'left' => '20', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['below-header-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '1', 'right' => '', 'bottom' => '1', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'em', 'mobile-unit' => 'px', ); $defaults['below-header-menu-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '0', 'right' => '20', 'bottom' => '0', 'left' => '20', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['below-header-submenu-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '0', 'right' => '20', 'bottom' => '0', 'left' => '20', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['footer-menu-spacing'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '0', 'right' => '.5', 'bottom' => '0', 'left' => '.5', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'em', 'mobile-unit' => 'px', ); $defaults['single-post-inside-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', ); $defaults['section-hb-language-switcher-item-spacing'] = array( 'desktop' => array( 'top' => '10', 'right' => '10', 'bottom' => '10', 'left' => '10', ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['section-fb-language-switcher-item-spacing'] = array( 'desktop' => array( 'top' => '10', 'right' => '10', 'bottom' => '10', 'left' => '10', ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); return $defaults; } /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function new_customize_register( $wp_customize ) { /** * Sections */ require_once ASTRA_ADDON_EXT_SPACING_DIR . 'classes/sections/class-astra-customizer-container-layout-spacing-configs.php'; if ( astra_addon_existing_header_footer_configs() ) { require_once ASTRA_ADDON_EXT_SPACING_DIR . 'classes/sections/class-astra-customizer-header-spacing-configs.php'; require_once ASTRA_ADDON_EXT_SPACING_DIR . 'classes/sections/class-astra-customizer-above-header-spacing-configs.php'; require_once ASTRA_ADDON_EXT_SPACING_DIR . 'classes/sections/class-astra-customizer-below-header-spacing-configs.php'; require_once ASTRA_ADDON_EXT_SPACING_DIR . 'classes/sections/class-astra-customizer-footer-small-spacing-configs.php'; require_once ASTRA_ADDON_EXT_SPACING_DIR . 'classes/sections/class-astra-customizer-site-identity-spacing-configs.php'; } else { require_once ASTRA_ADDON_EXT_SPACING_DIR . 'classes/sections/class-astra-customizer-header-builder-menu-configs.php'; } require_once ASTRA_ADDON_EXT_SPACING_DIR . 'classes/sections/class-astra-customizer-sidebar-spacing-configs.php'; require_once ASTRA_ADDON_EXT_SPACING_DIR . 'classes/sections/class-astra-customizer-blog-spacing-configs.php'; require_once ASTRA_ADDON_EXT_SPACING_DIR . 'classes/sections/class-astra-customizer-single-post-spacing-configs.php'; } /** * Customizer Preview */ public function preview_scripts() { if ( SCRIPT_DEBUG ) { wp_enqueue_script( 'astra-ext-spacing-customize-preview-js', ASTRA_ADDON_EXT_SPACING_URL . 'assets/js/unminified/customizer-preview.js', array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_EXT_VER, true ); } else { wp_enqueue_script( 'astra-ext-spacing-customize-preview-js', ASTRA_ADDON_EXT_SPACING_URL . 'assets/js/minified/customizer-preview.min.js', array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_EXT_VER, true ); } $localize_array = array( 'blog_pro_enabled' => Astra_Ext_Extension::is_active( 'blog-pro' ), 'tablet_break_point' => astra_addon_get_tablet_breakpoint(), 'mobile_break_point' => astra_addon_get_mobile_breakpoint(), 'component_limit' => astra_addon_builder_helper()->component_limit, 'astra_not_updated' => version_compare( ASTRA_THEME_VERSION, '3.2.0', '<' ), ); wp_localize_script( 'astra-ext-spacing-customize-preview-js', 'ast_preview', $localize_array ); } /** * Add Body Classes * * @param array $classes Body Class Array. * @return array */ public function add_body_class( $classes ) { /** * Add class for header width */ $header_content_layout = astra_get_option( 'header-main-layout-width' ); if ( 'full' == $header_content_layout ) { $classes[] = 'ast-full-width-header'; } return $classes; } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Spacing_Loader::get_instance(); class-astra-ext-spacing.php 0000666 00000002741 15165501465 0011732 0 ustar 00 <?php /** * Spacing Extension * * @package Astra Addon */ define( 'ASTRA_ADDON_EXT_SPACING_DIR', ASTRA_EXT_DIR . 'addons/spacing/' ); define( 'ASTRA_ADDON_EXT_SPACING_URL', ASTRA_EXT_URI . 'addons/spacing/' ); if ( ! class_exists( 'Astra_Ext_Spacing' ) ) { /** * Spacing Initial Setup * * @since 1.2.0 */ // @codingStandardsIgnoreStart class Astra_Ext_Spacing { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Member Variable * * @var object instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor function that initializes required actions and hooks */ public function __construct() { // Astra_Control_Responsive_Spacing introduced in Astra 1.2.0. // If found older version then do not load any settings from customizer. if ( version_compare( ASTRA_THEME_VERSION, '1.2.0', '>=' ) ) { require_once ASTRA_ADDON_EXT_SPACING_DIR . 'classes/class-astra-ext-spacing-loader.php'; // Include front end files. if ( ! is_admin() ) { require_once ASTRA_ADDON_EXT_SPACING_DIR . 'classes/dynamic.css.php'; } } } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Spacing::get_instance(); assets/js/unminified/customizer-preview.js 0000666 00000227436 15165501465 0015064 0 ustar 00 /** * This file adds some LIVE to the Theme 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. */ ( function( $ ) { /** * Header Spacing */ astra_responsive_spacing( 'astra-settings[header-spacing]','.main-header-bar, .ast-header-break-point .main-header-bar, .ast-header-break-point .header-main-layout-2 .main-header-bar', 'padding', ['top', 'bottom' ] ); astra_responsive_spacing( 'astra-settings[header-spacing]','#masthead .ast-container, .main-header-bar .ast-container', 'padding', ['right', 'left' ] ); // Remove padding bottom to header elements if padding bottom is given to header. wp.customize( 'astra-settings[header-spacing]', function( value ) { value.bind( function( padding ) { if( padding.desktop.bottom != '' || padding.tablet.bottom != '' || padding.mobile.bottom != '' ) { var dynamicStyle = ''; dynamicStyle += '.ast-header-break-point .site-branding, .ast-header-break-point .ast-mobile-menu-buttons, .ast-header-break-point.ast-header-custom-item-outside .ast-masthead-custom-menu-items, .ast-header-break-point .header-main-layout-2 .ast-mobile-menu-buttons { padding-bottom: 0px;} '; dynamicStyle += '@media (max-width: 768px) { .ast-header-break-point .main-header-bar .main-header-bar-navigation { padding-top:' + padding['tablet']['bottom'] + padding['tablet-unit'] + ';} }'; dynamicStyle += '@media (max-width: 544px) { .ast-header-break-point .main-header-bar .main-header-bar-navigation { padding-top:' + padding['mobile']['bottom'] + padding['mobile-unit'] + ';} }'; astra_add_dynamic_css( 'remove-add-header-spacing', dynamicStyle ); } } ); } ); // Account Menu Spacing. astra_responsive_spacing( 'astra-settings[header-account-menu-spacing]', '.ast-header-account-wrap .menu-item .menu-link', 'padding', ['top', 'right', 'bottom', 'left' ] ); wp.customize( 'astra-settings[header-account-menu-spacing]', function( value ) { value.bind( function( padding ) { var dynamicStyle = ''; dynamicStyle += '.ast-header-account-wrap .main-header-menu.ast-account-nav-menu .menu-item .menu-link, .ast-advanced-headers .ast-header-account-wrap .main-header-menu.ast-account-nav-menu .menu-item .menu-link {'; dynamicStyle += 'padding-left: ' + padding['desktop']['left'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-right: ' + padding['desktop']['right'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-top: ' + padding['desktop']['top'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + padding['desktop']['bottom'] + padding['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) {'; dynamicStyle += '.ast-header-break-point .ast-header-account-wrap .menu-item .menu-link {'; dynamicStyle += 'padding-left: ' + padding['tablet']['left'] + padding['tablet-unit'] + ';'; dynamicStyle += 'padding-right: ' + padding['tablet']['right'] + padding['tablet-unit'] + ';'; dynamicStyle += 'padding-top: ' + padding['tablet']['top'] + padding['tablet-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + padding['tablet']['bottom'] + padding['tablet-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) {'; dynamicStyle += '.ast-header-break-point .ast-header-account-wrap .menu-item .menu-link {'; dynamicStyle += 'padding-left: ' + padding['mobile']['left'] + padding['mobile-unit'] + ';'; dynamicStyle += 'padding-right: ' + padding['mobile']['right'] + padding['mobile-unit'] + ';'; dynamicStyle += 'padding-top: ' + padding['mobile']['top'] + padding['mobile-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + padding['mobile']['bottom'] + padding['mobile-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; astra_add_dynamic_css( 'header-account-menu-spacing', dynamicStyle ); } ); } ); /** * Primary Menu Spacing */ astra_responsive_spacing( 'astra-settings[primary-menu-spacing]', '.main-navigation ul li a, .ast-header-break-point .main-navigation ul li a, .ast-header-break-point li.ast-masthead-custom-menu-items, li.ast-masthead-custom-menu-items', 'padding', ['top', 'right', 'bottom', 'left' ] ); wp.customize( 'astra-settings[primary-menu-spacing]', function( value ) { value.bind( function( padding ) { var dynamicStyle = ''; // Default Primary Menu Dropdown style. dynamicStyle += ' .ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle{ top:' + padding['desktop']['top'] + padding['desktop-unit'] + '; right:calc( ' + padding['desktop']['right'] + padding['desktop-unit'] + ' - 0.907em );} '; dynamicStyle += '@media (max-width: 768px) { .ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle{ top:' + padding['tablet']['top'] + padding['tablet-unit'] + '; right:calc( ' + padding['tablet']['right'] + padding['tablet-unit'] + ' - 0.907em );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle{ top:' + padding['mobile']['top'] + padding['mobile-unit'] + '; right:calc( ' + padding['mobile']['right'] + padding['mobile-unit'] + ' - 0.907em );} }'; // Default Primary Menu Flyout style. dynamicStyle += ' .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu > .menu-item-has-children > .ast-menu-toggle{ right:calc( ' + padding['desktop']['right'] + padding['desktop-unit'] + ' - 0.907em );} '; dynamicStyle += '@media (max-width: 768px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu > .menu-item-has-children > .ast-menu-toggle{ right:calc( ' + padding['tablet']['right'] + padding['tablet-unit'] + ' - 0.907em );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu > .menu-item-has-children > .ast-menu-toggle{ right:calc( ' + padding['mobile']['right'] + padding['mobile-unit'] + ' - 0.907em );} }'; dynamicStyle += ' .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle{ top:' + padding['desktop']['top'] + padding['desktop-unit'] + ';}'; dynamicStyle += '@media (max-width: 768px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle{ top:' + padding['tablet']['top'] + padding['tablet-unit'] + ';} }'; dynamicStyle += '@media (max-width: 544px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle{ top:' + padding['mobile']['top'] + padding['mobile-unit'] + ';} }'; astra_add_dynamic_css( 'add-mobile-header-layout-menu-spacing', dynamicStyle ); } ); } ); /** * Primary Submenu Spacing */ astra_responsive_spacing( 'astra-settings[primary-submenu-spacing]', '.ast-desktop .main-navigation .ast-mm-template-content, .ast-desktop .main-navigation .ast-mm-custom-text-content, .main-navigation .sub-menu .menu-item .menu-link, .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-link, .ast-default-menu-enable.ast-header-break-point .main-navigation .sub-menu .menu-item.menu-item-has-children > .menu-link', 'padding', ['top', 'right', 'bottom', 'left' ] ); wp.customize( 'astra-settings[primary-submenu-spacing]', function( value ) { value.bind( function( padding ) { var dynamicStyle = ''; // Default Primary Menu Dropdown style. dynamicStyle += ' .ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle{ top:' + padding['desktop']['top'] + padding['desktop-unit'] + '; right:calc( ' + padding['desktop']['right'] + padding['desktop-unit'] + ' - 0.907em );} '; dynamicStyle += '@media (max-width: 768px) { .ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle{ top:' + padding['tablet']['top'] + padding['tablet-unit'] + '; right:calc( ' + padding['tablet']['right'] + padding['tablet-unit'] + ' - 0.907em );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle{ top:' + padding['mobile']['top'] + padding['mobile-unit'] + '; right:calc( ' + padding['mobile']['right'] + padding['mobile-unit'] + ' - 0.907em );} }'; // Submenu level 2 support. dynamicStyle += '@media (max-width: 768px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-link{padding-left:calc( ' + padding['tablet']['left'] + padding['tablet-unit'] + ' + 10px );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-link{padding-left:calc( ' + padding['mobile']['left'] + padding['mobile-unit'] + ' + 10px );} }'; // Submenu level 3 support. dynamicStyle += '@media (max-width: 768px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-link{padding-left:calc( ' + padding['tablet']['left'] + padding['tablet-unit'] + ' + 20px );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-link{padding-left:calc( ' + padding['mobile']['left'] + padding['mobile-unit'] + ' + 20px );} }'; // Submenu level 4 support. dynamicStyle += '@media (max-width: 768px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link{padding-left:calc( ' + padding['tablet']['left'] + padding['tablet-unit'] + ' + 30px );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link{padding-left:calc( ' + padding['mobile']['left'] + padding['mobile-unit'] + ' + 30px );} }'; // Submenu level 5 support. dynamicStyle += '@media (max-width: 768px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-link{padding-left:calc( ' + padding['tablet']['left'] + padding['tablet-unit'] + ' + 40px );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-link{padding-left:calc( ' + padding['mobile']['left'] + padding['mobile-unit'] + ' + 40px );} }'; // Default Primary Menu Flyout style. dynamicStyle += ' .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle{ right:calc( ' + padding['desktop']['right'] + padding['desktop-unit'] + ' - 0.907em );} '; dynamicStyle += '@media (max-width: 768px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle{ right:calc( ' + padding['tablet']['right'] + padding['tablet-unit'] + ' - 0.907em );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle{ right:calc( ' + padding['mobile']['right'] + padding['mobile-unit'] + ' - 0.907em );} }'; dynamicStyle += ' .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children .sub-menu .ast-menu-toggle{ top:' + padding['desktop']['top'] + padding['desktop-unit'] + ';}'; dynamicStyle += '@media (max-width: 768px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children .sub-menu .ast-menu-toggle{ top:' + padding['tablet']['top'] + padding['tablet-unit'] + ';} }'; dynamicStyle += '@media (max-width: 544px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children .sub-menu .ast-menu-toggle{ top:' + padding['mobile']['top'] + padding['mobile-unit'] + ';} }'; astra_add_dynamic_css( 'add-mobile-header-layout-submenu-spacing', dynamicStyle ); } ); } ); /** * Below Header Spacing */ astra_responsive_spacing( 'astra-settings[below-header-spacing]','.ast-below-header, .ast-header-break-point .ast-below-header', 'padding', ['top', 'bottom' ] ); astra_responsive_spacing( 'astra-settings[below-header-spacing]','.ast-below-header .ast-container, #masthead .ast-below-header .ast-container', 'padding', ['right', 'left' ] ); /** * Below Header Menu Spacing */ astra_responsive_spacing( 'astra-settings[below-header-menu-spacing]', '.ast-below-header-menu .menu-link, .below-header-nav-padding-support .below-header-section-1 .below-header-menu > .menu-item > .menu-link, .below-header-nav-padding-support .below-header-section-2 .below-header-menu > .menu-item > .menu-link, .ast-header-break-point .ast-below-header-actual-nav > .ast-below-header-menu > .menu-item > .menu-link', 'padding', ['top', 'right', 'bottom', 'left' ] ); wp.customize( 'astra-settings[below-header-menu-spacing]', function( value ) { value.bind( function( padding ) { var dynamicStyle = ''; // Default Primary Menu Dropdown / Fluout style. dynamicStyle += ' .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle{ top:' + padding['desktop']['top'] + padding['desktop-unit'] + '; right:calc( ' + padding['desktop']['right'] + padding['desktop-unit'] + ' - 0.907em );} '; dynamicStyle += '@media (max-width: 768px) { .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle{ top:' + padding['tablet']['top'] + padding['tablet-unit'] + '; right:calc( ' + padding['tablet']['right'] + padding['tablet-unit'] + ' - 0.907em );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle{ top:' + padding['mobile']['top'] + padding['mobile-unit'] + '; right:calc( ' + padding['mobile']['right'] + padding['mobile-unit'] + ' - 0.907em );} }'; astra_add_dynamic_css( 'add-below-mobile-header-layout-menu-spacing', dynamicStyle ); } ); } ); /** * Below Header Submenu Spacing */ astra_responsive_spacing( 'astra-settings[below-header-submenu-spacing]', '.ast-desktop .ast-below-header-menu .ast-mm-template-content, .ast-desktop .ast-below-header-menu .ast-mm-custom-text-content,.ast-below-header-menu .sub-menu .menu-link, .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-link', 'padding', ['top', 'right', 'bottom', 'left' ] ); wp.customize( 'astra-settings[below-header-submenu-spacing]', function( value ) { value.bind( function( padding ) { var dynamicStyle = ''; // Default Primary Menu Dropdown / Fluout style. dynamicStyle += ' .ast-default-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle{ top:' + padding['desktop']['top'] + padding['desktop-unit'] + '; right:calc( ' + padding['desktop']['right'] + padding['desktop-unit'] + ' - 0.907em );} '; dynamicStyle += '@media (max-width: 768px) { .ast-default-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle{ top:' + padding['tablet']['top'] + padding['tablet-unit'] + '; right:calc( ' + padding['tablet']['right'] + padding['tablet-unit'] + ' - 0.907em );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-default-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle{ top:' + padding['mobile']['top'] + padding['mobile-unit'] + '; right:calc( ' + padding['mobile']['right'] + padding['mobile-unit'] + ' - 0.907em );} }'; // Submenu level 2 support. dynamicStyle += '@media (max-width: 768px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item{padding-left:calc( ' + padding['tablet']['left'] + padding['tablet-unit'] + ' + 10px );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item{padding-left:calc( ' + padding['mobile']['left'] + padding['mobile-unit'] + ' + 10px );} }'; // Submenu level 3 support. dynamicStyle += '@media (max-width: 768px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item{padding-left:calc( ' + padding['tablet']['left'] + padding['tablet-unit'] + ' + 20px );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item{padding-left:calc( ' + padding['mobile']['left'] + padding['mobile-unit'] + ' + 20px );} }'; // Submenu level 4 support. dynamicStyle += '@media (max-width: 768px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item{padding-left:calc( ' + padding['tablet']['left'] + padding['tablet-unit'] + ' + 30px );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item{padding-left:calc( ' + padding['mobile']['left'] + padding['mobile-unit'] + ' + 30px );} }'; // Submenu level 5 support. dynamicStyle += '@media (max-width: 768px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-item{padding-left:calc( ' + padding['tablet']['left'] + padding['tablet-unit'] + ' + 40px );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-item{padding-left:calc( ' + padding['mobile']['left'] + padding['mobile-unit'] + ' + 40px );} }'; astra_add_dynamic_css( 'add-below-mobile-header-layout-submenu-spacing', dynamicStyle ); } ); } ); /** * Above Header Spacing */ astra_responsive_spacing( 'astra-settings[above-header-spacing]','.ast-above-header', 'padding', ['top', 'bottom' ] ); astra_responsive_spacing( 'astra-settings[above-header-spacing]','.ast-above-header-wrap .ast-above-header .ast-container, #masthead .ast-above-header-wrap .ast-above-header .ast-container', 'padding', ['right', 'left' ] ); /** * Above Header Menu Spacing */ astra_responsive_spacing( 'astra-settings[above-header-menu-spacing]', '.ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu > .menu-item > .menu-link, .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu > .menu-item:first-child > .menu-link, .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu > .menu-item:last-child > .menu-link', 'padding', ['top', 'right', 'bottom', 'left' ] ); wp.customize( 'astra-settings[above-header-menu-spacing]', function( value ) { value.bind( function( padding ) { var dynamicStyle = ''; // Default Primary Menu Dropdown / Fluout style. dynamicStyle += ' .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle{ top:' + padding['desktop']['top'] + padding['desktop-unit'] + '; right:calc( ' + padding['desktop']['right'] + padding['desktop-unit'] + ' - 0.907em );} '; dynamicStyle += '@media (max-width: 768px) { .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle{ top:' + padding['tablet']['top'] + padding['tablet-unit'] + '; right:calc( ' + padding['tablet']['right'] + padding['tablet-unit'] + ' - 0.907em );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle{ top:' + padding['mobile']['top'] + padding['mobile-unit'] + '; right:calc( ' + padding['mobile']['right'] + padding['mobile-unit'] + ' - 0.907em );} }'; astra_add_dynamic_css( 'add-above-mobile-header-layout-menu-spacing', dynamicStyle ); } ); } ); /** * Above Header Subenu Spacing */ astra_responsive_spacing( 'astra-settings[above-header-submenu-spacing]', '.ast-desktop .ast-above-header-navigation .ast-mm-custom-text-content, .ast-desktop .ast-above-header-navigation .ast-mm-template-content, .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item .sub-menu .menu-link, .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-link, .ast-above-header-enabled .ast-above-header-menu > .menu-item:first-child .sub-menu .menu-item .menu-link', 'padding', ['top', 'right', 'bottom', 'left' ] ); wp.customize( 'astra-settings[above-header-submenu-spacing]', function( value ) { value.bind( function( padding ) { var dynamicStyle = ''; // Default Primary Menu Dropdown / Fluout style. dynamicStyle += ' .ast-default-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle{ top:' + padding['desktop']['top'] + padding['desktop-unit'] + '; right:calc( ' + padding['desktop']['right'] + padding['desktop-unit'] + ' - 0.907em );} '; dynamicStyle += '@media (max-width: 768px) { .ast-default-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle{ top:' + padding['tablet']['top'] + padding['tablet-unit'] + '; right:calc( ' + padding['tablet']['right'] + padding['tablet-unit'] + ' - 0.907em );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-default-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle{ top:' + padding['mobile']['top'] + padding['mobile-unit'] + '; right:calc( ' + padding['mobile']['right'] + padding['mobile-unit'] + ' - 0.907em );} }'; // Submenu level 2 support. dynamicStyle += '@media (max-width: 768px) { .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-link{padding-left:calc( ' + padding['tablet']['left'] + padding['tablet-unit'] + ' + 10px );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-link{padding-left:calc( ' + padding['mobile']['left'] + padding['mobile-unit'] + ' + 10px );} }'; // Submenu level 3 support. dynamicStyle += '@media (max-width: 768px) { .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-link{padding-left:calc( ' + padding['tablet']['left'] + padding['tablet-unit'] + ' + 20px );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-link{padding-left:calc( ' + padding['mobile']['left'] + padding['mobile-unit'] + ' + 20px );} }'; // Submenu level 4 support. dynamicStyle += '@media (max-width: 768px) { .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-item .menu-link{padding-left:calc( ' + padding['tablet']['left'] + padding['tablet-unit'] + ' + 30px );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-item .menu-link{padding-left:calc( ' + padding['mobile']['left'] + padding['mobile-unit'] + ' + 30px );} }'; // Submenu level 5 support. dynamicStyle += '@media (max-width: 768px) { .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link{padding-left:calc( ' + padding['tablet']['left'] + padding['tablet-unit'] + ' + 40px );} }'; dynamicStyle += '@media (max-width: 544px) { .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link{padding-left:calc( ' + padding['mobile']['left'] + padding['mobile-unit'] + ' + 40px );} }'; } ); } ); /** * Container Outside Spacing */ astra_responsive_spacing( 'astra-settings[container-outside-spacing]','.ast-separate-container.ast-right-sidebar #primary, .ast-separate-container.ast-left-sidebar #primary, .ast-separate-container #primary, .ast-plain-container #primary, .ast-narrow-container #primary', 'margin', ['top', 'bottom' ] ); astra_responsive_spacing( 'astra-settings[container-outside-spacing]','.ast-left-sidebar #primary, .ast-right-sidebar #primary, .ast-separate-container.ast-right-sidebar #primary, .ast-separate-container.ast-left-sidebar #primary, .ast-separate-container #primary, .ast-narrow-container #primary', 'padding', ['left', 'right' ] ); // Remove padding top to container if padding top is given to Container Outer Spacing. wp.customize( 'astra-settings[container-outside-spacing]', function( value ) { value.bind( function( padding ) { var dynamicStyle = ''; if( padding.desktop.top != '' || padding.tablet.top != '' || padding.mobile.top != '' ) { dynamicStyle += '.ast-separate-container #primary, .ast-narrow-container #primary { padding-top: 0px;} '; } if( padding.desktop.bottom != '' || padding.tablet.bottom != '' || padding.mobile.bottom != '' ) { dynamicStyle += '.ast-separate-container #primary, .ast-narrow-container #primary { padding-bottom: 0px;} '; } astra_add_dynamic_css( 'remove-header-spacing', dynamicStyle ); } ); } ); /** * Boxed Content Spacing */ const narrow_inside_spacing_selectors = [ '.ast-narrow-container .ast-article-post, .ast-narrow-container .ast-article-single, .ast-narrow-container .ast-comment-list li.depth-1, .ast-narrow-container .comment-respond, .single.ast-narrow-container .ast-author-details, .ast-narrow-container .ast-related-posts-wrap, .ast-narrow-container .ast-woocommerce-container, .ast-narrow-container .ast-single-related-posts-container', '.ast-narrow-container .ast-article-post, .ast-narrow-container .ast-article-single, .ast-narrow-container .comments-count-wrapper, .ast-narrow-container .ast-comment-list li.depth-1, .ast-narrow-container .comment-respond, .ast-narrow-container .related-posts-title-wrapper, .ast-narrow-container .related-posts-title-wrapper, .single.ast-narrow-container .ast-author-details, .single.ast-narrow-container .about-author-title-wrapper, .ast-narrow-container .ast-related-posts-wrap, .ast-narrow-container .ast-woocommerce-container, .ast-narrow-container .ast-single-related-posts-container' ]; astra_responsive_spacing( 'astra-settings[container-inside-spacing]','.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single, .ast-separate-container .ast-comment-list li.depth-1, .ast-separate-container .comment-respond, .single.ast-separate-container .ast-author-details, .ast-separate-container .ast-related-posts-wrap, .ast-separate-container .ast-woocommerce-container' + ',' + narrow_inside_spacing_selectors[0], 'padding', [ 'top', 'bottom' ] ); astra_responsive_spacing( 'astra-settings[container-inside-spacing]','.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single,.ast-separate-container .comments-count-wrapper, .ast-separate-container .ast-comment-list li.depth-1, .ast-separate-container .comment-respond,.ast-separate-container .related-posts-title-wrapper,.ast-separate-container .related-posts-title-wrapper, .single.ast-separate-container .ast-author-details, .single.ast-separate-container .about-author-title-wrapper, .ast-separate-container .ast-related-posts-wrap, .ast-separate-container .ast-woocommerce-container' + ',' + narrow_inside_spacing_selectors[1], 'padding', [ 'left', 'right' ] ); // Remove Featured Image Padding for single posty wp.customize( 'astra-settings[container-inside-spacing]', function( setting ) { setting.bind( function( padding ) { if ( padding.desktop.top || padding.desktop.left || padding.desktop.right || padding.tablet.top || padding.tablet.left || padding.tablet.right || padding.mobile.top || padding.mobile.left || padding.mobile.right ) { var dynamicStyle = '.ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: -' + padding['desktop']['top'] + padding['desktop-unit'] + ';} .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{ margin-left: -' + padding['desktop']['left'] + padding['desktop-unit'] + '; margin-right: -' + padding['desktop']['right'] + padding['desktop-unit'] + ';}'; dynamicStyle += '@media (max-width: 768px) { .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: -' + padding['tablet']['top'] + padding['tablet-unit'] + ';} .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{ margin-left: -' + padding['tablet']['left'] + padding['tablet-unit'] + '; margin-right: -' + padding['tablet']['right'] + padding['tablet-unit'] + ';} }'; dynamicStyle += '@media (max-width: 544px) { .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: -' + padding['mobile']['top'] + padding['mobile-unit'] + ';} .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{ margin-left: -' + padding['mobile']['left'] + padding['mobile-unit'] + '; margin-right: -' + padding['mobile']['right'] + padding['mobile-unit'] + ';} }'; astra_add_dynamic_css( 'single-post-featured-image-spacing', dynamicStyle ); } else { wp.customize.preview.send( 'refresh' ); } } ); } ); /** * Boxed Content Spacing */ const narrow_single_inside_spacing_selectors = [ '.ast-narrow-container.ast-single-post .ast-article-post, .ast-narrow-container.ast-single-post .ast-article-single, .ast-narrow-container.ast-single-post .ast-comment-list li.depth-1, .ast-narrow-container.ast-single-post .comment-respond, .single.ast-narrow-container.ast-single-post .ast-author-details, .ast-narrow-container.ast-single-post .ast-related-posts-wrap, .ast-narrow-container.ast-single-post .ast-woocommerce-container, .ast-narrow-container .ast-single-related-posts-container', '.ast-narrow-container.ast-single-post .ast-article-post, .ast-narrow-container.ast-single-post .ast-article-single, .ast-narrow-container.ast-single-post .comments-count-wrapper, .ast-narrow-container.ast-single-post .ast-comment-list li.depth-1, .ast-narrow-container.ast-single-post .comment-respond,.ast-narrow-container.ast-single-post .related-posts-title-wrapper,.ast-narrow-container.ast-single-post .related-posts-title-wrapper, .single.ast-narrow-container.ast-single-post .ast-author-details, .single.ast-narrow-container.ast-single-post .about-author-title-wrapper, .ast-narrow-container.ast-single-post .ast-related-posts-wrap, .ast-narrow-container.ast-single-post .ast-woocommerce-container' ]; astra_responsive_spacing( 'astra-settings[single-post-inside-spacing]','.ast-separate-container.ast-single-post .ast-article-post, .ast-separate-container.ast-single-post .ast-article-single, .ast-separate-container.ast-single-post .ast-comment-list li.depth-1, .ast-separate-container.ast-single-post .comment-respond, .single.ast-separate-container.ast-single-post .ast-author-details, .ast-separate-container.ast-single-post .ast-related-posts-wrap, .ast-separate-container.ast-single-post .ast-woocommerce-container' + ',' + narrow_single_inside_spacing_selectors[0], 'padding', [ 'top', 'bottom' ] ); astra_responsive_spacing( 'astra-settings[single-post-inside-spacing]','.ast-separate-container.ast-single-post .ast-article-post, .ast-separate-container.ast-single-post .ast-article-single, .ast-separate-container.ast-single-post .comments-count-wrapper, .ast-separate-container.ast-single-post .ast-comment-list li.depth-1, .ast-separate-container.ast-single-post .comment-respond,.ast-separate-container.ast-single-post .related-posts-title-wrapper,.ast-separate-container.ast-single-post .related-posts-title-wrapper, .single.ast-separate-container.ast-single-post .ast-author-details, .single.ast-separate-container.ast-single-post .about-author-title-wrapper, .ast-separate-container.ast-single-post .ast-related-posts-wrap, .ast-separate-container.ast-single-post .ast-woocommerce-container' + ',' + narrow_single_inside_spacing_selectors[1], 'padding', [ 'left', 'right' ] ); // Remove Featured Image Padding for single posty wp.customize( 'astra-settings[single-post-inside-spacing]', function( setting ) { setting.bind( function( padding ) { if ( padding.desktop.top || padding.desktop.left || padding.desktop.right || padding.tablet.top || padding.tablet.left || padding.tablet.right || padding.mobile.top || padding.mobile.left || padding.mobile.right ) { var dynamicStyle = '.ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: -' + padding['desktop']['top'] + padding['desktop-unit'] + ';} .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{ margin-left: -' + padding['desktop']['left'] + padding['desktop-unit'] + '; margin-right: -' + padding['desktop']['right'] + padding['desktop-unit'] + ';}'; dynamicStyle += '@media (max-width: 768px) { .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: -' + padding['tablet']['top'] + padding['tablet-unit'] + ';} .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{ margin-left: -' + padding['tablet']['left'] + padding['tablet-unit'] + '; margin-right: -' + padding['tablet']['right'] + padding['tablet-unit'] + ';} }'; dynamicStyle += '@media (max-width: 544px) { .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: -' + padding['mobile']['top'] + padding['mobile-unit'] + ';} .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{ margin-left: -' + padding['mobile']['left'] + padding['mobile-unit'] + '; margin-right: -' + padding['mobile']['right'] + padding['mobile-unit'] + ';} }'; astra_add_dynamic_css( 'single-post-featured-image-spacing', dynamicStyle ); } else { wp.customize.preview.send( 'refresh' ); } } ); } ); /** * Sidebar Spacing Plain/One Boxed Content */ astra_responsive_spacing( 'astra-settings[sidebar-outside-spacing]','.ast-plain-container #secondary,.ast-separate-container #secondary, .ast-page-builder-template #secondary', 'margin', ['top', 'bottom' ] ); astra_responsive_spacing( 'astra-settings[sidebar-outside-spacing]','.ast-right-sidebar #secondary, .ast-left-sidebar #secondary, .ast-separate-container.ast-two-container.ast-left-sidebar #secondary, .ast-separate-container.ast-two-container.ast-right-sidebar #secondary, .ast-separate-container.ast-right-sidebar #secondary, .ast-separate-container.ast-left-sidebar #secondary', 'padding', ['left', 'right' ] ); // Container - Boxed layout is selected then remove individual Sidebar widget margin bottom. astra_responsive_spacing( 'astra-settings[sidebar-outside-spacing]','.ast-separate-container.ast-two-container #secondary .widget, .ast-separate-container #secondary .widget', 'margin', [ 'bottom' ] ); /** * Sidebar Spacing Plain/One Boxed Content */ astra_responsive_spacing( 'astra-settings[sidebar-inside-spacing]','.ast-two-container.ast-right-sidebar #secondary .widget, .ast-separate-container #secondary .widget, .ast-plain-container #secondary .widget', 'padding', ['top', 'bottom' ] ); astra_responsive_spacing( 'astra-settings[sidebar-inside-spacing]','.ast-two-container.ast-right-sidebar #secondary .widget, .ast-two-container.ast-left-sidebar #secondary .widget, .ast-separate-container #secondary .widget, .ast-plain-container #secondary .widget', 'padding', ['left', 'right' ] ); /** * Footer Spacing */ astra_responsive_spacing( 'astra-settings[footer-sml-spacing]','.ast-footer-overlay', 'padding', ['top', 'bottom' ] ); astra_responsive_spacing( 'astra-settings[footer-sml-spacing]','.ast-small-footer .ast-container', 'padding', ['left', 'right' ] ); /** * Footer Menu Spacing */ astra_responsive_spacing( 'astra-settings[footer-menu-spacing]', '.ast-small-footer .nav-menu a, .footer-sml-layout-2 .ast-small-footer-section-1 .menu-item .menu-link, .footer-sml-layout-2 .ast-small-footer-section-2 .menu-item .menu-link', 'padding', ['top', 'right', 'bottom', 'left' ] ); /** * Blog Grid Spacing */ // Apply margin only if grid is selected 1 column or Blog Layout is selected as 2 or 3. if ( ! ast_preview.blog_pro_enabled || jQuery( 'body' ).hasClass( 'ast-blog-grid-1' ) || jQuery( 'body' ).hasClass( 'ast-blog-layout-2' ) || jQuery( 'body' ).hasClass( 'ast-blog-layout-3' ) ) { astra_responsive_spacing( 'astra-settings[blog-post-outside-spacing]', '.ast-separate-container .ast-article-post, .ast-separate-container .ast-separate-posts.ast-article-post, .ast-narrow-container .ast-article-post, .ast-narrow-container .ast-separate-posts.ast-article-post', 'margin', ['top', 'right', 'bottom', 'left' ] ); astra_responsive_spacing( 'astra-settings[blog-post-inside-spacing]', '.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-post, .ast-narrow-container .ast-article-post, .ast-narrow-container .ast-article-post', 'padding', ['top', 'right', 'bottom', 'left' ] ); } else{ // Blog Grid Outside Spacing. const narrow_blog_grid_outside_spacing_selector = '.ast-narrow-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-narrow-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-narrow-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-narrow-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-narrow-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-narrow-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+1)'; astra_responsive_spacing( 'astra-settings[blog-post-outside-spacing]', '.ast-separate-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-separate-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-separate-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-separate-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-separate-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-separate-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+1)' + ',' + narrow_blog_grid_outside_spacing_selector, 'padding', ['top', 'right', 'bottom', 'left' ] ); // Reset Masonary. wp.customize( 'astra-settings[blog-post-outside-spacing]', function( setting ) { setting.bind( function( margin ) { var dynamicStyle = ''; if( margin.desktop.bottom != '' || margin.tablet.bottom != '' || margin.mobile.bottom != '' ) { dynamicStyle += '.ast-separate-container .ast-separate-posts.ast-article-post{ margin-bottom: 0px;} '; dynamicStyle += '.ast-narrow-container .ast-separate-posts.ast-article-post{ margin-bottom: 0px;} '; } astra_add_dynamic_css( 'remove-blog-outside-spacing', dynamicStyle ); var gird_layout = (typeof ( wp.customize._value['astra-settings[blog-grid]'] ) != 'undefined') ? wp.customize._value['astra-settings[blog-grid]']._value : ''; if ( 1 != gird_layout ) { masonaryLaoyoutReset(); } } ); } ); // Blog Grid Inside Spacing. const narrow_blog_grid_inside_spacing_selector = '.ast-narrow-container .ast-grid-2 .blog-layout-1, .ast-narrow-container .ast-grid-2 .blog-layout-2, .ast-narrow-container .ast-grid-2 .blog-layout-3, .ast-narrow-container .ast-grid-3 .blog-layout-1, .ast-narrow-container .ast-grid-3 .blog-layout-2, .ast-narrow-container .ast-grid-3 .blog-layout-3, .ast-narrow-container .ast-grid-4 .blog-layout-1, .ast-narrow-container .ast-grid-4 .blog-layout-2, .ast-narrow-container .ast-grid-4 .blog-layout-3'; astra_responsive_spacing( 'astra-settings[blog-post-inside-spacing]', '.ast-separate-container .ast-grid-2 .blog-layout-1, .ast-separate-container .ast-grid-2 .blog-layout-2, .ast-separate-container .ast-grid-2 .blog-layout-3, .ast-separate-container .ast-grid-3 .blog-layout-1, .ast-separate-container .ast-grid-3 .blog-layout-2, .ast-separate-container .ast-grid-3 .blog-layout-3, .ast-separate-container .ast-grid-4 .blog-layout-1, .ast-separate-container .ast-grid-4 .blog-layout-2, .ast-separate-container .ast-grid-4 .blog-layout-3' + ',' + narrow_blog_grid_inside_spacing_selector, 'padding', ['top', 'right', 'bottom', 'left' ] ); // Reset Masonary. wp.customize( 'astra-settings[blog-post-inside-spacing]', function( setting ) { setting.bind( function( padding ) { var gird_layout = (typeof ( wp.customize._value['astra-settings[blog-grid]'] ) != 'undefined') ? wp.customize._value['astra-settings[blog-grid]']._value : ''; if ( 1 != gird_layout ) { masonaryLaoyoutReset(); } } ); } ); } // Remove Margin / Padding around featured iamge, date box Masonary. // Remove Featured Image Padding. wp.customize( 'astra-settings[blog-post-inside-spacing]', function( setting ) { setting.bind( function( padding ) { if ( padding.desktop.top || padding.desktop.left || padding.desktop.right || padding.tablet.top || padding.tablet.left || padding.tablet.right || padding.mobile.top || padding.mobile.left || padding.mobile.right ) { var dynamicStyle = '.ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on { margin-top: -' + padding['desktop']['top'] + padding['desktop-unit'] + ';} .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on{ margin-left: -' + padding['desktop']['left'] + padding['desktop-unit'] + '; margin-right: -' + padding['desktop']['right'] + padding['desktop-unit'] + ';}'; dynamicStyle += '@media (max-width: 768px) { .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on{ margin-top: -' + padding['tablet']['top'] + padding['tablet-unit'] + ';} .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on{ margin-left: -' + padding['tablet']['left'] + padding['tablet-unit'] + '; margin-right: -' + padding['tablet']['right'] + padding['tablet-unit'] + ';} }'; dynamicStyle += '@media (max-width: 544px) { .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on{ margin-top: -' + padding['mobile']['top'] + padding['mobile-unit'] + ';} .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on{ margin-left: -' + padding['mobile']['left'] + padding['mobile-unit'] + '; margin-right: -' + padding['mobile']['right'] + padding['mobile-unit'] + ';} }'; astra_add_dynamic_css( 'blog-post-inside-spacing', dynamicStyle ); } else { wp.customize.preview.send( 'refresh' ); } } ); } ); /** * Blog Post pagination Spacing */ astra_responsive_spacing( 'astra-settings[blog-post-pagination-spacing]', '.ast-pagination', 'padding', [ 'top', 'right', 'bottom', 'left' ] ); /** * Reset Masonary for custommizer preview scree */ function masonaryLaoyoutReset(){ // Internet Explorer 6-11 isIE = /*@cc_on!@*/false || !!document.documentMode; // Edge 20+ isEdge = !isIE && !!window.StyleMedia; var masonryEnabled = astra.masonryEnabled || false; var blogMasonryBreakPoint = astra.blogMasonryBreakPoint; var blogMasonryBp = window.getComputedStyle( jQuery('#content')[0], '::before' ).getPropertyValue('content'); // Edge/Explorer header break point. if( isEdge || isIE || blogMasonryBp === 'normal' ) { if( window.innerWidth >= blogMasonryBreakPoint ) { blogMasonryBp = blogMasonryBreakPoint; } } else { blogMasonryBp = blogMasonryBp.replace( /[^0-9]/g, '' ); blogMasonryBp = parseInt( blogMasonryBp ); } var container = jQuery( '.search.blog-masonry #main > div, .blog.blog-masonry #main > div, .archive.blog-masonry #main > div' ); if ( blogMasonryBp == blogMasonryBreakPoint ) { if (masonryEnabled) { if ( typeof container != 'undefined' && container.length > 0 ) { var hasMasonry = container.data('masonry') ? true : false if ( hasMasonry ) { container.masonry('reload'); }else{ container.imagesLoaded(container, function () { container.masonry({ itemSelector: '#primary article', }); }); } } } } else{ if ( masonryEnabled ) { if ( typeof container != 'undefined' && container.length > 0 ) { container.masonry().masonry( 'destroy' ); } } } } /** * Header - Menu - Spacing. */ var tablet_break_point = ast_preview.tablet_break_point || 768, mobile_break_point = ast_preview.mobile_break_point || 544; var body_selector = '.ast-hfb-header'; if ( ast_preview.astra_not_updated ) { body_selector = '.astra-hfb-header'; } for ( var index = 1; index <= ast_preview.component_limit; index++ ) { (function (index) { // Sub Menu Spacing - Menu 1. wp.customize( 'astra-settings[header-menu'+ index +'-submenu-spacing]', function( value ) { value.bind( function( padding ) { if( padding.desktop.bottom != '' || padding.desktop.top != '' || padding.desktop.left != '' || padding.desktop.right != '' || padding.tablet.bottom != '' || padding.tablet.top != '' || padding.tablet.left != '' || padding.tablet.right != '' || padding.mobile.bottom != '' || padding.mobile.top != '' || padding.mobile.left != '' || padding.mobile.right != '' ) { var dynamicStyle = ''; dynamicStyle += '.ast-builder-menu-'+ index +' .main-header-menu.ast-nav-menu .sub-menu .menu-item .menu-link {'; dynamicStyle += 'padding-left: ' + padding['desktop']['left'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-right: ' + padding['desktop']['right'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-top: ' + padding['desktop']['top'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + padding['desktop']['bottom'] + padding['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) {'; dynamicStyle += '.ast-builder-menu-'+ index +' .main-header-menu.ast-nav-menu .sub-menu .menu-item .menu-link {'; dynamicStyle += 'padding-left: ' + padding['tablet']['left'] + padding['tablet-unit'] + ';'; dynamicStyle += 'padding-right: ' + padding['tablet']['right'] + padding['tablet-unit'] + ';'; dynamicStyle += 'padding-top: ' + padding['tablet']['top'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + padding['tablet']['bottom'] + padding['desktop-unit'] + ';'; dynamicStyle += '} '; // Toggle top. dynamicStyle += body_selector + ' .ast-builder-menu-'+ index +' .main-navigation ul .sub-menu .menu-item.menu-item-has-children > .ast-menu-toggle {'; dynamicStyle += 'top: ' + padding['tablet']['top'] + padding['tablet-unit'] + ';'; dynamicStyle += 'right: calc( ' + padding['tablet']['right'] + padding['tablet-unit'] + ' - 0.907em );' dynamicStyle += '} '; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) {'; dynamicStyle += '.ast-builder-menu-'+ index +' .main-header-menu.ast-nav-menu .sub-menu .menu-item .menu-link {'; dynamicStyle += 'padding-left: ' + padding['mobile']['left'] + padding['mobile-unit'] + ';'; dynamicStyle += 'padding-right: ' + padding['mobile']['right'] + padding['mobile-unit'] + ';'; dynamicStyle += 'padding-top: ' + padding['mobile']['top'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + padding['mobile']['bottom'] + padding['desktop-unit'] + ';'; dynamicStyle += '} '; // Toggle top. dynamicStyle += body_selector + ' .ast-builder-menu-'+ index +' .main-navigation ul .sub-menu .menu-item.menu-item-has-children > .ast-menu-toggle {'; dynamicStyle += 'top: ' + padding['mobile']['top'] + padding['mobile-unit'] + ';'; dynamicStyle += 'right: calc( ' + padding['mobile']['right'] + padding['mobile-unit'] + ' - 0.907em );' dynamicStyle += '} '; dynamicStyle += '} '; astra_add_dynamic_css( 'header-menu'+ index +'-submenu-spacing-toggle-button', dynamicStyle ); } } ); } ); if ( 3 > index ) { // Mega Menu Spacing - Menu 1. wp.customize( 'astra-settings[header-menu'+ index +'-megamenu-heading-space]', function( value ) { value.bind( function( padding ) { if( padding.desktop.bottom != '' || padding.desktop.top != '' || padding.desktop.left != '' || padding.desktop.right != '' || padding.tablet.bottom != '' || padding.tablet.top != '' || padding.tablet.left != '' || padding.tablet.right != '' || padding.mobile.bottom != '' || padding.mobile.top != '' || padding.mobile.left != '' || padding.mobile.right != '' ) { var dynamicStyle = ''; dynamicStyle += body_selector + ' .ast-builder-menu-menu'+ index +'.ast-builder-menu .main-header-menu .menu-item.menu-item-heading > .menu-link {'; dynamicStyle += 'padding-left: ' + padding['desktop']['left'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-right: ' + padding['desktop']['right'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-top: ' + padding['desktop']['top'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + padding['desktop']['bottom'] + padding['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) {'; dynamicStyle += body_selector + ' .ast-builder-menu-menu'+ index +'.ast-builder-menu .main-header-menu .menu-item.menu-item-heading > .menu-link {'; dynamicStyle += 'padding-left: ' + padding['tablet']['left'] + padding['tablet-unit'] + ';'; dynamicStyle += 'padding-right: ' + padding['tablet']['right'] + padding['tablet-unit'] + ';'; dynamicStyle += 'padding-top: ' + padding['tablet']['top'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + padding['tablet']['bottom'] + padding['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) {'; dynamicStyle += body_selector + ' .ast-builder-menu-menu'+ index +'.ast-builder-menu .main-header-menu .menu-item.menu-item-heading > .menu-link {'; dynamicStyle += 'padding-left: ' + padding['mobile']['left'] + padding['mobile-unit'] + ';'; dynamicStyle += 'padding-right: ' + padding['mobile']['right'] + padding['mobile-unit'] + ';'; dynamicStyle += 'padding-top: ' + padding['mobile']['top'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + padding['mobile']['bottom'] + padding['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; astra_add_dynamic_css( 'header-menu'+ index +'-megamenu-heading-space-toggle-button', dynamicStyle ); } } ); } ); } })(index); } /** * Mobile menu - Spacing */ // Sub Menu Spacing - Menu 1. wp.customize( 'astra-settings[header-mobile-menu-submenu-spacing]', function( value ) { value.bind( function( padding ) { if( padding.desktop.bottom != '' || padding.desktop.top != '' || padding.desktop.left != '' || padding.desktop.right != '' || padding.tablet.bottom != '' || padding.tablet.top != '' || padding.tablet.left != '' || padding.tablet.right != '' || padding.mobile.bottom != '' || padding.mobile.top != '' || padding.mobile.left != '' || padding.mobile.right != '' ) { var dynamicStyle = ''; dynamicStyle += '.ast-hfb-header .ast-builder-menu-mobile .main-header-menu.ast-nav-menu .sub-menu .menu-item .menu-link {'; dynamicStyle += 'padding-left: ' + padding['desktop']['left'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-right: ' + padding['desktop']['right'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-top: ' + padding['desktop']['top'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + padding['desktop']['bottom'] + padding['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '.ast-hfb-header .ast-builder-menu-mobile .main-header-menu.ast-nav-menu .sub-menu .menu-item.menu-item-has-children > .ast-menu-toggle { top:' + padding['desktop']['top'] + padding['desktop-unit'] + '; right:calc( ' + padding['desktop']['right'] + padding['desktop-unit'] + ' - 0.907em );} '; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) {'; dynamicStyle += '.ast-hfb-header .ast-builder-menu-mobile .main-header-menu.ast-nav-menu .sub-menu .menu-item .menu-link {'; dynamicStyle += 'padding-left: ' + padding['tablet']['left'] + padding['tablet-unit'] + ';'; dynamicStyle += 'padding-right: ' + padding['tablet']['right'] + padding['tablet-unit'] + ';'; dynamicStyle += 'padding-top: ' + padding['tablet']['top'] + padding['tablet-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + padding['tablet']['bottom'] + padding['tablet-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '.ast-hfb-header .ast-builder-menu-mobile .main-header-menu.ast-nav-menu .sub-menu .menu-item.menu-item-has-children > .ast-menu-toggle { top:' + padding['tablet']['top'] + padding['tablet-unit'] + '; right:calc( ' + padding['tablet']['right'] + padding['tablet-unit'] + ' - 0.907em );} '; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) {'; dynamicStyle += '.ast-hfb-header .ast-builder-menu-mobile .main-header-menu.ast-nav-menu .sub-menu .menu-item .menu-link {'; dynamicStyle += 'padding-left: ' + padding['mobile']['left'] + padding['mobile-unit'] + ';'; dynamicStyle += 'padding-right: ' + padding['mobile']['right'] + padding['mobile-unit'] + ';'; dynamicStyle += 'padding-top: ' + padding['mobile']['top'] + padding['mobile-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + padding['mobile']['bottom'] + padding['mobile-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '.ast-hfb-header .ast-builder-menu-mobile .main-header-menu.ast-nav-menu .sub-menu .menu-item.menu-item-has-children > .ast-menu-toggle { top:' + padding['mobile']['top'] + padding['mobile-unit'] + '; right:calc( ' + padding['mobile']['right'] + padding['mobile-unit'] + ' - 0.907em );} '; dynamicStyle += '} '; astra_add_dynamic_css( 'header-mobile-menu-submenu-spacing-toggle-button', dynamicStyle ); } } ); } ); // Item Spacing. wp.customize( 'astra-settings[section-hb-language-switcher-item-spacing]', function( value ) { value.bind( function( spacing ) { var dynamicStyle = ''; if( spacing.desktop.bottom != '' || spacing.desktop.top != '' || spacing.desktop.left != '' || spacing.desktop.right != '' || spacing.tablet.bottom != '' || spacing.tablet.top != '' || spacing.tablet.left != '' || spacing.tablet.right != '' || spacing.mobile.bottom != '' || spacing.mobile.top != '' || spacing.mobile.left != '' || spacing.mobile.right != '' ) { dynamicStyle += '.ast-builder-language-switcher-menu-item-header {'; dynamicStyle += 'padding-left: ' + spacing['desktop']['left'] + spacing['desktop-unit'] + ';'; dynamicStyle += 'padding-right: ' + spacing['desktop']['right'] + spacing['desktop-unit'] + ';'; dynamicStyle += 'padding-top: ' + spacing['desktop']['top'] + spacing['desktop-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + spacing['desktop']['bottom'] + spacing['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) {'; dynamicStyle += '.ast-builder-language-switcher-menu-item-header {'; dynamicStyle += 'padding-left: ' + spacing['tablet']['left'] + spacing['tablet-unit'] + ';'; dynamicStyle += 'padding-right: ' + spacing['tablet']['right'] + spacing['tablet-unit'] + ';'; dynamicStyle += 'padding-top: ' + spacing['tablet']['top'] + spacing['desktop-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + spacing['tablet']['bottom'] + spacing['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) {'; dynamicStyle += '.ast-builder-language-switcher-menu-item-header {'; dynamicStyle += 'padding-left: ' + spacing['mobile']['left'] + spacing['mobile-unit'] + ';'; dynamicStyle += 'padding-right: ' + spacing['mobile']['right'] + spacing['mobile-unit'] + ';'; dynamicStyle += 'padding-top: ' + spacing['mobile']['top'] + spacing['desktop-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + spacing['mobile']['bottom'] + spacing['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; } astra_add_dynamic_css( 'section-hb-language-switcher-item-spacing', dynamicStyle ); } ); } ); // Margin. wp.customize( 'astra-settings[section-hb-language-switcher-margin]', function( value ) { value.bind( function( margin ) { var dynamicStyle = ''; if( margin.desktop.bottom != '' || margin.desktop.top != '' || margin.desktop.left != '' || margin.desktop.right != '' || margin.tablet.bottom != '' || margin.tablet.top != '' || margin.tablet.left != '' || margin.tablet.right != '' || margin.mobile.bottom != '' || margin.mobile.top != '' || margin.mobile.left != '' || margin.mobile.right != '' ) { dynamicStyle += '.ast-header-language-switcher {'; dynamicStyle += 'margin-left: ' + margin['desktop']['left'] + margin['desktop-unit'] + ';'; dynamicStyle += 'margin-right: ' + margin['desktop']['right'] + margin['desktop-unit'] + ';'; dynamicStyle += 'margin-top: ' + margin['desktop']['top'] + margin['desktop-unit'] + ';'; dynamicStyle += 'margin-bottom: ' + margin['desktop']['bottom'] + margin['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) {'; dynamicStyle += '.ast-header-language-switcher {'; dynamicStyle += 'margin-left: ' + margin['tablet']['left'] + margin['tablet-unit'] + ';'; dynamicStyle += 'margin-right: ' + margin['tablet']['right'] + margin['tablet-unit'] + ';'; dynamicStyle += 'margin-top: ' + margin['tablet']['top'] + margin['desktop-unit'] + ';'; dynamicStyle += 'margin-bottom: ' + margin['tablet']['bottom'] + margin['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) {'; dynamicStyle += '.ast-header-language-switcher {'; dynamicStyle += 'margin-left: ' + margin['mobile']['left'] + margin['mobile-unit'] + ';'; dynamicStyle += 'margin-right: ' + margin['mobile']['right'] + margin['mobile-unit'] + ';'; dynamicStyle += 'margin-top: ' + margin['mobile']['top'] + margin['desktop-unit'] + ';'; dynamicStyle += 'margin-bottom: ' + margin['mobile']['bottom'] + margin['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; } astra_add_dynamic_css( 'section-hb-language-switcher-margin', dynamicStyle ); } ); } ); // footer Item Spacing. wp.customize( 'astra-settings[section-fb-language-switcher-item-spacing]', function( value ) { value.bind( function( spacing ) { var dynamicStyle = ''; if( spacing.desktop.bottom != '' || spacing.desktop.top != '' || spacing.desktop.left != '' || spacing.desktop.right != '' || spacing.tablet.bottom != '' || spacing.tablet.top != '' || spacing.tablet.left != '' || spacing.tablet.right != '' || spacing.mobile.bottom != '' || spacing.mobile.top != '' || spacing.mobile.left != '' || spacing.mobile.right != '' ) { dynamicStyle += '.ast-builder-language-switcher-menu-item-footer {'; dynamicStyle += 'padding-left: ' + spacing['desktop']['left'] + spacing['desktop-unit'] + ';'; dynamicStyle += 'padding-right: ' + spacing['desktop']['right'] + spacing['desktop-unit'] + ';'; dynamicStyle += 'padding-top: ' + spacing['desktop']['top'] + spacing['desktop-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + spacing['desktop']['bottom'] + spacing['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) {'; dynamicStyle += '.ast-builder-language-switcher-menu-item-footer {'; dynamicStyle += 'padding-left: ' + spacing['tablet']['left'] + spacing['tablet-unit'] + ';'; dynamicStyle += 'padding-right: ' + spacing['tablet']['right'] + spacing['tablet-unit'] + ';'; dynamicStyle += 'padding-top: ' + spacing['tablet']['top'] + spacing['desktop-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + spacing['tablet']['bottom'] + spacing['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) {'; dynamicStyle += '.ast-builder-language-switcher-menu-item-footer {'; dynamicStyle += 'padding-left: ' + spacing['mobile']['left'] + spacing['mobile-unit'] + ';'; dynamicStyle += 'padding-right: ' + spacing['mobile']['right'] + spacing['mobile-unit'] + ';'; dynamicStyle += 'padding-top: ' + spacing['mobile']['top'] + spacing['desktop-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + spacing['mobile']['bottom'] + spacing['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; } astra_add_dynamic_css( 'section-fb-language-switcher-item-spacing', dynamicStyle ); } ); } ); // Margin. wp.customize( 'astra-settings[section-fb-language-switcher-margin]', function( value ) { value.bind( function( margin ) { var dynamicStyle = ''; if( margin.desktop.bottom != '' || margin.desktop.top != '' || margin.desktop.left != '' || margin.desktop.right != '' || margin.tablet.bottom != '' || margin.tablet.top != '' || margin.tablet.left != '' || margin.tablet.right != '' || margin.mobile.bottom != '' || margin.mobile.top != '' || margin.mobile.left != '' || margin.mobile.right != '' ) { dynamicStyle += '.ast-footer-language-switcher {'; dynamicStyle += 'margin-left: ' + margin['desktop']['left'] + margin['desktop-unit'] + ';'; dynamicStyle += 'margin-right: ' + margin['desktop']['right'] + margin['desktop-unit'] + ';'; dynamicStyle += 'margin-top: ' + margin['desktop']['top'] + margin['desktop-unit'] + ';'; dynamicStyle += 'margin-bottom: ' + margin['desktop']['bottom'] + margin['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) {'; dynamicStyle += '.ast-footer-language-switcher {'; dynamicStyle += 'margin-left: ' + margin['tablet']['left'] + margin['tablet-unit'] + ';'; dynamicStyle += 'margin-right: ' + margin['tablet']['right'] + margin['tablet-unit'] + ';'; dynamicStyle += 'margin-top: ' + margin['tablet']['top'] + margin['desktop-unit'] + ';'; dynamicStyle += 'margin-bottom: ' + margin['tablet']['bottom'] + margin['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) {'; dynamicStyle += '.ast-footer-language-switcher {'; dynamicStyle += 'margin-left: ' + margin['mobile']['left'] + margin['mobile-unit'] + ';'; dynamicStyle += 'margin-right: ' + margin['mobile']['right'] + margin['mobile-unit'] + ';'; dynamicStyle += 'margin-top: ' + margin['mobile']['top'] + margin['desktop-unit'] + ';'; dynamicStyle += 'margin-bottom: ' + margin['mobile']['bottom'] + margin['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; } astra_add_dynamic_css( 'section-fb-language-switcher-margin', dynamicStyle ); } ); } ); } )( jQuery ); assets/js/minified/customizer-preview.min.js 0000666 00000162174 15165501465 0015300 0 ustar 00 !function(){astra_responsive_spacing("astra-settings[header-spacing]",".main-header-bar, .ast-header-break-point .main-header-bar, .ast-header-break-point .header-main-layout-2 .main-header-bar","padding",["top","bottom"]),astra_responsive_spacing("astra-settings[header-spacing]","#masthead .ast-container, .main-header-bar .ast-container","padding",["right","left"]),wp.customize("astra-settings[header-spacing]",function(t){t.bind(function(t){var e;""==t.desktop.bottom&&""==t.tablet.bottom&&""==t.mobile.bottom||(e=(e=(e="")+".ast-header-break-point .site-branding, .ast-header-break-point .ast-mobile-menu-buttons, .ast-header-break-point.ast-header-custom-item-outside .ast-masthead-custom-menu-items, .ast-header-break-point .header-main-layout-2 .ast-mobile-menu-buttons { padding-bottom: 0px;} @media (max-width: 768px) { .ast-header-break-point .main-header-bar .main-header-bar-navigation { padding-top:"+t.tablet.bottom+t["tablet-unit"]+";} }")+"@media (max-width: 544px) { .ast-header-break-point .main-header-bar .main-header-bar-navigation { padding-top:"+t.mobile.bottom+t["mobile-unit"]+";} }",astra_add_dynamic_css("remove-add-header-spacing",e))})}),astra_responsive_spacing("astra-settings[header-account-menu-spacing]",".ast-header-account-wrap .menu-item .menu-link","padding",["top","right","bottom","left"]),wp.customize("astra-settings[header-account-menu-spacing]",function(t){t.bind(function(t){var e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e="")+".ast-header-account-wrap .main-header-menu.ast-account-nav-menu .menu-item .menu-link, .ast-advanced-headers .ast-header-account-wrap .main-header-menu.ast-account-nav-menu .menu-item .menu-link {"+("padding-left: "+t.desktop.left+t["desktop-unit"]+";"))+("padding-right: "+t.desktop.right+t["desktop-unit"]+";"))+("padding-top: "+t.desktop.top+t["desktop-unit"]+";"))+("padding-bottom: "+t.desktop.bottom+t["desktop-unit"]+";"))+"} "+("@media (max-width: "+n+"px) {"))+".ast-header-break-point .ast-header-account-wrap .menu-item .menu-link {"+("padding-left: "+t.tablet.left+t["tablet-unit"]+";"))+("padding-right: "+t.tablet.right+t["tablet-unit"]+";"))+("padding-top: "+t.tablet.top+t["tablet-unit"]+";"))+("padding-bottom: "+t.tablet.bottom+t["tablet-unit"]+";")+"} ")+"} "+("@media (max-width: "+i+"px) {"))+".ast-header-break-point .ast-header-account-wrap .menu-item .menu-link {"+("padding-left: "+t.mobile.left+t["mobile-unit"]+";"))+("padding-right: "+t.mobile.right+t["mobile-unit"]+";"))+("padding-top: "+t.mobile.top+t["mobile-unit"]+";"))+("padding-bottom: "+t.mobile.bottom+t["mobile-unit"]+";"))+"} "+"} ";astra_add_dynamic_css("header-account-menu-spacing",e)})}),astra_responsive_spacing("astra-settings[primary-menu-spacing]",".main-navigation ul li a, .ast-header-break-point .main-navigation ul li a, .ast-header-break-point li.ast-masthead-custom-menu-items, li.ast-masthead-custom-menu-items","padding",["top","right","bottom","left"]),wp.customize("astra-settings[primary-menu-spacing]",function(t){t.bind(function(t){var e="",e=(e=(e=(e=(e=(e=(e=(e=(e+=" .ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle{ top:"+t.desktop.top+t["desktop-unit"]+"; right:calc( "+t.desktop.right+t["desktop-unit"]+" - 0.907em );} ")+("@media (max-width: 768px) { .ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle{ top:"+t.tablet.top+t["tablet-unit"]+"; right:calc( "+t.tablet.right+t["tablet-unit"]+" - 0.907em );} }"))+("@media (max-width: 544px) { .ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle{ top:"+t.mobile.top+t["mobile-unit"]+"; right:calc( "+t.mobile.right+t["mobile-unit"]+" - 0.907em );} }"))+(" .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu > .menu-item-has-children > .ast-menu-toggle{ right:calc( "+t.desktop.right+t["desktop-unit"]+" - 0.907em );} "))+("@media (max-width: 768px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu > .menu-item-has-children > .ast-menu-toggle{ right:calc( "+t.tablet.right+t["tablet-unit"]+" - 0.907em );} }"))+("@media (max-width: 544px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu > .menu-item-has-children > .ast-menu-toggle{ right:calc( "+t.mobile.right+t["mobile-unit"]+" - 0.907em );} }"))+(" .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle{ top:"+t.desktop.top+t["desktop-unit"]+";}"))+("@media (max-width: 768px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle{ top:"+t.tablet.top+t["tablet-unit"]+";} }"))+("@media (max-width: 544px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle{ top:"+t.mobile.top+t["mobile-unit"]+";} }");astra_add_dynamic_css("add-mobile-header-layout-menu-spacing",e)})}),astra_responsive_spacing("astra-settings[primary-submenu-spacing]",".ast-desktop .main-navigation .ast-mm-template-content, .ast-desktop .main-navigation .ast-mm-custom-text-content, .main-navigation .sub-menu .menu-item .menu-link, .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-link, .ast-default-menu-enable.ast-header-break-point .main-navigation .sub-menu .menu-item.menu-item-has-children > .menu-link","padding",["top","right","bottom","left"]),wp.customize("astra-settings[primary-submenu-spacing]",function(t){t.bind(function(t){var e="",e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e+=" .ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle{ top:"+t.desktop.top+t["desktop-unit"]+"; right:calc( "+t.desktop.right+t["desktop-unit"]+" - 0.907em );} ")+("@media (max-width: 768px) { .ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle{ top:"+t.tablet.top+t["tablet-unit"]+"; right:calc( "+t.tablet.right+t["tablet-unit"]+" - 0.907em );} }"))+("@media (max-width: 544px) { .ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle{ top:"+t.mobile.top+t["mobile-unit"]+"; right:calc( "+t.mobile.right+t["mobile-unit"]+" - 0.907em );} }"))+("@media (max-width: 768px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-link{padding-left:calc( "+t.tablet.left+t["tablet-unit"]+" + 10px );} }"))+("@media (max-width: 544px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-link{padding-left:calc( "+t.mobile.left+t["mobile-unit"]+" + 10px );} }"))+("@media (max-width: 768px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-link{padding-left:calc( "+t.tablet.left+t["tablet-unit"]+" + 20px );} }"))+("@media (max-width: 544px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-link{padding-left:calc( "+t.mobile.left+t["mobile-unit"]+" + 20px );} }"))+("@media (max-width: 768px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link{padding-left:calc( "+t.tablet.left+t["tablet-unit"]+" + 30px );} }"))+("@media (max-width: 544px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link{padding-left:calc( "+t.mobile.left+t["mobile-unit"]+" + 30px );} }"))+("@media (max-width: 768px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-link{padding-left:calc( "+t.tablet.left+t["tablet-unit"]+" + 40px );} }"))+("@media (max-width: 544px) { .ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-link{padding-left:calc( "+t.mobile.left+t["mobile-unit"]+" + 40px );} }"))+(" .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle{ right:calc( "+t.desktop.right+t["desktop-unit"]+" - 0.907em );} "))+("@media (max-width: 768px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle{ right:calc( "+t.tablet.right+t["tablet-unit"]+" - 0.907em );} }"))+("@media (max-width: 544px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .sub-menu .menu-item-has-children > .ast-menu-toggle{ right:calc( "+t.mobile.right+t["mobile-unit"]+" - 0.907em );} }"))+(" .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children .sub-menu .ast-menu-toggle{ top:"+t.desktop.top+t["desktop-unit"]+";}"))+("@media (max-width: 768px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children .sub-menu .ast-menu-toggle{ top:"+t.tablet.top+t["tablet-unit"]+";} }"))+("@media (max-width: 544px) { .ast-flyout-menu-enable.ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children .sub-menu .ast-menu-toggle{ top:"+t.mobile.top+t["mobile-unit"]+";} }");astra_add_dynamic_css("add-mobile-header-layout-submenu-spacing",e)})}),astra_responsive_spacing("astra-settings[below-header-spacing]",".ast-below-header, .ast-header-break-point .ast-below-header","padding",["top","bottom"]),astra_responsive_spacing("astra-settings[below-header-spacing]",".ast-below-header .ast-container, #masthead .ast-below-header .ast-container","padding",["right","left"]),astra_responsive_spacing("astra-settings[below-header-menu-spacing]",".ast-below-header-menu .menu-link, .below-header-nav-padding-support .below-header-section-1 .below-header-menu > .menu-item > .menu-link, .below-header-nav-padding-support .below-header-section-2 .below-header-menu > .menu-item > .menu-link, .ast-header-break-point .ast-below-header-actual-nav > .ast-below-header-menu > .menu-item > .menu-link","padding",["top","right","bottom","left"]),wp.customize("astra-settings[below-header-menu-spacing]",function(t){t.bind(function(t){var e="",e=(e=(e+=" .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle{ top:"+t.desktop.top+t["desktop-unit"]+"; right:calc( "+t.desktop.right+t["desktop-unit"]+" - 0.907em );} ")+("@media (max-width: 768px) { .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle{ top:"+t.tablet.top+t["tablet-unit"]+"; right:calc( "+t.tablet.right+t["tablet-unit"]+" - 0.907em );} }"))+("@media (max-width: 544px) { .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-below-menu-enable.ast-header-break-point .ast-below-header-menu-items .menu-item-has-children > .ast-menu-toggle{ top:"+t.mobile.top+t["mobile-unit"]+"; right:calc( "+t.mobile.right+t["mobile-unit"]+" - 0.907em );} }");astra_add_dynamic_css("add-below-mobile-header-layout-menu-spacing",e)})}),astra_responsive_spacing("astra-settings[below-header-submenu-spacing]",".ast-desktop .ast-below-header-menu .ast-mm-template-content, .ast-desktop .ast-below-header-menu .ast-mm-custom-text-content,.ast-below-header-menu .sub-menu .menu-link, .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-link","padding",["top","right","bottom","left"]),wp.customize("astra-settings[below-header-submenu-spacing]",function(t){t.bind(function(t){var e="",e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e+=" .ast-default-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle{ top:"+t.desktop.top+t["desktop-unit"]+"; right:calc( "+t.desktop.right+t["desktop-unit"]+" - 0.907em );} ")+("@media (max-width: 768px) { .ast-default-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle{ top:"+t.tablet.top+t["tablet-unit"]+"; right:calc( "+t.tablet.right+t["tablet-unit"]+" - 0.907em );} }"))+("@media (max-width: 544px) { .ast-default-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-below-menu-enable .ast-below-header-enabled .ast-below-header-navigation .ast-below-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle{ top:"+t.mobile.top+t["mobile-unit"]+"; right:calc( "+t.mobile.right+t["mobile-unit"]+" - 0.907em );} }"))+("@media (max-width: 768px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item{padding-left:calc( "+t.tablet.left+t["tablet-unit"]+" + 10px );} }"))+("@media (max-width: 544px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item{padding-left:calc( "+t.mobile.left+t["mobile-unit"]+" + 10px );} }"))+("@media (max-width: 768px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item{padding-left:calc( "+t.tablet.left+t["tablet-unit"]+" + 20px );} }"))+("@media (max-width: 544px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item{padding-left:calc( "+t.mobile.left+t["mobile-unit"]+" + 20px );} }"))+("@media (max-width: 768px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item{padding-left:calc( "+t.tablet.left+t["tablet-unit"]+" + 30px );} }"))+("@media (max-width: 544px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item{padding-left:calc( "+t.mobile.left+t["mobile-unit"]+" + 30px );} }"))+("@media (max-width: 768px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-item{padding-left:calc( "+t.tablet.left+t["tablet-unit"]+" + 40px );} }"))+("@media (max-width: 544px) { .ast-header-break-point .ast-below-header-actual-nav .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-item, .ast-header-break-point .ast-below-header-menu-items .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-item .menu-item{padding-left:calc( "+t.mobile.left+t["mobile-unit"]+" + 40px );} }");astra_add_dynamic_css("add-below-mobile-header-layout-submenu-spacing",e)})}),astra_responsive_spacing("astra-settings[above-header-spacing]",".ast-above-header","padding",["top","bottom"]),astra_responsive_spacing("astra-settings[above-header-spacing]",".ast-above-header-wrap .ast-above-header .ast-container, #masthead .ast-above-header-wrap .ast-above-header .ast-container","padding",["right","left"]),astra_responsive_spacing("astra-settings[above-header-menu-spacing]",".ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu > .menu-item > .menu-link, .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu > .menu-item:first-child > .menu-link, .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu > .menu-item:last-child > .menu-link","padding",["top","right","bottom","left"]),wp.customize("astra-settings[above-header-menu-spacing]",function(t){t.bind(function(t){var e="",e=(e=(e+=" .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle{ top:"+t.desktop.top+t["desktop-unit"]+"; right:calc( "+t.desktop.right+t["desktop-unit"]+" - 0.907em );} ")+("@media (max-width: 768px) { .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle{ top:"+t.tablet.top+t["tablet-unit"]+"; right:calc( "+t.tablet.right+t["tablet-unit"]+" - 0.907em );} }"))+("@media (max-width: 544px) { .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-default-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-navigation .menu-item-has-children > .ast-menu-toggle, .ast-flyout-above-menu-enable.ast-header-break-point .ast-above-header-menu-items .menu-item-has-children > .ast-menu-toggle{ top:"+t.mobile.top+t["mobile-unit"]+"; right:calc( "+t.mobile.right+t["mobile-unit"]+" - 0.907em );} }");astra_add_dynamic_css("add-above-mobile-header-layout-menu-spacing",e)})}),astra_responsive_spacing("astra-settings[above-header-submenu-spacing]",".ast-desktop .ast-above-header-navigation .ast-mm-custom-text-content, .ast-desktop .ast-above-header-navigation .ast-mm-template-content, .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item .sub-menu .menu-link, .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-link, .ast-above-header-enabled .ast-above-header-menu > .menu-item:first-child .sub-menu .menu-item .menu-link","padding",["top","right","bottom","left"]),wp.customize("astra-settings[above-header-submenu-spacing]",function(t){t.bind(function(t){var e="",e=(e=(e=(e=(e=(e=(e=(e=(e=(e+=" .ast-default-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle{ top:"+t.desktop.top+t["desktop-unit"]+"; right:calc( "+t.desktop.right+t["desktop-unit"]+" - 0.907em );} ")+("@media (max-width: 768px) { .ast-default-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle{ top:"+t.tablet.top+t["tablet-unit"]+"; right:calc( "+t.tablet.right+t["tablet-unit"]+" - 0.907em );} }"))+("@media (max-width: 544px) { .ast-default-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle, .ast-flyout-above-menu-enable .ast-above-header-enabled .ast-above-header-navigation .ast-above-header-menu .menu-item.menu-item-has-children .sub-menu .ast-menu-toggle{ top:"+t.mobile.top+t["mobile-unit"]+"; right:calc( "+t.mobile.right+t["mobile-unit"]+" - 0.907em );} }"))+("@media (max-width: 768px) { .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-link{padding-left:calc( "+t.tablet.left+t["tablet-unit"]+" + 10px );} }"))+("@media (max-width: 544px) { .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-link{padding-left:calc( "+t.mobile.left+t["mobile-unit"]+" + 10px );} }"))+("@media (max-width: 768px) { .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-link{padding-left:calc( "+t.tablet.left+t["tablet-unit"]+" + 20px );} }"))+("@media (max-width: 544px) { .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-link{padding-left:calc( "+t.mobile.left+t["mobile-unit"]+" + 20px );} }"))+("@media (max-width: 768px) { .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-item .menu-link{padding-left:calc( "+t.tablet.left+t["tablet-unit"]+" + 30px );} }"))+("@media (max-width: 544px) { .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-item .menu-link{padding-left:calc( "+t.mobile.left+t["mobile-unit"]+" + 30px );} }"))+("@media (max-width: 768px) { .ast-header-break-point .ast-above-header-enabled .ast-above-header-menu .menu-item .sub-menu .menu-item .menu-item .menu-item .menu-item .menu-link{padding-left:calc( "+t.tablet.left+t["tablet-unit"]+" + 40px );} }");t.mobile.left,t["mobile-unit"]})}),astra_responsive_spacing("astra-settings[container-outside-spacing]",".ast-separate-container.ast-right-sidebar #primary, .ast-separate-container.ast-left-sidebar #primary, .ast-separate-container #primary, .ast-plain-container #primary, .ast-narrow-container #primary","margin",["top","bottom"]),astra_responsive_spacing("astra-settings[container-outside-spacing]",".ast-left-sidebar #primary, .ast-right-sidebar #primary, .ast-separate-container.ast-right-sidebar #primary, .ast-separate-container.ast-left-sidebar #primary, .ast-separate-container #primary, .ast-narrow-container #primary","padding",["left","right"]),wp.customize("astra-settings[container-outside-spacing]",function(t){t.bind(function(t){var e="";""==t.desktop.top&&""==t.tablet.top&&""==t.mobile.top||(e+=".ast-separate-container #primary, .ast-narrow-container #primary { padding-top: 0px;} "),""==t.desktop.bottom&&""==t.tablet.bottom&&""==t.mobile.bottom||(e+=".ast-separate-container #primary, .ast-narrow-container #primary { padding-bottom: 0px;} "),astra_add_dynamic_css("remove-header-spacing",e)})});var t=[".ast-narrow-container .ast-article-post, .ast-narrow-container .ast-article-single, .ast-narrow-container .ast-comment-list li.depth-1, .ast-narrow-container .comment-respond, .single.ast-narrow-container .ast-author-details, .ast-narrow-container .ast-related-posts-wrap, .ast-narrow-container .ast-woocommerce-container, .ast-narrow-container .ast-single-related-posts-container",".ast-narrow-container .ast-article-post, .ast-narrow-container .ast-article-single, .ast-narrow-container .comments-count-wrapper, .ast-narrow-container .ast-comment-list li.depth-1, .ast-narrow-container .comment-respond, .ast-narrow-container .related-posts-title-wrapper, .ast-narrow-container .related-posts-title-wrapper, .single.ast-narrow-container .ast-author-details, .single.ast-narrow-container .about-author-title-wrapper, .ast-narrow-container .ast-related-posts-wrap, .ast-narrow-container .ast-woocommerce-container, .ast-narrow-container .ast-single-related-posts-container"],t=(astra_responsive_spacing("astra-settings[container-inside-spacing]",".ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single, .ast-separate-container .ast-comment-list li.depth-1, .ast-separate-container .comment-respond, .single.ast-separate-container .ast-author-details, .ast-separate-container .ast-related-posts-wrap, .ast-separate-container .ast-woocommerce-container,"+t[0],"padding",["top","bottom"]),astra_responsive_spacing("astra-settings[container-inside-spacing]",".ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single,.ast-separate-container .comments-count-wrapper, .ast-separate-container .ast-comment-list li.depth-1, .ast-separate-container .comment-respond,.ast-separate-container .related-posts-title-wrapper,.ast-separate-container .related-posts-title-wrapper, .single.ast-separate-container .ast-author-details, .single.ast-separate-container .about-author-title-wrapper, .ast-separate-container .ast-related-posts-wrap, .ast-separate-container .ast-woocommerce-container,"+t[1],"padding",["left","right"]),wp.customize("astra-settings[container-inside-spacing]",function(t){t.bind(function(t){var e;t.desktop.top||t.desktop.left||t.desktop.right||t.tablet.top||t.tablet.left||t.tablet.right||t.mobile.top||t.mobile.left||t.mobile.right?(e=".ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: -"+t.desktop.top+t["desktop-unit"]+";} .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{ margin-left: -"+t.desktop.left+t["desktop-unit"]+"; margin-right: -"+t.desktop.right+t["desktop-unit"]+";}",e=(e+="@media (max-width: 768px) { .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: -"+t.tablet.top+t["tablet-unit"]+";} .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{ margin-left: -"+t.tablet.left+t["tablet-unit"]+"; margin-right: -"+t.tablet.right+t["tablet-unit"]+";} }")+"@media (max-width: 544px) { .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: -"+t.mobile.top+t["mobile-unit"]+";} .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{ margin-left: -"+t.mobile.left+t["mobile-unit"]+"; margin-right: -"+t.mobile.right+t["mobile-unit"]+";} }",astra_add_dynamic_css("single-post-featured-image-spacing",e)):wp.customize.preview.send("refresh")})}),[".ast-narrow-container.ast-single-post .ast-article-post, .ast-narrow-container.ast-single-post .ast-article-single, .ast-narrow-container.ast-single-post .ast-comment-list li.depth-1, .ast-narrow-container.ast-single-post .comment-respond, .single.ast-narrow-container.ast-single-post .ast-author-details, .ast-narrow-container.ast-single-post .ast-related-posts-wrap, .ast-narrow-container.ast-single-post .ast-woocommerce-container, .ast-narrow-container .ast-single-related-posts-container",".ast-narrow-container.ast-single-post .ast-article-post, .ast-narrow-container.ast-single-post .ast-article-single, .ast-narrow-container.ast-single-post .comments-count-wrapper, .ast-narrow-container.ast-single-post .ast-comment-list li.depth-1, .ast-narrow-container.ast-single-post .comment-respond,.ast-narrow-container.ast-single-post .related-posts-title-wrapper,.ast-narrow-container.ast-single-post .related-posts-title-wrapper, .single.ast-narrow-container.ast-single-post .ast-author-details, .single.ast-narrow-container.ast-single-post .about-author-title-wrapper, .ast-narrow-container.ast-single-post .ast-related-posts-wrap, .ast-narrow-container.ast-single-post .ast-woocommerce-container"]);function a(){isIE=!!document.documentMode,isEdge=!isIE&&!!window.StyleMedia;var t=astra.masonryEnabled||!1,e=astra.blogMasonryBreakPoint,a=window.getComputedStyle(jQuery("#content")[0],"::before").getPropertyValue("content"),n=(isEdge||isIE||"normal"===a?window.innerWidth>=e&&(a=e):(a=a.replace(/[^0-9]/g,""),a=parseInt(a)),jQuery(".search.blog-masonry #main > div, .blog.blog-masonry #main > div, .archive.blog-masonry #main > div"));a==e?t&&void 0!==n&&0<n.length&&(!!n.data("masonry")?n.masonry("reload"):n.imagesLoaded(n,function(){n.masonry({itemSelector:"#primary article"})})):t&&void 0!==n&&0<n.length&&n.masonry().masonry("destroy")}astra_responsive_spacing("astra-settings[single-post-inside-spacing]",".ast-separate-container.ast-single-post .ast-article-post, .ast-separate-container.ast-single-post .ast-article-single, .ast-separate-container.ast-single-post .ast-comment-list li.depth-1, .ast-separate-container.ast-single-post .comment-respond, .single.ast-separate-container.ast-single-post .ast-author-details, .ast-separate-container.ast-single-post .ast-related-posts-wrap, .ast-separate-container.ast-single-post .ast-woocommerce-container,"+t[0],"padding",["top","bottom"]),astra_responsive_spacing("astra-settings[single-post-inside-spacing]",".ast-separate-container.ast-single-post .ast-article-post, .ast-separate-container.ast-single-post .ast-article-single, .ast-separate-container.ast-single-post .comments-count-wrapper, .ast-separate-container.ast-single-post .ast-comment-list li.depth-1, .ast-separate-container.ast-single-post .comment-respond,.ast-separate-container.ast-single-post .related-posts-title-wrapper,.ast-separate-container.ast-single-post .related-posts-title-wrapper, .single.ast-separate-container.ast-single-post .ast-author-details, .single.ast-separate-container.ast-single-post .about-author-title-wrapper, .ast-separate-container.ast-single-post .ast-related-posts-wrap, .ast-separate-container.ast-single-post .ast-woocommerce-container,"+t[1],"padding",["left","right"]),wp.customize("astra-settings[single-post-inside-spacing]",function(t){t.bind(function(t){var e;t.desktop.top||t.desktop.left||t.desktop.right||t.tablet.top||t.tablet.left||t.tablet.right||t.mobile.top||t.mobile.left||t.mobile.right?(e=".ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: -"+t.desktop.top+t["desktop-unit"]+";} .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{ margin-left: -"+t.desktop.left+t["desktop-unit"]+"; margin-right: -"+t.desktop.right+t["desktop-unit"]+";}",e=(e+="@media (max-width: 768px) { .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: -"+t.tablet.top+t["tablet-unit"]+";} .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{ margin-left: -"+t.tablet.left+t["tablet-unit"]+"; margin-right: -"+t.tablet.right+t["tablet-unit"]+";} }")+"@media (max-width: 544px) { .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: -"+t.mobile.top+t["mobile-unit"]+";} .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child, .ast-separate-container.ast-single-post .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{ margin-left: -"+t.mobile.left+t["mobile-unit"]+"; margin-right: -"+t.mobile.right+t["mobile-unit"]+";} }",astra_add_dynamic_css("single-post-featured-image-spacing",e)):wp.customize.preview.send("refresh")})}),astra_responsive_spacing("astra-settings[sidebar-outside-spacing]",".ast-plain-container #secondary,.ast-separate-container #secondary, .ast-page-builder-template #secondary","margin",["top","bottom"]),astra_responsive_spacing("astra-settings[sidebar-outside-spacing]",".ast-right-sidebar #secondary, .ast-left-sidebar #secondary, .ast-separate-container.ast-two-container.ast-left-sidebar #secondary, .ast-separate-container.ast-two-container.ast-right-sidebar #secondary, .ast-separate-container.ast-right-sidebar #secondary, .ast-separate-container.ast-left-sidebar #secondary","padding",["left","right"]),astra_responsive_spacing("astra-settings[sidebar-outside-spacing]",".ast-separate-container.ast-two-container #secondary .widget, .ast-separate-container #secondary .widget","margin",["bottom"]),astra_responsive_spacing("astra-settings[sidebar-inside-spacing]",".ast-two-container.ast-right-sidebar #secondary .widget, .ast-separate-container #secondary .widget, .ast-plain-container #secondary .widget","padding",["top","bottom"]),astra_responsive_spacing("astra-settings[sidebar-inside-spacing]",".ast-two-container.ast-right-sidebar #secondary .widget, .ast-two-container.ast-left-sidebar #secondary .widget, .ast-separate-container #secondary .widget, .ast-plain-container #secondary .widget","padding",["left","right"]),astra_responsive_spacing("astra-settings[footer-sml-spacing]",".ast-footer-overlay","padding",["top","bottom"]),astra_responsive_spacing("astra-settings[footer-sml-spacing]",".ast-small-footer .ast-container","padding",["left","right"]),astra_responsive_spacing("astra-settings[footer-menu-spacing]",".ast-small-footer .nav-menu a, .footer-sml-layout-2 .ast-small-footer-section-1 .menu-item .menu-link, .footer-sml-layout-2 .ast-small-footer-section-2 .menu-item .menu-link","padding",["top","right","bottom","left"]),!ast_preview.blog_pro_enabled||jQuery("body").hasClass("ast-blog-grid-1")||jQuery("body").hasClass("ast-blog-layout-2")||jQuery("body").hasClass("ast-blog-layout-3")?(astra_responsive_spacing("astra-settings[blog-post-outside-spacing]",".ast-separate-container .ast-article-post, .ast-separate-container .ast-separate-posts.ast-article-post, .ast-narrow-container .ast-article-post, .ast-narrow-container .ast-separate-posts.ast-article-post","margin",["top","right","bottom","left"]),astra_responsive_spacing("astra-settings[blog-post-inside-spacing]",".ast-separate-container .ast-article-post, .ast-separate-container .ast-article-post, .ast-narrow-container .ast-article-post, .ast-narrow-container .ast-article-post","padding",["top","right","bottom","left"])):(astra_responsive_spacing("astra-settings[blog-post-outside-spacing]",".ast-separate-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-separate-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-separate-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-separate-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-separate-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-separate-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+1),.ast-narrow-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-narrow-container .ast-grid-2 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-narrow-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-narrow-container .ast-grid-3 .ast-article-post.ast-separate-posts:nth-child(2n+1), .ast-narrow-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+0), .ast-narrow-container .ast-grid-4 .ast-article-post.ast-separate-posts:nth-child(2n+1)","padding",["top","right","bottom","left"]),wp.customize("astra-settings[blog-post-outside-spacing]",function(t){t.bind(function(t){var e="";""==t.desktop.bottom&&""==t.tablet.bottom&&""==t.mobile.bottom||(e+=".ast-separate-container .ast-separate-posts.ast-article-post{ margin-bottom: 0px;} .ast-narrow-container .ast-separate-posts.ast-article-post{ margin-bottom: 0px;} "),astra_add_dynamic_css("remove-blog-outside-spacing",e),1!=(void 0!==wp.customize._value["astra-settings[blog-grid]"]?wp.customize._value["astra-settings[blog-grid]"]._value:"")&&a()})}),astra_responsive_spacing("astra-settings[blog-post-inside-spacing]",".ast-separate-container .ast-grid-2 .blog-layout-1, .ast-separate-container .ast-grid-2 .blog-layout-2, .ast-separate-container .ast-grid-2 .blog-layout-3, .ast-separate-container .ast-grid-3 .blog-layout-1, .ast-separate-container .ast-grid-3 .blog-layout-2, .ast-separate-container .ast-grid-3 .blog-layout-3, .ast-separate-container .ast-grid-4 .blog-layout-1, .ast-separate-container .ast-grid-4 .blog-layout-2, .ast-separate-container .ast-grid-4 .blog-layout-3,.ast-narrow-container .ast-grid-2 .blog-layout-1, .ast-narrow-container .ast-grid-2 .blog-layout-2, .ast-narrow-container .ast-grid-2 .blog-layout-3, .ast-narrow-container .ast-grid-3 .blog-layout-1, .ast-narrow-container .ast-grid-3 .blog-layout-2, .ast-narrow-container .ast-grid-3 .blog-layout-3, .ast-narrow-container .ast-grid-4 .blog-layout-1, .ast-narrow-container .ast-grid-4 .blog-layout-2, .ast-narrow-container .ast-grid-4 .blog-layout-3","padding",["top","right","bottom","left"]),wp.customize("astra-settings[blog-post-inside-spacing]",function(t){t.bind(function(t){1!=(void 0!==wp.customize._value["astra-settings[blog-grid]"]?wp.customize._value["astra-settings[blog-grid]"]._value:"")&&a()})})),wp.customize("astra-settings[blog-post-inside-spacing]",function(t){t.bind(function(t){var e;t.desktop.top||t.desktop.left||t.desktop.right||t.tablet.top||t.tablet.left||t.tablet.right||t.mobile.top||t.mobile.left||t.mobile.right?(e=".ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on { margin-top: -"+t.desktop.top+t["desktop-unit"]+";} .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on{ margin-left: -"+t.desktop.left+t["desktop-unit"]+"; margin-right: -"+t.desktop.right+t["desktop-unit"]+";}",e=(e+="@media (max-width: 768px) { .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on{ margin-top: -"+t.tablet.top+t["tablet-unit"]+";} .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on{ margin-left: -"+t.tablet.left+t["tablet-unit"]+"; margin-right: -"+t.tablet.right+t["tablet-unit"]+";} }")+"@media (max-width: 544px) { .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on{ margin-top: -"+t.mobile.top+t["mobile-unit"]+";} .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on{ margin-left: -"+t.mobile.left+t["mobile-unit"]+"; margin-right: -"+t.mobile.right+t["mobile-unit"]+";} }",astra_add_dynamic_css("blog-post-inside-spacing",e)):wp.customize.preview.send("refresh")})}),astra_responsive_spacing("astra-settings[blog-post-pagination-spacing]",".ast-pagination","padding",["top","right","bottom","left"]);var n=ast_preview.tablet_break_point||768,i=ast_preview.mobile_break_point||544,s=".ast-hfb-header";ast_preview.astra_not_updated&&(s=".astra-hfb-header");for(var e=1;e<=ast_preview.component_limit;e++)!function(a){wp.customize("astra-settings[header-menu"+a+"-submenu-spacing]",function(t){t.bind(function(t){var e;""==t.desktop.bottom&&""==t.desktop.top&&""==t.desktop.left&&""==t.desktop.right&&""==t.tablet.bottom&&""==t.tablet.top&&""==t.tablet.left&&""==t.tablet.right&&""==t.mobile.bottom&&""==t.mobile.top&&""==t.mobile.left&&""==t.mobile.right||(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e="")+".ast-builder-menu-"+a+" .main-header-menu.ast-nav-menu .sub-menu .menu-item .menu-link {padding-left: "+t.desktop.left+t["desktop-unit"]+";")+"padding-right: "+t.desktop.right+t["desktop-unit"]+";")+"padding-top: "+t.desktop.top+t["desktop-unit"]+";")+"padding-bottom: "+t.desktop.bottom+t["desktop-unit"]+";")+"} @media (max-width: "+n+"px) {")+".ast-builder-menu-"+a+" .main-header-menu.ast-nav-menu .sub-menu .menu-item .menu-link {padding-left: "+t.tablet.left+t["tablet-unit"]+";")+"padding-right: "+t.tablet.right+t["tablet-unit"]+";")+"padding-top: "+t.tablet.top+t["desktop-unit"]+";")+"padding-bottom: "+t.tablet.bottom+t["desktop-unit"]+";")+"} "+s+" .ast-builder-menu-"+a+" .main-navigation ul .sub-menu .menu-item.menu-item-has-children > .ast-menu-toggle {")+"top: "+t.tablet.top+t["tablet-unit"]+";")+"right: calc( "+t.tablet.right+t["tablet-unit"]+" - 0.907em );} ")+"} @media (max-width: "+i+"px) {")+".ast-builder-menu-"+a+" .main-header-menu.ast-nav-menu .sub-menu .menu-item .menu-link {padding-left: "+t.mobile.left+t["mobile-unit"]+";")+"padding-right: "+t.mobile.right+t["mobile-unit"]+";")+"padding-top: "+t.mobile.top+t["desktop-unit"]+";")+"padding-bottom: "+t.mobile.bottom+t["desktop-unit"]+";")+"} "+s+" .ast-builder-menu-"+a+" .main-navigation ul .sub-menu .menu-item.menu-item-has-children > .ast-menu-toggle {")+"top: "+t.mobile.top+t["mobile-unit"]+";")+"right: calc( "+t.mobile.right+t["mobile-unit"]+" - 0.907em );} } ",astra_add_dynamic_css("header-menu"+a+"-submenu-spacing-toggle-button",e))})}),a<3&&wp.customize("astra-settings[header-menu"+a+"-megamenu-heading-space]",function(t){t.bind(function(t){var e;""==t.desktop.bottom&&""==t.desktop.top&&""==t.desktop.left&&""==t.desktop.right&&""==t.tablet.bottom&&""==t.tablet.top&&""==t.tablet.left&&""==t.tablet.right&&""==t.mobile.bottom&&""==t.mobile.top&&""==t.mobile.left&&""==t.mobile.right||(e="",e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e+=s+" .ast-builder-menu-menu"+a+".ast-builder-menu .main-header-menu .menu-item.menu-item-heading > .menu-link {")+"padding-left: "+t.desktop.left+t["desktop-unit"]+";")+"padding-right: "+t.desktop.right+t["desktop-unit"]+";")+"padding-top: "+t.desktop.top+t["desktop-unit"]+";")+"padding-bottom: "+t.desktop.bottom+t["desktop-unit"]+";} ")+"@media (max-width: "+n+"px) {"+s+" .ast-builder-menu-menu"+a+".ast-builder-menu .main-header-menu .menu-item.menu-item-heading > .menu-link {")+"padding-left: "+t.tablet.left+t["tablet-unit"]+";")+"padding-right: "+t.tablet.right+t["tablet-unit"]+";")+"padding-top: "+t.tablet.top+t["desktop-unit"]+";")+"padding-bottom: "+t.tablet.bottom+t["desktop-unit"]+";} } ")+"@media (max-width: "+i+"px) {"+s+" .ast-builder-menu-menu"+a+".ast-builder-menu .main-header-menu .menu-item.menu-item-heading > .menu-link {")+"padding-left: "+t.mobile.left+t["mobile-unit"]+";")+"padding-right: "+t.mobile.right+t["mobile-unit"]+";")+"padding-top: "+t.mobile.top+t["desktop-unit"]+";")+"padding-bottom: "+t.mobile.bottom+t["desktop-unit"]+";} } ",astra_add_dynamic_css("header-menu"+a+"-megamenu-heading-space-toggle-button",e))})})}(e);wp.customize("astra-settings[header-mobile-menu-submenu-spacing]",function(t){t.bind(function(t){var e;""==t.desktop.bottom&&""==t.desktop.top&&""==t.desktop.left&&""==t.desktop.right&&""==t.tablet.bottom&&""==t.tablet.top&&""==t.tablet.left&&""==t.tablet.right&&""==t.mobile.bottom&&""==t.mobile.top&&""==t.mobile.left&&""==t.mobile.right||(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e="")+".ast-hfb-header .ast-builder-menu-mobile .main-header-menu.ast-nav-menu .sub-menu .menu-item .menu-link {padding-left: "+t.desktop.left+t["desktop-unit"]+";")+"padding-right: "+t.desktop.right+t["desktop-unit"]+";")+"padding-top: "+t.desktop.top+t["desktop-unit"]+";")+"padding-bottom: "+t.desktop.bottom+t["desktop-unit"]+";")+"} .ast-hfb-header .ast-builder-menu-mobile .main-header-menu.ast-nav-menu .sub-menu .menu-item.menu-item-has-children > .ast-menu-toggle { top:"+t.desktop.top+t["desktop-unit"]+"; right:calc( "+t.desktop.right+t["desktop-unit"]+" - 0.907em );} ")+"@media (max-width: "+n+"px) {")+".ast-hfb-header .ast-builder-menu-mobile .main-header-menu.ast-nav-menu .sub-menu .menu-item .menu-link {padding-left: "+t.tablet.left+t["tablet-unit"]+";")+"padding-right: "+t.tablet.right+t["tablet-unit"]+";")+"padding-top: "+t.tablet.top+t["tablet-unit"]+";")+"padding-bottom: "+t.tablet.bottom+t["tablet-unit"]+";")+"} .ast-hfb-header .ast-builder-menu-mobile .main-header-menu.ast-nav-menu .sub-menu .menu-item.menu-item-has-children > .ast-menu-toggle { top:"+t.tablet.top+t["tablet-unit"]+"; right:calc( "+t.tablet.right+t["tablet-unit"]+" - 0.907em );} ")+"} @media (max-width: "+i+"px) {")+".ast-hfb-header .ast-builder-menu-mobile .main-header-menu.ast-nav-menu .sub-menu .menu-item .menu-link {padding-left: "+t.mobile.left+t["mobile-unit"]+";")+"padding-right: "+t.mobile.right+t["mobile-unit"]+";")+"padding-top: "+t.mobile.top+t["mobile-unit"]+";")+"padding-bottom: "+t.mobile.bottom+t["mobile-unit"]+";} ")+".ast-hfb-header .ast-builder-menu-mobile .main-header-menu.ast-nav-menu .sub-menu .menu-item.menu-item-has-children > .ast-menu-toggle { top:"+t.mobile.top+t["mobile-unit"]+"; right:calc( "+t.mobile.right+t["mobile-unit"]+" - 0.907em );} } ",astra_add_dynamic_css("header-mobile-menu-submenu-spacing-toggle-button",e))})}),wp.customize("astra-settings[section-hb-language-switcher-item-spacing]",function(t){t.bind(function(t){var e="";""==t.desktop.bottom&&""==t.desktop.top&&""==t.desktop.left&&""==t.desktop.right&&""==t.tablet.bottom&&""==t.tablet.top&&""==t.tablet.left&&""==t.tablet.right&&""==t.mobile.bottom&&""==t.mobile.top&&""==t.mobile.left&&""==t.mobile.right||(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e+".ast-builder-language-switcher-menu-item-header {padding-left: "+t.desktop.left+t["desktop-unit"]+";")+"padding-right: "+t.desktop.right+t["desktop-unit"]+";")+"padding-top: "+t.desktop.top+t["desktop-unit"]+";")+"padding-bottom: "+t.desktop.bottom+t["desktop-unit"]+";")+"} @media (max-width: "+n+"px) {")+".ast-builder-language-switcher-menu-item-header {padding-left: "+t.tablet.left+t["tablet-unit"]+";")+"padding-right: "+t.tablet.right+t["tablet-unit"]+";")+"padding-top: "+t.tablet.top+t["desktop-unit"]+";")+"padding-bottom: "+t.tablet.bottom+t["desktop-unit"]+";} ")+"} @media (max-width: "+i+"px) {")+".ast-builder-language-switcher-menu-item-header {padding-left: "+t.mobile.left+t["mobile-unit"]+";")+"padding-right: "+t.mobile.right+t["mobile-unit"]+";")+"padding-top: "+t.mobile.top+t["desktop-unit"]+";")+"padding-bottom: "+t.mobile.bottom+t["desktop-unit"]+";} } "),astra_add_dynamic_css("section-hb-language-switcher-item-spacing",e)})}),wp.customize("astra-settings[section-hb-language-switcher-margin]",function(t){t.bind(function(t){var e="";""==t.desktop.bottom&&""==t.desktop.top&&""==t.desktop.left&&""==t.desktop.right&&""==t.tablet.bottom&&""==t.tablet.top&&""==t.tablet.left&&""==t.tablet.right&&""==t.mobile.bottom&&""==t.mobile.top&&""==t.mobile.left&&""==t.mobile.right||(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e+".ast-header-language-switcher {margin-left: "+t.desktop.left+t["desktop-unit"]+";")+"margin-right: "+t.desktop.right+t["desktop-unit"]+";")+"margin-top: "+t.desktop.top+t["desktop-unit"]+";")+"margin-bottom: "+t.desktop.bottom+t["desktop-unit"]+";")+"} @media (max-width: "+n+"px) {")+".ast-header-language-switcher {margin-left: "+t.tablet.left+t["tablet-unit"]+";")+"margin-right: "+t.tablet.right+t["tablet-unit"]+";")+"margin-top: "+t.tablet.top+t["desktop-unit"]+";")+"margin-bottom: "+t.tablet.bottom+t["desktop-unit"]+";} ")+"} @media (max-width: "+i+"px) {")+".ast-header-language-switcher {margin-left: "+t.mobile.left+t["mobile-unit"]+";")+"margin-right: "+t.mobile.right+t["mobile-unit"]+";")+"margin-top: "+t.mobile.top+t["desktop-unit"]+";")+"margin-bottom: "+t.mobile.bottom+t["desktop-unit"]+";} } "),astra_add_dynamic_css("section-hb-language-switcher-margin",e)})}),wp.customize("astra-settings[section-fb-language-switcher-item-spacing]",function(t){t.bind(function(t){var e="";""==t.desktop.bottom&&""==t.desktop.top&&""==t.desktop.left&&""==t.desktop.right&&""==t.tablet.bottom&&""==t.tablet.top&&""==t.tablet.left&&""==t.tablet.right&&""==t.mobile.bottom&&""==t.mobile.top&&""==t.mobile.left&&""==t.mobile.right||(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e+".ast-builder-language-switcher-menu-item-footer {padding-left: "+t.desktop.left+t["desktop-unit"]+";")+"padding-right: "+t.desktop.right+t["desktop-unit"]+";")+"padding-top: "+t.desktop.top+t["desktop-unit"]+";")+"padding-bottom: "+t.desktop.bottom+t["desktop-unit"]+";")+"} @media (max-width: "+n+"px) {")+".ast-builder-language-switcher-menu-item-footer {padding-left: "+t.tablet.left+t["tablet-unit"]+";")+"padding-right: "+t.tablet.right+t["tablet-unit"]+";")+"padding-top: "+t.tablet.top+t["desktop-unit"]+";")+"padding-bottom: "+t.tablet.bottom+t["desktop-unit"]+";} ")+"} @media (max-width: "+i+"px) {")+".ast-builder-language-switcher-menu-item-footer {padding-left: "+t.mobile.left+t["mobile-unit"]+";")+"padding-right: "+t.mobile.right+t["mobile-unit"]+";")+"padding-top: "+t.mobile.top+t["desktop-unit"]+";")+"padding-bottom: "+t.mobile.bottom+t["desktop-unit"]+";} } "),astra_add_dynamic_css("section-fb-language-switcher-item-spacing",e)})}),wp.customize("astra-settings[section-fb-language-switcher-margin]",function(t){t.bind(function(t){var e="";""==t.desktop.bottom&&""==t.desktop.top&&""==t.desktop.left&&""==t.desktop.right&&""==t.tablet.bottom&&""==t.tablet.top&&""==t.tablet.left&&""==t.tablet.right&&""==t.mobile.bottom&&""==t.mobile.top&&""==t.mobile.left&&""==t.mobile.right||(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e+".ast-footer-language-switcher {margin-left: "+t.desktop.left+t["desktop-unit"]+";")+"margin-right: "+t.desktop.right+t["desktop-unit"]+";")+"margin-top: "+t.desktop.top+t["desktop-unit"]+";")+"margin-bottom: "+t.desktop.bottom+t["desktop-unit"]+";")+"} @media (max-width: "+n+"px) {")+".ast-footer-language-switcher {margin-left: "+t.tablet.left+t["tablet-unit"]+";")+"margin-right: "+t.tablet.right+t["tablet-unit"]+";")+"margin-top: "+t.tablet.top+t["desktop-unit"]+";")+"margin-bottom: "+t.tablet.bottom+t["desktop-unit"]+";} ")+"} @media (max-width: "+i+"px) {")+".ast-footer-language-switcher {margin-left: "+t.mobile.left+t["mobile-unit"]+";")+"margin-right: "+t.mobile.right+t["mobile-unit"]+";")+"margin-top: "+t.mobile.top+t["desktop-unit"]+";")+"margin-bottom: "+t.mobile.bottom+t["desktop-unit"]+";} } "),astra_add_dynamic_css("section-fb-language-switcher-margin",e)})})}(jQuery); index.php 0000666 00000000170 15165501465 0006376 0 ustar 00 <?php /** * Index file * * @package Astra * @since Astra 1.2.0 */ /* Silence is golden, and we agree. */
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings