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/dhwd.creativefellows.nl/pages/page.projecten.php
<?php
	
	$cassette->wrap = 0;
	
	/*
	 * Page content
	*/
	if(count($e) == 1)
	{	
		echo '<div class="orbit orbit__dhwd" data-orbit data-options="animInFromLeft:fade-in; animInFromRight:fade-in; animOutToLeft:fade-out; animOutToRight:fade-out;">';
			echo '<div class="orbit-wrapper">';
				echo '<ul class="orbit-container">';
				
				$bullets = [];
				
				foreach($e[0]->image as $i => $image)
				{
					echo '<li class="is-active orbit-slide">';
					echo '<figure class="orbit-figure">';
					echo '<img class="orbit-image" src="'.$image.'" alt="">';
					echo '</figure>';
					echo '</li>';

					$bullets[] = '<button class="'. ($i == 0 ? "is-active" : "") .'" data-slide="'.$i.'"></button>';
				}

				echo '</ul>';
			echo '</div>';

			echo '<nav class="orbit-bullets">';
			echo implode("",$bullets);
			echo '</nav>';
		echo '</div>';
		
		echo $e[0]->contents;
	}
	else
	{
		
		$html = '<div class="row ">';
		$html .= '<div class="small-12 columns">';
			$html .= '<h1>
						Projecten
						<span class="float-right">
							<a class="link__devider size-100'.($_GET["name"] == "office" ? " link__active" : "").'" href="/nl/projecten/office">Office</a>
							<a class="link__devider size-100'.($_GET["name"] == "hospitality" ? " link__active" : "").'" href="/nl/projecten/hospitality">Hospitality</a>
							<a class="link__devider link__last size-100'.($_GET["name"] == "experience" ? " link__active" : "").'" href="/nl/projecten/experience">Experience</a>
						</span>
					  </h1><br>';
			$html .= '</div>';
		$html .= '</div>';
		
		$html .= '<div class="row">';
	
		foreach($e as $i => $entry)
		{
			$html .= '<div class="small-12 medium-4 columns '. (($i + 1) == count($e) ? "end" : "") .' promo-item promo-item__collage">';
				$html .= '<div class="image image__square"><div class="image-inner"><img class="lazy" data-original="'. $entry->image[0] .'"></div></div>';
			
				$html .= '<div>';
					$html .= '<a class="label">'. $entry->label .'</a>';
					$html .= '<h4>'. $entry->titel .'</h4>';
					$html .= '<p>'. $entry->subtitel .'</p>';
					$html .= '<a href="'. $entry->entry_link .'" class="link link__hidden">Bekijk project</a>';
				$html .= '</div>';
				
			$html .= '</div>';
		}
						
		$html .= '</div>';
		
		echo $cassette->wrapAsSection($html);
	}
	/*
	 * contact form
	 */
	if($e[0]->form_id)
	{

		$form_id 		= $e[0]->form_id;
		$hide_header 	= false;
		
		require_once ROOT_DIR . 'pages/sections/section.form.php';
			
		$contact_form = '<div class="row">'. $return .'</div>';
		
		echo $cassette->wrapAsSection($contact_form,"","gray-callout");
	}

	//d($e[0]);
	
	
	/*
	 * Loopback
	 */
	if($e[0]->loopback[0] == "0") require_once ROOT_DIR . 'pages/sections/loopback_pages.php';
	

?>