Updated Build Template of Elementor block.

This commit is contained in:
2023-01-02 14:23:11 +02:00
parent 50d743140b
commit df7866b8b5
2 changed files with 6 additions and 19 deletions
@@ -18,30 +18,16 @@ class <%= blockClassModel %>_Elementor_Widget extends \Elementor\Widget_Base {
}
protected function _register_controls() {
$this->start_controls_section( 'section_content', [ 'label' => 'Content' ] );
$repeater = new \Elementor\Repeater();
// $repeater->add_control(
// 'video_url', [
// 'label' => 'YouTube URL',
// 'type' => \Elementor\Controls_Manager::URL,
// 'label_block' => true,
// 'condition' => [
// 'type' => 'video',
// ],
// ]
// );
$this->end_controls_section();
$block_data = \Core\Block::get_block_data( __DIR__ . '/../<%= blockFilename %>.block.json' );
\Core\Elementor_Block::register_groups( $block_data, $this );
}
function get_style_depends() {
return [ '<%= blockFilename %>' ];
return [ 'block-<%= blockFilename %>' ];
}
function get_script_depends() {
return [ 'script-<%= blockFilename %>' ];
return [ 'block-<%= blockFilename %>' ];
}
protected function render() {