class-astra-font-families.php 0000666 00000006517 15210370257 0012244 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; class-astra-fonts.php 0000666 00000010451 15210370257 0010630 0 ustar 00 (array) $variants, ); } } /** * Get Fonts */ public static function get_fonts() { do_action( 'astra_get_fonts' ); return apply_filters( 'astra_add_fonts', self::$fonts ); } /** * Renders the tag for all fonts in the $fonts array. * * @since 1.0.16 Added the filter 'astra_render_fonts' to support custom fonts. * @since 1.0.0 * @return void */ public static function render_fonts() { $font_list = apply_filters( 'astra_render_fonts', self::get_fonts() ); $google_fonts = array(); $font_subset = array(); $system_fonts = Astra_Font_Families::get_system_fonts(); foreach ( $font_list as $name => $font ) { if ( ! empty( $name ) && ! isset( $system_fonts[ $name ] ) ) { // Add font variants. $google_fonts[ $name ] = $font['variants']; // Add Subset. $subset = apply_filters( 'astra_font_subset', '', $name ); if ( ! empty( $subset ) ) { $font_subset[] = $subset; } } } $google_font_url = self::google_fonts_url( $google_fonts, $font_subset ); wp_enqueue_style( 'astra-google-fonts', $google_font_url, array(), ASTRA_THEME_VERSION, 'all' ); } /** * Google Font URL * Combine multiple google font in one URL * * @link https://shellcreeper.com/?p=1476 * @param array $fonts Google Fonts array. * @param array $subsets Font's Subsets array. * * @return string */ public static function google_fonts_url( $fonts, $subsets = array() ) { /* URL */ $base_url = '//fonts.googleapis.com/css'; $font_args = array(); $family = array(); // This is deprecated filter hook. $fonts = apply_filters( 'astra_google_fonts', $fonts ); $fonts = apply_filters( 'astra_google_fonts_selected', $fonts ); /* Format Each Font Family in Array */ foreach ( $fonts as $font_name => $font_weight ) { $font_name = str_replace( ' ', '+', $font_name ); if ( ! empty( $font_weight ) ) { if ( is_array( $font_weight ) ) { $font_weight = implode( ',', $font_weight ); } $font_family = explode( ',', $font_name ); $font_family = str_replace( "'", '', astra_get_prop( $font_family, 0 ) ); $family[] = trim( $font_family . ':' . rawurlencode( trim( $font_weight ) ) ); } else { $family[] = trim( $font_name ); } } /* Only return URL if font family defined. */ if ( ! empty( $family ) ) { /* Make Font Family a String */ $family = implode( '|', $family ); /* Add font family in args */ $font_args['family'] = $family; /* Add font subsets in args */ if ( ! empty( $subsets ) ) { /* format subsets to string */ if ( is_array( $subsets ) ) { $subsets = implode( ',', $subsets ); } $font_args['subset'] = rawurlencode( trim( $subsets ) ); } $font_args['display'] = astra_get_fonts_display_property(); return add_query_arg( $font_args, $base_url ); } return ''; } } class-astra-fonts-data.php 0000666 00000001733 15210370257 0011542 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, $config ); } return $configurations; } } } new Astra_Footer_Layout_Configs(); configurations/layout/class-astra-header-layout-configs.php 0000666 00000064404 15210370257 0020246 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(); configurations/layout/class-astra-blog-layout-configs.php 0000666 00000010452 15210370257 0017733 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(); configurations/layout/class-astra-blog-single-layout-configs.php 0000666 00000007517 15210370257 0021222 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(); configurations/layout/class-astra-site-layout-configs.php 0000666 00000003045 15210370257 0017754 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(); configurations/layout/class-astra-sidebar-layout-configs.php 0000666 00000011417 15210370257 0020423 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(); configurations/layout/class-astra-site-container-layout-configs.php 0000666 00000013443 15210370257 0021737 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(); configurations/buttons/class-astra-customizer-button-configs.php 0000666 00000053062 15210370257 0021377 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(); configurations/colors-background/class-astra-body-colors-configs.php 0000666 00000005051 15210370257 0022031 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(); configurations/colors-background/class-astra-footer-colors-configs.php 0000666 00000005152 15210370257 0022374 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(); configurations/colors-background/class-astra-advanced-footer-colors-configs.php 0000666 00000011006 15210370257 0024132 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(); configurations/typography/class-astra-content-typo-configs.php 0000666 00000016664 15210370257 0021044 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(); configurations/typography/class-astra-single-typo-configs.php 0000666 00000006703 15210370257 0020644 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(); configurations/typography/class-astra-body-typo-configs.php 0000666 00000022506 15210370257 0020317 0 ustar 00 ASTRA_THEME_SETTINGS . '[divider-base-typo]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-body-typo', 'priority' => 4, 'title' => __( 'Body & Content', 'astra' ), 'settings' => array(), 'separator' => false, ), /** * Option: Font Family */ array( 'name' => ASTRA_THEME_SETTINGS . '[body-font-family]', 'type' => 'control', 'control' => 'ast-font', 'font-type' => 'ast-font-family', 'ast_inherit' => __( 'Default System Font', 'astra' ), 'default' => astra_get_option( 'body-font-family' ), 'section' => 'section-body-typo', 'priority' => 5, 'title' => __( 'Family', 'astra' ), 'connect' => ASTRA_THEME_SETTINGS . '[body-font-weight]', 'variant' => ASTRA_THEME_SETTINGS . '[body-font-variant]', ), /** * Option: Font Variant */ array( 'name' => ASTRA_THEME_SETTINGS . '[body-font-variant]', 'type' => 'control', 'control' => 'ast-font', 'font-type' => 'ast-font-variant', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_variant' ), 'default' => astra_get_option( 'body-font-variant' ), 'ast_inherit' => __( 'Default', 'astra' ), 'section' => 'section-body-typo', 'priority' => 10, 'title' => __( 'Variants', 'astra' ), 'variant' => ASTRA_THEME_SETTINGS . '[body-font-family]', ), /** * Option: Font Weight */ array( 'name' => ASTRA_THEME_SETTINGS . '[body-font-weight]', 'type' => 'control', 'control' => 'ast-font', 'font-type' => 'ast-font-weight', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'default' => astra_get_option( 'body-font-weight' ), 'ast_inherit' => __( 'Default', 'astra' ), 'section' => 'section-body-typo', 'priority' => 15, 'title' => __( 'Weight', 'astra' ), 'connect' => ASTRA_THEME_SETTINGS . '[body-font-family]', ), /** * Option: Body Text Transform */ array( 'name' => ASTRA_THEME_SETTINGS . '[body-text-transform]', 'type' => 'control', 'control' => 'select', 'section' => 'section-body-typo', 'default' => astra_get_option( 'body-text-transform' ), 'priority' => 20, 'title' => __( 'Text Transform', 'astra' ), 'choices' => array( '' => __( 'Default', 'astra' ), 'none' => __( 'None', 'astra' ), 'capitalize' => __( 'Capitalize', 'astra' ), 'uppercase' => __( 'Uppercase', 'astra' ), 'lowercase' => __( 'Lowercase', 'astra' ), ), ), /** * Option: Body Font Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[font-size-body]', 'type' => 'control', 'control' => 'ast-responsive', 'section' => 'section-body-typo', 'default' => astra_get_option( 'font-size-body' ), 'priority' => 10, 'title' => __( 'Size', 'astra' ), 'input_attrs' => array( 'min' => 0, ), 'units' => array( 'px' => 'px', ), ), /** * Option: Body Line Height */ array( 'name' => ASTRA_THEME_SETTINGS . '[body-line-height]', 'type' => 'control', 'control' => 'ast-slider', 'section' => 'section-body-typo', 'default' => '', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'priority' => 25, 'title' => __( 'Line Height', 'astra' ), 'suffix' => '', 'input_attrs' => array( 'min' => 1, 'step' => 0.01, 'max' => 5, ), ), /** * Option: Paragraph Margin Bottom */ array( 'name' => ASTRA_THEME_SETTINGS . '[para-margin-bottom]', 'type' => 'control', 'control' => 'ast-slider', 'default' => '', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'transport' => 'postMessage', 'section' => 'section-body-typo', 'priority' => 25, 'title' => __( 'Paragraph Margin Bottom', 'astra' ), 'suffix' => '', 'input_attrs' => array( 'min' => 0.5, 'step' => 0.01, 'max' => 5, ), ), /** * Option: Body & Content Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-headings-typo]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-content-typo', 'priority' => 3, 'title' => __( 'Headings ( H1 - H6 )', 'astra' ), 'settings' => array(), 'separator' => false, ), /** * Option: Headings Font Family */ array( 'name' => ASTRA_THEME_SETTINGS . '[headings-font-family]', 'type' => 'control', 'control' => 'ast-font', 'font-type' => 'ast-font-family', 'default' => astra_get_option( 'headings-font-family' ), 'title' => __( 'Family', 'astra' ), 'section' => 'section-content-typo', 'priority' => 3, 'connect' => ASTRA_THEME_SETTINGS . '[headings-font-weight]', 'variant' => ASTRA_THEME_SETTINGS . '[headings-font-variant]', ), /** * Option: Font Variant */ array( 'name' => ASTRA_THEME_SETTINGS . '[headings-font-variant]', 'type' => 'control', 'control' => 'ast-font', 'font-type' => 'ast-font-variant', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_variant' ), 'default' => astra_get_option( 'headings-font-variant' ), 'ast_inherit' => __( 'Default', 'astra' ), 'section' => 'section-content-typo', 'priority' => 3, 'title' => __( 'Variants', 'astra' ), 'variant' => ASTRA_THEME_SETTINGS . '[headings-font-family]', ), /** * Option: Headings Font Weight */ array( 'name' => ASTRA_THEME_SETTINGS . '[headings-font-weight]', 'type' => 'control', 'control' => 'ast-font', 'font-type' => 'ast-font-weight', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'default' => astra_get_option( 'headings-font-weight' ), 'title' => __( 'Weight', 'astra' ), 'section' => 'section-content-typo', 'priority' => 3, 'connect' => ASTRA_THEME_SETTINGS . '[headings-font-family]', ), /** * Option: Headings Text Transform */ array( 'name' => ASTRA_THEME_SETTINGS . '[headings-text-transform]', 'type' => 'control', 'control' => 'select', 'section' => 'section-content-typo', 'title' => __( 'Text Transform', 'astra' ), 'default' => astra_get_option( 'headings-text-transform' ), 'priority' => 3, 'choices' => array( '' => __( 'Inherit', 'astra' ), 'none' => __( 'None', 'astra' ), 'capitalize' => __( 'Capitalize', 'astra' ), 'uppercase' => __( 'Uppercase', 'astra' ), 'lowercase' => __( 'Lowercase', 'astra' ), ), ), /** * Option: Heading' . __( 'More Options Available in Astra Pro!', 'astra' ) . '
' . __( 'Learn More', 'astra' ) . '', 'settings' => array(), ), ); $configurations = array_merge( $configurations, $_configs ); } return $configurations; } } } new Astra_Archive_Typo_Configs(); class-astra-customizer-register-sections-panels.php 0000666 00000025361 15210370257 0016640 0 ustar 00 'panel-global', 'type' => 'panel', 'priority' => 10, 'title' => __( 'Global', 'astra' ), ), array( 'name' => 'section-container-layout', 'type' => 'section', 'priority' => 17, 'title' => __( 'Container', 'astra' ), 'panel' => 'panel-global', 'description_hidden' => true, 'description' => $this->section_get_description( array( 'description' => '' . __( '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(); customizer-controls.php 0000666 00000003540 15210370257 0011332 0 ustar 00 json['default'] = $this->setting->default; if ( isset( $this->default ) ) { $this->json['default'] = $this->default; } $this->json['value'] = $this->value(); $this->json['link'] = $this->get_link(); $this->json['id'] = $this->id; $this->json['label'] = esc_html( $this->label ); $this->json['suffix'] = $this->suffix; $this->json['inputAttrs'] = ''; foreach ( $this->input_attrs as $attr => $value ) { $this->json['inputAttrs'] .= $attr . '="' . esc_attr( $value ) . '" '; } } /** * Enqueue control related scripts/styles. * * @access public */ public function enqueue() { wp_localize_script( 'custom-control-script', 'astraCustomizerControlBackground', array( 'placeholder' => __( 'No file selected', 'astra' ), 'lessSettings' => __( 'Less Settings', 'astra' ), 'moreSettings' => __( 'More Settings', 'astra' ), ) ); } /** * An Underscore (JS) template for this control's content (but not its container). * * Class variables for this control class are available in the `data` JS object; * export custom variables by overriding {@see WP_Customize_Control::to_json()}. * * @see WP_Customize_Control::print_template() * * @access protected */ protected function content_template() { ?>