. * */ /* Todo: enable fullscreen presentation */ namespace OCA_Impress; class Storage { public static function getPresentations() { $presentations=array(); $list=\OC_FileCache::searchByMime('text','impress' ); foreach($list as $l) { $info=pathinfo($l); $size=\OC_Filesystem::filesize($l); $mtime=\OC_Filesystem::filemtime($l); $entry=array('url'=>$l,'name'=>$info['filename'],'size'=>$size,'mtime'=>$mtime); $presentations[]=$entry; } return $presentations; } public static function showHeader($title){ echo(' '.$title.'

Your browser does not support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.

'); } public static function showFooter(){ echo('

Make fullscreen and use a spacebar or arrow keys to navigate

'); } } ?>