ASTRA_THEME_SETTINGS . '[blog-single-post-ast-button-link]', 'type' => 'control', 'control' => 'ast-button-link', 'section' => 'section-blog-single', 'priority' => 999, 'title' => __( 'View Astra Pro Features', 'astra' ), 'url' => astra_get_pro_url( 'https://wpastra.com/pro/', 'customizer', 'learn-more', 'upgrade-to-pro' ), 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-post-design-ast-button-link]', 'type' => 'control', 'control' => 'ast-button-link', 'section' => 'section-blog-single', 'priority' => 999, 'title' => __( 'View Astra Pro Features', 'astra' ), 'url' => astra_get_pro_url( 'https://wpastra.com/pro/', 'customizer', 'learn-more', 'upgrade-to-pro' ), 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), 'context' => ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) ? Astra_Builder_Helper::$design_tab : Astra_Builder_Helper::$general_tab, ), ); } if ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'typography' ) ) { $new_configs = array( array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-title-typo]', 'type' => 'control', 'priority' => Astra_Builder_Helper::$is_header_footer_builder_active ? 13 : 20, 'control' => 'ast-settings-group', 'title' => __( 'Title Font', 'astra' ), 'section' => 'section-blog-single', 'transport' => 'postMessage', 'context' => Astra_Builder_Helper::$is_header_footer_builder_active ? Astra_Builder_Helper::$design_tab : Astra_Builder_Helper::$general_tab, ), /** * Option: Single Post / Page Title Font Size */ array( 'name' => 'font-size-entry-title', 'parent' => ASTRA_THEME_SETTINGS . '[blog-single-title-typo]', 'type' => 'sub-control', 'control' => 'ast-responsive-slider', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'section' => 'section-blog-single', 'transport' => 'postMessage', 'title' => __( 'Size', 'astra' ), 'priority' => 8, 'default' => astra_get_option( 'font-size-entry-title' ), 'suffix' => array( 'px', 'em' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), 'em' => array( 'min' => 0, 'step' => 0.01, 'max' => 20, ), ), ), ); } else { $new_configs = array(); /** * Option: Single Post / Page Title Font Size */ $new_configs[] = array( 'name' => ASTRA_THEME_SETTINGS . '[font-size-entry-title]', 'type' => 'control', 'control' => 'ast-responsive-slider', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'section' => 'section-blog-single', 'transport' => 'postMessage', 'title' => __( 'Post / Page Title Font', 'astra' ), 'priority' => 13, 'default' => astra_get_option( 'font-size-entry-title' ), 'suffix' => array( 'px', 'em' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), 'em' => array( 'min' => 0, 'step' => 0.01, 'max' => 20, ), ), 'context' => ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) ? Astra_Builder_Helper::$design_tab : Astra_Builder_Helper::$general_tab, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ); } $_configs = array_merge( $_configs, $new_configs ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Single_Typo_Configs();