prototype(Newland.CityTheme:PartnerLogo) < prototype(Neos.Neos:Content) {
    templatePath = 'resource://Newland.CityTheme/Private/Templates/NodeTypes/PartnerLogo.html'

    link = ${node.context.inBackend ? '#0' : q(node).property('link')}
    link.@process.convertUris = Neos.Neos:ConvertUris

    linkTarget = ${node.context.inBackend ? '_self' : '_blank'}
    linkTarget.@if.external = ${String.indexOf(q(node).property('link'), 'node://') == -1}

    alternativeText = Neos.Fusion:Case {
        isImagePropertyCaption {
            condition = ${!String.isBlank(q(node).property('image').caption)}
            renderer = ${String.trim(String.stripTags(q(node).property('image').caption))}
        }
        fallback {
            condition = TRUE
            renderer = ${q(node).property('image').title}
        }
    }
}
