<?php

// Header Posts Widget.
require get_template_directory() . '/inc/custom-widgets/header-posts-widget.php';

// Featured Posts Widget.
require get_template_directory() . '/inc/custom-widgets/mini-list-widget.php';

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

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

// List Posts Widget.
require get_template_directory() . '/inc/custom-widgets/list-posts-widget.php';

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

// Tile Posts Widget.
require get_template_directory() . '/inc/custom-widgets/tile-posts-widget.php';

/**
 * Register Widgets
 */
function early_news_register_widgets() {
	
	register_widget( 'Early_News_Header_Post_Widget' );

	register_widget( 'Early_News_Mini_List_Widget' );

	register_widget( 'Early_News_Grid_List_Posts_Widget' );

	register_widget( 'Early_News_Grid_Posts_Widget' );

	register_widget( 'Early_News_List_Posts_Widget' );

	register_widget( 'Early_News_Social_Widget' );

	register_widget( 'Early_News_Tile_Posts_Widget' );

}

add_action( 'widgets_init', 'early_news_register_widgets' );
