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.blog.php
<?php
	
	$cassette->wrap = 0;
	
	/*
	 * Page content
	*/
	if(count($e) == 1)
	{	
		$html = '<div class="row">';
			$html .= '<div class="small-12 medium-8 medium-offset-2 columns">';
				$html .= '<h1 style="line-height:3rem;margin-top:3rem;">'. $e[0]->titel .'</h1>';
				$html .= '<p class="lead"><em style="font-weight:400;">'. strftime("%e %B %Y",strtotime($e[0]->datum)) ."</em> - ". $e[0]->subtitel .'</p>';
				$html .= '<img src="'. $e[0]->image[0] .'" style="display:block;margin-top:1.5rem;">';
			$html .= '</div>';
		$html .= '</div>';
		
		//$html .= '<style></style>';
		$html .= '<div class="row">';
		$html .= '<div class="small-12 medium-8 medium-offset-2 columns" style="padding-left:0;padding-right:0;">';
			 $html .= $e[0]->contents;
		$html .= '</div>';
		$html .= '</div>';		
			
		echo $cassette->wrapAsSection($html);
	
		/*$html = '<style>';
			$html .= '.line-bottom{border-bottom:solid 1px #ececec;maring-top:1.5rem;';	
		$html .= '</style>';
		$html .= '<div class="row">';
		$html .= '<div class="small-12 medium-8 medium-offset-2 columns">';
			 //$html .= '<p>Een eigentijdse, gezonde werkomgeving vergt aandacht, juist nu. Neem <a href="https://www.edwindenhertog.nl/nl/Contact">gerust contact met ons</a> op om de meerwaarde te bespreken!</p>';
		$html .= '</div>';
		$html .= '</div>';	
		
		//echo $cassette->wrapAsSection($html,"","gray-callout");
			
		
		//echo $e[0]->contents;*/
	}
	else
	{
		
		$html = '<div class="row">';
			$html .= '<div class="small-12 columns">';
				$html .= '<h1>Artikelen</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 promo-item__blog">';
				$html .= '<div class="image image__square"><div class="image-inner"><img class="lazy" data-original="'. $entry->image[0] .'"></div></div>';
			
				$html .= '<div>';
					$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';
	

?>