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-breadcrumbs-color-configs.php | 412 ++++++++++----------- 1 file changed, 206 insertions(+), 206 deletions(-) (limited to 'inc/addons/breadcrumbs/customizer/class-astra-breadcrumbs-color-configs.php') diff --git a/inc/addons/breadcrumbs/customizer/class-astra-breadcrumbs-color-configs.php b/inc/addons/breadcrumbs/customizer/class-astra-breadcrumbs-color-configs.php index a5a2ddd..28a7272 100644 --- a/inc/addons/breadcrumbs/customizer/class-astra-breadcrumbs-color-configs.php +++ b/inc/addons/breadcrumbs/customizer/class-astra-breadcrumbs-color-configs.php @@ -1,206 +1,206 @@ - ASTRA_THEME_SETTINGS . '[breadcrumb-bg-color]', - 'type' => 'control', - 'default' => astra_get_option( 'breadcrumb-bg-color' ), - 'section' => 'section-breadcrumb', - 'transport' => 'postMessage', - 'control' => 'ast-responsive-color', - 'title' => __( 'Background Color', 'astra' ), - 'responsive' => true, - 'rgba' => true, - 'context' => array( - array( - 'setting' => ASTRA_THEME_SETTINGS . '[breadcrumb-position]', - 'operator' => '!=', - 'value' => 'none', - ), - ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) ? - Astra_Builder_Helper::$design_tab_config : Astra_Builder_Helper::$general_tab_config, - ), - 'priority' => 72, - ), - array( - 'name' => ASTRA_THEME_SETTINGS . '[breadcrumb-active-color-responsive]', - 'default' => astra_get_option( 'breadcrumb-active-color-responsive' ), - 'type' => 'control', - 'section' => 'section-breadcrumb', - 'transport' => 'postMessage', - 'control' => 'ast-responsive-color', - 'title' => __( 'Text Color', 'astra' ), - 'responsive' => true, - 'rgba' => true, - 'context' => array( - array( - 'setting' => ASTRA_THEME_SETTINGS . '[breadcrumb-position]', - 'operator' => '!=', - 'value' => 'none', - ), - ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) ? - Astra_Builder_Helper::$design_tab_config : Astra_Builder_Helper::$general_tab_config, - ), - 'priority' => 72, - ), - array( - 'name' => ASTRA_THEME_SETTINGS . '[breadcrumb-separator-color]', - 'default' => astra_get_option( 'breadcrumb-separator-color' ), - 'type' => 'control', - 'section' => 'section-breadcrumb', - 'transport' => 'postMessage', - 'control' => 'ast-responsive-color', - 'title' => __( 'Separator Color', 'astra' ), - 'responsive' => true, - 'rgba' => true, - 'context' => array( - array( - 'setting' => ASTRA_THEME_SETTINGS . '[breadcrumb-position]', - 'operator' => '!=', - 'value' => 'none', - ), - ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) ? - Astra_Builder_Helper::$design_tab_config : Astra_Builder_Helper::$general_tab_config, - ), - 'priority' => 72, - ), - - array( - 'name' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-link-color]', - 'default' => astra_get_option( 'section-breadcrumb-color' ), - 'type' => 'control', - 'control' => 'ast-color-group', - 'title' => __( 'Content Link Color', 'astra' ), - 'section' => 'section-breadcrumb', - 'transport' => 'postMessage', - 'priority' => 72, - 'context' => array( - array( - 'setting' => ASTRA_THEME_SETTINGS . '[breadcrumb-position]', - 'operator' => '!=', - 'value' => 'none', - ), - ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) ? - Astra_Builder_Helper::$design_tab_config : Astra_Builder_Helper::$general_tab_config, - ), - 'responsive' => true, - 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), - ), - - array( - 'name' => 'breadcrumb-text-color-responsive', - 'default' => astra_get_option( 'breadcrumb-text-color-responsive' ), - 'type' => 'sub-control', - 'parent' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-link-color]', - 'section' => 'section-breadcrumb', - 'transport' => 'postMessage', - 'tab' => __( 'Normal', 'astra' ), - 'control' => 'ast-responsive-color', - 'title' => __( 'Normal', 'astra' ), - 'responsive' => true, - 'rgba' => true, - 'priority' => 15, - ), - - array( - 'name' => 'breadcrumb-hover-color-responsive', - 'default' => astra_get_option( 'breadcrumb-hover-color-responsive' ), - 'type' => 'sub-control', - 'parent' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-link-color]', - 'section' => 'section-breadcrumb', - 'transport' => 'postMessage', - 'tab' => __( 'Hover', 'astra' ), - 'control' => 'ast-responsive-color', - 'title' => __( 'Hover', 'astra' ), - 'responsive' => true, - 'rgba' => true, - 'priority' => 20, - ), - ); - - if ( false === Astra_Builder_Helper::$is_header_footer_builder_active ) { - array_push( - $_configs, - /** - * Option: Divider - * Option: breadcrumb color Section divider - */ - array( - 'name' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-color-divider]', - 'type' => 'control', - 'control' => 'ast-heading', - 'section' => 'section-breadcrumb', - 'title' => __( 'Colors', 'astra' ), - 'priority' => 71, - 'settings' => array(), - 'context' => array( - array( - 'setting' => ASTRA_THEME_SETTINGS . '[breadcrumb-position]', - 'operator' => '!=', - 'value' => 'none', - ), - Astra_Builder_Helper::$general_tab_config, - ), - ) - ); - } - return array_merge( $configurations, $_configs ); - } - } -} - -/** - * Kicking this off by calling 'get_instance()' method - */ -new Astra_Breadcrumbs_Color_Configs(); + ASTRA_THEME_SETTINGS . '[breadcrumb-bg-color]', + 'type' => 'control', + 'default' => astra_get_option( 'breadcrumb-bg-color' ), + 'section' => 'section-breadcrumb', + 'transport' => 'postMessage', + 'control' => 'ast-responsive-color', + 'title' => __( 'Background Color', 'astra' ), + 'responsive' => true, + 'rgba' => true, + 'context' => array( + array( + 'setting' => ASTRA_THEME_SETTINGS . '[breadcrumb-position]', + 'operator' => '!=', + 'value' => 'none', + ), + ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) ? + Astra_Builder_Helper::$design_tab_config : Astra_Builder_Helper::$general_tab_config, + ), + 'priority' => 72, + ), + array( + 'name' => ASTRA_THEME_SETTINGS . '[breadcrumb-active-color-responsive]', + 'default' => astra_get_option( 'breadcrumb-active-color-responsive' ), + 'type' => 'control', + 'section' => 'section-breadcrumb', + 'transport' => 'postMessage', + 'control' => 'ast-responsive-color', + 'title' => __( 'Text Color', 'astra' ), + 'responsive' => true, + 'rgba' => true, + 'context' => array( + array( + 'setting' => ASTRA_THEME_SETTINGS . '[breadcrumb-position]', + 'operator' => '!=', + 'value' => 'none', + ), + ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) ? + Astra_Builder_Helper::$design_tab_config : Astra_Builder_Helper::$general_tab_config, + ), + 'priority' => 72, + ), + array( + 'name' => ASTRA_THEME_SETTINGS . '[breadcrumb-separator-color]', + 'default' => astra_get_option( 'breadcrumb-separator-color' ), + 'type' => 'control', + 'section' => 'section-breadcrumb', + 'transport' => 'postMessage', + 'control' => 'ast-responsive-color', + 'title' => __( 'Separator Color', 'astra' ), + 'responsive' => true, + 'rgba' => true, + 'context' => array( + array( + 'setting' => ASTRA_THEME_SETTINGS . '[breadcrumb-position]', + 'operator' => '!=', + 'value' => 'none', + ), + ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) ? + Astra_Builder_Helper::$design_tab_config : Astra_Builder_Helper::$general_tab_config, + ), + 'priority' => 72, + ), + + array( + 'name' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-link-color]', + 'default' => astra_get_option( 'section-breadcrumb-color' ), + 'type' => 'control', + 'control' => 'ast-color-group', + 'title' => __( 'Content Link Color', 'astra' ), + 'section' => 'section-breadcrumb', + 'transport' => 'postMessage', + 'priority' => 72, + 'context' => array( + array( + 'setting' => ASTRA_THEME_SETTINGS . '[breadcrumb-position]', + 'operator' => '!=', + 'value' => 'none', + ), + ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) ? + Astra_Builder_Helper::$design_tab_config : Astra_Builder_Helper::$general_tab_config, + ), + 'responsive' => true, + 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), + ), + + array( + 'name' => 'breadcrumb-text-color-responsive', + 'default' => astra_get_option( 'breadcrumb-text-color-responsive' ), + 'type' => 'sub-control', + 'parent' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-link-color]', + 'section' => 'section-breadcrumb', + 'transport' => 'postMessage', + 'tab' => __( 'Normal', 'astra' ), + 'control' => 'ast-responsive-color', + 'title' => __( 'Normal', 'astra' ), + 'responsive' => true, + 'rgba' => true, + 'priority' => 15, + ), + + array( + 'name' => 'breadcrumb-hover-color-responsive', + 'default' => astra_get_option( 'breadcrumb-hover-color-responsive' ), + 'type' => 'sub-control', + 'parent' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-link-color]', + 'section' => 'section-breadcrumb', + 'transport' => 'postMessage', + 'tab' => __( 'Hover', 'astra' ), + 'control' => 'ast-responsive-color', + 'title' => __( 'Hover', 'astra' ), + 'responsive' => true, + 'rgba' => true, + 'priority' => 20, + ), + ); + + if ( false === Astra_Builder_Helper::$is_header_footer_builder_active ) { + array_push( + $_configs, + /** + * Option: Divider + * Option: breadcrumb color Section divider + */ + array( + 'name' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-color-divider]', + 'type' => 'control', + 'control' => 'ast-heading', + 'section' => 'section-breadcrumb', + 'title' => __( 'Colors', 'astra' ), + 'priority' => 71, + 'settings' => array(), + 'context' => array( + array( + 'setting' => ASTRA_THEME_SETTINGS . '[breadcrumb-position]', + 'operator' => '!=', + 'value' => 'none', + ), + Astra_Builder_Helper::$general_tab_config, + ), + ) + ); + } + return array_merge( $configurations, $_configs ); + } + } +} + +/** + * Kicking this off by calling 'get_instance()' method + */ +new Astra_Breadcrumbs_Color_Configs(); -- cgit v1.2.3-70-g09d2