From 69c17f9c1942fd0d6a5ea941636e87723b8a6fe2 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Wed, 21 Jul 2021 16:19:29 -0500 Subject: dos2unix on all .php files, begin paring down admin page and site branding. --- .../typography/class-astra-body-typo-configs.php | 554 ++++++++++----------- 1 file changed, 277 insertions(+), 277 deletions(-) (limited to 'inc/customizer/configurations/typography/class-astra-body-typo-configs.php') diff --git a/inc/customizer/configurations/typography/class-astra-body-typo-configs.php b/inc/customizer/configurations/typography/class-astra-body-typo-configs.php index 400af19..21276a1 100644 --- a/inc/customizer/configurations/typography/class-astra-body-typo-configs.php +++ b/inc/customizer/configurations/typography/class-astra-body-typo-configs.php @@ -1,277 +1,277 @@ - 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' => __( 'Body Font 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-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' => 6, - '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' => 'ast-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-slider', - 'section' => 'section-body-typo', - 'default' => astra_get_option( 'font-size-body' ), - 'priority' => 10, - 'title' => __( 'Size', 'astra' ), - 'suffix' => 'px', - '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' => astra_get_option( 'body-line-height' ), - 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), - 'priority' => 25, - 'title' => __( 'Line Height', 'astra' ), - 'suffix' => 'em', - 'input_attrs' => array( - 'min' => 1, - 'step' => 0.01, - 'max' => 5, - ), - 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), - ), - - /** - * Option: Paragraph Margin Bottom - */ - array( - 'name' => ASTRA_THEME_SETTINGS . '[para-margin-bottom]', - 'type' => 'control', - 'control' => 'ast-slider', - 'default' => astra_get_option( 'para-margin-bottom' ), - 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), - 'transport' => 'postMessage', - 'section' => 'section-body-typo', - 'priority' => 25, - 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), - 'title' => __( 'Paragraph Margin Bottom', 'astra' ), - 'suffix' => 'em', - 'input_attrs' => array( - 'min' => 0.5, - 'step' => 0.01, - 'max' => 5, - ), - ), - - /** - * Option: Underline links in entry-content. - */ - array( - 'name' => ASTRA_THEME_SETTINGS . '[underline-content-links]', - 'default' => astra_get_option( 'underline-content-links' ), - 'type' => 'control', - 'control' => 'ast-toggle-control', - 'section' => 'section-body-typo', - 'priority' => 27, - 'title' => __( 'Underline Content Links', 'astra' ), - 'transport' => 'postMessage', - ), - - /** - * 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' => __( 'Heading Font 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-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' => 'ast-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

Line Height - */ - array( - 'name' => ASTRA_THEME_SETTINGS . '[headings-line-height]', - 'section' => 'section-content-typo', - 'default' => astra_get_option( 'headings-line-height' ), - 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), - 'type' => 'control', - 'control' => 'ast-slider', - 'title' => __( 'Line Height', 'astra' ), - 'transport' => 'postMessage', - 'priority' => 4, - 'suffix' => 'em', - 'input_attrs' => array( - 'min' => 1, - 'step' => 0.01, - 'max' => 5, - ), - ), - ); - - return array_merge( $configurations, $_configs ); - } - } -} - -new Astra_Body_Typo_Configs(); + 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' => __( 'Body Font 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-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' => 6, + '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' => 'ast-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-slider', + 'section' => 'section-body-typo', + 'default' => astra_get_option( 'font-size-body' ), + 'priority' => 10, + 'title' => __( 'Size', 'astra' ), + 'suffix' => 'px', + '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' => astra_get_option( 'body-line-height' ), + 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), + 'priority' => 25, + 'title' => __( 'Line Height', 'astra' ), + 'suffix' => 'em', + 'input_attrs' => array( + 'min' => 1, + 'step' => 0.01, + 'max' => 5, + ), + 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), + ), + + /** + * Option: Paragraph Margin Bottom + */ + array( + 'name' => ASTRA_THEME_SETTINGS . '[para-margin-bottom]', + 'type' => 'control', + 'control' => 'ast-slider', + 'default' => astra_get_option( 'para-margin-bottom' ), + 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), + 'transport' => 'postMessage', + 'section' => 'section-body-typo', + 'priority' => 25, + 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), + 'title' => __( 'Paragraph Margin Bottom', 'astra' ), + 'suffix' => 'em', + 'input_attrs' => array( + 'min' => 0.5, + 'step' => 0.01, + 'max' => 5, + ), + ), + + /** + * Option: Underline links in entry-content. + */ + array( + 'name' => ASTRA_THEME_SETTINGS . '[underline-content-links]', + 'default' => astra_get_option( 'underline-content-links' ), + 'type' => 'control', + 'control' => 'ast-toggle-control', + 'section' => 'section-body-typo', + 'priority' => 27, + 'title' => __( 'Underline Content Links', 'astra' ), + 'transport' => 'postMessage', + ), + + /** + * 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' => __( 'Heading Font 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-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' => 'ast-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

Line Height + */ + array( + 'name' => ASTRA_THEME_SETTINGS . '[headings-line-height]', + 'section' => 'section-content-typo', + 'default' => astra_get_option( 'headings-line-height' ), + 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), + 'type' => 'control', + 'control' => 'ast-slider', + 'title' => __( 'Line Height', 'astra' ), + 'transport' => 'postMessage', + 'priority' => 4, + 'suffix' => 'em', + 'input_attrs' => array( + 'min' => 1, + 'step' => 0.01, + 'max' => 5, + ), + ), + ); + + return array_merge( $configurations, $_configs ); + } + } +} + +new Astra_Body_Typo_Configs(); -- cgit v1.2.3-70-g09d2