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.search.php
<?php
		
		
	/*
	 * Get Header
	 */
	$show_header_spacer = false;
	$header_class = "";
	require_once 'inc/header.php';
					

	/*
	 * Page content 
	 */
	$html = '<div class="grid-container">';
		$html .= '<div class="grid-x grid-padding-x align-center">';
		
			/*
			 * Search Form
			 */
			$html .= '<div class="small-12 medium-8 cell text-center">';
				$html .= '<form class="form search" action="'. $data["config"]->getLinkBase() .'search" method="get">';
				
					$html .= '<h1>'. $data["config"]->getLabel("search_header") .'</h1>';
					$html .= '<div class="input-group">';
						$html .= '<input type="text" name="q" value="'. $data["config"]->outputSafe($_GET["q"]) .'" id="q" class="input autocomplete" placeholder=""/>';
						$html .= '<div class="input-group-button">';
							$html .= '<button type="submit" class="button primary">'. $data["config"]->getLabel("search_button") .'</button>';
						$html .= '</div>';
					$html .= '</div>';
					
				$html .= '</form>';
			$html .= '</div>';
		
			/*
			 * Search entries
			 */
			foreach($data["page"] as $page)
			{

				$html .= '<div class="small-12 cell result-row">';
					$html .= '<a href="'. $page->getProperty("entry_link") .'">';
						$html .= '<p><em>'. $data["config"]->getSiteName() . $page->getProperty("entry_link") .'</em></p>';

						$html .= '<h4>'. $page->getProperty("title").'</h4>';
						$html .= $data["config"]->makeIntro( $page->getProperty("contents"),250,true);
					$html .= '</a>';
				$html .= '</div>';
		
			}
	
		$html .= '</div>';
	$html .= '</div>';
	
	echo $data["config"]->wrapAsSection($html,"page-details","search-results");


	/*
	 * Get Footer
	 */
	require_once 'inc/footer.php';
	
?>