<?php wp_footer(); ?>

<div class="container-fluid footer" id="stopka">
	 <div class="container footer-container">
		<div class="row">
			<!-- pierwszy widget -->
			<div class="col-md-7">
				<div class="row footer-title">
			  		<!--<?php dynamic_sidebar('footer-sidebar-1'); ?>-->
			  		<div class="col-md-12">
			  			<?php dynamic_sidebar('footer-sidebar-2'); ?>
			  		</div>
			  	</div>
			  	<div class="row footer-menu">
			  		<div class="col-md-1">
			  			<a href="<?php 
						if( is_user_logged_in()) {echo esc_url( home_url( '/lekcje' ) );} else {echo esc_url( home_url( '/skilltest-lekcje' ) ); }?>">Lekcje</a>
			  		</div>
			  		<div class="col-md-1">
			  			<a href="<?php echo esc_url( home_url( '/blog' ) )  ?>">Blog</a>
			  		</div>
			  		<?php  if (!is_user_logged_in()) { ?>
			  		<div class="col-md-2">
			  			<a href="#pt-login">Zaloguj się</a>

			  		</div>
			  		<div class="col-md-4">
			  			<a href="<?php echo get_home_url()?>/rejestracja">Utwórz darmowe konto</a>
			  		</div><?php }?>


			  	</div>
			</div>
			<!-- drugi widget -->
			<div class="col-md-3 col-md-offset-2 footer-dane">
			   <div class="row"><?php dynamic_sidebar('footer-sidebar-1'); ?>
			</div>
		</div>
	</div>
	<div class="container">
		<div class="row footer-copyrights">
			Copyright © 2017 by skilltest.
		</div>
		<div class="row footer-spac">
			<img class="img-responsive picenter" src="<?php echo get_template_directory_uri()?>/assets/images/eu.jpg">
		</div>
	</div>
</div>
</div>
<?php login_register_modal("register"); ?>
<?php login_register_modal("login"); ?>
</body>
</html>