File: /var/www/vhosts/creativefellows.nl/test.creativefellows.nl/ergatis/pages/page.medewerkers copy.php
<?php
/*
* Qutes page
*/
require_once ROOT_DIR . 'pages/sections/section.qoutes.php';
/*
* Breadcrumbs
*/
require_once ROOT_DIR . 'pages/sections/section.breadcrumbs.php';
/*
* Contents
*/
$html = '<div class="col17 sub-grid">';
$categories = $cassette->run("SELECT * FROM categories WHERE sectie_id = 10 ORDER BY position ASC");
foreach($categories as $c)
{
$mdwrks = $cassette->entriesInCategory($c["category_id"]);
$html .= '<div class="col24 employee-group"><h2 class="onderdeel">'.$c["naam"].'</h2>';
$html .= '<ul class="medewerkers">';
foreach($mdwrks as $mw)
{
$img_url = str_replace("http://localhost:8888/cassette3_db_select/","https://www.ergatis.nl/",$mw->foto[0]);
$html .= '<li class="medewerker">';
$html .= '<span class="profiel-foto">';
if(!empty($mw->foto[0])) $html .= $cassette->createImage($img_url,"pf",50,50,2,'',$mw->naam.' - Ergatis');
else $html .= '<img src="images/ergatis-logo-vierkant.png" class="default-img" alt="'.$mw->naam.' - Ergatis">';
$html .= '</span>';
$html .= "<strong>".$mw->naam."</strong>";
$html .= "<em>".ucfirst($mw->functie)."</em>";
$html .= "</li>";
}
$html .= '</ul></div>';
}
/*
* Downloads
*/
$html .= $cassette->getFilesAsList($e[0]->downloads,'<h3>Downloads</h3>',"downloads","col24");
/*
* Vervolgacties
*/
require_once ROOT_DIR . 'pages/sections/section.vervolgacties.php';
$html .= $acties;
/*
* Contact form
*/
if($e[0]->form_id)
{
$form_id = $e[0]->form_id;
$hide_header = false;
require 'sections/section.form.php';
$html .= '<div class="col24">'. $return .'</div>';
}
$html .= '</div>';
/*
* Sidebar
*/
require_once ROOT_DIR . 'pages/sections/section.sidebar.php';
$html .= '<div class="col6 offset1 sidebar">';
$html .= $sidebar;
/*
* custom sidebar
*/
if($e[0]->sidebar) $html.= '<div class="custom-sidebar"><div class="custom-sidebar-wrapper">'. $e[0]->sidebar .'</div></div>';
else{
require_once ROOT_DIR . 'pages/sections/section.fdgazelle.php';
}
$html .= '</div>';
/*
* Output HTML
*/
echo $cassette->wrapAsSection($html);
/*
* Two column details + vervolgacties
*/
require_once ROOT_DIR . "pages/sections/section.related_info.php";
?>