HEX
Server: Apache
System: Linux v38079.2is.nl 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: democfellows (10015)
PHP: 8.1.34
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/creativefellows.nl/test.creativefellows.nl/slotzeist/views/view.zalen.php
<?php
		
	/*
	 * Get Header
	 */
	$header_top_color = $data["page"][0]->contents == "" || !preg_match("/.image-showcase/",$data["page"][0]->contents) ? "no-header-transition" : "";
	require_once 'inc/header.php';
	
	
	/*
	 * Page content 
	 */
	echo '<div id="page-details" class="view-zaal">';
		
		// intro text
		echo $data["page"][0]->getProperty("contents");
		
		// zaalopstelling
		$opstellingen_arr = [
			"u_vorm" => "U-vorm",
			"carre" => "Carre",
			"cabaret" => "Cabaret",
			"school" => "School",
			"theater" => "Theater",
			"diner" => "Diner",
			"receptie" => "Receptie"
		];
		
		$html = '<div class="grid-container">';
			$html .= '<div class="grid-x grid-padding-x">';
			
				$html .= '<div class="small-12 cell">';
				$html .= '<h2>Zaalopstellingen</h2>';
				$html .= '</div>';
	
				foreach($opstellingen_arr as $opstelling => $label)
				{
					$html .= '<div class="auto cell '. $opstelling .'">';
						$html .= '<strong>'. $label .'</strong><span>'. $data["page"][0]->getProperty($opstelling) .'</span>';
					$html .= '</div>';
				}
			
			$html .= '</div>';	
		$html .= '</div>';	
			
	
		if($data["page"][0]->getProperty("tekst_geen_icons") == "" ) echo $data["config"]->wrapAsSection($html,null,"opstellingen-zaal");
		
		
		// terug naar overzicht
		$back = '<div class="grid-container">';
			$back .= '<div class="grid-x grid-padding-x text-center">';
			
				$back .= '<div class="small-12 cell">';
				$back .= '<p><a href="slot-zeist/zaalverhuur-slot-zeist" class="button secondary">Terug naar zalenoverzicht</a><p>';
				$back .= '</div>';
				
			$back .= '</div>';	
		$back .= '</div>';	
			
			
		echo $data["config"]->wrapAsSection($back,null,"");
		
	
	echo '</div>';
	
	
	/*
	 * Get Footer
	 */
	require_once 'inc/page_form.php';
	
	
	/*
	 * Get Footer
	 */
	require_once 'inc/footer.php';
	
?>