Last active
June 1, 2020 21:34
-
-
Save Rupashdas/794e44884b9e24db18ab19d10adff01c to your computer and use it in GitHub Desktop.
Boilarplate widget for elementor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Elementor_Faq_Widget Extends \Elementor\Widget_Base { | |
public function get_name() { | |
return "widgetName"; | |
} | |
public function get_title() { | |
return __( "Widget Title", "textdomain" ); | |
} | |
public function get_icon() { | |
return "fa fa-home"; | |
} | |
public function get_categories() { | |
return ['custom']; | |
} | |
public function _register_controls() { | |
$this->start_controls_section( | |
'content_section', | |
[ | |
'label' => __( 'Content', 'textdomain' ), | |
'tab' => \Elementor\Controls_Manager::TAB_CONTENT, | |
] | |
); | |
$this->end_controls_section(); | |
} | |
protected function render() { | |
$settings = $this->get_settings_for_display(); | |
} | |
protected function _content_template(){ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment