<!--===// Start: Footer
    =================================-->
<footer id="footer-section" class="footer-section footer-one">
	<?php if( function_exists('cleverfox_activate')): ?>
	<div class="footer-top st-py-default2 wow fadeInUp">
		<div class="container">
			<div class="breaking-news-section pb-0 pt-md-3">
				<div class="container-wrapper">
					<div class="news-title">
						<h6><i class="fa fa-bolt"></i> <?php esc_html_e('Breaking News','news-25');?></h6>
					</div>
					<div class="breaking-news-slider owl-carousel">
						<?php 	$footer_breakingnews_id = get_theme_mod('footer_breakingnews_id',array());
						$args = array( 'post_type' => 'post', 'category__in' => $footer_breakingnews_id,'post__not_in'=>get_option("sticky_posts")) ; 
						$footer_query = new WP_Query($args);
						if($footer_query)
						{	
						while($footer_query->have_posts()):
							$footer_query->the_post();
							$format = get_post_format() ? : 'standard';?>
						<div class="item">
							<?php default_blog_image('30','30'); ?>
							<a href="<?php the_permalink(); ?>" ><?php the_title();?></a>
						</div>
						<?php endwhile; } ?>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="footer-post st-py-default">
		<div class="container">
			<div class="post-slider-section">
				<div class="post-slider owl-carousel">
					<?php 	$footer_slider_id = get_theme_mod('footer_slider_id',array());
						$args = array( 'post_type' => 'post', 'category__in' => $footer_slider_id,'post__not_in'=>get_option("sticky_posts")) ; 
						$footer_slider_query = new WP_Query($args);
						if($footer_slider_query)
						{	
						while($footer_slider_query->have_posts()):
							$footer_slider_query->the_post();
							$format = get_post_format() ? : 'standard';?>
					<article class="post-list wow fadeInUp" data-wow-delay="0ms" data-wow-duration="1500ms">
						<figure class="post-thumbnail">
							<a class="img-block" href="javascript:void(0);">
								<?php default_blog_image('80','80'); ?>
							</a>
						</figure>
						<div class="post-content">
							<span class="category">
								<?php the_category(', '); ?>
							</span>
							<h5 class="post-title"><a href="<?php echo esc_url(get_permalink()); ?>"><?php the_title(); ?></a></h5>
							<div class="post-meta">
								<a href="<?php echo esc_url(get_day_link(get_post_time('Y'), get_post_time('m'), get_post_time('j'))); ?>" class="blog-date"><i class="fa fa-calendar"></i> <time datetime="<?php echo esc_attr( get_the_date( 'Y-m-d', $post ) ); ?>" class="meta-info"><?php echo esc_html(get_the_date('F')); ?> <?php echo esc_html(get_the_date('j')); ?>, <?php echo esc_html(get_the_date('Y')); ?></time></a>
							</div>
						</div>
					</article>
						<?php endwhile; } ?>
				</div>
			</div>
		</div>
	</div>
	<?php endif; ?>
	<div class="footer-content st-py-default2">
		<div class="container">
			<div class="row gy-3">
			<div class="col-lg-3 col-md-6 col-12 widget widget_block footer_content_wrap wow fadeInUp">
				<?php  dynamic_sidebar( 'news25-footer-widget-area-1' ); ?>
			</div>
			<div class="col-lg-3 col-md-6 col-12 widget widget_block footer_content_wrap wow fadeInUp">
				<?php  dynamic_sidebar( 'news25-footer-widget-area-2' ); ?>
			</div>
			<div class="col-lg-3 col-md-6 col-12 widget widget_block footer_content_wrap wow fadeInUp">
				<?php  dynamic_sidebar( 'news25-footer-widget-area-3' ); ?>
			</div>
			<div class="col-lg-3 col-md-6 col-12 widget widget_block footer_content_wrap wow fadeInUp">
				<?php  dynamic_sidebar( 'news25-footer-widget-area-4' ); ?>
			</div>
			</div>
		</div>
	</div>
	<?php if( function_exists('cleverfox_activate')): ?>
	<div class="footer-middle">
		<div class="container">
			<div class="border-box">
				<?php $footer_middle_text1 = get_theme_mod('footer_middle_text1');?>
				<?php $footer_middle_text2 = get_theme_mod('footer_middle_text2');?>
				<?php $live_news_link = get_theme_mod('live_news_link');?>
				<div class="live-box wow fadeInUp" data-wow-delay="0ms" data-wow-duration="1500ms">
					<a href="<?php echo esc_url($live_news_link); ?>" class="live-text">
						<?php echo esc_html($footer_middle_text1);?><br><span><?php echo esc_html($footer_middle_text2);?></span>
					</a>
					<div class="wave-effect rounded-circle">
						<div class="live-indicator"></div>
					</div>
				</div>
				<div class="w-100 d-none d-lg-block wow fadeInUp" data-wow-delay="150ms" data-wow-duration="1500ms">

				</div>
				<div class="download-box text-center wow fadeInUp" data-wow-delay="300ms" data-wow-duration="1500ms">
					<h5 class="fw-bold"><?php esc_html_e('Download App','news-25');?></h5>
					<div class="mt-3 d-flex justify-content-center gap-2">
					<?php 
						$footer_middle_img1 = get_theme_mod('footer_middle_img1',get_template_directory_uri() .'/assets/images/playstore.png');
						$footer_middle_img2 = get_theme_mod('footer_middle_img2',get_template_directory_uri() .'/assets/images/appstore.png');
					?>
						
						<a href="javascript:void(0);"><img src="<?php echo esc_url($footer_middle_img1);?>" alt="image"></a>
						<a href="javascript:void(0);"><img src="<?php echo esc_url($footer_middle_img2);?>" alt="image"></a>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	<div class="footer-above">
		<div class="container">
			<div class="above-social-slider owl-carousel">
			<?php	$footer_social 	 = get_theme_mod('footer_social',news25_get_social_icon_default());	
					$footer_social = json_decode($footer_social);
					if( $footer_social!='' )
					{
					foreach($footer_social as $social_item){	
					$social_title = ! empty( $social_item->title ) ? apply_filters( 'news25_translate_single_string', $social_item->title, 'Subscribe section' ) : '';	
					$social_icon = ! empty( $social_item->icon_value ) ? apply_filters( 'news25_translate_single_string', $social_item->icon_value, 'Subscribe section' ) : '';	
					$social_link = ! empty( $social_item->link ) ? apply_filters( 'news25_translate_single_string', $social_item->link, 'Subscribe section' ) : '';
				?>
				<div class="above-item wow fadeInUp" data-wow-delay="0ms" data-wow-duration="1500ms">
					<a href="<?php echo esc_url( $social_link ); ?>" class="flex gap-2" target="_blank">
						<div class="icon bg-<?php echo esc_html( $social_title ); ?>">
							<i class="fa <?php echo esc_attr( $social_icon ); ?>" aria-hidden="true"></i>
						</div>
						<span><?php echo esc_html( $social_title ); ?></span>
					</a>
				</div>
				<?php }} ?>
			</div>
		</div>
	</div>
	<?php endif; ?>
		
	<div class="footer-copyright">
		<div class="container">
			<div class="row align-items-center py-1">
			
				<div class="col-md-6 col-12 wow fadeInUp" data-wow-delay="0ms" data-wow-duration="1500ms">
					<div class="widget-left">
						<div class="widget textwidget">
							<div class="brand">                                    
								<?php 
									dynamic_sidebar( 'news25-footer-layout-first' );
									$footer_first_custom  = get_theme_mod('footer_first_custom','Copyright &copy; [current_year] [site_title] | Powered by [theme_author]');	
									 if(!empty($footer_first_custom)){
								?>
									<div class="widget-center text-av-center text-center">            
										<div class="copyright-text">
											<?php
												$news25_copyright_allowed_tags = array(
													'[current_year]' => date_i18n('Y'),
													'[site_title]'   => get_bloginfo('name'),
													'[theme_author]' => sprintf(__('<span><a href="#">News25 WordPress Theme</a></span>', 'news-25')),
												);
												echo apply_filters('news25_footer_copyright', wp_kses_post(news25_str_replace_assoc($news25_copyright_allowed_tags, $footer_first_custom)));
											?>
										</div>
									</div>
								 <?php } ?>
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-6 col-12 wow fadeInUp" data-wow-delay="200ms" data-wow-duration="1500ms">
					<div class="widget-right">
						<aside class="widget widget_nav_menu">
							<div class="menu-pages-container">
							<?php 
								wp_nav_menu( 
									array(  
										'theme_location' => 'footer_menu',
										'container'  => '',
										'menu_class' => 'menu',
										'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
										'walker' => new WP_Bootstrap_Navwalker()
										 ) 
									);
								?>   
							</div>
						</aside>
					</div>
				</div>
				
			</div>
		</div>
	</div>
	<div id="bubbles-bg" class="bubbles-bg">
		<canvas id="bubble-canvas"></canvas>
	</div>
</footer>
	
    <!-- End: Footer
    =================================-->
<!-- ScrollUp -->
<?php 
	$hs_scroller 	= get_theme_mod('hs_scroller','1');	
	if($hs_scroller == '1') :
?>
	<button type="button" class="scrollup style-1">
		 <span class="scroll-text "><i class="fa fa-arrow-up"> </i></span><span class="scroll-line"><span class="scroll-point"></span></span>
	</button>
<?php endif; ?>	
<!-- / -->  
</div>
</div>
<?php 
wp_footer(); ?>
</body>
</html>
