 <?php

 get_header();

?>

	<?php
	 block_unlg();
				while ( $wp_query->have_posts() ) :
				    $wp_query->the_post();
				?> 
<div class="container-fluid">
	<div class="row post-nav-row">
		<div class="container ">
			<div class="hidden-xs col-sm-4 col-md-6">
			</div>
			<div class="col-xs-6 col-sm-4 col-md-6 post-res">
				Zrobiłeś <?php echo quiz_done_num(); ?> z <?php echo post_quiz_num();?> zadań
			</div>
			
		</div>
	</div>    
	<div class="container bord-grey">
		
		<div class="row post_title1">
			<div class="col-md-12">
				<?php $key="lesson_title"; echo get_post_meta($post->ID, $key, true); ?>
			</div>
		</div>
		<div class="row post-sing-sub">
			<div class="col-md-12">
			<?php $key="post_subtitle"; echo get_post_meta($post->ID, $key, true); ?>
			</div>
		</div>
	</div>
	<div class="container ">
		<div class="row correct-title correct-title">
			<div class="col-md-12">
				<?php echo the_title(); ?>
			</div>
		</div>
		<div class="row sing-content">
			<div class="col-md-12">
				<?php echo the_content(); ?>
			</div>
		</div>
	</div>
</div>
<!-- sekcja z zadaniem -->
<div class="container-fluid sing-less-bg">
	<div class="row">
		<div class="col-sm-10 col-md-12 ">
			<div class="container sing-zad-cont">
				<div class="row sing-zad-title">
					Zadanie
				</div>
				<div class="row sing-zad-subtitle">
					<?php $key="post_task1"; echo get_post_meta($post->ID, $key, true); ?>
				</div>
				<div class="row sing-zad-content">
					<?php $key="post_task2"; echo get_post_meta($post->ID, $key, true); ?>
				</div>
				<div class="row">
					<button class="sing-zad-button"  data-toggle="collapse" data-target="#quiz-colla"> Rozwiąż zadanie</button>
							
				</div>
				<!-- collaps -->
				<div class="row collapse multi-collapse"" id="quiz-colla">
					<?php quiz_in_modal() ?>

				</div>
		<!-- /collaps -->

			</div>
			<div class="container">
				<div class="row">
					<div class="col-xs-6 col-sm-4  col-md-2 col-md-push-10">
						
						 <?php previous_post_link('<div class="prev-post post-button">%link</div>'); ?>

					</div>
			</div>
		</div>
		</div>
	</div>
</div>

<!-- koniec lekcji z zadaniem -->  
<!-- modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      

        
    
      <div class="modal-footer">
      </div>
    </div>
  </div>
</div>'
<!-- koniec modala --> 








<!-- pętla  -->
                
<!-- type: single kurs 1 -->
 
<?php endwhile; ?>
<?php get_footer(); ?>