From 9d4123cee1867ee7199b06bdc92d40611f547ecc Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Wed, 21 Jul 2021 14:54:07 -0500 Subject: Initial unmodified import from Astra (Version: 3.6.5) @ /wp-content/themes/astra/. --- .../class-astra-wp-customize-panel.php | 65 +++++++++++++++++++++ .../class-astra-wp-customize-section.php | 68 ++++++++++++++++++++++ .../class-astra-wp-customize-separator.php | 49 ++++++++++++++++ 3 files changed, 182 insertions(+) create mode 100644 inc/customizer/extend-customizer/class-astra-wp-customize-panel.php create mode 100644 inc/customizer/extend-customizer/class-astra-wp-customize-section.php create mode 100644 inc/customizer/extend-customizer/class-astra-wp-customize-separator.php (limited to 'inc/customizer/extend-customizer') diff --git a/inc/customizer/extend-customizer/class-astra-wp-customize-panel.php b/inc/customizer/extend-customizer/class-astra-wp-customize-panel.php new file mode 100644 index 0000000..778996a --- /dev/null +++ b/inc/customizer/extend-customizer/class-astra-wp-customize-panel.php @@ -0,0 +1,65 @@ +title, ENT_QUOTES, get_bloginfo( 'charset' ) ); + $array['content'] = $this->get_content(); + $array['active'] = $this->active(); + $array['instanceNumber'] = $this->instance_number; + + return $array; + } + } + +} + diff --git a/inc/customizer/extend-customizer/class-astra-wp-customize-section.php b/inc/customizer/extend-customizer/class-astra-wp-customize-section.php new file mode 100644 index 0000000..363ff36 --- /dev/null +++ b/inc/customizer/extend-customizer/class-astra-wp-customize-section.php @@ -0,0 +1,68 @@ +title, ENT_QUOTES, get_bloginfo( 'charset' ) ); + $array['content'] = $this->get_content(); + $array['active'] = $this->active(); + $array['instanceNumber'] = $this->instance_number; + + if ( $this->panel ) { + $array['customizeAction'] = sprintf( 'Customizing ▸ %s', esc_html( $this->manager->get_panel( $this->panel )->title ) ); + } else { + $array['customizeAction'] = 'Customizing'; + } + + return $array; + } + } +} diff --git a/inc/customizer/extend-customizer/class-astra-wp-customize-separator.php b/inc/customizer/extend-customizer/class-astra-wp-customize-separator.php new file mode 100644 index 0000000..0f195f7 --- /dev/null +++ b/inc/customizer/extend-customizer/class-astra-wp-customize-separator.php @@ -0,0 +1,49 @@ + +
  • +