Skip to content

Commit

Permalink
Fixed #164, GIF Banner und Banner in Originalgroesse
Browse files Browse the repository at this point in the history
  • Loading branch information
BugBuster1701 committed Apr 15, 2015
1 parent 78a93bb commit 33c64c4
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions classes/BannerHelper.php
Expand Up @@ -716,7 +716,14 @@ protected function getSingleBannerFirst()
$arrImageSize[1] = $arrImageSizenNew[1];
$arrImageSize[3] = ' height="'.$arrImageSizenNew[1].'" width="'.$arrImageSizenNew[0].'"';

$picture = \Picture::create($this->urlEncode($objFile->path), array($arrImageSizenNew[0], $arrImageSizenNew[1], $arrNewSizeValues[2]))->getTemplateData();
//fake the Picture::create
$picture['img'] = array
(
'src' => specialchars(ampersand($FileSrc)),
'width' => $arrImageSizenNew[0],
'height' => $arrImageSizenNew[1],
'srcset' => specialchars(ampersand($FileSrc))
);
$picture['alt'] = specialchars(ampersand($objBanners->banner_name));
$picture['title'] = specialchars(ampersand($objBanners->banner_comment));

Expand Down Expand Up @@ -1096,7 +1103,14 @@ protected function getSingleBanner()
$arrImageSize[1] = $arrImageSizenNew[1];
$arrImageSize[3] = ' height="'.$arrImageSizenNew[1].'" width="'.$arrImageSizenNew[0].'"';

$picture = \Picture::create($this->urlEncode($objFile->path), array($arrImageSizenNew[0], $arrImageSizenNew[1], $arrNewSizeValues[2]))->getTemplateData();
//fake the Picture::create
$picture['img'] = array
(
'src' => specialchars(ampersand($FileSrc)),
'width' => $arrImageSizenNew[0],
'height' => $arrImageSizenNew[1],
'srcset' => specialchars(ampersand($FileSrc))
);
$picture['alt'] = specialchars(ampersand($objBanners->banner_name));
$picture['title'] = specialchars(ampersand($objBanners->banner_comment));

Expand Down Expand Up @@ -1490,7 +1504,14 @@ protected function getMultiBanner()
$arrImageSize[1] = $arrImageSizenNew[1];
$arrImageSize[3] = ' height="'.$arrImageSizenNew[1].'" width="'.$arrImageSizenNew[0].'"';

$picture = \Picture::create($this->urlEncode($objFile->path), array($arrImageSizenNew[0], $arrImageSizenNew[1], $arrNewSizeValues[2]))->getTemplateData();
//fake the Picture::create
$picture['img'] = array
(
'src' => specialchars(ampersand($FileSrc)),
'width' => $arrImageSizenNew[0],
'height' => $arrImageSizenNew[1],
'srcset' => specialchars(ampersand($FileSrc))
);
$picture['alt'] = specialchars(ampersand($objBanners->banner_name));
$picture['title'] = specialchars(ampersand($objBanners->banner_comment));

Expand Down

0 comments on commit 33c64c4

Please sign in to comment.