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/kjsgouda.creativefellows.nl/views/view.locatie.php
<?php
		
					
	/*
	 * Get Header
	 */
	$show_header_spacer = false;
	$header_class = "";
	require_once 'inc/header.php';
	
	/*
	 * Page theming
	 */
	echo '<style>';
		echo 'h2, .agenda-school .agenda-item__locatie h4, .page-content a{color:#'. $data["page"][0]->getProperty("themakleur") .';}';
		echo 'ul.labels li, .showcase .badge-xl, .button.primary, .button.primary:hover{background-color:#'. $data["page"][0]->getProperty("themakleur") .'}';	
	echo '</style>';	
							

	/*
	 * Showcase
	 */
	$badge_text = $data["page"][0]->getProperty("slogan");
	require_once 'inc/showcase_v2.php';		

	
	/*
	 * Page contents
	 */
	echo '<div class="page-content">';	
	
		$visible_url 	= str_replace("https://","",$data["page"][0]->getProperty("website"));
		$contents 		= str_replace("{cta_link}",'Ga naar <a href="'. $data["page"][0]->getProperty("website") .'">'. $visible_url .'</a>', $data["page"][0]->getProperty("contents") );
		echo $contents;
		
	echo '</div>';	


	
	/*
	 * Devider element
	 */
	if( $data["page"][0]->getProperty("intro") )
	{
		$agenda = '<div class="grid-container">';
			$agenda .= '<div class="grid-x grid-padding-x align-center">';
			
				$agenda .= '<div class="cell small-12 medium-7 text-center">';
					$agenda .= '<h2>'. $data["page"][0]->getProperty("intro") .'</h2>';
				$agenda .= '</div>';
			
			$agenda .= '</div>';
		$agenda .= '</div>';
	
		echo $data["config"]->wrapAsSection($agenda,null,"school-devider");
	}
	

	/*
	 * Agenda
	 */
	if($agenda_school)
	{
		
	
			
		$agenda = '<div class="grid-container">';
			$agenda .= '<div class="grid-x grid-padding-x align-middle">';
			
			
				$agenda .= '<div class="cell small-12 medium-6">';
			
					$agenda .= '<h2><strong>Agenda</strong></h2>';
					$agenda .= '<div class="grid-x grid-padding-x">';
						foreach($agenda_school as $i => $item)
						{	
							$agenda .= '<div class="cell small-12 agenda-item agenda-item__locatie"><div>';
								$agenda .= '<h4>'.  $item->title() .'</h4>';
								$agenda .= '<p class="date-time">'. $item->date("%A %e %B %Y") .', '. $item->time()  .'</p>';	
								$agenda .= '<p class="agenda-item__description">'. $item->description() .'</p>';
							$agenda .= '</div></div>';
						}
					$agenda .= '</div>';

				$agenda .= '</div>';
			
			
				// impression images
				$agenda .= '<div class="cell small-12 medium-6">';
					$agenda .= '<div class="image-impression come-in"><div class="inner">';
						foreach($data["page"][0]->getProperty("impressie") as $img)
						{	
							$agenda .= '<img src="'. $img .'">';
						}
					$agenda .= '</div></div>';
				$agenda .= '</div>';
									
			
			$agenda .= '</div>';
		$agenda .= '</div>';
		
		echo $data["config"]->wrapAsSection($agenda,"agenda-school","agenda-school");
		
	}
	else echo "<br /><br /><br />";
	
	
	/*
	 * School locator
	 */
	require_once 'inc/locator.php';
	
	
	/*
	 * Get Footer
	 */
	require_once 'inc/footer.php';
	


?>