HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/tops.komma.pro/wwwroot/pages/nl/includes/uses.xml.php
<?php
/**
 * uses.xml.php
 * Created by Komma Mediadesign.
 * Author: mike
 * Date: 16/04/14
 */



function getUses($uses = array('hospitals','houses','offices','paint_shops','schools','sports','shipping_aviation'))
{
    // Get Language
    $Translator = new Translator(URL_LANG);

    $lang = $Translator->get();
    $pages = $Translator->getPages();

    $output = '';
    $output .= '<title>Toepassingen</title>';

    foreach($uses as $use)
    {
        $label = ucwords($pages[$use]);
        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;
}