File: D:/HostingSpaces/SBogers10/tops.komma.pro/wwwroot/pages/includes/uses.php
<?php
/**
* uses.xml.php
* Created by Komma Mediadesign.
* Author: mike
* Date: 16/04/14
*/
function getUses($uses = array('hospitals','houses','offices','spray_booths','schools','sports','shipping_aviation'))
{
// Get Language
$Translator = new Translator(URL_LANG);
$lang = $Translator->get();
$pages = $Translator->getPages();
$title = $lang['uses'];
$output = '';
$output .= '<title>' . $title . '</title>';
foreach($uses as $use)
{
$label = str_replace('-',' ',$pages[$use]);
$label = ucwords($label);
if(isset($lang[$use])) $label = $lang[$use];
$output .= '<li>
<img src="/public/images/static/uses/thumbs/' . $use . '.jpg" alt="' . $label. '" />
<label>' . $label. '</label>
</li>';
}
return $output;
}