Commit 255b65b9 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

[TASK] Change model and template to use only one logo

parent 86387c61
Pipeline #12066 passed with stages
in 1 minute and 47 seconds
......@@ -44,7 +44,7 @@ class Banner extends AbstractEntity
/**
* Logo
*
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference>
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
*/
protected $logo;
......@@ -95,7 +95,7 @@ class Banner extends AbstractEntity
}
/**
* @param ObjectStorage $logo
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $logo
*/
public function setLogo(ObjectStorage $logo)
{
......@@ -105,7 +105,7 @@ class Banner extends AbstractEntity
/**
* Get logo
*
* @return ObjectStorage
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference
*/
public function getLogo()
{
......
......@@ -9,13 +9,8 @@
<f:for each="{banners}" as="banner">
<li>
<f:link.external class="t3js-banner" uri="{f:uri.external(uri: banner.link)}" target="_blank" additionalAttributes="{data-uid: banner.uid, rel: settings.linkAttributeRel}">
<f:if condition="{banner.member.0.logo}">
<f:then>
<f:image class="membership-logo" image="{banner.member.0.logo}" alt="{banner.name}" maxWidth="150" />
</f:then>
<f:else>
<f:image image="{banner.logo.0}" alt="{banner.name}" maxWidth="150" />
</f:else>
<f:if condition="{banner.logo}">
<f:image image="{banner.logo}" alt="{banner.name}" maxWidth="150" />
</f:if>
</f:link.external>
</li>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment