18 use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper;
37 parent::initializeArguments();
38 $this->registerArgument(
'extensionkey',
'string',
'',
true);
39 $this->registerArgument(
'width',
'int',
'width of the image');
40 $this->registerArgument(
'height',
'int',
'height of the image');
41 $this->registerUniversalTagAttributes();
42 $this->registerTagAttribute(
'alt',
'string',
'Specifies an alternate text for an image',
false);
52 $extensionKey = $this->arguments[
'extensionkey'];
53 $width = $this->arguments[
'width'];
54 $height = $this->arguments[
'height'];
62 $this->tag->addAttribute(
'width', (
int)$width);
65 $this->tag->addAttribute(
'height', (
int)$height);
67 $this->tag->addAttribute(
'src', $uri);
68 $content = $this->tag->render();
83 $paths[] =
'EXT:' . $extensionKey .
'/Resources/Public/Images/Distribution.svg';
84 $paths[] =
'EXT:' . $extensionKey .
'/Resources/Public/Images/Distribution.png';
85 $paths[] =
'EXT:extensionmanager/Resources/Public/Images/Distribution.svg';
87 foreach ($paths as $path) {
88 $absFileName = GeneralUtility::getFileAbsFileName($path);
89 if (file_exists($absFileName)) {
105 $uri = GeneralUtility::getFileAbsFileName($src);
106 if ($uri !==
'' && !file_exists($uri)) {