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. --- .../class-astra-heading-colors-loader.php | 322 ++++++++++----------- 1 file changed, 161 insertions(+), 161 deletions(-) (limited to 'inc/addons/heading-colors/class-astra-heading-colors-loader.php') diff --git a/inc/addons/heading-colors/class-astra-heading-colors-loader.php b/inc/addons/heading-colors/class-astra-heading-colors-loader.php index 3a27549..666631d 100644 --- a/inc/addons/heading-colors/class-astra-heading-colors-loader.php +++ b/inc/addons/heading-colors/class-astra-heading-colors-loader.php @@ -1,161 +1,161 @@ - to
- */ - $defaults['h1-color'] = ''; - $defaults['h2-color'] = ''; - $defaults['h3-color'] = ''; - $defaults['h4-color'] = ''; - $defaults['h5-color'] = ''; - $defaults['h6-color'] = ''; - - // Header

. - $defaults['font-family-h1'] = 'inherit'; - $defaults['font-weight-h1'] = 'inherit'; - $defaults['text-transform-h1'] = ''; - $defaults['line-height-h1'] = ''; - - // Header

. - $defaults['font-family-h2'] = 'inherit'; - $defaults['font-weight-h2'] = 'inherit'; - $defaults['text-transform-h2'] = ''; - $defaults['line-height-h2'] = ''; - - // Header

. - $defaults['font-family-h3'] = 'inherit'; - $defaults['font-weight-h3'] = 'inherit'; - $defaults['text-transform-h3'] = ''; - $defaults['line-height-h3'] = ''; - - /** - * Theme button Font Defaults - */ - $defaults['font-weight-button'] = 'inherit'; - $defaults['font-family-button'] = 'inherit'; - $defaults['font-size-button'] = array( - 'desktop' => '', - 'tablet' => '', - 'mobile' => '', - 'desktop-unit' => 'px', - 'tablet-unit' => 'px', - 'mobile-unit' => 'px', - ); - $defaults['text-transform-button'] = ''; - - /** - * Check backward compatibility for button line height. - */ - $defaults['theme-btn-line-height'] = 1; - $defaults['theme-btn-letter-spacing'] = ''; - - return $defaults; - } - - /** - * Load color configs for the Heading Colors. - * - * @param WP_Customize_Manager $wp_customize Theme Customizer object. - * - * @since 2.2.0 - */ - public function customize_register( $wp_customize ) { - - /** - * Register Panel & Sections - */ - require_once ASTRA_THEME_HEADING_COLORS_DIR . 'customizer/class-astra-heading-colors-configs.php';// phpcs:ignore: WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound - } - - /** - * Customizer Preview - * - * @since 2.2.0 - */ - public function preview_scripts() { - /** - * Load unminified if SCRIPT_DEBUG is true. - */ - /* Directory and Extension */ - $dir_name = ( SCRIPT_DEBUG ) ? 'unminified' : 'minified'; - $file_prefix = ( SCRIPT_DEBUG ) ? '' : '.min'; - wp_enqueue_script( 'astra-heading-colors-customizer-preview-js', ASTRA_THEME_HEADING_COLORS_URI . 'assets/js/' . $dir_name . '/customizer-preview' . $file_prefix . '.js', array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_THEME_VERSION, true ); - } -} - -/** -* Kicking this off by creating the object of the class. -*/ -new Astra_Heading_Colors_Loader(); + to

+ */ + $defaults['h1-color'] = ''; + $defaults['h2-color'] = ''; + $defaults['h3-color'] = ''; + $defaults['h4-color'] = ''; + $defaults['h5-color'] = ''; + $defaults['h6-color'] = ''; + + // Header

. + $defaults['font-family-h1'] = 'inherit'; + $defaults['font-weight-h1'] = 'inherit'; + $defaults['text-transform-h1'] = ''; + $defaults['line-height-h1'] = ''; + + // Header

. + $defaults['font-family-h2'] = 'inherit'; + $defaults['font-weight-h2'] = 'inherit'; + $defaults['text-transform-h2'] = ''; + $defaults['line-height-h2'] = ''; + + // Header

. + $defaults['font-family-h3'] = 'inherit'; + $defaults['font-weight-h3'] = 'inherit'; + $defaults['text-transform-h3'] = ''; + $defaults['line-height-h3'] = ''; + + /** + * Theme button Font Defaults + */ + $defaults['font-weight-button'] = 'inherit'; + $defaults['font-family-button'] = 'inherit'; + $defaults['font-size-button'] = array( + 'desktop' => '', + 'tablet' => '', + 'mobile' => '', + 'desktop-unit' => 'px', + 'tablet-unit' => 'px', + 'mobile-unit' => 'px', + ); + $defaults['text-transform-button'] = ''; + + /** + * Check backward compatibility for button line height. + */ + $defaults['theme-btn-line-height'] = 1; + $defaults['theme-btn-letter-spacing'] = ''; + + return $defaults; + } + + /** + * Load color configs for the Heading Colors. + * + * @param WP_Customize_Manager $wp_customize Theme Customizer object. + * + * @since 2.2.0 + */ + public function customize_register( $wp_customize ) { + + /** + * Register Panel & Sections + */ + require_once ASTRA_THEME_HEADING_COLORS_DIR . 'customizer/class-astra-heading-colors-configs.php';// phpcs:ignore: WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound + } + + /** + * Customizer Preview + * + * @since 2.2.0 + */ + public function preview_scripts() { + /** + * Load unminified if SCRIPT_DEBUG is true. + */ + /* Directory and Extension */ + $dir_name = ( SCRIPT_DEBUG ) ? 'unminified' : 'minified'; + $file_prefix = ( SCRIPT_DEBUG ) ? '' : '.min'; + wp_enqueue_script( 'astra-heading-colors-customizer-preview-js', ASTRA_THEME_HEADING_COLORS_URI . 'assets/js/' . $dir_name . '/customizer-preview' . $file_prefix . '.js', array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_THEME_VERSION, true ); + } +} + +/** +* Kicking this off by creating the object of the class. +*/ +new Astra_Heading_Colors_Loader(); -- cgit v1.2.3-70-g09d2