File: /var/www/vhosts/creativefellows.nl/test.creativefellows.nl/geomil/views/view.pagination_default.php
<?php
/*
* Get Header
*/
require_once 'inc/header.php';
/*
* Categories
*/
///$categories = $data["cassette"]->getCategories($data["section_name"]);
//$page_intro = $categories ? $categories[0]->getName() : $data["section_name"];
$html = '<div class="grid-container">';
$html .= '<div class="grid-x grid-padding-x ">';
$html .= '<div class="small-12 large-12 cell text-center">';
$html .= '<h1>'. ucfirst($cassette->dp($data["category_name"])) .'</h1>';
$html .= '</div>';
$html .= '<div class="small-12 large-12 cell">';
$html .= '<div class="grid-x grid-padding-x align-center" data-equalizer>';
foreach($data["page"] as $page)
{
/* $html .= '<div class="grid-x grid-padding-x entry-row align-middle">';
$html .= '<div class="small-12 large-8 cell">';
$html .= '<h2><a href="'. $page->getProperty("entry_link") .'">'. $page->getProperty("title") .'</a></h2>';
$html .= '<p>';
$html .= $data["config"]->makeIntro($page->getProperty("contents"),400,false,"... ") .'<a href="'. $page->getProperty("entry_link") .'" class="overlay-link">Lees verder</a>';
$html .= '</p>';
$html .= '</div>';
if($page->getProperty("image"))
{
$html .= '<div class="small-12 large-3 large-offset-1 cell image">';
$html .= '<div class="wrapper"><a href="'. $page->getProperty("entry_link") .'" class="inner">'. $page->getProperty("image","img") .'</a></div>';
$html .= '</div>';
}
$html .= '</div>';*/
$html .= '<div class="cell small-6 medium-6 large-3 text-center">';
$html .= '<div class="card geomil-card" data-equalizer-watch>';
$html .= '<div class="card-image"><div class="inner">'. $page->getProperty("image","img") .'</div></div>';
$html .= '<div class="card-section">';
$html .= '<h3><a href="'. $page->getProperty("entry_link") .'">'. $page->getProperty("entry_link_label") .'</a></h3>';
//$html .= '<p class="">'. $page->getIntroduction("contents",140,false) .'<a href="'. $page->getProperty("entry_link") .'" class="overlay-link">Lees verder</a></p>';
$html .= '<p class="">'. $page->getProperty("lead") .'</p>';
$html .= '<p><a href="'. $page->getProperty("entry_link") .'" class="overlay-link">Lees verder</a></p>';
$html .= '</div>';
$html .= '</div>';
$html .= '</div>';
}
$html .= '</div>';
$html .= '</div>';
$html .= '</div>';
$html .= '</div>';
// output
echo $data["config"]->wrapAsSection($html,"","space-1");
/*
* Get in touch
*/
require_once 'inc/get-in-touch.php';
/*
* Get Footer
*/
require_once 'inc/footer.php';
?>