summaryrefslogtreecommitdiff
path: root/inc/addons/breadcrumbs/customizer/class-astra-breadcrumbs-typo-configs.php
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2021-07-21 16:19:29 -0500
committerZach van Rijn <me@zv.io>2021-07-21 16:19:29 -0500
commit69c17f9c1942fd0d6a5ea941636e87723b8a6fe2 (patch)
treee1d0212147048204b0eede0aa6ff79849ed479da /inc/addons/breadcrumbs/customizer/class-astra-breadcrumbs-typo-configs.php
parent74a7109a2a5ab0d191f26c917ae69e46f0d83b32 (diff)
downloadblog-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/breadcrumbs/customizer/class-astra-breadcrumbs-typo-configs.php')
-rw-r--r--inc/addons/breadcrumbs/customizer/class-astra-breadcrumbs-typo-configs.php358
1 files changed, 179 insertions, 179 deletions
diff --git a/inc/addons/breadcrumbs/customizer/class-astra-breadcrumbs-typo-configs.php b/inc/addons/breadcrumbs/customizer/class-astra-breadcrumbs-typo-configs.php
index 2afd280..51f879b 100644
--- a/inc/addons/breadcrumbs/customizer/class-astra-breadcrumbs-typo-configs.php
+++ b/inc/addons/breadcrumbs/customizer/class-astra-breadcrumbs-typo-configs.php
@@ -1,179 +1,179 @@
-<?php
-/**
- * Typography - Breadcrumbs Options for theme.
- *
- * @package Astra
- * @author Brainstorm Force
- * @copyright Copyright (c) 2020, Brainstorm Force
- * @link https://www.brainstormforce.com
- * @since Astra 1.7.0
- */
-
-// Block direct access to the file.
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
-
-// Bail if Customizer config base class does not exist.
-if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) {
- return;
-}
-
-/**
- * Customizer Sanitizes
- *
- * @since 1.7.0
- */
-if ( ! class_exists( 'Astra_Breadcrumbs_Typo_Configs' ) ) {
-
- /**
- * Register Colors and Background - Breadcrumbs Options Customizer Configurations.
- */
- class Astra_Breadcrumbs_Typo_Configs extends Astra_Customizer_Config_Base {
-
- /**
- * Register Colors and Background - Breadcrumbs Options Customizer Configurations.
- *
- * @param Array $configurations Astra Customizer Configurations.
- * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
- * @since 1.7.0
- * @return Array Astra Customizer Configurations with updated configurations.
- */
- public function register_configuration( $configurations, $wp_customize ) {
-
- $_configs = array(
-
- /*
- * Breadcrumb Typography
- */
- array(
- 'name' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-typo]',
- 'default' => astra_get_option( 'section-breadcrumb-typo' ),
- 'type' => 'control',
- 'control' => 'ast-settings-group',
- 'title' => __( 'Content Font', 'astra' ),
- 'section' => 'section-breadcrumb',
- 'transport' => 'postMessage',
- 'priority' => 73,
- '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,
- ),
- 'divider' => array( 'ast_class' => 'ast-bottom-divider' ),
- ),
-
- /**
- * Option: Font Family
- */
- array(
- 'name' => 'breadcrumb-font-family',
- 'default' => astra_get_option( 'breadcrumb-font-family' ),
- 'type' => 'sub-control',
- 'parent' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-typo]',
- 'section' => 'section-breadcrumb',
- 'control' => 'ast-font',
- 'font_type' => 'ast-font-family',
- 'title' => __( 'Family', 'astra' ),
- 'connect' => 'breadcrumb-font-weight',
- 'priority' => 5,
- ),
-
- /**
- * Option: Font Size
- */
- array(
- 'name' => 'breadcrumb-font-size',
- 'control' => 'ast-responsive',
- 'type' => 'sub-control',
- 'parent' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-typo]',
- 'section' => 'section-breadcrumb',
- 'default' => astra_get_option( 'breadcrumb-font-size' ),
- 'transport' => 'postMessage',
- 'title' => __( 'Size', 'astra' ),
- 'priority' => 10,
- 'input_attrs' => array(
- 'min' => 0,
- ),
- 'units' => array(
- 'px' => 'px',
- 'em' => 'em',
- ),
- ),
-
- /**
- * Option: Font Weight
- */
- array(
- 'name' => 'breadcrumb-font-weight',
- 'control' => 'ast-font',
- 'type' => 'sub-control',
- 'parent' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-typo]',
- 'section' => 'section-breadcrumb',
- 'font_type' => 'ast-font-weight',
- 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ),
- 'default' => astra_get_option( 'breadcrumb-font-weight' ),
- 'title' => __( 'Weight', 'astra' ),
- 'connect' => 'breadcrumb-font-family',
- 'priority' => 15,
- ),
-
- /**
- * Option: Text Transform
- */
- array(
- 'name' => 'breadcrumb-text-transform',
- 'control' => 'ast-select',
- 'type' => 'sub-control',
- 'parent' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-typo]',
- 'section' => 'section-breadcrumb',
- 'default' => astra_get_option( 'breadcrumb-text-transform' ),
- 'title' => __( 'Text Transform', 'astra' ),
- 'transport' => 'postMessage',
- 'priority' => 20,
- 'choices' => array(
- '' => __( 'Inherit', 'astra' ),
- 'none' => __( 'None', 'astra' ),
- 'capitalize' => __( 'Capitalize', 'astra' ),
- 'uppercase' => __( 'Uppercase', 'astra' ),
- 'lowercase' => __( 'Lowercase', 'astra' ),
- ),
- ),
-
- /**
- * Option: Line Height
- */
- array(
- 'name' => 'breadcrumb-line-height',
- 'control' => 'ast-slider',
- 'transport' => 'postMessage',
- 'type' => 'sub-control',
- 'default' => astra_get_option( 'breadcrumb-line-height' ),
- 'parent' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-typo]',
- 'section' => 'section-breadcrumb',
- 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ),
- 'title' => __( 'Line Height', 'astra' ),
- 'suffix' => 'em',
- 'priority' => 25,
- 'input_attrs' => array(
- 'min' => 1,
- 'step' => 0.01,
- 'max' => 5,
- ),
- ),
-
- );
-
- return array_merge( $configurations, $_configs );
- }
- }
-}
-
-/**
- * Kicking this off by calling 'get_instance()' method
- */
-new Astra_Breadcrumbs_Typo_Configs();
+<?php
+/**
+ * Typography - Breadcrumbs Options for theme.
+ *
+ * @package Astra
+ * @author Brainstorm Force
+ * @copyright Copyright (c) 2020, Brainstorm Force
+ * @link https://www.brainstormforce.com
+ * @since Astra 1.7.0
+ */
+
+// Block direct access to the file.
+if ( ! defined( 'ABSPATH' ) ) {
+ exit;
+}
+
+// Bail if Customizer config base class does not exist.
+if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) {
+ return;
+}
+
+/**
+ * Customizer Sanitizes
+ *
+ * @since 1.7.0
+ */
+if ( ! class_exists( 'Astra_Breadcrumbs_Typo_Configs' ) ) {
+
+ /**
+ * Register Colors and Background - Breadcrumbs Options Customizer Configurations.
+ */
+ class Astra_Breadcrumbs_Typo_Configs extends Astra_Customizer_Config_Base {
+
+ /**
+ * Register Colors and Background - Breadcrumbs Options Customizer Configurations.
+ *
+ * @param Array $configurations Astra Customizer Configurations.
+ * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager.
+ * @since 1.7.0
+ * @return Array Astra Customizer Configurations with updated configurations.
+ */
+ public function register_configuration( $configurations, $wp_customize ) {
+
+ $_configs = array(
+
+ /*
+ * Breadcrumb Typography
+ */
+ array(
+ 'name' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-typo]',
+ 'default' => astra_get_option( 'section-breadcrumb-typo' ),
+ 'type' => 'control',
+ 'control' => 'ast-settings-group',
+ 'title' => __( 'Content Font', 'astra' ),
+ 'section' => 'section-breadcrumb',
+ 'transport' => 'postMessage',
+ 'priority' => 73,
+ '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,
+ ),
+ 'divider' => array( 'ast_class' => 'ast-bottom-divider' ),
+ ),
+
+ /**
+ * Option: Font Family
+ */
+ array(
+ 'name' => 'breadcrumb-font-family',
+ 'default' => astra_get_option( 'breadcrumb-font-family' ),
+ 'type' => 'sub-control',
+ 'parent' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-typo]',
+ 'section' => 'section-breadcrumb',
+ 'control' => 'ast-font',
+ 'font_type' => 'ast-font-family',
+ 'title' => __( 'Family', 'astra' ),
+ 'connect' => 'breadcrumb-font-weight',
+ 'priority' => 5,
+ ),
+
+ /**
+ * Option: Font Size
+ */
+ array(
+ 'name' => 'breadcrumb-font-size',
+ 'control' => 'ast-responsive',
+ 'type' => 'sub-control',
+ 'parent' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-typo]',
+ 'section' => 'section-breadcrumb',
+ 'default' => astra_get_option( 'breadcrumb-font-size' ),
+ 'transport' => 'postMessage',
+ 'title' => __( 'Size', 'astra' ),
+ 'priority' => 10,
+ 'input_attrs' => array(
+ 'min' => 0,
+ ),
+ 'units' => array(
+ 'px' => 'px',
+ 'em' => 'em',
+ ),
+ ),
+
+ /**
+ * Option: Font Weight
+ */
+ array(
+ 'name' => 'breadcrumb-font-weight',
+ 'control' => 'ast-font',
+ 'type' => 'sub-control',
+ 'parent' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-typo]',
+ 'section' => 'section-breadcrumb',
+ 'font_type' => 'ast-font-weight',
+ 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ),
+ 'default' => astra_get_option( 'breadcrumb-font-weight' ),
+ 'title' => __( 'Weight', 'astra' ),
+ 'connect' => 'breadcrumb-font-family',
+ 'priority' => 15,
+ ),
+
+ /**
+ * Option: Text Transform
+ */
+ array(
+ 'name' => 'breadcrumb-text-transform',
+ 'control' => 'ast-select',
+ 'type' => 'sub-control',
+ 'parent' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-typo]',
+ 'section' => 'section-breadcrumb',
+ 'default' => astra_get_option( 'breadcrumb-text-transform' ),
+ 'title' => __( 'Text Transform', 'astra' ),
+ 'transport' => 'postMessage',
+ 'priority' => 20,
+ 'choices' => array(
+ '' => __( 'Inherit', 'astra' ),
+ 'none' => __( 'None', 'astra' ),
+ 'capitalize' => __( 'Capitalize', 'astra' ),
+ 'uppercase' => __( 'Uppercase', 'astra' ),
+ 'lowercase' => __( 'Lowercase', 'astra' ),
+ ),
+ ),
+
+ /**
+ * Option: Line Height
+ */
+ array(
+ 'name' => 'breadcrumb-line-height',
+ 'control' => 'ast-slider',
+ 'transport' => 'postMessage',
+ 'type' => 'sub-control',
+ 'default' => astra_get_option( 'breadcrumb-line-height' ),
+ 'parent' => ASTRA_THEME_SETTINGS . '[section-breadcrumb-typo]',
+ 'section' => 'section-breadcrumb',
+ 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ),
+ 'title' => __( 'Line Height', 'astra' ),
+ 'suffix' => 'em',
+ 'priority' => 25,
+ 'input_attrs' => array(
+ 'min' => 1,
+ 'step' => 0.01,
+ 'max' => 5,
+ ),
+ ),
+
+ );
+
+ return array_merge( $configurations, $_configs );
+ }
+ }
+}
+
+/**
+ * Kicking this off by calling 'get_instance()' method
+ */
+new Astra_Breadcrumbs_Typo_Configs();