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/vanlierop/pages/page.vanlierop.php
<?php
	
	$cassette->wrap = 1;
	$html 			= "";
	

	
	/*
	 * Page Image
	 */	
	if( !empty($e[0]->foto[0]) && $e[0]->verberg_foto[0] == 0 && count($e) == 1 )
	{
			
		$masthead = '<div class="masthead-image parallax-window">';
			$masthead .= '<figure>' . $cassette->createImage($e[0]->foto[0],"sc",1200,600,2) . '</figure>';
			$masthead .= '<div class="figure-description"><div class="row"><div class="small-12 columns text-right"><figcaption>'. $e[0]->foto_omschrijving .'</figcaption></div></div></div>';
		$masthead .= '</div>';
		
		echo $cassette->wrapAsSection($masthead,"","expanded");
			
	}
	else{
		$html .= '<br /><br />';
	}
		 
		 
	$html .= '<div class="">';
				
		/*
		 * page content
		 */
		$html .= '<div class="medium-12 '. ($e[0]->verberg_menu[0] == 1 ? "large-12" : "large-8") .' columns">'; // id="foo"

		if(count($e) == 1)
		{
		
			$html .= '<h1>'.$e[0]->titel.'</h1>';
			$html .= $e[0]->tekst;
			

			/*
			 * Request offer
			 */
			if(!$e[0]->form_id && $e[0]->verberg_button[0] == 0){
				//$html .= '<hr />';
				$html .= '<ul class="page-cta no-bullet">';
					//$html .= '<li><a href="'. $settings["request_offer_url"] .'" class="button">Inspectie aanvragen</a></li>'; // '. $cassette->dp($section) .' 
					$html .= '<li class="image-impression to-left">';
						
						if(count($e[0]->foto) > 1)
						{
							foreach($e[0]->foto as $i => $img)
							{
								$html .= '<a href="'. $img .'" class="'. ($i == 0 ? "photo " : "") .'thumb" data-lightbox="'. $e[0]->titel .'" data-title="'. $e[0]->titel  .'">'. $cassette->createImage($img,"th",50,50,2) .'</a>'; //'. ($i == 0 ? "photo" : "").'
							}
						}
						
					$html .= '</li>';
				$html .= '</ul>';			
			}
			
			
			/*
			 * contact form
			 */
			if($e[0]->form_id)
			{

				$form_id 		= $e[0]->form_id;
				$hide_header 	= true;
		
				require_once ROOT_DIR . 'pages/sections/section.form.php';
			
				$html .= '<div class="row">'. $return .'</div>';
		
			}	
		
		}
		else{
			
			$html .= '<div class="row small-12 columns"><h1>'. $cassette->outputSafe($post_name) .'</h1></div>';
			
			foreach($e as $i => $item)
			{	
				if($item->doorklik[0] == 1)
				{
					$html .= '<div class="row item-short clearfix"><div>';
						$html .= '<div class="medium-12 columns">';
							$html .= $item->tekst;
						$html .= '</div>';
					$html .= '</div></div>';
				}
				else{
					$article_img = !empty($item->foto[0]) ? $item->foto[0] : "images/van-lierop-square.png";
				
					$html .= '<div class="row item-short clearfix"><div>';
						$html .= '<div class="small-12 columns"><h4><a href="'. $item->entry_link .'">'. $item->titel .'</a></h4></div>';
				
						$html .= '<div class="medium-3 columns">' .$cassette->createImage($article_img, "th",200,200,2).'</div>';
						$html .= '<div class="medium-9 columns">';
							$html .= '<p>'. $cassette->makeIntro($item->tekst,330,false," ...") .'</p>'; // <em>'. strftime('%e %B %Y',strtotime($item->date_created)) . '</em> - 
							$html .= '<p class="more"><a class="read-more" href="'. $item->entry_link .'">Lees verder</a></p>';
						$html .= '</div>';
					$html .= '</div></div>';
				}
			
				
		
			}
			
			/*
			 * Pagination
			 */			
			require_once ROOT_DIR . 'pages/sections/section.pagination.php';
			
			$html .= $pagination_data;
			
		}
			
		$html .= '</div>';
		

		
		
		/*
		 * page sidebar
		 */
		if( $e[0]->verberg_menu[0] == 0 )
		{
			$html .= '<div class="small-12 medium-4 large-3 large-offset-1 columns sidebar show-for-large">'; // data-sticky-container
				$html .= '<div class="sticky">'; // data-sticky data-anchor="foo"
		
					// navigation
					$html .= '<h3>'. ucfirst( $cassette->dp($section) ) .'</h3>';
					$navigation_elements = $cassette->getMainNavigation($section);
			
					foreach($navigation_elements as $element)
					{
						$html .= $element->getNavigationOnPosition(1,$element->getName());
					}
			
					// link to offer page
					$html .= '<p><a href="'. $settings["request_offer_url"] .'" class="button black expanded"><strong>Inspectie aanvraag</strong></a></p>';
			
					// contact us callout
					require_once ROOT_DIR . 'pages/sections/section.sidebar-panel.php'; 
					$html .= $sidebar_panel;
			
				$html .= '</div>';	
			$html .= '</div>';	
		}

		
		
	$html .= '</div>';
	
	echo $cassette->wrapAsSection($html,"","","","data-sticky-container");
	

	/*
	 * Pagination
	 */			
	if($section != "van-lierop") require_once ROOT_DIR . 'pages/sections/section.loopback.php';
	
	
	

?>