From 295c6f82af0b1efa4601af222c346e4da17ab607 Mon Sep 17 00:00:00 2001 From: Roman Axelrod Date: Fri, 25 Nov 2022 11:48:41 +0200 Subject: [PATCH] Added Elementor option in build process. Elementor build still not ready. --- build.js | 3 +++ platforms/wordpress/templates/Template_Basic_Component.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build.js b/build.js index 51e265a..08c3ac3 100755 --- a/build.js +++ b/build.js @@ -17,6 +17,9 @@ export const PLATFORM_OPTIONS = [{ }, { name: 'wordpress-blocks', title: 'WordPress Block' +}, { + name: 'wordpress-elementor', + title: 'WordPress Elementor' }, { name: 'hubspot', title: 'Hubspot' diff --git a/platforms/wordpress/templates/Template_Basic_Component.php b/platforms/wordpress/templates/Template_Basic_Component.php index ca5a48d..777a2c9 100644 --- a/platforms/wordpress/templates/Template_Basic_Component.php +++ b/platforms/wordpress/templates/Template_Basic_Component.php @@ -17,7 +17,7 @@ class <%= blockClassModel %>_Component { [ 'style-wp' ], Global_Functions::get_current_version_number() ); - wp_enqueue_style( '<%= blockFilename %>' ) + wp_enqueue_style( '<%= blockFilename %>' ); wp_register_script( 'script-<%= blockFilename %>', get_template_directory_uri() . '/components/partials/<%= blockFilename %>/templates/scripts/<%= blockFilename %>.min.js', @@ -25,7 +25,7 @@ class <%= blockClassModel %>_Component { Global_Functions::get_current_version_number(), true ); - wp_enqueue_script( 'script-<%= blockFilename %>' ) + wp_enqueue_script( 'script-<%= blockFilename %>' ); } public function render( $args = [] ): void {