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/. --- .../assets/js/minified/customizer-preview.min.js | 1 + .../assets/js/unminified/customizer-preview.js | 15 ++++++ .../class-astra-header-html-component-loader.php | 60 ++++++++++++++++++++++ .../html/class-astra-header-html-component.php | 45 ++++++++++++++++ .../type/header/html/dynamic-css/dynamic.css.php | 32 ++++++++++++ 5 files changed, 153 insertions(+) create mode 100644 inc/builder/type/header/html/assets/js/minified/customizer-preview.min.js create mode 100644 inc/builder/type/header/html/assets/js/unminified/customizer-preview.js create mode 100644 inc/builder/type/header/html/class-astra-header-html-component-loader.php create mode 100644 inc/builder/type/header/html/class-astra-header-html-component.php create mode 100644 inc/builder/type/header/html/dynamic-css/dynamic.css.php (limited to 'inc/builder/type/header/html') diff --git a/inc/builder/type/header/html/assets/js/minified/customizer-preview.min.js b/inc/builder/type/header/html/assets/js/minified/customizer-preview.min.js new file mode 100644 index 0000000..08f5336 --- /dev/null +++ b/inc/builder/type/header/html/assets/js/minified/customizer-preview.min.js @@ -0,0 +1 @@ +jQuery,astra_builder_html_css("header",AstraBuilderHTMLData.component_limit); \ No newline at end of file diff --git a/inc/builder/type/header/html/assets/js/unminified/customizer-preview.js b/inc/builder/type/header/html/assets/js/unminified/customizer-preview.js new file mode 100644 index 0000000..0535a8a --- /dev/null +++ b/inc/builder/type/header/html/assets/js/unminified/customizer-preview.js @@ -0,0 +1,15 @@ +/** + * This file adds some LIVE to the Customizer live preview. To leverage + * this, set your custom settings to 'postMessage' and then add your handling + * here. Your javascript should grab settings from customizer controls, and + * then make any necessary changes to the page using jQuery. + * + * @package Astra Builder + * @since 3.0.0 + */ + +( function( $ ) { + + astra_builder_html_css( 'header', AstraBuilderHTMLData.component_limit ); + +} )( jQuery ); diff --git a/inc/builder/type/header/html/class-astra-header-html-component-loader.php b/inc/builder/type/header/html/class-astra-header-html-component-loader.php new file mode 100644 index 0000000..6c3d002 --- /dev/null +++ b/inc/builder/type/header/html/class-astra-header-html-component-loader.php @@ -0,0 +1,60 @@ + defined( 'ASTRA_EXT_VER' ) ? Astra_Builder_Helper::$component_limit : Astra_Builder_Helper::$num_of_header_html, + ) + ); + } +} + +/** +* Kicking this off by creating the object of the class. +*/ +new Astra_Header_Html_Component_Loader(); diff --git a/inc/builder/type/header/html/class-astra-header-html-component.php b/inc/builder/type/header/html/class-astra-header-html-component.php new file mode 100644 index 0000000..0abed4c --- /dev/null +++ b/inc/builder/type/header/html/class-astra-header-html-component.php @@ -0,0 +1,45 @@ +