function getFileLinks(&$markerArray, $row) { $files_stdWrap = t3lib_div::trimExplode('|', $this->conf['newsFiles_stdWrap.']['wrap']); $markerArray['###TEXT_FILES###'] = $files_stdWrap[0] . $this->local_cObj->stdWrap($this->pi_getLL('textFiles'), $this->conf['newsFilesHeader_stdWrap.']); $fileArr = explode(',', $row['news_files']); $filelinks = ''; $rss2Enclousres = ''; foreach ($fileArr as $val) { // fills the marker ###FILE_LINK### with the links to the atached files $filelinks .= $this->local_cObj->filelink($val, $this->conf['newsFiles.']); // <enclosure> support for RSS 2.0 if ($this->theCode == 'XML') { $path = trim($this->conf['newsFiles.']['path']); $theFile = $path . $val; if (@is_file($theFile)) { $fileURL = $this->config['siteUrl'] . $theFile; $fileSize = filesize($theFile); $fileMimeType = $this->getMimeTypeByHttpRequest($fileURL); $rss2Enclousres .= '<enclosure url="' . $fileURL . '" '; $rss2Enclousres .= 'length ="' . $fileSize . '" '; $rss2Enclousres .= 'type="' . $fileMimeType . '" />' . "\n\t\t\t"; } } } $markerArray['###FILE_LINK###'] = $filelinks . $files_stdWrap[1]; $markerArray['###NEWS_RSS2_ENCLOSURES###'] = trim($rss2Enclousres); }