<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after
 *
 * @package embr
 */
?>
	</div><!-- .responsive-container -->
	</div><!-- #content -->

	<?php if(get_theme_mod('embr_show_footer_quote_section', 'yes') != 'no'):?>
    <div class="footer-quote-container">
    
            <div class="responsive-container">
            
                <div class="footer-quote">
                
                    <div class="footer-quote-text">
                        
                        <p>
                         <?php 
                            if( get_theme_mod('embr_footer_quote_text') ){
                                echo esc_html( get_theme_mod('embr_footer_quote_text') );
                            }else {
                                _e("Вы можете изменить текст футера в настройках темы.",  "embr");
                            }
                        ?>
                        </p>
                        
                        <span class="footer-quote-button">
                         <?php 
                            if( get_theme_mod('embr_footer_quote_text_name') ){
                                echo esc_html( get_theme_mod('embr_footer_quote_text_name') );
                            }else {
                                _e('wptheme.us',  'embr');
                            }
                        ?>
                        </span>
                        
                    </div>                    
                                
                </div><!-- .footer-quote -->        
            
            </div><!-- .Responsive-Container -->        
    
    </div><!-- .footer-quote-container --> 
	<?php endif; ?>

	<?php if(get_theme_mod('embr_show_social_section', 'yes') != 'no'):?>
    <div class="footer-social">
    <div class="responsive-container">
    	<div class="footer_social_icons">

                	<?php if(get_theme_mod('embr_social_facebook')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_facebook')); ?>">&#xf09a;</a></span>
                    <?php endif; ?>
					<?php if(get_theme_mod('embr_social_twitter')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_twitter')); ?>">&#xf099;</a></span>
                    <?php endif; ?>
                	<?php if(get_theme_mod('embr_social_behance')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_behance')); ?>">&#xf1b4;</a></span>
                    <?php endif; ?>
					<?php if(get_theme_mod('embr_social_bitbucket')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_bitbucket')); ?>">&#xf171;</a></span>
                    <?php endif; ?>
					<?php if(get_theme_mod('embr_social_github')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_github')); ?>">&#xf113;</a></span>
                	<?php endif; ?>
					<?php if(get_theme_mod('embr_social_instagram')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_instagram')); ?>">&#xf16d;</a></span> 
                    <?php endif; ?>
					<?php if(get_theme_mod('embr_social_youtube')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_youtube')); ?>">&#xf167;</a></span>
                    <?php endif; ?>
					<?php if(get_theme_mod('embr_social_dribble')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_dribble')); ?>">&#xf17d;</a></span>
                	<?php endif; ?>
					<?php if(get_theme_mod('embr_social_googleplus')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_googleplus')); ?>">&#xf0d5;</a></span>
                    <?php endif; ?>
					<?php if(get_theme_mod('embr_social_tumblr')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_tumblr')); ?>">&#xf173;</a></span>
                    <?php endif; ?>
					<?php if(get_theme_mod('embr_social_vine')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_vine')); ?>">&#xf1ca;</a></span>  
                    <?php endif; ?>
					<?php if(get_theme_mod('embr_social_wp')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_wp')); ?>">&#xf19a;</a></span>
                	<?php endif; ?>
					<?php if(get_theme_mod('embr_social_spotify')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_spotify')); ?>">&#xf1bc;</a></span>
                    <?php endif; ?>
					<?php if(get_theme_mod('embr_social_soundcloud')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_soundcloud')); ?>">&#xf1be;</a></span>
                    <?php endif; ?>
					<?php if(get_theme_mod('embr_social_reddit')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_reddit')); ?>">&#xf1a1;</a></span> 
                    <?php endif; ?>
					<?php if(get_theme_mod('embr_social_pinterest')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_pinterest')); ?>">&#xf0d2;</a></span>
                    <?php endif; ?>
					<?php if(get_theme_mod('embr_social_linkedin')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_linkedin')); ?>">&#xf0e1;</a></span>
                	<?php endif; ?>
					<?php if(get_theme_mod('embr_social_flickr')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_flickr')); ?>">&#xf16e;</a></span>  
                    <?php endif; ?>
					<?php if(get_theme_mod('embr_social_stackexchange')):?>
                    <span><a href="<?php echo esc_url(get_theme_mod('embr_social_stackexchange')); ?>">&#xf16c;</a></span>
                    <?php endif; ?> 
    
    	</div><!-- .footer-social -->
    </div><!-- .responsive-container -->    
    </div><!-- .footer-social -->
    <?php endif; ?>
        
	<footer id="colophon" class="site-footer" role="contentinfo">
    <div class="responsive-container">
    	
        <div class="footer-widgets">
        
        	<div class="footer-widget">
            	<?php if ( dynamic_sidebar('sidebar-footer-left') ){ } else { ?>

                    <aside id="meta" class="widget">
                        <h1 class="widget-title"><?php _e( 'Левый сайдбар подвала', 'embr' ); ?></h1>
                        <ul>
                            <?php wp_register(); ?>
                            <li><?php wp_loginout(); ?></li>
                            <?php wp_meta(); ?>
                        </ul>
                    </aside>                                                                                
                                                                                
                <?php } ?>                   
            </div>
            
        	<div class="footer-widget">
            	<?php if ( dynamic_sidebar('sidebar-footer-center-left') ){ } else { ?>

                    <aside id="meta" class="widget">
                        <h1 class="widget-title"><?php _e( 'Левый сайдбар подвала', 'embr' ); ?></h1>
                        <ul>
                            <?php wp_register(); ?>
                            <li><?php wp_loginout(); ?></li>
                            <?php wp_meta(); ?>
                        </ul>
                    </aside>                                                                                
                                                                                
                <?php } ?>                 
            </div>
            
        	<div class="footer-widget">
            	<?php if ( dynamic_sidebar('sidebar-footer-center-right') ){ } else { ?>

                    <aside id="meta" class="widget">
                        <h1 class="widget-title"><?php _e( 'Правый сайдбар подвала', 'embr' ); ?></h1>
                        <ul>
                            <?php wp_register(); ?>
                            <li><?php wp_loginout(); ?></li>
                            <?php wp_meta(); ?>
                        </ul>
                    </aside>                                                                                
                                                                                
                <?php } ?>                 
            </div>
            
        	<div class="footer-widget">
            	<?php if ( dynamic_sidebar('sidebar-footer-right') ){ } else { ?>

                    <aside id="meta" class="widget">
                        <h1 class="widget-title"><?php _e( 'Правый сайдбар подвала', 'embr' ); ?></h1>
                        <ul>
                            <?php wp_register(); ?>
                            <li><?php wp_loginout(); ?></li>
                            <?php wp_meta(); ?>
                        </ul>
                    </aside>                                                                                
                                                                                
                <?php } ?>                 
            </div>                                    
        
        </div>
		<div class="site-info">
            <p>
			<a href="<?php echo esc_url( __( 'https://wphost.me/mancgi/partnerprogram?partner=24&amp;project=1', 'embr' ) ); ?>"><?php printf( __( '%s', 'embr' ), 'WordPress хостинг' ); ?></a>
            </p>
		</div><!-- .site-info -->
	</div><!-- .responsive-container -->
    </footer><!-- #colophon -->
</div><!-- #page -->
</div><!-- #wrapper-one -->
</div><!-- #wrapper-two -->
</div><!-- #wrapper-three -->

<?php wp_footer(); ?>

</body>
</html>
