File: /var/www/vhosts/creativefellows.nl/test.creativefellows.nl/figi/bu/views/view.search.php
<?php
/*
* Get Header
*/
$header_top_color = "no-header-transition";
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"]->getBaseUrl() . $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 .= '<h3><a href="'. $page->getProperty("entry_link") .'">'. $page->getProperty("title").'</a></h3>';
$html .= '<p><em>'. $data["config"]->getSiteUrl() . $page->getProperty("entry_link") .'</em></p>';
$html .= $data["config"]->makeIntro( $page->getProperty("contents"),250,true);
$html .= '</div>';
}
$html .= '</div>';
$html .= '</div>';
echo $data["config"]->wrapAsSection($html,"","search-results");
/*
* Get Footer
*/
require_once 'inc/footer.php';
?>