<div id="shwdata" style="height: 0px; overflow: hidden;">
	<table id="data" class="tablesorter-blue">
		<thead>
		    <tr>
		      <th class="group-letter-50">Plaats</th>
		      <th class="group-false">Duur</th>
		      <th class="group-false sorter-false">Data</th>
		      <th class="group-false sorter-false"></th>
		    </tr>
		  </thead>
		  <tbody>
	<?php foreach( $repeater as $i => $row ): 
		$vandaag = strtotime(date('Ymd'));
		//echo $vandaag.'---';
		$str_datum = strtotime($row['start_datum']);
		//echo $str_datum;
		if ($str_datum >= $vandaag): ?>
		<tr>
			<?php //echo htmlspecialchars($row['training_data']); ?>
			<td><?php echo $row['plaats']; if($row['last_minute']):?> <span class="lbl">Last minute</span><?php endif;?><span class="drs"> - <?php echo substr($row['adres'], 0, -7);?></span></td>
			<td><?php the_field('duur_aantal'); ?> <?php the_field('duur_soort'); ?></td>
			<td><?php echo $row['training_data']; ?></td>
			<td>
			<?php if($row['last_minute']):?>
			<a href="<?php echo the_permalink($row['last_minute_post']);?>">Bekijk training > </a>
			<?php else: ?>
			<a href="/inschrijven?plaats=<?php echo $row['plaats']; ?>&start=<?php echo $row['start_datum']; ?>&eind=<?php echo $row['eind_datum']; ?>&training=<?php the_title();?><?php if(get_field('examen_mogelijkheid')):?>&examen=examen<?php endif; ?>">Inschrijven > </a>
			<?php endif; ?>
			</td>
		</tr>
		<?php else: 
			delete_row('plaats_en_data', get_row_index());
			
			endif; ?>
	<?php endforeach; ?>
		  </tbody>
	</table>
</div>

 

Geef een reactie 0