inc/compatibility/class-astra-beaver-themer.php 0000666 00000024144 15214042653 0015653 0 ustar 00 0 ) { $classes = array_diff( $classes, array( // Astra common grid. 'ast-col-xs-1', 'ast-col-xs-2', 'ast-col-xs-3', 'ast-col-xs-4', 'ast-col-xs-5', 'ast-col-xs-6', 'ast-col-xs-7', 'ast-col-xs-8', 'ast-col-xs-9', 'ast-col-xs-10', 'ast-col-xs-11', 'ast-col-xs-12', 'ast-col-sm-1', 'ast-col-sm-2', 'ast-col-sm-3', 'ast-col-sm-4', 'ast-col-sm-5', 'ast-col-sm-6', 'ast-col-sm-7', 'ast-col-sm-8', 'ast-col-sm-9', 'ast-col-sm-10', 'ast-col-sm-11', 'ast-col-sm-12', 'ast-col-md-1', 'ast-col-md-2', 'ast-col-md-3', 'ast-col-md-4', 'ast-col-md-5', 'ast-col-md-6', 'ast-col-md-7', 'ast-col-md-8', 'ast-col-md-9', 'ast-col-md-10', 'ast-col-md-11', 'ast-col-md-12', 'ast-col-lg-1', 'ast-col-lg-2', 'ast-col-lg-3', 'ast-col-lg-4', 'ast-col-lg-5', 'ast-col-lg-6', 'ast-col-lg-7', 'ast-col-lg-8', 'ast-col-lg-9', 'ast-col-lg-10', 'ast-col-lg-11', 'ast-col-lg-12', 'ast-col-xl-1', 'ast-col-xl-2', 'ast-col-xl-3', 'ast-col-xl-4', 'ast-col-xl-5', 'ast-col-xl-6', 'ast-col-xl-7', 'ast-col-xl-8', 'ast-col-xl-9', 'ast-col-xl-10', 'ast-col-xl-11', 'ast-col-xl-12', // Astra Blog / Single Post. 'ast-article-post', 'ast-article-single', 'ast-separate-posts', 'remove-featured-img-padding', 'ast-featured-post', // Astra Woocommerce. 'ast-product-gallery-layout-vertical', 'ast-product-gallery-layout-horizontal', 'ast-product-gallery-with-no-image', 'ast-product-tabs-layout-vertical', 'ast-product-tabs-layout-horizontal', 'ast-qv-disabled', 'ast-qv-on-image', 'ast-qv-on-image-click', 'ast-qv-after-summary', 'astra-woo-hover-swap', 'box-shadow-0', 'box-shadow-0-hover', 'box-shadow-1', 'box-shadow-1-hover', 'box-shadow-2', 'box-shadow-2-hover', 'box-shadow-3', 'box-shadow-3-hover', 'box-shadow-4', 'box-shadow-4-hover', 'box-shadow-5', 'box-shadow-5-hover', ) ); add_filter( 'astra_post_link_enabled', '__return_false' ); } return $classes; } /** * Function to add Theme Support * * @since 1.0.0 */ public function header_footer_support() { add_theme_support( 'fl-theme-builder-headers' ); add_theme_support( 'fl-theme-builder-footers' ); add_theme_support( 'fl-theme-builder-parts' ); } /** * Function to update Atra header/footer with Beaver template * * @since 1.0.0 */ public function theme_header_footer_render() { // Get the header ID. $header_ids = FLThemeBuilderLayoutData::get_current_page_header_ids(); // If we have a header, remove the theme header and hook in Theme Builder's. if ( ! empty( $header_ids ) ) { remove_action( 'astra_header', 'astra_header_markup' ); add_action( 'astra_header', 'FLThemeBuilderLayoutRenderer::render_header' ); } // Get the footer ID. $footer_ids = FLThemeBuilderLayoutData::get_current_page_footer_ids(); // If we have a footer, remove the theme footer and hook in Theme Builder's. if ( ! empty( $footer_ids ) ) { remove_action( 'astra_footer', 'astra_footer_markup' ); add_action( 'astra_footer', 'FLThemeBuilderLayoutRenderer::render_footer' ); } // BB Themer Support. $template_ids = FLThemeBuilderLayoutData::get_current_page_content_ids(); if ( ! empty( $template_ids ) ) { $template_id = $template_ids[0]; $template_type = get_post_meta( $template_id, '_fl_theme_layout_type', true ); if ( 'archive' === $template_type || 'singular' === $template_type || '404' === $template_type ) { $sidebar = get_post_meta( $template_id, 'site-sidebar-layout', true ); if ( 'default' !== $sidebar ) { add_filter( 'astra_page_layout', function( $page_layout ) use ( $sidebar ) { return $sidebar; } ); } $content_layout = get_post_meta( $template_id, 'site-content-layout', true ); if ( 'default' !== $content_layout ) { add_filter( 'astra_get_content_layout', function( $layout ) use ( $content_layout ) { return $content_layout; } ); } $main_header_display = get_post_meta( $template_id, 'ast-main-header-display', true ); if ( 'disabled' === $main_header_display ) { if ( 'archive' === $template_type ) { remove_action( 'astra_masthead', 'astra_masthead_primary_template' ); } else { add_filter( 'ast_main_header_display', function( $display_header ) { return 'disabled'; } ); } } $footer_layout = get_post_meta( $template_id, 'footer-sml-layout', true ); if ( 'disabled' === $footer_layout ) { add_filter( 'ast_footer_sml_layout', function( $is_footer ) { return 'disabled'; } ); } // Override! Footer Widgets. $footer_widgets = get_post_meta( $template_id, 'footer-adv-display', true ); if ( 'disabled' === $footer_widgets ) { add_filter( 'astra_advanced_footer_disable', function() { return true; } ); } } } } /** * Function to Astra theme parts * * @since 1.0.0 */ public function register_part_hooks() { return array( array( 'label' => 'Page', 'hooks' => array( 'astra_body_top' => __( 'Before Page', 'astra' ), 'astra_body_bottom' => __( 'After Page', 'astra' ), ), ), array( 'label' => 'Header', 'hooks' => array( 'astra_header_before' => __( 'Before Header', 'astra' ), 'astra_header_after' => __( 'After Header', 'astra' ), ), ), array( 'label' => 'Content', 'hooks' => array( 'astra_primary_content_top' => __( 'Before Content', 'astra' ), 'astra_primary_content_bottom' => __( 'After Content', 'astra' ), ), ), array( 'label' => 'Footer', 'hooks' => array( 'astra_footer_before' => __( 'Before Footer', 'astra' ), 'astra_footer_after' => __( 'After Footer', 'astra' ), ), ), array( 'label' => 'Sidebar', 'hooks' => array( 'astra_sidebars_before' => __( 'Before Sidebar', 'astra' ), 'astra_sidebars_after' => __( 'After Sidebar', 'astra' ), ), ), array( 'label' => 'Posts', 'hooks' => array( 'loop_start' => __( 'Loop Start', 'astra' ), 'astra_entry_top' => __( 'Before Post', 'astra' ), 'astra_entry_content_before' => __( 'Before Post Content', 'astra' ), 'astra_entry_content_after' => __( 'After Post Content', 'astra' ), 'astra_entry_bottom' => __( 'After Post', 'astra' ), 'astra_comments_before' => __( 'Before Comments', 'astra' ), 'astra_comments_after' => __( 'After Comments', 'astra' ), 'loop_end' => __( 'Loop End', 'astra' ), ), ), ); } /** * Function to theme before render content * * @param int $post_id Post ID. * @since 1.0.28 */ public function builder_before_render_content( $post_id ) { ?>
ID ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
'; woocommerce_template_loop_product_title(); echo ''; } } if ( ! function_exists( 'astra_woo_woocommerce_shop_product_content' ) ) { /** * Show the product title in the product loop. By default this is an H2. */ function astra_woo_woocommerce_shop_product_content() { $shop_structure = apply_filters( 'astra_woo_shop_product_structure', astra_get_option( 'shop-product-structure' ) ); if ( is_array( $shop_structure ) && ! empty( $shop_structure ) ) { do_action( 'astra_woo_shop_before_summary_wrap' ); echo '
' . __( 'Helpful Information', 'astra' ) . '
', 'links' => array( array( 'text' => __( 'Site Layout Overview', 'astra' ) . ' »', 'attrs' => array( 'href' => astra_get_pro_url( 'https://wpastra.com/docs/site-layout-overview/', 'customizer', 'site-layout', 'helpful-information' ), ), ), array( 'text' => __( 'Container Overview', 'astra' ) . ' »', 'attrs' => array( 'href' => astra_get_pro_url( 'https://wpastra.com/docs/container-overview/', 'customizer', 'container', 'helpful-information' ), ), ), ), ) ), ), /* * Header section * * @since 1.4.0 */ array( 'name' => 'panel-header-group', 'type' => 'panel', 'priority' => 20, 'title' => __( 'Header', 'astra' ), ), /* * Update the Site Identity section inside Layout -> Header * * @since 1.4.0 */ array( 'name' => 'title_tagline', 'type' => 'section', 'priority' => 5, 'title' => __( 'Site Identity', 'astra' ), 'panel' => 'panel-header-group', 'description_hidden' => true, 'description' => $this->section_get_description( array( 'description' => '' . __( 'Helpful Information', 'astra' ) . '
', 'links' => array( array( 'text' => __( 'Site Identity Overview', 'astra' ) . ' »', 'attrs' => array( 'href' => astra_get_pro_url( 'https://wpastra.com/docs/site-identity-free/', 'customizer', 'site-identity', 'helpful-information' ), ), ), ), ) ), ), /* * Update the Primary Header section * * @since 1.4.0 */ array( 'name' => 'section-header', 'type' => 'section', 'priority' => 15, 'title' => __( 'Primary Header', 'astra' ), 'panel' => 'panel-header-group', 'description_hidden' => true, 'description' => $this->section_get_description( array( 'description' => '' . __( 'Helpful Information', 'astra' ) . '
', 'links' => array( array( 'text' => __( 'Primary Header Overview', 'astra' ) . ' »', 'attrs' => array( 'href' => astra_get_pro_url( 'https://wpastra.com/docs/header-overview/', 'customizer', 'primary-header', 'helpful-information' ), ), ), ), ) ), ), array( 'name' => 'section-primary-menu', 'type' => 'section', 'priority' => 15, 'title' => __( 'Primary Menu', 'astra' ), 'panel' => 'panel-header-group', ), array( 'name' => 'section-footer-group', 'type' => 'section', 'title' => __( 'Footer', 'astra' ), 'priority' => 55, ), array( 'name' => 'section-separator', 'type' => 'section', 'priority' => 70, 'section_callback' => 'Astra_WP_Customize_Separator', ), /** * Footer Widgets Section */ array( 'name' => 'section-footer-adv', 'type' => 'section', 'title' => __( 'Footer Widgets', 'astra' ), 'section' => 'section-footer-group', 'priority' => 5, ), array( 'name' => 'section-footer-small', 'type' => 'section', 'title' => __( 'Footer Bar', 'astra' ), 'section' => 'section-footer-group', 'priority' => 10, 'description_hidden' => true, 'description' => $this->section_get_description( array( 'description' => '' . __( 'Helpful Information', 'astra' ) . '
', 'links' => array( array( 'text' => __( 'Footer Bar Overview', 'astra' ) . ' »', 'attrs' => array( 'href' => astra_get_pro_url( 'https://wpastra.com/docs/footer-bar/', 'customizer', 'footer-bar', 'helpful-information' ), ), ), ), ) ), ), array( 'name' => 'section-blog-group', 'type' => 'section', 'priority' => 40, 'title' => __( 'Blog', 'astra' ), ), array( 'name' => 'section-blog', 'type' => 'section', 'priority' => 5, 'title' => __( 'Blog / Archive', 'astra' ), 'section' => 'section-blog-group', ), array( 'name' => 'section-blog-single', 'type' => 'section', 'priority' => 10, 'title' => __( 'Single Post', 'astra' ), 'section' => 'section-blog-group', ), array( 'name' => 'section-sidebars', 'type' => 'section', 'priority' => 50, 'title' => __( 'Sidebar', 'astra' ), 'description_hidden' => true, 'description' => $this->section_get_description( array( 'description' => '' . __( 'Helpful Information', 'astra' ) . '
', 'links' => array( array( 'text' => __( 'Sidebar Overview', 'astra' ) . ' »', 'attrs' => array( 'href' => astra_get_pro_url( 'https://wpastra.com/docs/sidebar-free/', 'customizer', 'sidebar', 'helpful-information' ), ), ), ), ) ), ), /** * Colors Panel */ array( 'name' => 'section-colors-background', 'type' => 'section', 'priority' => 16, 'title' => __( 'Colors', 'astra' ), 'description_hidden' => true, 'description' => $this->section_get_description( array( 'description' => '' . __( 'Helpful Information', 'astra' ) . '
', 'links' => array( array( 'text' => __( 'Colors & Background Overview', 'astra' ) . ' »', 'attrs' => array( 'href' => astra_get_pro_url( 'https://wpastra.com/docs/colors-background/', 'customizer', 'colors-background', 'helpful-information' ), ), ), ), ) ), 'panel' => 'panel-global', ), array( 'name' => 'section-colors-body', 'type' => 'section', 'title' => __( 'Base Colors', 'astra' ), 'panel' => 'panel-global', 'priority' => 1, 'section' => 'section-colors-background', ), array( 'name' => 'section-footer-adv-color-bg', 'type' => 'section', 'title' => __( 'Footer Widgets', 'astra' ), 'panel' => 'panel-colors-background', 'priority' => 55, ), /** * Typography Panel */ array( 'name' => 'section-typography', 'type' => 'section', 'title' => __( 'Typography', 'astra' ), 'priority' => 15, 'description_hidden' => true, 'description' => $this->section_get_description( array( 'description' => '' . __( 'Helpful Information', 'astra' ) . '
', 'links' => array( array( 'text' => __( 'Typography Overview', 'astra' ) . ' »', 'attrs' => array( 'href' => astra_get_pro_url( 'https://wpastra.com/docs/typography-free/', 'customizer', 'typography', 'helpful-information' ), ), ), ), ) ), 'panel' => 'panel-global', ), array( 'name' => 'section-body-typo', 'type' => 'section', 'title' => __( 'Base Typography', 'astra' ), 'section' => 'section-typography', 'priority' => 1, 'panel' => 'panel-global', ), array( 'name' => 'section-content-typo', 'type' => 'section', 'title' => __( 'Headings', 'astra' ), 'section' => 'section-typography', 'priority' => 35, 'panel' => 'panel-global', ), /** * Buttons Section */ array( 'name' => 'section-buttons', 'type' => 'section', 'priority' => 50, 'title' => __( 'Buttons', 'astra' ), 'panel' => 'panel-global', ), /** * Header Buttons */ array( 'name' => 'section-header-button', 'type' => 'section', 'priority' => 10, 'title' => __( 'Header Button', 'astra' ), 'section' => 'section-buttons', ), /** * Header Button - Default */ array( 'name' => 'section-header-button-default', 'type' => 'section', 'priority' => 10, 'title' => __( 'Primary Header Button', 'astra' ), 'section' => 'section-header-button', ), /** * Header Button - Transparent */ array( 'name' => 'section-header-button-transparent', 'type' => 'section', 'priority' => 10, 'title' => __( 'Transparent Header Button', 'astra' ), 'section' => 'section-header-button', ), /** * Widget Areas Section */ array( 'name' => 'section-widget-areas', 'type' => 'section', 'priority' => 55, 'title' => __( 'Widget Areas', 'astra' ), ), ); return array_merge( $configurations, $configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Register_Sections_Panels(); inc/customizer/extend-customizer/class-astra-wp-customize-section.php 0000666 00000003117 15214042654 0022257 0 ustar 00 title, ENT_QUOTES, get_bloginfo( 'charset' ) ); $array['content'] = $this->get_content(); $array['active'] = $this->active(); $array['instanceNumber'] = $this->instance_number; if ( $this->panel ) { $array['customizeAction'] = sprintf( 'Customizing ▸ %s', esc_html( $this->manager->get_panel( $this->panel )->title ) ); } else { $array['customizeAction'] = 'Customizing'; } return $array; } } } inc/customizer/extend-customizer/class-astra-wp-customize-separator.php 0000666 00000001743 15214042654 0022616 0 ustar 00 title, ENT_QUOTES, get_bloginfo( 'charset' ) ); $array['content'] = $this->get_content(); $array['active'] = $this->active(); $array['instanceNumber'] = $this->instance_number; return $array; } } } inc/customizer/class-astra-font-families.php 0000666 00000006517 15214042654 0015222 0 ustar 00 array( 'fallback' => 'Verdana, Arial, sans-serif', 'weights' => array( '300', '400', '700', ), ), 'Verdana' => array( 'fallback' => 'Helvetica, Arial, sans-serif', 'weights' => array( '300', '400', '700', ), ), 'Arial' => array( 'fallback' => 'Helvetica, Verdana, sans-serif', 'weights' => array( '300', '400', '700', ), ), 'Times' => array( 'fallback' => 'Georgia, serif', 'weights' => array( '300', '400', '700', ), ), 'Georgia' => array( 'fallback' => 'Times, serif', 'weights' => array( '300', '400', '700', ), ), 'Courier' => array( 'fallback' => 'monospace', 'weights' => array( '300', '400', '700', ), ), ); } return apply_filters( 'astra_system_fonts', self::$system_fonts ); } /** * Custom Fonts * * @since 1.0.19 * * @return Array All the custom fonts in Astra */ public static function get_custom_fonts() { $custom_fonts = array(); return apply_filters( 'astra_custom_fonts', $custom_fonts ); } /** * Google Fonts used in astra. * Array is generated from the google-fonts.json file. * * @since 1.0.19 * * @return Array Array of Google Fonts. */ public static function get_google_fonts() { if ( empty( self::$google_fonts ) ) { $google_fonts_file = apply_filters( 'astra_google_fonts_json_file', ASTRA_THEME_DIR . 'assets/fonts/google-fonts.json' ); if ( ! file_exists( ASTRA_THEME_DIR . 'assets/fonts/google-fonts.json' ) ) { return array(); } $file_contants = astra_filesystem()->get_contents( $google_fonts_file ); $google_fonts_json = json_decode( $file_contants, 1 ); foreach ( $google_fonts_json as $key => $font ) { $name = key( $font ); foreach ( $font[ $name ] as $font_key => $single_font ) { if ( 'variants' === $font_key ) { foreach ( $single_font as $variant_key => $variant ) { if ( 'regular' == $variant ) { $font[ $name ][ $font_key ][ $variant_key ] = '400'; } } } self::$google_fonts[ $name ] = array_values( $font[ $name ] ); } } } return apply_filters( 'astra_google_fonts', self::$google_fonts ); } } endif; inc/customizer/customizer-controls.php 0000666 00000003540 15214042654 0014310 0 ustar 00 ASTRA_THEME_SETTINGS . '[footer-widget-color-background-heading-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-footer-adv', 'title' => __( 'Colors & Background', 'astra' ), 'priority' => 46, 'settings' => array(), 'required' => array( ASTRA_THEME_SETTINGS . '[footer-adv]', '!=', 'disabled' ), ), /** * Option: Footer Bar Content Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-widget-background-group]', 'default' => astra_get_option( 'footer-widget-background-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Background', 'astra' ), 'section' => 'section-footer-adv', 'transport' => 'postMessage', 'priority' => 46, 'required' => array( ASTRA_THEME_SETTINGS . '[footer-adv]', '!=', 'disabled' ), ), /** * Option: Footer Bar Content Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-widget-content-group]', 'default' => astra_get_option( 'footer-widget-content-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Content', 'astra' ), 'section' => 'section-footer-adv', 'transport' => 'postMessage', 'priority' => 46, 'required' => array( ASTRA_THEME_SETTINGS . '[footer-adv]', '!=', 'disabled' ), ), /** * Option: Widget Title Color */ array( 'name' => 'footer-adv-wgt-title-color', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-content-group]', 'section' => 'section-footer-adv', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Title Color', 'astra' ), 'default' => '', ), /** * Option: Text Color */ array( 'name' => 'footer-adv-text-color', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-content-group]', 'section' => 'section-footer-adv', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Text Color', 'astra' ), 'default' => '', ), /** * Option: Link Color */ array( 'name' => 'footer-adv-link-color', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-content-group]', 'section' => 'section-footer-adv', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Link Color', 'astra' ), 'default' => '', ), /** * Option: Link Hover Color */ array( 'name' => 'footer-adv-link-h-color', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-content-group]', 'section' => 'section-footer-adv', 'tab' => __( 'Hover', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Link Color', 'astra' ), 'default' => '', ), /** * Option: Footer widget Background */ array( 'name' => 'footer-adv-bg-obj', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-background-group]', 'section' => 'section-footer-adv', 'control' => 'ast-background', 'default' => astra_get_option( 'footer-adv-bg-obj' ), 'label' => __( 'Background', 'astra' ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Advanced_Footer_Colors_Configs(); inc/customizer/configurations/colors-background/class-astra-body-colors-configs.php 0000666 00000005051 15214042654 0025007 0 ustar 00 ASTRA_THEME_SETTINGS . '[text-color]', 'default' => '#3a3a3a', 'type' => 'control', 'control' => 'ast-color', 'section' => 'section-colors-body', 'priority' => 5, 'title' => __( 'Text Color', 'astra' ), ), /** * Option: Theme Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[theme-color]', 'type' => 'control', 'control' => 'ast-color', 'section' => 'section-colors-body', 'default' => '#0274be', 'priority' => 5, 'title' => __( 'Theme Color', 'astra' ), ), /** * Option: Link Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[link-color]', 'section' => 'section-colors-body', 'type' => 'control', 'control' => 'ast-color', 'default' => '#0274be', 'priority' => 5, 'title' => __( 'Link Color', 'astra' ), ), /** * Option: Link Hover Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[link-h-color]', 'section' => 'section-colors-body', 'default' => '#3a3a3a', 'type' => 'control', 'control' => 'ast-color', 'priority' => 15, 'title' => __( 'Link Hover Color', 'astra' ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-outside-bg-color]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-colors-body', 'priority' => 20, 'settings' => array(), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Body_Colors_Configs(); inc/customizer/configurations/colors-background/class-astra-footer-colors-configs.php 0000666 00000005152 15214042654 0025352 0 ustar 00 'footer-color', 'type' => 'sub-control', 'tab' => __( 'Normal', 'astra' ), 'priority' => 5, 'parent' => ASTRA_THEME_SETTINGS . '[footer-bar-content-group]', 'section' => 'section-footer-small', 'control' => 'ast-color', 'title' => __( 'Text Color', 'astra' ), 'default' => '', ), /** * Option: Link Color */ array( 'name' => 'footer-link-color', 'type' => 'sub-control', 'tab' => __( 'Normal', 'astra' ), 'priority' => 6, 'parent' => ASTRA_THEME_SETTINGS . '[footer-bar-content-group]', 'section' => 'section-footer-small', 'control' => 'ast-color', 'default' => '', 'title' => __( 'Link Color', 'astra' ), ), /** * Option: Link Hover Color */ array( 'name' => 'footer-link-h-color', 'type' => 'sub-control', 'tab' => __( 'Hover', 'astra' ), 'priority' => 5, 'parent' => ASTRA_THEME_SETTINGS . '[footer-bar-content-group]', 'section' => 'section-footer-small', 'control' => 'ast-color', 'title' => __( 'Link Color', 'astra' ), 'default' => '', ), /** * Option: Footer Background */ array( 'name' => 'footer-bg-obj', 'type' => 'sub-control', 'priority' => 7, 'parent' => ASTRA_THEME_SETTINGS . '[footer-bar-background-group]', 'section' => 'section-footer-small', 'control' => 'ast-background', 'default' => astra_get_option( 'footer-bg-obj' ), 'label' => __( 'Background', 'astra' ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Footer_Colors_Configs(); inc/customizer/configurations/class-astra-customizer-config-base.php 0000666 00000004662 15214042654 0022075 0 ustar 00 '; $content .= wp_kses_post( astra_get_prop( $args, 'description' ) ); // Links. if ( astra_get_prop( $args, 'links' ) ) { $content .= '' . __( 'More Options Available in Astra Pro!', 'astra' ) . '
' . __( 'Learn More', 'astra' ) . '', 'settings' => array(), ), ); $configurations = array_merge( $configurations, $_configs ); } return $configurations; } } } new Astra_Archive_Typo_Configs(); inc/customizer/configurations/typography/class-astra-content-typo-configs.php 0000666 00000016664 15214042654 0024022 0 ustar 00 ASTRA_THEME_SETTINGS . '[divider-section-h1]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-content-typo', 'priority' => 4, 'title' => __( 'Heading 1', 'astra' ), 'settings' => array(), ), /** * Option: Heading 1 (H1) Font Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[font-size-h1]', 'type' => 'control', 'control' => 'ast-responsive', 'section' => 'section-content-typo', 'default' => astra_get_option( 'font-size-h1' ), 'transport' => 'postMessage', 'priority' => 6, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), /** * Option: Heading 2 (H2) Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-h2]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-content-typo', 'priority' => 9, 'title' => __( 'Heading 2', 'astra' ), 'settings' => array(), ), /** * Option: Heading 2 (H2) Font Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[font-size-h2]', 'type' => 'control', 'control' => 'ast-responsive', 'section' => 'section-content-typo', 'default' => astra_get_option( 'font-size-h2' ), 'transport' => 'postMessage', 'priority' => 11, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), /** * Option: Heading 3 (H3) Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-h3]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-content-typo', 'priority' => 15, 'title' => __( 'Heading 3', 'astra' ), 'settings' => array(), ), /** * Option: Heading 3 (H3) Font Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[font-size-h3]', 'type' => 'control', 'control' => 'ast-responsive', 'section' => 'section-content-typo', 'priority' => 16, 'default' => astra_get_option( 'font-size-h3' ), 'transport' => 'postMessage', 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), /** * Option: Heading 4 (H4) Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-h4]', 'type' => 'control', 'title' => __( 'Heading 4', 'astra' ), 'section' => 'section-content-typo', 'control' => 'ast-heading', 'priority' => 20, 'settings' => array(), ), /** * Option: Heading 4 (H4) Font Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[font-size-h4]', 'type' => 'control', 'control' => 'ast-responsive', 'section' => 'section-content-typo', 'default' => astra_get_option( 'font-size-h4' ), 'transport' => 'postMessage', 'priority' => 21, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), /** * Option: Heading 5 (H5) Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-h5]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-content-typo', 'priority' => 25, 'title' => __( 'Heading 5', 'astra' ), 'settings' => array(), ), /** * Option: Heading 5 (H5) Font Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[font-size-h5]', 'type' => 'control', 'control' => 'ast-responsive', 'section' => 'section-content-typo', 'default' => astra_get_option( 'font-size-h5' ), 'transport' => 'postMessage', 'priority' => 26, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), /** * Option: Heading 6 (H6) Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-h6]', 'type' => 'control', 'control' => 'ast-heading', 'title' => __( 'Heading 6', 'astra' ), 'section' => 'section-content-typo', 'priority' => 30, 'settings' => array(), ), /** * Option: Heading 6 (H6) Font Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[font-size-h6]', 'type' => 'control', 'control' => 'ast-responsive', 'section' => 'section-content-typo', 'default' => astra_get_option( 'font-size-h6' ), 'transport' => 'postMessage', 'priority' => 31, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), ); $configurations = array_merge( $configurations, $_configs ); // Learn More link if Astra Pro is not activated. if ( ! defined( 'ASTRA_EXT_VER' ) ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-content-typography-more-feature-divider]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-content-typo', 'priority' => 999, 'settings' => array(), ), /** * Option: Learn More about Contant Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-content-typography-more-feature-description]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-content-typo', 'priority' => 999, 'title' => '', 'help' => '' . __( 'More Options Available in Astra Pro!', 'astra' ) . '
' . __( 'Learn More', 'astra' ) . '', 'settings' => array(), ), ); $configurations = array_merge( $configurations, $_configs ); } return $configurations; } } } new Astra_Content_Typo_Configs(); inc/customizer/configurations/typography/class-astra-single-typo-configs.php 0000666 00000006703 15214042654 0023622 0 ustar 00 ASTRA_THEME_SETTINGS . '[divider-section-single-post-typo]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-blog-single', 'priority' => 13, 'title' => __( 'Typography', 'astra' ), 'settings' => array(), ), array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-title-typo]', 'type' => 'control', 'priority' => 13, 'control' => 'ast-settings-group', 'title' => __( 'Post / Page Title', 'astra' ), 'section' => 'section-blog-single', 'transport' => 'postMessage', ), /** * Option: Single Post / Page Title Font Size */ array( 'name' => 'font-size-entry-title', 'parent' => ASTRA_THEME_SETTINGS . '[blog-single-title-typo]', 'section' => 'section-blog-single', 'type' => 'sub-control', 'control' => 'ast-responsive', 'default' => astra_get_option( 'font-size-entry-title' ), 'transport' => 'postMessage', 'priority' => 8, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', 'em' => 'em', ), ), ); $configurations = array_merge( $configurations, $_configs ); // Learn More link if Astra Pro is not activated. if ( ! defined( 'ASTRA_EXT_VER' ) ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-sngle-blog-typography-more-feature-divider]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-blog-single', 'priority' => 999, 'settings' => array(), ), /** * Option: Learn More about Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-sngle-blog-typography-more-feature-description]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-blog-single', 'priority' => 999, 'title' => '', 'help' => '' . __( 'More Options Available in Astra Pro!', 'astra' ) . '
' . __( 'Learn More', 'astra' ) . '', 'settings' => array(), ), ); $configurations = array_merge( $configurations, $_configs ); } return $configurations; } } } new Astra_Single_Typo_Configs(); inc/customizer/configurations/layout/class-astra-footer-layout-configs.php 0000666 00000046416 15214042654 0023275 0 ustar 00 ASTRA_THEME_SETTINGS . '[footer-sml-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'default' => astra_get_option( 'footer-sml-layout' ), 'section' => 'section-footer-small', 'priority' => 5, 'title' => __( 'Layout', 'astra' ), 'choices' => array( 'disabled' => array( 'label' => __( 'Disabled', 'astra' ), 'path' => '', ), 'footer-sml-layout-1' => array( 'label' => __( 'Footer Bar Layout 1', 'astra' ), 'path' => '', ), 'footer-sml-layout-2' => array( 'label' => __( 'Footer Bar Layout 2', 'astra' ), 'path' => '', ), ), 'partial' => array( 'selector' => '.ast-small-footer', 'container_inclusive' => false, ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[section-ast-small-footer-layout-info]', 'control' => 'ast-divider', 'type' => 'control', 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), 'section' => 'section-footer-small', 'priority' => 10, 'settings' => array(), ), /** * Section: Section 1 */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-sml-section-1]', 'control' => 'select', 'default' => astra_get_option( 'footer-sml-section-1' ), 'type' => 'control', 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), 'section' => 'section-footer-small', 'priority' => 15, 'title' => __( 'Section 1', 'astra' ), 'choices' => array( '' => __( 'None', 'astra' ), 'custom' => __( 'Text', 'astra' ), 'widget' => __( 'Widget', 'astra' ), 'menu' => __( 'Footer Menu', 'astra' ), ), 'partial' => array( 'selector' => '.ast-small-footer .ast-container .ast-footer-widget-1-area .ast-no-widget-row, .ast-small-footer .ast-container .ast-small-footer-section-1 .footer-primary-navigation .nav-menu', 'container_inclusive' => false, ), ), /** * Option: Section 1 Custom Text */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-sml-section-1-credit]', 'default' => astra_get_option( 'footer-sml-section-1-credit' ), 'type' => 'control', 'control' => 'textarea', 'transport' => 'postMessage', 'section' => 'section-footer-small', 'required' => array( 'conditions' => array( array( ASTRA_THEME_SETTINGS . '[footer-sml-section-1]', '==', array( 'custom' ) ), ), ), 'priority' => 20, 'title' => __( 'Section 1 Custom Text', 'astra' ), 'choices' => array( '' => __( 'None', 'astra' ), 'custom' => __( 'Custom Text', 'astra' ), 'widget' => __( 'Widget', 'astra' ), 'menu' => __( 'Footer Menu', 'astra' ), ), 'partial' => array( 'selector' => '.ast-small-footer .ast-container .ast-small-footer-section.ast-small-footer-section-1:has(> .ast-footer-site-title)', 'container_inclusive' => false, 'render_callback' => array( 'Astra_Customizer_Partials', 'render_footer_sml_section_1_credit' ), ), ), /** * Option: Section 2 */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-sml-section-2]', 'type' => 'control', 'control' => 'select', 'default' => astra_get_option( 'footer-sml-section-2' ), 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), 'section' => 'section-footer-small', 'priority' => 25, 'title' => __( 'Section 2', 'astra' ), 'choices' => array( '' => __( 'None', 'astra' ), 'custom' => __( 'Text', 'astra' ), 'widget' => __( 'Widget', 'astra' ), 'menu' => __( 'Footer Menu', 'astra' ), ), 'partial' => array( 'selector' => '.ast-small-footer .ast-container .ast-footer-widget-2-area .ast-no-widget-row, .ast-small-footer .ast-container .ast-small-footer-section-2 .footer-primary-navigation .nav-menu', 'container_inclusive' => false, ), ), /** * Option: Section 2 Custom Text */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-sml-section-2-credit]', 'type' => 'control', 'control' => 'textarea', 'transport' => 'postMessage', 'default' => astra_get_option( 'footer-sml-section-2-credit' ), 'section' => 'section-footer-small', 'priority' => 30, 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-section-2]', '==', 'custom' ), 'title' => __( 'Section 2 Custom Text', 'astra' ), 'partial' => array( 'selector' => '.ast-small-footer-section-2', 'container_inclusive' => false, 'render_callback' => array( 'Astra_Customizer_Partials', 'render_footer_sml_section_2_credit' ), ), 'partial' => array( 'selector' => '.ast-small-footer .ast-container .ast-small-footer-section.ast-small-footer-section-2:has(> .ast-footer-site-title)', 'container_inclusive' => false, ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[section-ast-small-footer-typography]', 'control' => 'ast-divider', 'type' => 'control', 'section' => 'section-footer-small', 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), 'priority' => 35, 'settings' => array(), ), /** * Option: Footer Top Border */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-sml-divider]', 'type' => 'control', 'control' => 'ast-slider', 'default' => astra_get_option( 'footer-sml-divider' ), 'section' => 'section-footer-small', 'priority' => 40, 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), 'title' => __( 'Border Size', 'astra' ), 'transport' => 'postMessage', 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 600, ), ), /** * Option: Footer Top Border Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-sml-divider-color]', 'section' => 'section-footer-small', 'default' => '#7a7a7a', 'type' => 'control', 'control' => 'ast-color', 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-divider]', '>=', 1 ), 'priority' => 45, 'title' => __( 'Border Color', 'astra' ), 'transport' => 'postMessage', ), /** * Option: Footer Bar Color & Background Section heading */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-bar-color-background-heading-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-footer-small', 'title' => __( 'Colors & Background', 'astra' ), 'priority' => 46, 'settings' => array(), 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), ), /** * Option: Footer Bar Content Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-bar-background-group]', 'default' => astra_get_option( 'footer-bar-background-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Background', 'astra' ), 'section' => 'section-footer-small', 'transport' => 'postMessage', 'priority' => 47, 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), ), /** * Option: Footer Bar Content Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-bar-content-group]', 'default' => astra_get_option( 'footer-bar-content-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Content', 'astra' ), 'section' => 'section-footer-small', 'transport' => 'postMessage', 'priority' => 47, 'required' => array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), ), /** * Option: Header Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-layout-width]', 'type' => 'control', 'control' => 'select', 'default' => astra_get_option( 'footer-layout-width' ), 'section' => 'section-footer-small', 'required' => array( 'conditions' => array( array( ASTRA_THEME_SETTINGS . '[site-layout]', '!=', 'ast-box-layout' ), array( ASTRA_THEME_SETTINGS . '[site-layout]', '!=', 'ast-fluid-width-layout' ), array( ASTRA_THEME_SETTINGS . '[footer-sml-layout]', '!=', 'disabled' ), ), ), 'priority' => 35, 'title' => __( 'Width', 'astra' ), 'choices' => array( 'full' => __( 'Full Width', 'astra' ), 'content' => __( 'Content Width', 'astra' ), ), ), /** * Option: Footer Widgets Layout Layout */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-adv]', 'type' => 'control', 'control' => 'ast-radio-image', 'default' => astra_get_option( 'footer-adv' ), 'title' => __( 'Layout', 'astra' ), 'section' => 'section-footer-adv', 'choices' => array( 'disabled' => array( 'label' => __( 'Disable', 'astra' ), 'path' => '', ), 'layout-4' => array( 'label' => __( 'Layout 4', 'astra' ), 'path' => '', ), ), 'partial' => array( 'selector' => '.footer-adv .ast-container', 'container_inclusive' => false, ), ), /** * Option: Footer Top Border */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-adv-border-width]', 'type' => 'control', 'control' => 'ast-slider', 'transport' => 'postMessage', 'section' => 'section-footer-adv', 'default' => astra_get_option( 'footer-adv-border-width' ), 'priority' => 40, 'required' => array( ASTRA_THEME_SETTINGS . '[footer-adv]', '!=', 'disabled' ), 'title' => __( 'Top Border Size', 'astra' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 600, ), ), /** * Option: Footer Top Border Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[footer-adv-border-color]', 'section' => 'section-footer-adv', 'title' => __( 'Top Border Color', 'astra' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-color', 'default' => astra_get_option( 'footer-adv-border-color' ), 'required' => array( ASTRA_THEME_SETTINGS . '[footer-adv]', '!=', 'disabled' ), 'priority' => 45, ), ); $configurations = array_merge( $configurations, $_configs ); // Learn More link if Astra Pro is not activated. if ( ! defined( 'ASTRA_EXT_VER' ) ) { $config = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-footer-widget-more-feature-divider]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-footer-adv', 'priority' => 999, 'settings' => array(), ), /** * Option: Learn More about Footer Widget */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-footer-widget-more-feature-description]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-footer-adv', 'priority' => 999, 'label' => '', 'help' => '' . __( 'More Options Available in Astra Pro!', 'astra' ) . '
' . __( 'Learn More', 'astra' ) . '', 'settings' => array(), ), ); $configurations = array_merge( $configurations, $config ); } return $configurations; } } } new Astra_Footer_Layout_Configs(); inc/customizer/configurations/layout/class-astra-blog-single-layout-configs.php 0000666 00000007517 15214042654 0024200 0 ustar 00 ASTRA_THEME_SETTINGS . '[blog-single-width]', 'type' => 'control', 'control' => 'select', 'section' => 'section-blog-single', 'default' => astra_get_option( 'blog-single-width' ), 'priority' => 5, 'title' => __( 'Content Width', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'custom' => __( 'Custom', 'astra' ), ), 'partial' => array( 'selector' => '.ast-single-post .site-content .ast-container .content-area .entry-title', 'container_inclusive' => false, ), ), /** * Option: Enter Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-max-width]', 'type' => 'control', 'control' => 'ast-slider', 'section' => 'section-blog-single', 'transport' => 'postMessage', 'default' => 1200, 'required' => array( ASTRA_THEME_SETTINGS . '[blog-single-width]', '===', 'custom' ), 'priority' => 5, 'title' => __( 'Custom Width', 'astra' ), 'suffix' => '', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-styling-section-blog-single-width]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-blog-single', 'priority' => 5, 'settings' => array(), ), /** * Option: Display Post Structure */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-post-structure]', 'type' => 'control', 'control' => 'ast-sortable', 'section' => 'section-blog-single', 'default' => astra_get_option( 'blog-single-post-structure' ), 'priority' => 5, 'title' => __( 'Structure', 'astra' ), 'choices' => array( 'single-image' => __( 'Featured Image', 'astra' ), 'single-title-meta' => __( 'Title & Blog Meta', 'astra' ), ), ), /** * Option: Single Post Meta */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-meta]', 'type' => 'control', 'control' => 'ast-sortable', 'default' => astra_get_option( 'blog-single-meta' ), 'required' => array( ASTRA_THEME_SETTINGS . '[blog-single-post-structure]', 'contains', 'single-title-meta' ), 'section' => 'section-blog-single', 'priority' => 5, 'title' => __( 'Meta', 'astra' ), 'choices' => array( 'comments' => __( 'Comments', 'astra' ), 'category' => __( 'Category', 'astra' ), 'author' => __( 'Author', 'astra' ), 'date' => __( 'Publish Date', 'astra' ), 'tag' => __( 'Tag', 'astra' ), ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Blog_Single_Layout_Configs(); inc/customizer/configurations/layout/class-astra-site-identity-configs.php 0000666 00000017033 15214042654 0023250 0 ustar 00 ASTRA_THEME_SETTINGS . '[divider-section-site-identity-logo]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'title_tagline', 'title' => __( 'Site Logo', 'astra' ), 'priority' => 2, 'settings' => array(), ), /** * Option: Different retina logo */ array( 'name' => ASTRA_THEME_SETTINGS . '[different-retina-logo]', 'type' => 'control', 'control' => 'checkbox', 'section' => 'title_tagline', 'title' => __( 'Different Logo For Retina Devices?', 'astra' ), 'default' => false, 'priority' => 5, ), /** * Option: Retina logo selector */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-header-retina-logo]', 'default' => astra_get_option( 'ast-header-retina-logo' ), 'type' => 'control', 'control' => 'image', 'section' => 'title_tagline', 'required' => array( ASTRA_THEME_SETTINGS . '[different-retina-logo]', '!=', 0 ), 'priority' => 5, 'title' => __( 'Retina Logo', 'astra' ), 'library_filter' => array( 'gif', 'jpg', 'jpeg', 'png', 'ico' ), ), /** * Option: Inherit Desktop logo */ array( 'name' => ASTRA_THEME_SETTINGS . '[different-mobile-logo]', 'type' => 'control', 'control' => 'checkbox', 'default' => false, 'section' => 'title_tagline', 'title' => __( 'Different Logo For Mobile Devices?', 'astra' ), 'priority' => 5, ), /** * Option: Mobile header logo */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-logo]', 'default' => astra_get_option( 'mobile-header-logo' ), 'type' => 'control', 'control' => 'image', 'required' => array( ASTRA_THEME_SETTINGS . '[different-mobile-logo]', '==', '1' ), 'section' => 'title_tagline', 'priority' => 5, 'title' => __( 'Mobile Logo (optional)', 'astra' ), 'library_filter' => array( 'gif', 'jpg', 'jpeg', 'png', 'ico' ), ), /** * Option: Logo Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-header-responsive-logo-width]', 'type' => 'control', 'control' => 'ast-responsive-slider', 'section' => 'title_tagline', 'transport' => 'postMessage', 'default' => array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ), 'priority' => 5, 'title' => __( 'Logo Width', 'astra' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 600, ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-site-logo-divider]', 'type' => 'control', 'control' => 'ast-heading', 'title' => __( 'Site Icon', 'astra' ), 'section' => 'title_tagline', 'priority' => 5, 'settings' => array(), ), /** * Option: Display Title */ array( 'name' => ASTRA_THEME_SETTINGS . '[display-site-title]', 'type' => 'control', 'control' => 'checkbox', 'default' => astra_get_option( 'display-site-title' ), 'section' => 'title_tagline', 'title' => __( 'Display Site Title', 'astra' ), 'priority' => 7, 'transport' => 'postMessage', 'partial' => array( 'selector' => '.main-header-bar .site-branding .ast-site-title-wrap', 'container_inclusive' => false, 'render_callback' => array( 'Astra_Customizer_Partials', 'render_header_site_title_tagline' ), ), ), /** * Option: Display Tagline */ array( 'name' => ASTRA_THEME_SETTINGS . '[display-site-tagline]', 'type' => 'control', 'control' => 'checkbox', 'transport' => 'postMessage', 'default' => astra_get_option( 'display-site-tagline' ), 'section' => 'title_tagline', 'title' => __( 'Display Site Tagline', 'astra' ), 'partial' => array( 'selector' => '.main-header-bar .site-branding .ast-site-title-wrap', 'container_inclusive' => false, 'render_callback' => array( 'Astra_Customizer_Partials', 'render_header_site_title_tagline' ), ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[logo-title-inline]', 'default' => astra_get_option( 'logo-title-inline' ), 'type' => 'control', 'required' => array( 'conditions' => array( array( ASTRA_THEME_SETTINGS . '[display-site-title]', '==', true ), array( ASTRA_THEME_SETTINGS . '[display-site-tagline]', '==', true ), ), 'operator' => 'OR', ), 'control' => 'checkbox', 'section' => 'title_tagline', 'title' => __( 'Inline Logo & Site Title', 'astra' ), 'priority' => 7, ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-site-icon-divider]', 'type' => 'control', 'control' => 'ast-heading', 'title' => __( 'Site Title', 'astra' ), 'section' => 'title_tagline', 'priority' => 6, 'settings' => array(), ), array( 'name' => ASTRA_THEME_SETTINGS . '[site-title-typography]', 'default' => astra_get_option( 'site-title-typography' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Typography', 'astra' ), 'section' => 'title_tagline', 'transport' => 'postMessage', 'priority' => 9, 'required' => array( ASTRA_THEME_SETTINGS . '[display-site-title]', '==', true, ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-site-title-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'title_tagline', 'title' => __( 'Site Tagline', 'astra' ), 'priority' => 9, 'settings' => array(), ), array( 'name' => ASTRA_THEME_SETTINGS . '[site-tagline-typography]', 'default' => astra_get_option( 'site-tagline-typography' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Typography', 'astra' ), 'section' => 'title_tagline', 'transport' => 'postMessage', 'priority' => 16, 'required' => array( ASTRA_THEME_SETTINGS . '[display-site-tagline]', '==', true, ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Site_Identity_Configs(); inc/customizer/configurations/layout/class-astra-sidebar-layout-configs.php 0000666 00000011417 15214042654 0023401 0 ustar 00 ASTRA_THEME_SETTINGS . '[site-sidebar-layout]', 'type' => 'control', 'control' => 'select', 'section' => 'section-sidebars', 'default' => astra_get_option( 'site-sidebar-layout' ), 'priority' => 5, 'title' => __( 'Default Layout', 'astra' ), 'choices' => array( 'no-sidebar' => __( 'No Sidebar', 'astra' ), 'left-sidebar' => __( 'Left Sidebar', 'astra' ), 'right-sidebar' => __( 'Right Sidebar', 'astra' ), ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-page-sidebar-layout-divider]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-sidebars', 'priority' => 5, 'settings' => array(), ), /** * Option: Page */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-page-sidebar-layout]', 'type' => 'control', 'control' => 'select', 'section' => 'section-sidebars', 'default' => astra_get_option( 'single-page-sidebar-layout' ), 'priority' => 5, 'title' => __( 'Pages', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'no-sidebar' => __( 'No Sidebar', 'astra' ), 'left-sidebar' => __( 'Left Sidebar', 'astra' ), 'right-sidebar' => __( 'Right Sidebar', 'astra' ), ), ), /** * Option: Blog Post */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-sidebar-layout]', 'type' => 'control', 'control' => 'select', 'default' => astra_get_option( 'single-post-sidebar-layout' ), 'section' => 'section-sidebars', 'priority' => 5, 'title' => __( 'Blog Posts', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'no-sidebar' => __( 'No Sidebar', 'astra' ), 'left-sidebar' => __( 'Left Sidebar', 'astra' ), 'right-sidebar' => __( 'Right Sidebar', 'astra' ), ), ), /** * Option: Blog Post Archive */ array( 'name' => ASTRA_THEME_SETTINGS . '[archive-post-sidebar-layout]', 'type' => 'control', 'control' => 'select', 'default' => astra_get_option( 'archive-post-sidebar-layout' ), 'section' => 'section-sidebars', 'priority' => 5, 'title' => __( 'Archives', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'no-sidebar' => __( 'No Sidebar', 'astra' ), 'left-sidebar' => __( 'Left Sidebar', 'astra' ), 'right-sidebar' => __( 'Right Sidebar', 'astra' ), ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-sidebar-width]', 'type' => 'control', 'section' => 'section-sidebars', 'control' => 'ast-divider', 'priority' => 10, 'settings' => array(), ), /** * Option: Primary Content Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-sidebar-width]', 'type' => 'control', 'control' => 'ast-slider', 'default' => 30, 'section' => 'section-sidebars', 'priority' => 15, 'title' => __( 'Sidebar Width', 'astra' ), 'suffix' => '%', 'input_attrs' => array( 'min' => 15, 'step' => 1, 'max' => 50, ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[site-sidebar-width-description]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-sidebars', 'priority' => 15, 'title' => '', 'help' => __( 'Sidebar width will apply only when one of the above sidebar is set.', 'astra' ), 'settings' => array(), ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Sidebar_Layout_Configs(); inc/customizer/configurations/layout/class-astra-header-layout-configs.php 0000666 00000064404 15214042654 0023224 0 ustar 00 __( 'None', 'astra' ), 'search' => __( 'Search', 'astra' ), 'text-html' => __( 'Text / HTML', 'astra' ), 'widget' => __( 'Widget', 'astra' ), ); $_configs = array( /** * Option: Header Layout */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-layouts]', 'default' => astra_get_option( 'header-layouts' ), 'section' => 'section-header', 'priority' => 4, 'title' => __( 'Layout', 'astra' ), 'type' => 'control', 'control' => 'ast-radio-image', 'choices' => array( 'header-main-layout-1' => array( 'label' => __( 'Logo Left', 'astra' ), 'path' => '', ), 'header-main-layout-2' => array( 'label' => __( 'Logo Center', 'astra' ), 'path' => '', ), 'header-main-layout-3' => array( 'label' => __( 'Logo Right', 'astra' ), 'path' => '', ), ), ), /** * Option: Header Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-layout-width]', 'default' => astra_get_option( 'header-main-layout-width' ), 'type' => 'control', 'control' => 'select', 'section' => 'section-header', 'priority' => 4, 'title' => __( 'Width', 'astra' ), 'choices' => array( 'full' => __( 'Full Width', 'astra' ), 'content' => __( 'Content Width', 'astra' ), ), ), /** * Option: Bottom Border Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-sep]', 'transport' => 'postMessage', 'default' => astra_get_option( 'header-main-sep' ), 'type' => 'control', 'control' => 'number', 'section' => 'section-header', 'priority' => 4, 'title' => __( 'Bottom Border Size', 'astra' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 600, ), ), /** * Option: Bottom Border Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-sep-color]', 'transport' => 'postMessage', 'default' => '', 'type' => 'control', 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-sep]', '>=', 1 ), 'control' => 'ast-color', 'section' => 'section-header', 'priority' => 4, 'title' => __( 'Bottom Border Color', 'astra' ), ), array( 'name' => 'primary-header-menu-label-divider', 'type' => 'control', 'control' => 'ast-heading', 'priority' => 5, 'title' => __( 'Menu', 'astra' ), 'section' => 'section-primary-menu', 'settings' => array(), ), array( 'name' => ASTRA_THEME_SETTINGS . '[disable-primary-nav]', 'default' => astra_get_option( 'disable-primary-nav' ), 'type' => 'control', 'control' => 'checkbox', 'section' => 'section-primary-menu', 'title' => __( 'Disable Menu', 'astra' ), 'priority' => 5, 'partial' => array( 'selector' => '.main-header-bar .main-navigation', 'container_inclusive' => false, ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-section]', 'default' => astra_get_option( 'header-main-rt-section' ), 'type' => 'control', 'control' => 'select', 'section' => 'section-primary-menu', 'priority' => 7, 'title' => __( 'Last Item in Menu', 'astra' ), 'choices' => apply_filters( 'astra_header_section_elements', array( 'none' => __( 'None', 'astra' ), 'search' => __( 'Search', 'astra' ), 'button' => __( 'Button', 'astra' ), 'text-html' => __( 'Text / HTML', 'astra' ), 'widget' => __( 'Widget', 'astra' ), ), 'primary-header' ), 'partial' => array( 'selector' => '.main-header-bar .main-navigation .main-header-menu .ast-masthead-custom-menu-items.search-custom-menu-item .ast-search-icon .astra-search-icon, .main-header-bar .main-navigation .main-header-menu .ast-masthead-custom-menu-items.woocommerce-custom-menu-item, .main-header-bar .ast-masthead-custom-menu-items.widget-custom-menu-item .ast-header-widget-area .widget.ast-no-widget-row, .main-header-bar .main-navigation .main-header-menu .ast-masthead-custom-menu-items.edd-custom-menu-item', 'container_inclusive' => false, ), ), /** * Option: Button Text */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-text]', 'transport' => 'postMessage', 'default' => astra_get_option( 'header-main-rt-section-button-text' ), 'type' => 'control', 'control' => 'text', 'section' => 'section-primary-menu', 'partial' => array( 'selector' => '.button-custom-menu-item', 'container_inclusive' => false, 'render_callback' => array( 'Astra_Customizer_Partials', 'render_header_main_rt_section_button_text' ), ), 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section]', '===', 'button' ), 'priority' => 10, 'title' => __( 'Button Text', 'astra' ), ), /** * Option: Button Link */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-link-option]', 'default' => astra_get_option( 'header-main-rt-section-button-link-option' ), 'type' => 'control', 'control' => 'ast-link', 'section' => 'section-primary-menu', 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section]', '===', 'button' ), 'priority' => 10, 'title' => __( 'Button Link', 'astra' ), ), /** * Option: Button Style */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', 'default' => astra_get_option( 'header-main-rt-section-button-style' ), 'type' => 'control', 'control' => 'select', 'section' => 'section-primary-menu', 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section]', '===', 'button' ), 'priority' => 10, 'choices' => array( 'theme-button' => __( 'Theme Button', 'astra' ), 'custom-button' => __( 'Header Button', 'astra' ), ), 'title' => __( 'Button Style', 'astra' ), ), /** * Option: Theme Button Style edit link */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-button-style-link]', 'default' => astra_get_option( 'header-button-style-link' ), 'type' => 'control', 'control' => 'ast-customizer-link', 'section' => 'section-primary-menu', 'required' => array( array( ASTRA_THEME_SETTINGS . '[header-main-rt-section]', '===', 'button' ), array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'theme-button' ), ), 'priority' => 10, 'link_type' => 'section', 'linked' => 'section-buttons', 'link_text' => __( 'Customize Button Style.', 'astra' ), ), /** * Option: Right Section Text / HTML */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-section-html]', 'transport' => 'postMessage', 'default' => astra_get_option( 'header-main-rt-section-html' ), 'type' => 'control', 'control' => 'textarea', 'section' => 'section-primary-menu', 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section]', '===', 'text-html' ), 'priority' => 10, 'partial' => array( 'selector' => '.main-header-bar .ast-masthead-custom-menu-items .ast-custom-html', 'container_inclusive' => false, 'render_callback' => array( 'Astra_Customizer_Partials', 'render_header_main_rt_section_html' ), ), 'title' => __( 'Custom Menu Text / HTML', 'astra' ), ), array( 'name' => 'primary-header-sub-menu-label-divider', 'type' => 'control', 'control' => 'ast-heading', 'priority' => 30, 'title' => __( 'Sub Menu', 'astra' ), 'section' => 'section-primary-menu', 'settings' => array(), ), /** * Option: Submenu Container Animation */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-submenu-container-animation]', 'default' => astra_get_option( 'header-main-submenu-container-animation' ), 'type' => 'control', 'control' => 'select', 'section' => 'section-primary-menu', 'required' => array( ASTRA_THEME_SETTINGS . '[disable-primary-nav]', '!=', true, ), 'priority' => 30, 'title' => __( 'Container Animation', 'astra' ), 'choices' => array( '' => __( 'Default', 'astra' ), 'slide-down' => __( 'Slide Down', 'astra' ), 'slide-up' => __( 'Slide Up', 'astra' ), 'fade' => __( 'Fade', 'astra' ), ), ), // Option: Primary Menu Border. array( 'type' => 'control', 'control' => 'ast-border', 'transport' => 'postMessage', 'name' => ASTRA_THEME_SETTINGS . '[primary-submenu-border]', 'section' => 'section-primary-menu', 'linked_choices' => true, 'priority' => 30, 'default' => astra_get_option( 'primary-submenu-border' ), 'title' => __( 'Container Border', 'astra' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), ), // Option: Submenu Container Border Color. array( 'type' => 'control', 'control' => 'ast-color', 'transport' => 'postMessage', 'name' => ASTRA_THEME_SETTINGS . '[primary-submenu-b-color]', 'default' => '', 'title' => __( 'Border Color', 'astra' ), 'section' => 'section-primary-menu', 'priority' => 30, ), array( 'type' => 'control', 'control' => 'checkbox', 'transport' => 'postMessage', 'name' => ASTRA_THEME_SETTINGS . '[primary-submenu-item-border]', 'section' => 'section-primary-menu', 'priority' => 30, 'default' => astra_get_option( 'primary-submenu-item-border' ), 'title' => __( 'Submenu Divider', 'astra' ), ), // Option: Submenu item Border Color. array( 'type' => 'control', 'control' => 'ast-color', 'transport' => 'postMessage', 'name' => ASTRA_THEME_SETTINGS . '[primary-submenu-item-b-color]', 'default' => '', 'title' => __( 'Divider Color', 'astra' ), 'section' => 'section-primary-menu', 'required' => array( ASTRA_THEME_SETTINGS . '[primary-submenu-item-border]', '==', true, ), 'priority' => 30, ), /** * Option: Mobile Menu Label Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-menu-label-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-header', 'priority' => 35, 'title' => __( 'Mobile Header', 'astra' ), 'settings' => array(), ), /** * Option: Mobile Menu Alignment */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-menu-align]', 'default' => astra_get_option( 'header-main-menu-align' ), 'type' => 'control', 'control' => 'ast-radio-image', 'choices' => array( 'inline' => array( 'label' => __( 'Inline', 'astra' ), 'path' => '', ), 'stack' => array( 'label' => __( 'Stack', 'astra' ), 'path' => '', ), ), 'section' => 'section-header', 'priority' => 40, 'title' => __( 'Layout', 'astra' ), ), /** * Option: Hide Last item in Menu on mobile device */ array( 'name' => ASTRA_THEME_SETTINGS . '[hide-custom-menu-mobile]', 'default' => astra_get_option( 'hide-custom-menu-mobile' ), 'type' => 'control', 'control' => 'checkbox', 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section]', '!=', 'none' ), 'section' => 'section-primary-menu', 'title' => __( 'Hide Last Item in Menu on Mobile', 'astra' ), 'priority' => 7, ), /** * Option: Display outside menu */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-display-outside-menu]', 'type' => 'control', 'control' => 'checkbox', 'required' => array( ASTRA_THEME_SETTINGS . '[hide-custom-menu-mobile]', '!=', '1' ), 'default' => astra_get_option( 'header-display-outside-menu' ), 'section' => 'section-primary-menu', 'title' => __( 'Take Last Item Outside Menu', 'astra' ), 'priority' => 7, ), array( 'name' => 'primary-menu-label-divider', 'type' => 'control', 'control' => 'ast-heading', 'priority' => 39, 'title' => __( 'Mobile Menu', 'astra' ), 'section' => 'section-primary-menu', 'settings' => array(), ), /** * Option: Mobile Header Breakpoint */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-breakpoint]', 'default' => '', 'type' => 'control', 'control' => 'ast-slider', 'section' => 'section-primary-menu', 'priority' => 40, 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'title' => __( 'Menu Breakpoint', 'astra' ), 'suffix' => '', 'input_attrs' => array( 'min' => 0, 'step' => 10, 'max' => 6000, ), ), /** * Option: Toggle on click of button or link. */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-target]', 'default' => astra_get_option( 'mobile-header-toggle-target' ), 'type' => 'control', 'control' => 'select', 'section' => 'section-header', 'priority' => 42, 'title' => __( 'Dropdown Target', 'astra' ), 'suffix' => '', 'choices' => array( 'icon' => __( 'Icon', 'astra' ), 'link' => __( 'Link', 'astra' ), ), ), /** * Option: Notice to add # link to parent menu when Link option selected in Dropdown Target. */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-target-link-notice]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-header', 'priority' => 41, 'title' => '', 'required' => array( ASTRA_THEME_SETTINGS . '[mobile-header-toggle-target]', '==', 'link' ), 'help' => __( 'The parent menu should have a # link for the submenu to open on a link.', 'astra' ), 'settings' => array(), ), /** * Option: Mobile Menu Label */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-menu-label]', 'transport' => 'postMessage', 'default' => astra_get_option( 'header-main-menu-label' ), 'section' => 'section-primary-menu', 'required' => array( 'conditions' => array( array( ASTRA_THEME_SETTINGS . '[header-main-rt-section]', '!=', array( 'none' ) ), array( ASTRA_THEME_SETTINGS . '[disable-primary-nav]', '!=', array( '1' ) ), ), 'operator' => 'OR', ), 'priority' => 40, 'title' => __( 'Menu Label', 'astra' ), 'type' => 'control', 'control' => 'text', 'partial' => array( 'selector' => '.ast-mobile-menu-buttons', 'container_inclusive' => false, ), ), /** * Option: Toggle Button Style */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-btn-style]', 'default' => astra_get_option( 'mobile-header-toggle-btn-style' ), 'section' => 'section-primary-menu', 'title' => __( 'Toggle Button Style', 'astra' ), 'type' => 'control', 'control' => 'select', 'priority' => 42, 'required' => array( ASTRA_THEME_SETTINGS . '[mobile-menu-style]', '!=', 'no-toggle' ), 'choices' => array( 'fill' => __( 'Fill', 'astra' ), 'outline' => __( 'Outline', 'astra' ), 'minimal' => __( 'Minimal', 'astra' ), ), ), /** * Option: Toggle Button Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-btn-style-color]', 'default' => astra_get_option( 'mobile-header-toggle-btn-style-color' ), 'type' => 'control', 'control' => 'ast-color', 'required' => array( ASTRA_THEME_SETTINGS . '[mobile-menu-style]', '!=', 'no-toggle' ), 'title' => __( 'Toggle Button Color', 'astra' ), 'section' => 'section-primary-menu', 'transport' => 'postMessage', 'priority' => 42, ), /** * Option: Border Radius */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-btn-border-radius]', 'default' => astra_get_option( 'mobile-header-toggle-btn-border-radius' ), 'type' => 'control', 'control' => 'ast-slider', 'section' => 'section-primary-menu', 'title' => __( 'Border Radius', 'astra' ), 'required' => array( ASTRA_THEME_SETTINGS . '[mobile-header-toggle-btn-style]', '!=', 'minimal' ), 'priority' => 42, 'suffix' => '', 'transport' => 'postMessage', 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), ), /** * Option: Toggle on click of button or link. */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-target]', 'default' => astra_get_option( 'mobile-header-toggle-target' ), 'type' => 'control', 'control' => 'select', 'section' => 'section-primary-menu', 'priority' => 42, 'title' => __( 'Dropdown Target', 'astra' ), 'suffix' => '', 'choices' => array( 'icon' => __( 'Icon', 'astra' ), 'link' => __( 'Link', 'astra' ), ), ), ); $configurations = array_merge( $configurations, $_configs ); // Learn More link if Astra Pro is not activated. if ( ! defined( 'ASTRA_EXT_VER' ) ) { $config = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-more-feature-divider]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-header', 'priority' => 999, 'settings' => array(), ), /** * Option: Learn More about Mobile Header */ array( 'name' => ASTRA_THEME_SETTINGS . '[mobile-header-more-feature-description]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-header', 'priority' => 999, 'title' => '', 'help' => '' . __( 'More Options Available in Astra Pro!', 'astra' ) . '
' . __( 'Learn More', 'astra' ) . '', 'settings' => array(), ), ); $configurations = array_merge( $configurations, $config ); } return $configurations; } } } new Astra_Header_Layout_Configs(); inc/customizer/configurations/layout/class-astra-blog-layout-configs.php 0000666 00000010452 15214042654 0022711 0 ustar 00 ASTRA_THEME_SETTINGS . '[ast-styling-section-blog-width]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-blog', 'priority' => 60, 'settings' => array(), ), /** * Option: Blog Content Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-width]', 'default' => astra_get_option( 'blog-width' ), 'type' => 'control', 'control' => 'select', 'section' => 'section-blog', 'priority' => 50, 'title' => __( 'Content Width', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'custom' => __( 'Custom', 'astra' ), ), ), /** * Option: Enter Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-max-width]', 'type' => 'control', 'control' => 'ast-slider', 'section' => 'section-blog', 'transport' => 'postMessage', 'default' => 1200, 'priority' => 50, 'required' => array( ASTRA_THEME_SETTINGS . '[blog-width]', '===', 'custom' ), 'title' => __( 'Custom Width', 'astra' ), 'suffix' => '', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-styling-section-blog-width-end]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-blog', 'priority' => 50, 'settings' => array(), ), /** * Option: Blog Post Content */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-post-content]', 'section' => 'section-blog', 'title' => __( 'Post Content', 'astra' ), 'default' => astra_get_option( 'blog-post-content' ), 'type' => 'control', 'control' => 'select', 'priority' => 75, 'choices' => array( 'full-content' => __( 'Full Content', 'astra' ), 'excerpt' => __( 'Excerpt', 'astra' ), ), ), /** * Option: Display Post Structure */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-post-structure]', 'default' => astra_get_option( 'blog-post-structure' ), 'type' => 'control', 'control' => 'ast-sortable', 'section' => 'section-blog', 'priority' => 50, 'title' => __( 'Post Structure', 'astra' ), 'choices' => array( 'image' => __( 'Featured Image', 'astra' ), 'title-meta' => __( 'Title & Blog Meta', 'astra' ), ), ), /** * Option: Display Post Meta */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-meta]', 'type' => 'control', 'control' => 'ast-sortable', 'section' => 'section-blog', 'default' => astra_get_option( 'blog-meta' ), 'priority' => 50, 'required' => array( ASTRA_THEME_SETTINGS . '[blog-post-structure]', 'contains', 'title-meta' ), 'title' => __( 'Meta', 'astra' ), 'choices' => array( 'comments' => __( 'Comments', 'astra' ), 'category' => __( 'Category', 'astra' ), 'author' => __( 'Author', 'astra' ), 'date' => __( 'Publish Date', 'astra' ), 'tag' => __( 'Tag', 'astra' ), ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Blog_Layout_Configs(); inc/customizer/configurations/layout/class-astra-site-layout-configs.php 0000666 00000003045 15214042654 0022732 0 ustar 00 ASTRA_THEME_SETTINGS . '[site-content-width]', 'type' => 'control', 'control' => 'ast-slider', 'default' => 1200, 'section' => 'section-container-layout', 'priority' => 10, 'title' => __( 'Width', 'astra' ), 'required' => array( ASTRA_THEME_SETTINGS . '[site-layout]', '==', 'ast-full-width-layout' ), 'suffix' => '', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Site_Layout_Configs(); inc/customizer/configurations/layout/class-astra-site-container-layout-configs.php 0000666 00000013443 15214042654 0024715 0 ustar 00 ASTRA_THEME_SETTINGS . '[site-content-layout-divider]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-container-layout', 'priority' => 50, 'settings' => array(), ), /** * Option: Single Page Content Layout */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-content-layout]', 'type' => 'control', 'default' => astra_get_option( 'site-content-layout' ), 'control' => 'select', 'section' => 'section-container-layout', 'priority' => 50, 'title' => __( 'Layout', 'astra' ), 'choices' => array( 'boxed-container' => __( 'Boxed', 'astra' ), 'content-boxed-container' => __( 'Content Boxed', 'astra' ), 'plain-container' => __( 'Full Width / Contained', 'astra' ), 'page-builder' => __( 'Full Width / Stretched', 'astra' ), ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[single-page-content-layout]', 'type' => 'control', 'control' => 'select', 'default' => astra_get_option( 'single-page-content-layout' ), 'section' => 'section-container-layout', 'title' => __( 'Page Layout', 'astra' ), 'priority' => 55, 'choices' => array( 'default' => __( 'Default', 'astra' ), 'boxed-container' => __( 'Boxed', 'astra' ), 'content-boxed-container' => __( 'Content Boxed', 'astra' ), 'plain-container' => __( 'Full Width / Contained', 'astra' ), 'page-builder' => __( 'Full Width / Stretched', 'astra' ), ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-content-layout]', 'type' => 'control', 'control' => 'select', 'default' => astra_get_option( 'single-post-content-layout' ), 'section' => 'section-container-layout', 'priority' => 60, 'title' => __( 'Blog Post Layout', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'boxed-container' => __( 'Boxed', 'astra' ), 'content-boxed-container' => __( 'Content Boxed', 'astra' ), 'plain-container' => __( 'Full Width / Contained', 'astra' ), 'page-builder' => __( 'Full Width / Stretched', 'astra' ), ), ), /** * Option: Archive Post Content Layout */ array( 'name' => ASTRA_THEME_SETTINGS . '[archive-post-content-layout]', 'type' => 'control', 'control' => 'select', 'default' => astra_get_option( 'archive-post-content-layout' ), 'section' => 'section-container-layout', 'priority' => 65, 'title' => __( 'Archives Layout', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'boxed-container' => __( 'Boxed', 'astra' ), 'content-boxed-container' => __( 'Content Boxed', 'astra' ), 'plain-container' => __( 'Full Width / Contained', 'astra' ), 'page-builder' => __( 'Full Width / Stretched', 'astra' ), ), ), /** * Option: Body Background */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-layout-outside-bg-obj-responsive]', 'type' => 'control', 'control' => 'ast-responsive-background', 'default' => astra_get_option( 'site-layout-outside-bg-obj-responsive' ), 'section' => 'section-colors-body', 'transport' => 'postMessage', 'priority' => 25, 'title' => __( 'Background', 'astra' ), ), ); $configurations = array_merge( $configurations, $_configs ); // Learn More link if Astra Pro is not activated. if ( ! defined( 'ASTRA_EXT_VER' ) ) { $config = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-container-more-feature-divider]', 'type' => 'control', 'default' => astra_get_option( 'site-content-layout' ), 'control' => 'ast-divider', 'section' => 'section-container-layout', 'priority' => 999, 'settings' => array(), ), array( 'name' => ASTRA_THEME_SETTINGS . '[ast-container-more-feature-description]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-container-layout', 'priority' => 999, 'title' => '', 'help' => '' . __( 'More Options Available in Astra Pro!', 'astra' ) . '
' . __( 'Learn More', 'astra' ) . '', 'settings' => array(), ), ); $configurations = array_merge( $configurations, $config ); } return $configurations; } } } new Astra_Site_Container_Layout_Configs(); inc/customizer/configurations/buttons/class-astra-customizer-button-configs.php 0000666 00000053062 15214042654 0024355 0 ustar 00 ASTRA_THEME_SETTINGS . '[button-color-styling-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-buttons', 'title' => __( 'Colors and Border', 'astra' ), 'priority' => 17, 'settings' => array(), ), /** * Group: Theme Button Colors Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[theme-button-color-group]', 'default' => astra_get_option( 'theme-button-color-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Color', 'astra' ), 'section' => 'section-buttons', 'transport' => 'postMessage', 'priority' => 18, ), /** * Group: Theme Button Border Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[theme-button-border-group]', 'default' => astra_get_option( 'theme-button-border-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Border', 'astra' ), 'section' => 'section-buttons', 'transport' => 'postMessage', 'priority' => 19, ), /** * Option: Button Color */ array( 'name' => 'button-color', 'default' => '', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-color-group]', 'section' => 'section-buttons', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Text Color', 'astra' ), ), /** * Option: Button Hover Color */ array( 'name' => 'button-h-color', 'default' => '', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-color-group]', 'section' => 'section-buttons', 'tab' => __( 'Hover', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Text Color', 'astra' ), ), /** * Option: Button Background Color */ array( 'name' => 'button-bg-color', 'default' => '', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-color-group]', 'section' => 'section-buttons', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Background Color', 'astra' ), ), /** * Option: Button Background Hover Color */ array( 'name' => 'button-bg-h-color', 'default' => '', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-color-group]', 'section' => 'section-buttons', 'tab' => __( 'Hover', 'astra' ), 'control' => 'ast-color', 'title' => __( 'Background Color', 'astra' ), ), /** * Option: Global Button Border Size */ array( 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-border-group]', 'section' => 'section-buttons', 'control' => 'ast-border', 'name' => 'theme-button-border-group-border-size', 'transport' => 'postMessage', 'linked_choices' => true, 'priority' => 10, 'default' => astra_get_option( 'theme-button-border-group-border-size' ), 'title' => __( 'Width', 'astra' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), ), /** * Option: Global Button Border Color */ array( 'name' => 'theme-button-border-group-border-color', 'default' => astra_get_option( 'theme-button-border-group-border-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-border-group]', 'section' => 'section-buttons', 'control' => 'ast-color', 'priority' => 12, 'title' => __( 'Color', 'astra' ), ), /** * Option: Global Button Border Hover Color */ array( 'name' => 'theme-button-border-group-border-h-color', 'default' => astra_get_option( 'theme-button-border-group-border-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-border-group]', 'section' => 'section-buttons', 'control' => 'ast-color', 'priority' => 14, 'title' => __( 'Hover Color', 'astra' ), ), /** * Option: Global Button Radius */ array( 'name' => 'button-radius', 'default' => astra_get_option( 'button-radius' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[theme-button-border-group]', 'section' => 'section-buttons', 'control' => 'ast-slider', 'title' => __( 'Border Radius', 'astra' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 200, ), ), /** * Option: Button Padding Section */ array( 'name' => ASTRA_THEME_SETTINGS . '[button-padding-styling-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-buttons', 'title' => __( 'Spacing', 'astra' ), 'priority' => 30, 'settings' => array(), ), /** * Option: Theme Button Padding */ array( 'name' => ASTRA_THEME_SETTINGS . '[theme-button-padding]', 'default' => astra_get_option( 'theme-button-padding' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'section' => 'section-buttons', 'title' => __( 'Padding', 'astra' ), 'linked_choices' => true, 'transport' => 'postMessage', 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), 'priority' => 35, ), /** * Option: Primary Header Button Colors Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[primary-header-button-color-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-primary-menu', 'title' => __( 'Header Button', 'astra' ), 'settings' => array(), 'priority' => 17, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), ), /** * Group: Primary Header Button Colors Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[primary-header-button-color-group]', 'default' => astra_get_option( 'primary-header-button-color-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Colors', 'astra' ), 'section' => 'section-primary-menu', 'transport' => 'postMessage', 'priority' => 18, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), ), /** * Group: Primary Header Button Border Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[primary-header-button-border-group]', 'default' => astra_get_option( 'primary-header-button-border-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Border', 'astra' ), 'section' => 'section-primary-menu', 'transport' => 'postMessage', 'priority' => 19, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), ), /** * Option: Button Text Color */ array( 'name' => 'header-main-rt-section-button-text-color', 'transport' => 'postMessage', 'default' => astra_get_option( 'header-main-rt-section-button-text-color' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-color-group]', 'section' => 'section-primary-menu', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Text Color', 'astra' ), ), /** * Option: Button Text Hover Color */ array( 'name' => 'header-main-rt-section-button-text-h-color', 'default' => astra_get_option( 'header-main-rt-section-button-text-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-color-group]', 'section' => 'section-primary-menu', 'tab' => __( 'Hover', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Text Color', 'astra' ), ), /** * Option: Button Background Color */ array( 'name' => 'header-main-rt-section-button-back-color', 'default' => astra_get_option( 'header-main-rt-section-button-back-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-color-group]', 'section' => 'section-primary-menu', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Background Color', 'astra' ), ), /** * Option: Button Button Hover Color */ array( 'name' => 'header-main-rt-section-button-back-h-color', 'default' => astra_get_option( 'header-main-rt-section-button-back-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-color-group]', 'section' => 'section-primary-menu', 'tab' => __( 'Hover', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Background Color', 'astra' ), ), // Option: Custom Menu Button Border. array( 'type' => 'control', 'control' => 'ast-responsive-spacing', 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-padding]', 'section' => 'section-primary-menu', 'transport' => 'postMessage', 'linked_choices' => true, 'priority' => 20, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), 'default' => astra_get_option( 'header-main-rt-section-button-padding' ), 'title' => __( 'Padding', 'astra' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), ), /** * Option: Button Border Size */ array( 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-border-group]', 'section' => 'section-primary-menu', 'control' => 'ast-border', 'name' => 'header-main-rt-section-button-border-size', 'transport' => 'postMessage', 'linked_choices' => true, 'priority' => 10, 'default' => astra_get_option( 'header-main-rt-section-button-border-size' ), 'title' => __( 'Width', 'astra' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), ), /** * Option: Button Border Color */ array( 'name' => 'header-main-rt-section-button-border-color', 'default' => astra_get_option( 'header-main-rt-section-button-border-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-border-group]', 'section' => 'section-primary-menu', 'control' => 'ast-color', 'priority' => 12, 'title' => __( 'Color', 'astra' ), ), /** * Option: Button Border Hover Color */ array( 'name' => 'header-main-rt-section-button-border-h-color', 'default' => astra_get_option( 'header-main-rt-section-button-border-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-border-group]', 'section' => 'section-primary-menu', 'control' => 'ast-color', 'priority' => 14, 'title' => __( 'Hover Color', 'astra' ), ), /** * Option: Button Border Radius */ array( 'name' => 'header-main-rt-section-button-border-radius', 'default' => astra_get_option( 'header-main-rt-section-button-border-radius' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[primary-header-button-border-group]', 'section' => 'section-primary-menu', 'control' => 'ast-slider', 'transport' => 'postMessage', 'priority' => 16, 'title' => __( 'Border Radius', 'astra' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), ), /** * Option: Transparent Header Button Colors Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[transparent-header-button-color-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-transparent-header', 'title' => __( 'Header Button', 'astra' ), 'settings' => array(), 'priority' => 40, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), ), /** * Group: Transparent Header Button Colors Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[transparent-header-button-color-group]', 'default' => astra_get_option( 'transparent-header-button-color-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Colors', 'astra' ), 'section' => 'section-transparent-header', 'transport' => 'postMessage', 'priority' => 40, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), ), /** * Group: Transparent Header Button Border Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[transparent-header-button-border-group]', 'default' => astra_get_option( 'transparent-header-button-border-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Border', 'astra' ), 'section' => 'section-transparent-header', 'transport' => 'postMessage', 'priority' => 40, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), ), /** * Option: Button Text Color */ array( 'name' => 'header-main-rt-trans-section-button-text-color', 'transport' => 'postMessage', 'default' => astra_get_option( 'header-main-rt-trans-section-button-text-color' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-color-group]', 'section' => 'section-transparent-header', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Text Color', 'astra' ), ), /** * Option: Button Text Hover Color */ array( 'name' => 'header-main-rt-trans-section-button-text-h-color', 'default' => astra_get_option( 'header-main-rt-trans-section-button-text-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-color-group]', 'section' => 'section-transparent-header', 'tab' => __( 'Hover', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Text Color', 'astra' ), ), /** * Option: Button Background Color */ array( 'name' => 'header-main-rt-trans-section-button-back-color', 'default' => astra_get_option( 'header-main-rt-trans-section-button-back-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-color-group]', 'section' => 'section-transparent-header', 'tab' => __( 'Normal', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Background Color', 'astra' ), ), /** * Option: Button Button Hover Color */ array( 'name' => 'header-main-rt-trans-section-button-back-h-color', 'default' => astra_get_option( 'header-main-rt-trans-section-button-back-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-color-group]', 'section' => 'section-transparent-header', 'tab' => __( 'Hover', 'astra' ), 'control' => 'ast-color', 'priority' => 10, 'title' => __( 'Background Color', 'astra' ), ), // Option: Custom Menu Button Border. array( 'type' => 'control', 'control' => 'ast-responsive-spacing', 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-trans-section-button-padding]', 'section' => 'section-transparent-header', 'transport' => 'postMessage', 'linked_choices' => true, 'priority' => 40, 'required' => array( ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', '===', 'custom-button' ), 'default' => astra_get_option( 'header-main-rt-trans-section-button-padding' ), 'title' => __( 'Padding', 'astra' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), ), /** * Option: Button Border Size */ array( 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-border-group]', 'section' => 'section-transparent-header', 'control' => 'ast-border', 'name' => 'header-main-rt-trans-section-button-border-size', 'transport' => 'postMessage', 'linked_choices' => true, 'priority' => 10, 'default' => astra_get_option( 'header-main-rt-trans-section-button-border-size' ), 'title' => __( 'Width', 'astra' ), 'choices' => array( 'top' => __( 'Top', 'astra' ), 'right' => __( 'Right', 'astra' ), 'bottom' => __( 'Bottom', 'astra' ), 'left' => __( 'Left', 'astra' ), ), ), /** * Option: Button Border Color */ array( 'name' => 'header-main-rt-trans-section-button-border-color', 'default' => astra_get_option( 'header-main-rt-trans-section-button-border-color' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-border-group]', 'section' => 'section-transparent-header', 'transport' => 'postMessage', 'control' => 'ast-color', 'priority' => 12, 'title' => __( 'Color', 'astra' ), ), /** * Option: Button Border Hover Color */ array( 'name' => 'header-main-rt-trans-section-button-border-h-color', 'default' => astra_get_option( 'header-main-rt-trans-section-button-border-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-border-group]', 'control' => 'ast-color', 'priority' => 14, 'title' => __( 'Hover Color', 'astra' ), ), /** * Option: Button Border Radius */ array( 'name' => 'header-main-rt-trans-section-button-border-radius', 'default' => astra_get_option( 'header-main-rt-trans-section-button-border-radius' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[transparent-header-button-border-group]', 'section' => 'section-transparent-header', 'control' => 'ast-slider', 'transport' => 'postMessage', 'priority' => 16, 'title' => __( 'Border Radius', 'astra' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Button_Configs(); inc/customizer/class-astra-customizer.php 0000666 00000077477 15214042654 0014706 0 ustar 00 get_customizer_configurations( $wp_customize ); foreach ( $configurations as $key => $config ) { $config = wp_parse_args( $config, $this->get_astra_customizer_configuration_defaults() ); switch ( $config['type'] ) { case 'panel': // Remove type from configuration. unset( $config['type'] ); $this->register_panel( $config, $wp_customize ); break; case 'section': // Remove type from configuration. unset( $config['type'] ); $this->register_section( $config, $wp_customize ); break; case 'sub-control': // Remove type from configuration. unset( $config['type'] ); $this->register_sub_control_setting( $config, $wp_customize ); break; case 'control': // Remove type from configuration. unset( $config['type'] ); $this->register_setting_control( $config, $wp_customize ); break; } } } /** * Check if string is start with a string provided. * * @param string $string main string. * @param string $start_string string to search. * @since 2.0.0 * @return bool. */ public function starts_with( $string, $start_string ) { $len = strlen( $start_string ); return ( substr( $string, 0, $len ) === $start_string ); } /** * Filter and return Customizer Configurations. * * @param WP_Customize_Manager $wp_customize Reference to WP_Customize_Manager. * @since 1.4.3 * @return Array Customizer Configurations for registering Sections/Panels/Controls. */ private function get_customizer_configurations( $wp_customize ) { if ( ! is_null( self::$configuration ) ) { return self::$configuration; } return apply_filters( 'astra_customizer_configurations', array(), $wp_customize ); } /** * Return default values for the Customize Configurations. * * @since 1.4.3 * @return Array default values for the Customizer Configurations. */ private function get_astra_customizer_configuration_defaults() { return apply_filters( 'astra_customizer_configuration_defaults', array( 'priority' => null, 'title' => null, 'label' => null, 'name' => null, 'type' => null, 'description' => null, 'capability' => null, 'datastore_type' => 'option', // theme_mod or option. Default option. 'settings' => null, 'active_callback' => null, 'sanitize_callback' => null, 'sanitize_js_callback' => null, 'theme_supports' => null, 'transport' => null, 'default' => null, 'selector' => null, 'ast_fields' => array(), ) ); } /** * Register Customizer Panel. * * @param Array $config Panel Configuration settings. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return void */ private function register_panel( $config, $wp_customize ) { $wp_customize->add_panel( new Astra_WP_Customize_Panel( $wp_customize, astra_get_prop( $config, 'name' ), $config ) ); } /** * Register Customizer Section. * * @param Array $config Panel Configuration settings. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return void */ private function register_section( $config, $wp_customize ) { $callback = astra_get_prop( $config, 'section_callback', 'Astra_WP_Customize_Section' ); $wp_customize->add_section( new $callback( $wp_customize, astra_get_prop( $config, 'name' ), $config ) ); } /** * Register Customizer Control and Setting. * * @param Array $control_config Panel Configuration settings. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 2.0.0 * @return void */ private function register_sub_control_setting( $control_config, $wp_customize ) { $sub_control_name = ASTRA_THEME_SETTINGS . '[' . astra_get_prop( $control_config, 'name' ) . ']'; if ( isset( $wp_customize->get_control( $sub_control_name )->id ) ) { return; } $parent = astra_get_prop( $control_config, 'parent' ); $tab = astra_get_prop( $control_config, 'tab' ); if ( empty( self::$group_configs[ $parent ] ) ) { self::$group_configs[ $parent ] = array(); } if ( array_key_exists( 'tab', $control_config ) ) { self::$group_configs[ $parent ]['tabs'][ $tab ][] = $control_config; } else { self::$group_configs[ $parent ][] = $control_config; } $config = array( 'name' => $sub_control_name, 'datastore_type' => 'option', 'transport' => 'postMessage', 'control' => 'ast-hidden', 'section' => astra_get_prop( $control_config, 'section', 'title_tagline' ), 'default' => astra_get_prop( $control_config, 'default' ), 'sanitize_callback' => astra_get_prop( $control_config, 'sanitize_callback', Astra_Customizer_Control_Base::get_sanitize_call( astra_get_prop( $control_config, 'control' ) ) ), ); $wp_customize->add_setting( astra_get_prop( $config, 'name' ), array( 'default' => astra_get_prop( $config, 'default' ), 'type' => astra_get_prop( $config, 'datastore_type' ), 'transport' => astra_get_prop( $config, 'transport', 'refresh' ), 'sanitize_callback' => astra_get_prop( $config, 'sanitize_callback', Astra_Customizer_Control_Base::get_sanitize_call( astra_get_prop( $config, 'control' ) ) ), ) ); $instance = Astra_Customizer_Control_Base::get_control_instance( astra_get_prop( $config, 'control' ) ); if ( false !== $instance ) { $wp_customize->add_control( new $instance( $wp_customize, $sub_control_name, $config ) ); } else { $wp_customize->add_control( $sub_control_name, $config ); } } /** * Register Customizer Control and Setting. * * @param Array $config Panel Configuration settings. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return void */ private function register_setting_control( $config, $wp_customize ) { if ( 'ast-settings-group' === $config['control'] ) { $callback = false; } else { $callback = astra_get_prop( $config, 'sanitize_callback', Astra_Customizer_Control_Base::get_sanitize_call( astra_get_prop( $config, 'control' ) ) ); } $wp_customize->add_setting( astra_get_prop( $config, 'name' ), array( 'default' => astra_get_prop( $config, 'default' ), 'type' => astra_get_prop( $config, 'datastore_type' ), 'transport' => astra_get_prop( $config, 'transport', 'refresh' ), 'sanitize_callback' => $callback, ) ); $instance = Astra_Customizer_Control_Base::get_control_instance( astra_get_prop( $config, 'control' ) ); $config['label'] = astra_get_prop( $config, 'title' ); $config['type'] = astra_get_prop( $config, 'control' ); // For ast-font control font-weight and font-family is passed as param `font-type` which needs to be converted to `type`. if ( false !== astra_get_prop( $config, 'font-type', false ) ) { $config['type'] = astra_get_prop( $config, 'font-type', false ); } if ( false !== $instance ) { $wp_customize->add_control( new $instance( $wp_customize, astra_get_prop( $config, 'name' ), $config ) ); } else { $wp_customize->add_control( astra_get_prop( $config, 'name' ), $config ); } if ( astra_get_prop( $config, 'partial', false ) ) { if ( isset( $wp_customize->selective_refresh ) ) { $wp_customize->selective_refresh->add_partial( astra_get_prop( $config, 'name' ), array( 'selector' => astra_get_prop( $config['partial'], 'selector' ), 'container_inclusive' => astra_get_prop( $config['partial'], 'container_inclusive' ), 'render_callback' => astra_get_prop( $config['partial'], 'render_callback' ), ) ); } } if ( false !== astra_get_prop( $config, 'required', false ) ) { $this->update_dependency_arr( astra_get_prop( $config, 'name' ), astra_get_prop( $config, 'required' ) ); } } /** * Update dependency in the dependency array. * * @param String $key name of the Setting/Control for which the dependency is added. * @param Array $dependency dependency of the $name Setting/Control. * @since 1.4.3 * @return void */ private function update_dependency_arr( $key, $dependency ) { self::$dependency_arr[ $key ] = $dependency; } /** * Get dependency Array. * * @since 1.4.3 * @return Array Dependencies discovered when registering controls and settings. */ private function get_dependency_arr() { return self::$dependency_arr; } /** * Include Customizer Configuration files. * * @since 1.4.3 * @return void */ public function include_configurations() { require ASTRA_THEME_DIR . 'inc/customizer/configurations/class-astra-customizer-config-base.php'; /** * Register Sections & Panels */ require ASTRA_THEME_DIR . 'inc/customizer/class-astra-customizer-register-sections-panels.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/buttons/class-astra-customizer-button-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/layout/class-astra-site-layout-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/layout/class-astra-header-layout-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/layout/class-astra-site-identity-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/layout/class-astra-blog-layout-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/layout/class-astra-blog-single-layout-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/layout/class-astra-sidebar-layout-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/layout/class-astra-site-container-layout-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/layout/class-astra-footer-layout-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/colors-background/class-astra-body-colors-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/colors-background/class-astra-footer-colors-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/colors-background/class-astra-advanced-footer-colors-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/typography/class-astra-archive-typo-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/typography/class-astra-body-typo-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/typography/class-astra-content-typo-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/typography/class-astra-header-typo-configs.php'; require ASTRA_THEME_DIR . 'inc/customizer/configurations/typography/class-astra-single-typo-configs.php'; } /** * Print Footer Scripts * * @since 1.0.0 * @return void */ public function print_footer_scripts() { $output = ''; echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } /** * Register custom section and panel. * * @since 1.0.0 * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function customize_register_panel( $wp_customize ) { /** * Register Extended Panel */ $wp_customize->register_panel_type( 'Astra_WP_Customize_Panel' ); $wp_customize->register_section_type( 'Astra_WP_Customize_Section' ); $wp_customize->register_section_type( 'Astra_WP_Customize_Separator' ); if ( ! defined( 'ASTRA_EXT_VER' ) ) { $wp_customize->register_section_type( 'Astra_Pro_Customizer' ); } require ASTRA_THEME_DIR . 'inc/customizer/extend-customizer/class-astra-wp-customize-panel.php'; require ASTRA_THEME_DIR . 'inc/customizer/extend-customizer/class-astra-wp-customize-section.php'; require ASTRA_THEME_DIR . 'inc/customizer/extend-customizer/class-astra-wp-customize-separator.php'; require ASTRA_THEME_DIR . 'inc/customizer/customizer-controls.php'; /** * Add Controls */ Astra_Customizer_Control_Base::add_control( 'color', array( 'callback' => 'WP_Customize_Color_Control', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_hex_color' ), ) ); Astra_Customizer_Control_Base::add_control( 'ast-sortable', array( 'callback' => 'Astra_Control_Sortable', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_multi_choices' ), ) ); Astra_Customizer_Control_Base::add_control( 'ast-radio-image', array( 'callback' => 'Astra_Control_Radio_Image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), ) ); Astra_Customizer_Control_Base::add_control( 'ast-slider', array( 'callback' => 'Astra_Control_Slider', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number' ), ) ); Astra_Customizer_Control_Base::add_control( 'ast-responsive-slider', array( 'callback' => 'Astra_Control_Responsive_Slider', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), ) ); Astra_Customizer_Control_Base::add_control( 'ast-responsive', array( 'callback' => 'Astra_Control_Responsive', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_typo' ), ) ); Astra_Customizer_Control_Base::add_control( 'ast-responsive-spacing', array( 'callback' => 'Astra_Control_Responsive_Spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), ) ); Astra_Customizer_Control_Base::add_control( 'ast-divider', array( 'callback' => 'Astra_Control_Divider', 'sanitize_callback' => '', ) ); Astra_Customizer_Control_Base::add_control( 'ast-heading', array( 'callback' => 'Astra_Control_Heading', 'sanitize_callback' => '', ) ); Astra_Customizer_Control_Base::add_control( 'ast-hidden', array( 'callback' => 'Astra_Control_Hidden', 'sanitize_callback' => '', ) ); Astra_Customizer_Control_Base::add_control( 'ast-link', array( 'callback' => 'Astra_Control_Link', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_link' ), ) ); Astra_Customizer_Control_Base::add_control( 'ast-color', array( 'callback' => 'Astra_Control_Color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), ) ); Astra_Customizer_Control_Base::add_control( 'ast-description', array( 'callback' => 'Astra_Control_Description', 'sanitize_callback' => '', ) ); Astra_Customizer_Control_Base::add_control( 'ast-background', array( 'callback' => 'Astra_Control_Background', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_background_obj' ), ) ); Astra_Customizer_Control_Base::add_control( 'image', array( 'callback' => 'WP_Customize_Image_Control', 'sanitize_callback' => 'esc_url_raw', ) ); Astra_Customizer_Control_Base::add_control( 'ast-font', array( 'callback' => 'Astra_Control_Typography', 'sanitize_callback' => 'sanitize_text_field', ) ); Astra_Customizer_Control_Base::add_control( 'number', array( 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number' ), ) ); Astra_Customizer_Control_Base::add_control( 'ast-border', array( 'callback' => 'Astra_Control_Border', 'santize_callback' => 'sanitize_border', ) ); Astra_Customizer_Control_Base::add_control( 'ast-responsive-color', array( 'callback' => 'Astra_Control_Responsive_Color', 'santize_callback' => 'sanitize_responsive_color', ) ); /** * Add Controls */ Astra_Customizer_Control_Base::add_control( 'ast-responsive-background', array( 'callback' => 'Astra_Control_Responsive_Background', 'santize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_background' ), ) ); Astra_Customizer_Control_Base::add_control( 'ast-customizer-link', array( 'callback' => 'Astra_Control_Customizer_Link', 'santize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_customizer_links' ), ) ); Astra_Customizer_Control_Base::add_control( 'ast-settings-group', array( 'callback' => 'Astra_Control_Settings_Group', ) ); Astra_Customizer_Control_Base::add_control( 'ast-select', array( 'callback' => 'Astra_Control_Select', 'sanitize_callback' => '', ) ); /** * Helper files */ require ASTRA_THEME_DIR . 'inc/customizer/class-astra-customizer-partials.php'; require ASTRA_THEME_DIR . 'inc/customizer/class-astra-customizer-callback.php'; require ASTRA_THEME_DIR . 'inc/customizer/class-astra-customizer-sanitizes.php'; } /** * Add postMessage support for site title and description for the Theme Customizer. * * @since 1.0.0 * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function customize_register( $wp_customize ) { /** * Override Defaults */ require ASTRA_THEME_DIR . 'inc/customizer/override-defaults.php'; } /** * Add upgrade link configurations controls. * * @since 1.0.0 * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function astra_pro_upgrade_configurations( $wp_customize ) { if ( ! defined( 'ASTRA_EXT_VER' ) ) { require ASTRA_THEME_DIR . 'inc/customizer/astra-pro/class-astra-pro-customizer.php'; require ASTRA_THEME_DIR . 'inc/customizer/astra-pro/class-astra-pro-upgrade-link-configs.php'; } } /** * Customizer Controls * * @since 1.0.0 * @return void */ public function controls_scripts() { $js_prefix = '.min.js'; $css_prefix = '.min.css'; $dir = 'minified'; if ( SCRIPT_DEBUG ) { $js_prefix = '.js'; $css_prefix = '.css'; $dir = 'unminified'; } if ( is_rtl() ) { $css_prefix = '.min-rtl.css'; if ( SCRIPT_DEBUG ) { $css_prefix = '-rtl.css'; } } wp_enqueue_style( 'wp-color-picker' ); wp_enqueue_script( 'astra-color-alpha' ); wp_enqueue_script( 'thickbox' ); wp_enqueue_style( 'thickbox' ); // Customizer Core. wp_enqueue_script( 'astra-customizer-controls-toggle-js', ASTRA_THEME_URI . 'assets/js/' . $dir . '/customizer-controls-toggle' . $js_prefix, array(), ASTRA_THEME_VERSION, true ); // Extended Customizer Assets - Panel extended. wp_enqueue_style( 'astra-extend-customizer-css', ASTRA_THEME_URI . 'assets/css/' . $dir . '/extend-customizer' . $css_prefix, null, ASTRA_THEME_VERSION ); wp_enqueue_script( 'astra-extend-customizer-js', ASTRA_THEME_URI . 'assets/js/' . $dir . '/extend-customizer' . $js_prefix, array(), ASTRA_THEME_VERSION, true ); wp_enqueue_script( 'astra-customizer-dependency', ASTRA_THEME_URI . 'assets/js/' . $dir . '/customizer-dependency' . $js_prefix, array( 'astra-customizer-controls-js' ), ASTRA_THEME_VERSION, true ); // Customizer Controls. wp_enqueue_style( 'astra-customizer-controls-css', ASTRA_THEME_URI . 'assets/css/' . $dir . '/customizer-controls' . $css_prefix, null, ASTRA_THEME_VERSION ); wp_enqueue_script( 'astra-customizer-controls-js', ASTRA_THEME_URI . 'assets/js/' . $dir . '/customizer-controls' . $js_prefix, array( 'astra-customizer-controls-toggle-js' ), ASTRA_THEME_VERSION, true ); $google_fonts = Astra_Font_Families::get_google_fonts(); $string = $this->generate_font_dropdown(); $tmpl = '