Lines Matching refs:files
244 $files = $this->_findimages($data);
288 $files = $this->_findimages($data);
291 if(!count($files)){
300 $this->_createzipfile($files, mediaFN($zip));
313 $this->_description($files,$data,$R);
314 $this->_poster($files,$data,$R);
317 $this->_poster($files,$data,$R);
318 $this->_description($files,$data,$R);
331 $files = array();
335 $files = $this->_loadRSS($data['ns']);
340 search($files,
348 $len = count($files);
349 if (!$len) return $files;
350 if ($len == 1) return $files;
354 $files[$i]['fullsize'] = true;
355 $fname = $files[$i]['file'];
359 $files[$i]['fullsize'] = true;
361 $files[$i]['isimg'] = false;
363 if (!$files[$i]['isimg']) {
365 $files[$i]['isvid'] = true;
366 …$poster = getNS($files[$i]['id']).':'.$matches[1].'_poster_.jpg'; // NOM: così i poster possono so…
367 if(media_exists($poster)) $files[$i]['poster'] = $poster;
370 …array_splice($files, $i, 1); // unset will not reindex the array, so putting the poster on first p…
376 if(!preg_match($data['filter'],noNS($files[$i]['id'])))
377 … unset($files[$i]); // NOM da verificare unset come sopra se si decide di usare filter
381 if ($len<1) return $files;
385 shuffle($files);
388 usort($files,array($this,'_datesort'));
390 usort($files,array($this,'_modsort'));
392 usort($files,array($this,'_titlesort'));
395 if (!empty($data['reverse'])) $files = array_reverse($files);
401 $files = array_slice($files, $offset);
407 $i = array_search($data['posterimg'] ?? [], array_column($files, 'file'));
409 $tmp = $files[$offset];
410 $files[$offset] = $files[$i];
411 $files[$i] = $tmp;
416 $files = array_slice($files,0,$data['limit']);
418 return $files;
429 $files = array();
466 $files[] = array(
481 return $files;
516 function _lightgallery($files,$data,$pgid){ argument
526 foreach($files as $img){
539 function _poster($files,$data,$R){ argument
546 $img = $files[0];
585 $R->doc .= $this->_lightgallery($files,$data,$pgid);
605 protected function _description($files,$data,$R){ argument
608 foreach ($files as $file){
939 function _createzipfile($files,$zipfile,$overwrite = false) { argument
942 if(count($files)) {
949 foreach($files as $img) {