diff options
author | Zach van Rijn <me@zv.io> | 2021-07-21 16:19:29 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2021-07-21 16:19:29 -0500 |
commit | 69c17f9c1942fd0d6a5ea941636e87723b8a6fe2 (patch) | |
tree | e1d0212147048204b0eede0aa6ff79849ed479da /inc/addons/heading-colors/dynamic-css/dynamic.css.php | |
parent | 74a7109a2a5ab0d191f26c917ae69e46f0d83b32 (diff) | |
download | blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.tar.gz blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.tar.bz2 blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.tar.xz blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.zip |
dos2unix on all .php files, begin paring down admin page and site branding.
Diffstat (limited to 'inc/addons/heading-colors/dynamic-css/dynamic.css.php')
-rw-r--r-- | inc/addons/heading-colors/dynamic-css/dynamic.css.php | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/inc/addons/heading-colors/dynamic-css/dynamic.css.php b/inc/addons/heading-colors/dynamic-css/dynamic.css.php index e591b9c..a60bd47 100644 --- a/inc/addons/heading-colors/dynamic-css/dynamic.css.php +++ b/inc/addons/heading-colors/dynamic-css/dynamic.css.php @@ -1,54 +1,54 @@ -<?php
-/**
- * Heading Colors - Dynamic CSS
- *
- * @package Astra
- * @since 2.1.4
- */
-
-if ( ! defined( 'ABSPATH' ) ) {
- exit; // Exit if accessed directly.
-}
-
-/**
- * Heading Colors
- */
-add_filter( 'astra_dynamic_theme_css', 'astra_heading_colors_section_dynamic_css' );
-
-/**
- * Dynamic CSS
- *
- * @param string $dynamic_css Astra Dynamic CSS.
- * @param string $dynamic_css_filtered Astra Dynamic CSS Filters.
- * @return String Generated dynamic CSS for Heading Colors.
- *
- * @since 2.1.4
- */
-function astra_heading_colors_section_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) {
-
- /**
- * Heading Colors - h1 - h6.
- */
- $heading_base_color = astra_get_option( 'heading-base-color' );
-
- /**
- * Normal Colors without reponsive option.
- * [1]. Heading Colors
- */
- $css_output = array(
-
- /**
- * Content base heading color.
- */
- 'h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6' => array(
- 'color' => esc_attr( $heading_base_color ),
- ),
- );
-
- /* Parse CSS from array() */
- $css_output = astra_parse_css( $css_output );
-
- $dynamic_css .= $css_output;
-
- return $dynamic_css;
-}
+<?php +/** + * Heading Colors - Dynamic CSS + * + * @package Astra + * @since 2.1.4 + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + +/** + * Heading Colors + */ +add_filter( 'astra_dynamic_theme_css', 'astra_heading_colors_section_dynamic_css' ); + +/** + * Dynamic CSS + * + * @param string $dynamic_css Astra Dynamic CSS. + * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. + * @return String Generated dynamic CSS for Heading Colors. + * + * @since 2.1.4 + */ +function astra_heading_colors_section_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { + + /** + * Heading Colors - h1 - h6. + */ + $heading_base_color = astra_get_option( 'heading-base-color' ); + + /** + * Normal Colors without reponsive option. + * [1]. Heading Colors + */ + $css_output = array( + + /** + * Content base heading color. + */ + 'h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6' => array( + 'color' => esc_attr( $heading_base_color ), + ), + ); + + /* Parse CSS from array() */ + $css_output = astra_parse_css( $css_output ); + + $dynamic_css .= $css_output; + + return $dynamic_css; +} |