30 public function render($conf = array()) {
32 $filename = isset($conf[
'file.']) ? $this->cObj->stdWrap($conf[
'file'], $conf[
'file.']) : $conf[
'file'];
33 $incFile =
$GLOBALS[
'TSFE']->tmpl->getFileName($filename);
37 $content =
$GLOBALS[
'TSFE']->tmpl->fileContent($incFile);
42 $width = isset($conf[
'width.']) ? $this->cObj->stdWrap($conf[
'width'], $conf[
'width.']) : $conf[
'width'];
46 $height = isset($conf[
'height.']) ? $this->cObj->stdWrap($conf[
'height'], $conf[
'height.']) : $conf[
'height'];
50 $parArray[
'src'] =
'src="' .
$GLOBALS[
'TSFE']->absRefPrefix . $incFile .
'"';
55 $parArray[
'width'] =
'width="' . $width .
'"';
56 $parArray[
'height'] =
'height="' . $height .
'"';
59 $parArray[
'quality'] =
'quality="high"';
60 $parArray[
'width'] =
'width="' . $width .
'"';
61 $parArray[
'height'] =
'height="' . $height .
'"';
64 $parArray[
'width'] =
'width="' . $width .
'"';
65 $parArray[
'height'] =
'height="' . $height .
'"';
68 $params = isset($conf[
'params.']) ? $this->cObj->stdWrap($conf[
'params'], $conf[
'params.']) : $conf[
'params'];
69 $lines = explode(LF, $params);
70 foreach ($lines as $l) {
71 $parts = explode(
'=', $l);
72 $parameter = strtolower(trim($parts[0]));
73 $value = trim($parts[1]);
74 if ((
string) $value !=
'') {
75 $parArray[$parameter] = $parameter .
'="' . htmlspecialchars($value) .
'"';
77 unset($parArray[$parameter]);
80 if ($fileinfo[
'fileext'] ==
'class') {
81 unset($parArray[
'src']);
82 $parArray[
'code'] =
'code="' . htmlspecialchars($fileinfo[
'file']) .
'"';
83 $parArray[
'codebase'] =
'codebase="' . htmlspecialchars($fileinfo[
'path']) .
'"';
84 $content =
'<applet ' . implode(
' ', $parArray) .
'></applet>';
86 $content =
'<embed ' . implode(
' ', $parArray) .
'></embed>';
90 if (isset($conf[
'stdWrap.'])) {
91 $content = $this->cObj->stdWrap($content, $conf[
'stdWrap.']);
static split_fileref($fileNameWithPath)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
static inList($list, $item)