<?php
/**
 * Theme Ostrich widgets inclusion
 *
 * This is the template that includes all custom widgets of Bloz Pro
 *
 * @package Theme Ostrich
 * @subpackage Bloz Pro
 * @since Bloz Pro 1.0.0
 */

/*
 * Add Latest Posts widget
 */
require get_template_directory() . '/inc/widgets/latest-posts-widget.php';
require get_template_directory() . '/inc/widgets/slider-posts-widget.php';
require get_template_directory() . '/inc/widgets/popular-posts-widgets.php';
require get_template_directory() . '/inc/widgets/trending-posts-widget.php';
require get_template_directory() . '/inc/widgets/social-link-widgets.php';
require get_template_directory() . '/inc/widgets/about-widgets.php';


/**
 * Register widgets
 */
function ostrich_magazine_register_widgets() {

	register_widget( 'Ostrich_Magazine_Latest_Post' );
	register_widget( 'Ostrich_Magazine_Slider_Post' );
	register_widget( 'Ostrich_Magazine_Popular_Post' );
	register_widget( 'Ostrich_Magazine_Trending_Post' );
	register_widget( 'Ostrich_Magazine_Social_Link' );
	register_widget( 'Ostrich_Magazine_About_Us_Image_Widget' );

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