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-control-font-variant.php | 153 +++++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 inc/customizer/custom-controls/font-variant/class-astra-control-font-variant.php (limited to 'inc/customizer/custom-controls/font-variant/class-astra-control-font-variant.php') diff --git a/inc/customizer/custom-controls/font-variant/class-astra-control-font-variant.php b/inc/customizer/custom-controls/font-variant/class-astra-control-font-variant.php new file mode 100644 index 0000000..859ca63 --- /dev/null +++ b/inc/customizer/custom-controls/font-variant/class-astra-control-font-variant.php @@ -0,0 +1,153 @@ +ast_inherit = __( 'Inherit', 'astra' ); + parent::__construct( $manager, $id, $args ); + } + + /** + * Refresh the parameters passed to the JavaScript via JSON. + * + * @since 3.0.0 + * @see WP_Customize_Control::to_json() + */ + public function to_json() { + + parent::to_json(); + + $this->json['label'] = esc_html( $this->label ); + $this->json['description'] = $this->description; + $this->json['name'] = $this->name; + $this->json['value'] = $this->value(); + $this->json['connect'] = $this->connect; + $this->json['variant'] = $this->variant; + $this->json['link'] = $this->get_link(); + } + + /** + * COntent Template for the Control rendering. + * + * @see WP_Customize_Control::print_template() + * @since 3.0.0 + * @access protected + */ + protected function content_template() { + + ?> + + + + + +