<?php 

require_once( get_template_directory() . '/inc/widget/class-base-widget.php' );
require_once( get_template_directory() . '/inc/widget/class-post-with-thumbnail.php' );
require_once( get_template_directory() . '/inc/widget/class-profile-card.php' );
function bizcare_register_widget(){
	$st_widgets = array(
		'BizCare_Post_With_Thumb_Widget',
		'BizCare_Profile_Card_Widget'
	);
	foreach ( $st_widgets as $widget ) {			
		register_widget( $widget );
	}
}
add_action( 'widgets_init', 'bizcare_register_widget' );

function bizcare_widget_scripts(){
	// widget style
	wp_enqueue_style( 'widget', get_template_directory_uri() . '/inc/widget/assets/widget.css' );
}
add_action( 'wp_enqueue_scripts', 'bizcare_widget_scripts' );