{namespace media=TYPO3\Media\ViewHelpers}

<li>
	<f:if condition="{image}">
		<f:then>
			<f:if condition="{link}">
				<f:then>
					<f:if condition="{node.context.workspace.name} != 'live'">
						<f:then>
							<media:image asset="{image}" alt="{alternativeText}" title="{title}" maximumWidth="{imageWidth}" maximumHeight="{imageHeight}" allowCropping="{allowCropping}" allowUpScaling="{allowUpScaling}" />
						</f:then>
						<f:else>
							<a href="{link}"><media:image asset="{image}" alt="{alternativeText}" title="{title}" maximumWidth="{imageWidth}" maximumHeight="{imageHeight}" allowCropping="{allowCropping}" allowUpScaling="{allowUpScaling}" /></a>
						</f:else>
					</f:if>
				</f:then>
				<f:else>
					<media:image asset="{image}" alt="{alternativeText}" title="{title}" maximumWidth="{imageWidth}" maximumHeight="{imageHeight}" allowCropping="{allowCropping}" allowUpScaling="{allowUpScaling}" />
				</f:else>
			</f:if>
		</f:then>
		<f:else>
			<f:if condition="{link}">
				<f:then>
					<f:if condition="{node.context.workspace.name} != 'live'">
						<f:then>
							<img src="{f:uri.resource(package: 'TYPO3.Neos', path: 'Images/dummy-image.svg')}" title="Dummy image" alt="Dummy image" class="neos-handle" width="{imageWidth}" height="{imageHeight}" />
						</f:then>
						<f:else>
							<a href="{link}"><img src="{f:uri.resource(package: 'TYPO3.Neos', path: 'Images/dummy-image.svg')}" title="Dummy image" alt="Dummy image" class="neos-handle" width="{imageWidth}" height="{imageHeight}" /></a>
						</f:else>
					</f:if>
				</f:then>
				<f:else>
					<img src="{f:uri.resource(package: 'TYPO3.Neos', path: 'Images/dummy-image.svg')}" title="Dummy image" alt="Dummy image" class="neos-handle" width="{imageWidth}" height="{imageHeight}" />
				</f:else>
			</f:if>
		</f:else>
	</f:if>
</li>