6 $totalsize += $file['size']; if ($file['type'] === 'dir') { $totaldirs++; } else { $totalfiles++; } // the bigger the file, the darker the shade of grey; megabytes*2 $simple_size_color = intval(160-$file['size']/(1024*1024)*2); if($simple_size_color<0) $simple_size_color = 0; $relative_modified_date = OCP\relative_modified_date($file['mtime']); // the older the file, the brighter the shade of grey; days*14 $relative_date_color = round((time()-$file['mtime'])/60/60/24*14); if($relative_date_color>160) $relative_date_color = 160; $name = \OCP\Util::encodePath($file['name']); $directory = \OCP\Util::encodePath($file['directory']); ?> ' data-permissions=''> style="background-image:url()" style="background-image:url()" class="preview-icon" style="background-image:url()" style="background-image:url()" class="preview-icon" style="background-image:url()" > t('directory')); } else { p($l->t('directories')); } } if ($totaldirs !== 0 && $totalfiles !== 0) { p(' & '); } if ($totalfiles !== 0) { p($totalfiles.' '); if ($totalfiles === 1) { p($l->t('file')); } else { p($l->t('files')); } } ?>