<?php
	namespace Elementor;
	class Jobbank_Candidate_Widget extends Widget_Base {
		public function get_name() {
			return 'jobbank_candidate';
		}
		public function get_title() {
			return esc_html__( 'Candidate Directory', 'jobbank' );
		}
		public function get_icon() {
			return 'eicon-post-excerpt';
		}
		public function get_categories() {
			return [ 'jobbank_elements' ];
		}
		protected function register_controls() {
		}
		//Render
		protected function render() {
			$shortcode ="[jobbank_candidate_directory]";		
		?>
		<div class="elementor-shortcode"><?php echo do_shortcode( shortcode_unautop( $shortcode ) );  ?></div>
		<?php
		}
	} 
Plugin::instance()->widgets_manager->register( new Jobbank_Candidate_Widget );