{namespace v=FluidTYPO3\Vhs\ViewHelpers}
{namespace ot=Opentalent\OtTemplating\ViewHelpers}

<f:comment><!-- Donors --></f:comment>

<div class="ot-box ot-donors">
    <ot:donors.getAll as="donors"
                      organizationId="{settings.organizationId}"
                      fromParents="{fromParents}">

        <f:if condition="{donors -> f:count()} > 0">
            <div class="donors-panel">
                <header>
                    <f:if condition="{fromParents}==1">
                        <f:then>
                            <h3>Partenaires de notre réseau</h3>
                        </f:then>
                        <f:else>
                            <h3>Nos partenaires</h3>
                        </f:else>
                    </f:if>

                </header>
                <div class="box-content">
                    <div class="donor-list {f:if(condition: '{settings.staticDonors}==0', then: 'carousel')}">
                        <f:for each="{donors}" as="donor">
                            <div class="donor-card">
                                <img src="{donor.logo}" alt="{donor.name}"/>
                            </div>
                        </f:for>
                    </div>
                </div>
            </div>
        </f:if>
    </ot:donors.getAll>
</div>
