Added Elementor option in build process.

Elementor build still not ready.
This commit is contained in:
2022-11-25 11:48:41 +02:00
parent f0af682a43
commit 295c6f82af
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -17,6 +17,9 @@ export const PLATFORM_OPTIONS = [{
}, { }, {
name: 'wordpress-blocks', name: 'wordpress-blocks',
title: 'WordPress Block' title: 'WordPress Block'
}, {
name: 'wordpress-elementor',
title: 'WordPress Elementor'
}, { }, {
name: 'hubspot', name: 'hubspot',
title: 'Hubspot' title: 'Hubspot'
@@ -17,7 +17,7 @@ class <%= blockClassModel %>_Component {
[ 'style-wp' ], [ 'style-wp' ],
Global_Functions::get_current_version_number() Global_Functions::get_current_version_number()
); );
wp_enqueue_style( '<%= blockFilename %>' ) wp_enqueue_style( '<%= blockFilename %>' );
wp_register_script( 'script-<%= blockFilename %>', wp_register_script( 'script-<%= blockFilename %>',
get_template_directory_uri() . '/components/partials/<%= blockFilename %>/templates/scripts/<%= blockFilename %>.min.js', 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(), Global_Functions::get_current_version_number(),
true true
); );
wp_enqueue_script( 'script-<%= blockFilename %>' ) wp_enqueue_script( 'script-<%= blockFilename %>' );
} }
public function render( $args = [] ): void { public function render( $args = [] ): void {