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/customizer/configurations/colors-background | |
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/customizer/configurations/colors-background')
3 files changed, 380 insertions, 380 deletions
diff --git a/inc/customizer/configurations/colors-background/class-astra-advanced-footer-colors-configs.php b/inc/customizer/configurations/colors-background/class-astra-advanced-footer-colors-configs.php index c216adb..f6ba1dc 100644 --- a/inc/customizer/configurations/colors-background/class-astra-advanced-footer-colors-configs.php +++ b/inc/customizer/configurations/colors-background/class-astra-advanced-footer-colors-configs.php @@ -1,179 +1,179 @@ -<?php
-/**
- * Styling Options for Astra Theme.
- *
- * @package Astra
- * @author Astra
- * @copyright Copyright (c) 2020, Astra
- * @link https://wpastra.com/
- * @since 1.4.3
- */
-
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
-
-if ( ! class_exists( 'Astra_Adv_Footer_Colors_Configs' ) ) {
-
- /**
- * Register Advanced Footer Color Customizer Configurations.
- */
- class Astra_Advanced_Footer_Colors_Configs extends Astra_Customizer_Config_Base {
-
- /**
- * Register Advanced Footer Color Customizer Configurations.
- *
- * @param Array $configurations Astra Customizer Configurations.
- * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
- * @since 1.4.3
- * @return Array Astra Customizer Configurations with updated configurations.
- */
- public function register_configuration( $configurations, $wp_customize ) {
- $_configs = array(
-
- /**
- * 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 Color', 'astra' ),
- 'section' => 'section-footer-adv',
- 'transport' => 'postMessage',
- 'divider' => array( 'ast_class' => 'ast-bottom-divider' ),
- 'priority' => 47,
- 'context' => array(
- Astra_Builder_Helper::$general_tab_config,
- array(
- 'setting' => ASTRA_THEME_SETTINGS . '[footer-adv]',
- 'operator' => '!=',
- 'value' => '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 Colors', 'astra' ),
- 'section' => 'section-footer-adv',
- 'transport' => 'postMessage',
- 'priority' => 48,
- 'context' => array(
- Astra_Builder_Helper::$general_tab_config,
- array(
- 'setting' => ASTRA_THEME_SETTINGS . '[footer-adv]',
- 'operator' => '!=',
- 'value' => 'disabled',
- ),
- ),
- ),
-
- /**
- * Option: Footer Bar Content Group
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[footer-widget-link-color-group]',
- 'default' => astra_get_option( 'footer-widget-link-color-group' ),
- 'type' => 'control',
- 'control' => 'ast-color-group',
- 'title' => __( 'Link Color', 'astra' ),
- 'section' => 'section-footer-adv',
- 'transport' => 'postMessage',
- 'priority' => 48,
- 'divider' => array( 'ast_class' => 'ast-bottom-divider' ),
- 'context' => array(
- Astra_Builder_Helper::$general_tab_config,
- array(
- 'setting' => ASTRA_THEME_SETTINGS . '[footer-adv]',
- 'operator' => '!=',
- 'value' => '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',
- 'control' => 'ast-color',
- 'title' => __( 'Title Color', 'astra' ),
- 'default' => astra_get_option( 'footer-adv-wgt-title-color' ),
- ),
-
- /**
- * Option: Text Color
- */
- array(
- 'name' => 'footer-adv-text-color',
- 'type' => 'sub-control',
- 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-content-group]',
- 'section' => 'section-footer-adv',
- 'control' => 'ast-color',
- 'title' => __( 'Text Color', 'astra' ),
- 'default' => astra_get_option( 'footer-adv-text-color' ),
- ),
-
- /**
- * Option: Link Color
- */
- array(
- 'name' => 'footer-adv-link-color',
- 'type' => 'sub-control',
- 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-link-color-group]',
- 'section' => 'section-footer-adv',
- 'control' => 'ast-color',
- 'title' => __( 'Normal', 'astra' ),
- 'default' => astra_get_option( 'footer-adv-link-color' ),
- ),
-
- /**
- * Option: Link Hover Color
- */
- array(
- 'name' => 'footer-adv-link-h-color',
- 'type' => 'sub-control',
- 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-link-color-group]',
- 'section' => 'section-footer-adv',
- 'control' => 'ast-color',
- 'title' => __( 'Hover', 'astra' ),
- 'default' => astra_get_option( 'footer-adv-link-h-color' ),
- ),
-
- /**
- * 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();
-
-
+<?php +/** + * Styling Options for Astra Theme. + * + * @package Astra + * @author Astra + * @copyright Copyright (c) 2020, Astra + * @link https://wpastra.com/ + * @since 1.4.3 + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; +} + +if ( ! class_exists( 'Astra_Adv_Footer_Colors_Configs' ) ) { + + /** + * Register Advanced Footer Color Customizer Configurations. + */ + class Astra_Advanced_Footer_Colors_Configs extends Astra_Customizer_Config_Base { + + /** + * Register Advanced Footer Color Customizer Configurations. + * + * @param Array $configurations Astra Customizer Configurations. + * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. + * @since 1.4.3 + * @return Array Astra Customizer Configurations with updated configurations. + */ + public function register_configuration( $configurations, $wp_customize ) { + $_configs = array( + + /** + * 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 Color', 'astra' ), + 'section' => 'section-footer-adv', + 'transport' => 'postMessage', + 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), + 'priority' => 47, + 'context' => array( + Astra_Builder_Helper::$general_tab_config, + array( + 'setting' => ASTRA_THEME_SETTINGS . '[footer-adv]', + 'operator' => '!=', + 'value' => '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 Colors', 'astra' ), + 'section' => 'section-footer-adv', + 'transport' => 'postMessage', + 'priority' => 48, + 'context' => array( + Astra_Builder_Helper::$general_tab_config, + array( + 'setting' => ASTRA_THEME_SETTINGS . '[footer-adv]', + 'operator' => '!=', + 'value' => 'disabled', + ), + ), + ), + + /** + * Option: Footer Bar Content Group + */ + array( + 'name' => ASTRA_THEME_SETTINGS . '[footer-widget-link-color-group]', + 'default' => astra_get_option( 'footer-widget-link-color-group' ), + 'type' => 'control', + 'control' => 'ast-color-group', + 'title' => __( 'Link Color', 'astra' ), + 'section' => 'section-footer-adv', + 'transport' => 'postMessage', + 'priority' => 48, + 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), + 'context' => array( + Astra_Builder_Helper::$general_tab_config, + array( + 'setting' => ASTRA_THEME_SETTINGS . '[footer-adv]', + 'operator' => '!=', + 'value' => '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', + 'control' => 'ast-color', + 'title' => __( 'Title Color', 'astra' ), + 'default' => astra_get_option( 'footer-adv-wgt-title-color' ), + ), + + /** + * Option: Text Color + */ + array( + 'name' => 'footer-adv-text-color', + 'type' => 'sub-control', + 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-content-group]', + 'section' => 'section-footer-adv', + 'control' => 'ast-color', + 'title' => __( 'Text Color', 'astra' ), + 'default' => astra_get_option( 'footer-adv-text-color' ), + ), + + /** + * Option: Link Color + */ + array( + 'name' => 'footer-adv-link-color', + 'type' => 'sub-control', + 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-link-color-group]', + 'section' => 'section-footer-adv', + 'control' => 'ast-color', + 'title' => __( 'Normal', 'astra' ), + 'default' => astra_get_option( 'footer-adv-link-color' ), + ), + + /** + * Option: Link Hover Color + */ + array( + 'name' => 'footer-adv-link-h-color', + 'type' => 'sub-control', + 'parent' => ASTRA_THEME_SETTINGS . '[footer-widget-link-color-group]', + 'section' => 'section-footer-adv', + 'control' => 'ast-color', + 'title' => __( 'Hover', 'astra' ), + 'default' => astra_get_option( 'footer-adv-link-h-color' ), + ), + + /** + * 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(); + + diff --git a/inc/customizer/configurations/colors-background/class-astra-body-colors-configs.php b/inc/customizer/configurations/colors-background/class-astra-body-colors-configs.php index b332f3c..67be0c6 100644 --- a/inc/customizer/configurations/colors-background/class-astra-body-colors-configs.php +++ b/inc/customizer/configurations/colors-background/class-astra-body-colors-configs.php @@ -1,99 +1,99 @@ -<?php
-/**
- * Styling Options for Astra Theme.
- *
- * @package Astra
- * @author Astra
- * @copyright Copyright (c) 2020, Astra
- * @link https://wpastra.com/
- * @since 1.4.3
- */
-
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
-
-if ( ! class_exists( 'Astra_Body_Colors_Configs' ) ) {
-
- /**
- * Register Body Color Customizer Configurations.
- */
- class Astra_Body_Colors_Configs extends Astra_Customizer_Config_Base {
-
- /**
- * Register Body Color Customizer Configurations.
- *
- * @param Array $configurations Astra Customizer Configurations.
- * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
- * @since 1.4.3
- * @return Array Astra Customizer Configurations with updated configurations.
- */
- public function register_configuration( $configurations, $wp_customize ) {
-
- $_section = ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'colors-and-background' ) ) ? 'section-colors-body' : 'section-colors-background';
-
- $_configs = array(
-
- /**
- * Option: Text Color
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[text-color]',
- 'default' => astra_get_option( 'text-color' ),
- 'type' => 'control',
- 'control' => 'ast-color',
- 'section' => $_section,
- 'priority' => 5,
- 'title' => __( 'Text Color', 'astra' ),
- ),
-
- /**
- * Option: Theme Color
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[theme-color]',
- 'type' => 'control',
- 'control' => 'ast-color',
- 'section' => $_section,
- 'default' => astra_get_option( 'theme-color' ),
- 'priority' => 5,
- 'title' => __( 'Theme Color', 'astra' ),
- ),
-
- /**
- * Option: Link Color
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[link-color]',
- 'section' => $_section,
- 'type' => 'control',
- 'control' => 'ast-color',
- 'default' => astra_get_option( 'link-color' ),
- 'priority' => 5,
- 'title' => __( 'Link Color', 'astra' ),
- ),
-
- /**
- * Option: Link Hover Color
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[link-h-color]',
- 'section' => $_section,
- 'default' => astra_get_option( 'link-h-color' ),
- 'type' => 'control',
- 'control' => 'ast-color',
- 'priority' => 15,
- 'title' => __( 'Link Hover Color', 'astra' ),
- ),
- );
-
- $configurations = array_merge( $configurations, $_configs );
-
- return $configurations;
- }
- }
-}
-
-new Astra_Body_Colors_Configs();
-
-
+<?php +/** + * Styling Options for Astra Theme. + * + * @package Astra + * @author Astra + * @copyright Copyright (c) 2020, Astra + * @link https://wpastra.com/ + * @since 1.4.3 + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; +} + +if ( ! class_exists( 'Astra_Body_Colors_Configs' ) ) { + + /** + * Register Body Color Customizer Configurations. + */ + class Astra_Body_Colors_Configs extends Astra_Customizer_Config_Base { + + /** + * Register Body Color Customizer Configurations. + * + * @param Array $configurations Astra Customizer Configurations. + * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. + * @since 1.4.3 + * @return Array Astra Customizer Configurations with updated configurations. + */ + public function register_configuration( $configurations, $wp_customize ) { + + $_section = ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'colors-and-background' ) ) ? 'section-colors-body' : 'section-colors-background'; + + $_configs = array( + + /** + * Option: Text Color + */ + array( + 'name' => ASTRA_THEME_SETTINGS . '[text-color]', + 'default' => astra_get_option( 'text-color' ), + 'type' => 'control', + 'control' => 'ast-color', + 'section' => $_section, + 'priority' => 5, + 'title' => __( 'Text Color', 'astra' ), + ), + + /** + * Option: Theme Color + */ + array( + 'name' => ASTRA_THEME_SETTINGS . '[theme-color]', + 'type' => 'control', + 'control' => 'ast-color', + 'section' => $_section, + 'default' => astra_get_option( 'theme-color' ), + 'priority' => 5, + 'title' => __( 'Theme Color', 'astra' ), + ), + + /** + * Option: Link Color + */ + array( + 'name' => ASTRA_THEME_SETTINGS . '[link-color]', + 'section' => $_section, + 'type' => 'control', + 'control' => 'ast-color', + 'default' => astra_get_option( 'link-color' ), + 'priority' => 5, + 'title' => __( 'Link Color', 'astra' ), + ), + + /** + * Option: Link Hover Color + */ + array( + 'name' => ASTRA_THEME_SETTINGS . '[link-h-color]', + 'section' => $_section, + 'default' => astra_get_option( 'link-h-color' ), + 'type' => 'control', + 'control' => 'ast-color', + 'priority' => 15, + 'title' => __( 'Link Hover Color', 'astra' ), + ), + ); + + $configurations = array_merge( $configurations, $_configs ); + + return $configurations; + } + } +} + +new Astra_Body_Colors_Configs(); + + diff --git a/inc/customizer/configurations/colors-background/class-astra-footer-colors-configs.php b/inc/customizer/configurations/colors-background/class-astra-footer-colors-configs.php index 9c0cf7f..bca23ba 100644 --- a/inc/customizer/configurations/colors-background/class-astra-footer-colors-configs.php +++ b/inc/customizer/configurations/colors-background/class-astra-footer-colors-configs.php @@ -1,102 +1,102 @@ -<?php
-/**
- * Styling Options for Astra Theme.
- *
- * @package Astra
- * @author Astra
- * @copyright Copyright (c) 2020, Astra
- * @link https://wpastra.com/
- * @since 1.4.3
- */
-
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
-
-if ( ! class_exists( 'Astra_Footer_Colors_Configs' ) ) {
-
- /**
- * Register Footer Color Configurations.
- */
- class Astra_Footer_Colors_Configs extends Astra_Customizer_Config_Base {
-
- /**
- * Register Footer Color Configurations.
- *
- * @param Array $configurations Astra Customizer Configurations.
- * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
- * @since 1.4.3
- * @return Array Astra Customizer Configurations with updated configurations.
- */
- public function register_configuration( $configurations, $wp_customize ) {
- $_configs = array(
-
- /**
- * Option: Color
- */
- array(
- 'name' => 'footer-color',
- 'type' => 'sub-control',
- 'priority' => 5,
- 'parent' => ASTRA_THEME_SETTINGS . '[footer-bar-content-group]',
- 'section' => 'section-footer-small',
- 'control' => 'ast-color',
- 'title' => __( 'Text Color', 'astra' ),
- 'default' => astra_get_option( 'footer-color' ),
- ),
-
- /**
- * Option: Link Color
- */
- array(
- 'name' => 'footer-link-color',
- 'type' => 'sub-control',
- 'priority' => 6,
- 'parent' => ASTRA_THEME_SETTINGS . '[footer-bar-link-color-group]',
- 'section' => 'section-footer-small',
- 'control' => 'ast-color',
- 'default' => astra_get_option( 'footer-link-color' ),
- 'title' => __( 'Normal', 'astra' ),
- ),
-
- /**
- * Option: Link Hover Color
- */
- array(
- 'name' => 'footer-link-h-color',
- 'type' => 'sub-control',
- 'priority' => 5,
- 'parent' => ASTRA_THEME_SETTINGS . '[footer-bar-link-color-group]',
- 'section' => 'section-footer-small',
- 'control' => 'ast-color',
- 'title' => __( 'Hover', 'astra' ),
- 'default' => astra_get_option( 'section-footer-small' ),
- ),
-
- /**
- * 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',
- 'transport' => 'postMessage',
- 'control' => 'ast-background',
- 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_background_obj' ),
- 'default' => astra_get_option( 'footer-bg-obj' ),
- 'label' => __( 'Background', 'astra' ),
- ),
- );
-
- $configurations = array_merge( $configurations, $_configs );
-
- return $configurations;
- }
- }
-}
-
-new Astra_Footer_Colors_Configs();
-
-
+<?php +/** + * Styling Options for Astra Theme. + * + * @package Astra + * @author Astra + * @copyright Copyright (c) 2020, Astra + * @link https://wpastra.com/ + * @since 1.4.3 + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; +} + +if ( ! class_exists( 'Astra_Footer_Colors_Configs' ) ) { + + /** + * Register Footer Color Configurations. + */ + class Astra_Footer_Colors_Configs extends Astra_Customizer_Config_Base { + + /** + * Register Footer Color Configurations. + * + * @param Array $configurations Astra Customizer Configurations. + * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. + * @since 1.4.3 + * @return Array Astra Customizer Configurations with updated configurations. + */ + public function register_configuration( $configurations, $wp_customize ) { + $_configs = array( + + /** + * Option: Color + */ + array( + 'name' => 'footer-color', + 'type' => 'sub-control', + 'priority' => 5, + 'parent' => ASTRA_THEME_SETTINGS . '[footer-bar-content-group]', + 'section' => 'section-footer-small', + 'control' => 'ast-color', + 'title' => __( 'Text Color', 'astra' ), + 'default' => astra_get_option( 'footer-color' ), + ), + + /** + * Option: Link Color + */ + array( + 'name' => 'footer-link-color', + 'type' => 'sub-control', + 'priority' => 6, + 'parent' => ASTRA_THEME_SETTINGS . '[footer-bar-link-color-group]', + 'section' => 'section-footer-small', + 'control' => 'ast-color', + 'default' => astra_get_option( 'footer-link-color' ), + 'title' => __( 'Normal', 'astra' ), + ), + + /** + * Option: Link Hover Color + */ + array( + 'name' => 'footer-link-h-color', + 'type' => 'sub-control', + 'priority' => 5, + 'parent' => ASTRA_THEME_SETTINGS . '[footer-bar-link-color-group]', + 'section' => 'section-footer-small', + 'control' => 'ast-color', + 'title' => __( 'Hover', 'astra' ), + 'default' => astra_get_option( 'section-footer-small' ), + ), + + /** + * 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', + 'transport' => 'postMessage', + 'control' => 'ast-background', + 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_background_obj' ), + 'default' => astra_get_option( 'footer-bg-obj' ), + 'label' => __( 'Background', 'astra' ), + ), + ); + + $configurations = array_merge( $configurations, $_configs ); + + return $configurations; + } + } +} + +new Astra_Footer_Colors_Configs(); + + |