d2321
5/14/2020 - 10:04 PM

flexible content

<?php if( have_rows('blok') ): ?>
	<?php while(the_flexible_field("blok")): ?>
	
        <?php if(get_row_layout() == "opis_z_obrazkiem"): // layout: Content ?>
          <div class="container">
			  
			</div><!--container-->
     
       <?php elseif(get_row_layout() == "blok_2"): // layout: File ?>
          <div class="container">
			  
			</div><!--container-->			
		<?php endif; ?>
	 
	 
     <?php endwhile; //parent?>
    <?php endif; //parent?>