/**
 * Get HTML for a set of files.
 *
 * @package Omeka\Function\View\File
 * @uses Omeka_View_Helper_FileMarkup::fileMarkup()
 * @param File $files A file record or an array of File records to display.
 * @param array $props Properties to customize display for different file types.
 * @param array $wrapperAttributes Attributes HTML attributes for the div that
 * wraps each displayed file. If empty or null, this will not wrap the displayed
 * file in a div.
 * @return string HTML
 */
function file_markup($files, array $props = array(), $wrapperAttributes = array('class' => 'item-file'))
{
    if (!is_array($files)) {
        $files = array($files);
    }
    $helper = new Omeka_View_Helper_FileMarkup();
    $output = '';
    foreach ($files as $file) {
        $output .= $helper->fileMarkup($file, $props, $wrapperAttributes);
    }
    return $output;
}