Document.html 2.48 KB
Newer Older
Thomas Löffler's avatar
Thomas Löffler committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
	xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
	xmlns:s="http://typo3.org/ns/ApacheSolrForTypo3/Solr/ViewHelpers">

<f:section name="Document">

	<li class="card results-entry mb-3 col-md-6{f:if(condition:document.isElevated, then: ' results-elevated')}"
		data-document-score="{document.score}"
		data-document-id="{document.id}"
		data-document-url="{document.url}"
	>
		<f:if condition="{document.isElevated}">
			<div class="results-elevated-label">
				<s:translate key="sponsored" />
			</div>
		</f:if>
		<div class="card-header">
			<div class="align-items-center">
				<h2 class="card-title">
					<f:if condition="{document.extensionIcon_stringS}">
						<img class="ter-ext-icon" alt="{document.title}" src="{document.extensionIcon_stringS}" height="16" width="16">
					</f:if>
					<a href="{s:uri.result.addSearchWordList(url:document.url, searchWords:resultSet.usedQuery.keywords)}">{document.title}</a>
				</h2>
				<h4 class="card-subtitle text-muted mb-2">
					{document.extensionKey_stringS} /
					<span class="ter-ext-state ter-ext-state-{document.extensionState_stringS}">{document.extensionState_stringS}</span>
				</h4>
				<p>
					<f:format.crop maxCharacters="180" respectWordBoundaries="true">
						{s:document.highlightResult(resultSet:resultSet, document:document, fieldName:'content')}
					</f:format.crop>
				</p>
				<f:comment>
					<small class="text-muted">Updated:
						<f:format.date format="m/d/Y H:i">@{document.extensionLastUpload_intS}</f:format.date>
						by
						<f:format.crop maxCharacters="50">{document.author}</f:format.crop>
					</small>
				</f:comment>
				<h5>Works with TYPO3</h5>
				<ul class="list-inline">
					<li class="list-inline-item btn btn-{f:if(condition:'{document.supports6_boolS}',then:'success',else:'secondary')}">6.2 LTS</li>
					<li class="list-inline-item btn btn-{f:if(condition:'{document.supports7_boolS}',then:'success',else:'secondary')}">7 LTS</li>
					<li class="list-inline-item btn btn-{f:if(condition:'{document.supports8_boolS}',then:'success',else:'secondary')}">8 LTS</li>
					<li class="list-inline-item btn btn-{f:if(condition:'{document.supports9_boolS}',then:'success',else:'secondary')}">9</li>
				</ul>
			</div>
		</div>
		<div class="">
			<a class="btn btn-primary btn-block btn-lg" href="{document.extensionDownloadZipUrl_stringS}">
				<i class="fa fa-download"></i>
				Download version {document.extensionVersion_stringS} as ZIP
			</a>
		</div>
	</li>
</f:section>