<style>
.w_footer {
    padding: 50px 0px 50px;
     background: #393c40;
}

.widget-heading {
    padding: 30px 15px;
}
.widget-heading h1 {
    border-bottom: 2px solid #D960AF;
    display: inline-block;
    font-size: 24px;
    padding: 5px 5px 5px 0;
    color: #fff;
}

#calendar_wrap {
    padding: 10px;
}
table.table, table {
    width: 100%;
    text-align: left;
    background-color: transparent;
}
#wp-calendar caption {
    padding: 10px;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    background-color: #D960AF;
}
.footer-widget #wp-calendar thead tr th, .footer-widget table td {
    color: #fff;
}
#wp-calendar thead tr th, #wp-calendar tbody tr td  {
    text-align: center;
}
table th, table td {
    border: 1px solid #dddddd;
    padding: 6px;
    line-height: 20px;
    text-align: center;
    vertical-align: top;
}
.footer-widget ul {
    list-style: none;
    padding-left: 20px;
	margin:0;
}
.footer-widget ul li {
    display: block;
}
.footer-widget ul li a {
    color: #fff;
    font-size: 16px;
}
</style>

<!-- Footer Widget Secton -->
<?php 
$enigma_parallax_footer_section_areas = get_theme_mod('enigma_parallax_footer_section_areas','1'); 
if ($enigma_parallax_footer_section_areas == '1') { ?>
	<div class="enigma_footer_widget_area w_footer">	
		<div class="container">
			<div class="row">
				<?php if ( is_active_sidebar( 'footer-widget-area' ) )
		{ dynamic_sidebar( 'footer-widget-area' );	}
		else 
		{	$footer_widget=  array('name' => __( 'Footer Widget Area', 'enigma_parallax' ),
			'id' => 'footer-widget-area',
			'description' => __( 'Footer Widget Area', 'enigma_parallax' ),
			'before_widget' => '<div class="col-md-3 col-sm-6 footer-widget">',
			'after_widget' => '</div>',
			'before_title' => '<div class="col-md-12 widget-heading"><h1>',
			'after_title' => '</h1></div>');
		
			the_widget('WP_Widget_Calendar', 'title='.__('Calendar', 'enigma_parallax'), $footer_widget);
			the_widget('WP_Widget_Recent_Posts', null, $footer_widget);
            the_widget('WP_Widget_Pages', null, $footer_widget);
            the_widget('WP_Widget_Archives', null, $footer_widget); 
		} ?>
			</div>		
		</div>	
	</div>
<?php } ?>
<div class="enigma_footer_area">
	<div class="container">
		<div class="col-md-12">
		<?php if ( enigma_parallax_theme_is_companion_active() ) { ?>
            <p class="enigma_footer_copyright_info wl_rtl">
                <?php 
                $enigma_footer_customization = get_theme_mod( 'footer_customizations', __('&copy; Copyright 2020. All Rights Reserved','enigma-parallax') );
                $developed_by_text = get_theme_mod('developed_by_text', __('Powered By','enigma-parallax'));
                echo esc_html( $enigma_footer_customization ); ?> <?php  echo esc_html($developed_by_text);?>
                <a target="_blank" rel="nofollow" href="<?php echo esc_url( get_theme_mod( 'developed_by_link' ) ); ?>">
                   <?php 
                   $enigma_develop_by = get_theme_mod( 'developed_by_weblizar_text' );
                   echo esc_html( $enigma_develop_by ); ?>
                </a>
            </p>    
        <?php 
        }else{ ?>
            <p class="enigma_footer_copyright_info wl_rtl">
                <?php esc_html_e('&copy; Copyright 2020. All Rights Reserved','enigma-parallax'); ?>
            </p>    
        <?php
        }
		if ( enigma_parallax_theme_is_companion_active() ) {
			$footer_section_social_media_enbled = absint(get_theme_mod( 'footer_section_social_media_enbled', 1 ));
			if ( $footer_section_social_media_enbled == 1 ) { ?>
				<div class="enigma_footer_social_div">
					<ul class="social">
						<?php 
						$fb_link = get_theme_mod('fb_link');
						if ( ! empty ( $fb_link ) ) { ?>
						   <li class="facebook" data-toggle="tooltip" data-placement="bottom" title="<?php esc_attr_e("Facebook",'enigma-parallax') ?>"><a  href="<?php echo esc_url( get_theme_mod( 'fb_link' ) ); ?>"><i class="fab fa-facebook-f"></i></a></li>
						<?php } 
						$twitter_link = get_theme_mod('twitter_link');
						if ( ! empty ( $twitter_link ) ) { ?>
							<li class="twitter" data-toggle="tooltip" data-placement="bottom" title="<?php esc_attr_e("Twitter",'enigma-parallax') ?>"><a href="<?php echo esc_url( get_theme_mod( 'twitter_link' ) ); ?>"><i class="fab fa-twitter"></i></a></li>
						<?php } 
						$linkedin_link = get_theme_mod('linkedin_link');
						if ( ! empty ( $linkedin_link ) ) { ?>					
							<li class="linkedin" data-toggle="tooltip" data-placement="bottom" title="<?php esc_attr_e("Linkedin",'enigma-parallax') ?>"><a href="<?php echo esc_url( get_theme_mod( 'linkedin_link' ) ); ?>"><i class="fab fa-linkedin-in"></i></a></li>
						<?php } 
						$youtube_link = get_theme_mod('youtube_link');
						if ( ! empty ( $youtube_link ) ) { ?>
							<li class="youtube" data-toggle="tooltip" data-placement="bottom" title="<?php esc_attr_e("Youtube",'enigma-parallax') ?>"><a href="<?php echo esc_url( get_theme_mod( 'youtube_link' ) ) ; ?>"><i class="fab fa-youtube"></i></a></li>
		                <?php } 
		                $instagram = get_theme_mod('instagram');
		                if ( ! empty ( $instagram ) ) { ?>
							<li class="facebook" data-toggle="tooltip" data-placement="bottom" title="<?php esc_attr_e("instagram",'enigma-parallax') ?>"><a href="<?php echo esc_url( get_theme_mod( 'instagram' ) ) ; ?>"><i class="fab fa-instagram"></i></a></li>
		                <?php } 
		                $vk_link = get_theme_mod('vk_link');
		                if ( ! empty ( $vk_link ) ) { ?>
							<li class="facebook" data-toggle="tooltip" data-placement="bottom" title="<?php esc_attr_e("vk",'enigma-parallax') ?>"><a href="<?php echo esc_url( get_theme_mod( 'vk_link' ) ) ; ?>"><i class="fab fa-vk"></i></a></li>
		                <?php } 
		                $qq_link = get_theme_mod('qq_link');
		                if ( ! empty ( $qq_link ) ) { ?>
							<li class="facebook" data-toggle="tooltip" data-placement="bottom" title="<?php esc_attr_e("qq",'enigma-parallax') ?>"><a href="<?php echo esc_url( get_theme_mod( 'qq_link' ) ) ; ?>"><i class="fab fa-qq"></i></a></li>
						<?php } ?>
					</ul>
				</div>
			<?php } 
		}?>			
		</div>		
	</div>		
</div>	

</div></div>


<?php $parallaxis_Back_To_Top_Button_background = get_theme_mod('parallaxis_Back_To_Top_Button_background');
if( !empty($parallaxis_Back_To_Top_Button_background) ) : ?>

   <style>
      #btn-to-top {
         display: inline-block;
         width: 40px;
         height: 40px;
         background-color: <?php echo $parallaxis_Back_To_Top_Button_background; ?> !important;
         text-align: center;
         position: fixed;
         bottom: 90px;
         right: 35px;
         z-index: 999;
         transform: scale(1.1,1.1);
         transition: all 0.5s ease;
      }
   </style>    
                
<?php endif; ?>

<?php $parallaxis_Back_To_Top_Button_color_background = get_theme_mod('parallaxis_Back_To_Top_Button_color_background');
   if( !empty($parallaxis_Back_To_Top_Button_color_background) ) : ?>

      <style>

         a#btn-to-top i {
            font-size: 20px;
            color: <?php echo $parallaxis_Back_To_Top_Button_color_background; ?> !important;
            line-height: 2.1;
         }

      </style>    
                
<?php endif; ?>

<?php 
$parallaxis_Back_To_Top_Location_Button = get_theme_mod('parallaxis_Back_To_Top_Location_Button', 'Right'); 
if( $parallaxis_Back_To_Top_Location_Button === "Left" ) :
   ?>

   <style>
   #btn-to-top {
      opacity: 1;
      visibility: visible;
      left: 10%;
      position: fixed;
   }
   </style>  

   <?php

endif;
?>             


<!--- scroll-to-top -->
<?php $parallaxis_Back_To_Top_Section_Visibility = get_theme_mod( 'parallaxis_Back_To_Top_Section_Visibility' ,1 );
if( $parallaxis_Back_To_Top_Section_Visibility ) : ?>
   <a href="" id="btn-to-top"><i class="fas fa-arrow-up"></i></a>
<?php endif; ?>




<?php
get_template_part('custom','font');?>
<?php wp_footer(); ?>
</body>
</html>