<?php

// Author Info Widget.
require get_template_directory() . '/inc/widgets/info-author-widget.php';

// Grid Posts Widget.
require get_template_directory() . '/inc/widgets/grid-posts-widget.php';

// Social Widget.
require get_template_directory() . '/inc/widgets/social-widget.php';

/**
 * Register Widgets
 */
function flawless_blog_register_widgets() {

	register_widget( 'Flawless_Blog_Author_Info_Widget' );

	register_widget( 'Flawless_Blog_Grid_Posts_Widget' );

	register_widget( 'Flawless_Blog_Social_Widget' );

}
add_action( 'widgets_init', 'flawless_blog_register_widgets' );
