File: D:/HostingSpaces/SBogers10/promic.komma-mediadesign.nl/wwwroot/app/views/partials/employeesList.php
<?php
// Contains all configuration for employees
include_once $_SERVER['DOCUMENT_ROOT'] . '/app/config/employees.php';
// Language variable should be set
if(isset($taalVar))
{
$output = '';
$count = 0;
foreach($employees as $key => $employee)
{
$break = false;
// First enter is after 3 employees
if($count == 3) $break = true;
if(($count-3) % 4 == 0) $break = true;
$output .= '<li id="' . $key . '"';
if($break) $output .= ' class="leftSide"';
$output .= '>';
if($count == 0) $output .= '<div class="shadowMiddle"></div>';
if($break) $output .= '<div class="shadow"></div>';
$output .= '<div class="content">';
$output .= '<div class="up"></div>';
$output .= '<div class="hover">';
$output .= '<div class="citaat">“' . $employee['quote'][$taalVar] . '”</div>';
$output .= '</div>';
$output .= '</div>';
$output .= '<div class="info">';
$output .= '<span class="name">' . $employee['name'] . '</span>';
$output .= '<span class="function">' . $employee['function'][$taalVar] . '</span>';
$output .= '</div>';
$output .= '</li>';
$count++;
}
echo $output;
}