|
|
|
@ -18,36 +18,22 @@ 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() { |
|
|
|
$settings = $this->get_settings_for_display(); |
|
|
|
|
|
|
|
$component = new \AXEWEB_Blocks\Blocks\Scytale\<%= blockClassModel %>\<%= blockClassModel %>_Component(); |
|
|
|
$component = new \AXEWEB_Blocks\Blocks\<%= ownerClass %>\<%= blockClassModel %>\<%= blockClassModel %>_Component(); |
|
|
|
|
|
|
|
$args = self::prepare( $settings ); |
|
|
|
$component->render( $args ); |
|
|
|
|