Added Elementor option in build process.
Elementor build still not ready.
This commit is contained in:
@@ -17,6 +17,9 @@ export const PLATFORM_OPTIONS = [{
|
||||
}, {
|
||||
name: 'wordpress-blocks',
|
||||
title: 'WordPress Block'
|
||||
}, {
|
||||
name: 'wordpress-elementor',
|
||||
title: 'WordPress Elementor'
|
||||
}, {
|
||||
name: 'hubspot',
|
||||
title: 'Hubspot'
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user