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',
|
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user