lang = $tx['filebrowser']; } function folderList($folders) { global $tx, $plugin_tx, $adm; // $title = $this->baseLink === 'images' ? 'Bilder' : 'Downloads'; if($adm == '') { $title = ucfirst($tx['title'][$this->baseLink]) ? $tx['title'][$this->baseLink] : ucfirst($tx['title']['userfiles'] . ' ' . $this->translate('folder')); // für Editorbrowser } else { $title = ucfirst($tx['title'][$this->baseLink]) ? $tx['title']['userfiles'] : ucfirst($tx['title']['userfiles'] . ' ' . $this->translate('folder')); // für CMS Browser } $html = '
' . round(filesize($this->basePath . $this->currentDirectory . $file) / 1024, 0) . ' kb'; if(preg_match('/.jpg|.jpeg|.png|.gif/i',$file)) { $html .= ' / ' . @$image[0] . ' x ' . @$image[1]; } $html .= '
' . round(filesize($this->basePath . $this->currentDirectory . $file) / 1024, 0) . ' kb'; if(preg_match('/.jpg|.jpeg|.png|.gif/i',$file)) { $html .= ' / ' . @$image[0] . ' x ' . @$image[1]; } $html .= '
'; $html .= '' . $this->translate($message, $args) . '
'; } function message($message) { $this->message .= '' . $message . '
'; } function translate($string = '', $args = null) { if (strlen($string) === 0) { return ''; } $html = ''; if (!isset($this->lang[$string])) { $html = '{' . $string . '}'; } else { $html = $this->lang[$string]; } // if (is_array($args)) { array_unshift($args, $html); return call_user_func_array('sprintf', $args); } if (is_string($args)) { $html = sprintf($html, $args); return $html; } return $html; } } ?>