{namespace neos=TYPO3\Neos\ViewHelpers}
{namespace media=TYPO3\Media\ViewHelpers}

<f:if condition="{hasParent}">
	<f:then>
		<div>
			<div class="col-md-12">
				<blockquote class="testimonial">
					{neos:contentElement.editable(property: 'text', tag: 'div')}
				</blockquote>
				<div class="testimonial-arrow-down"></div>
				<div class="testimonial-author">
					<f:if condition="{image}">
						<f:then>
							<div class="img-thumbnail img-thumbnail-small">
								<media:image asset="{image}" alt="{alternativeText}" title="{name}" maximumWidth="{maximumWidth}" maximumHeight="{maximumHeight}" />
							</div>
						</f:then>
						<f:else>
							<f:if condition="{node.context.workspace.name} != 'live'">
								<div class="img-thumbnail img-thumbnail-small">
									<img src="{f:uri.resource(package: 'TYPO3.Neos', path: 'Images/dummy-image.svg')}" title="Dummy image" alt="Dummy image" />
								</div>
							</f:if>
						</f:else>
					</f:if>
					<p>
						{neos:contentElement.editable(property: 'alternativeText', tag: 'strong')}
						{neos:contentElement.editable(property: 'title', tag: 'span')}
					</p>
				</div>
			</div>
		</div>
	</f:then>
	<f:else>
		<div class="row testimony-item">
			<div class="col-md-12">
				<blockquote class="testimonial">
					{neos:contentElement.editable(property: 'text', tag: 'div')}
				</blockquote>
				<div class="testimonial-arrow-down"></div>
				<div class="testimonial-author">
					<f:if condition="{image}">
						<f:then>
							<div class="img-thumbnail img-thumbnail-small">
								<media:image asset="{image}" alt="{alternativeText}" title="{name}" maximumWidth="{maximumWidth}" maximumHeight="{maximumHeight}" />
							</div>
						</f:then>
						<f:else>
							<f:if condition="{node.context.workspace.name} != 'live'">
								<div class="img-thumbnail img-thumbnail-small">
									<img src="{f:uri.resource(package: 'TYPO3.Neos', path: 'Images/dummy-image.svg')}" title="Dummy image" alt="Dummy image" />
								</div>
							</f:if>
						</f:else>
					</f:if>
					<p>
						{neos:contentElement.editable(property: 'alternativeText', tag: 'strong')}
						{neos:contentElement.editable(property: 'title', tag: 'span')}
					</p>
				</div>
			</div>
		</div>
	</f:else>
</f:if>
