Show.html 8.43 KB
Newer Older
1
<html xmlns:terfe2="http://typo3.org/ns/T3o/TerFe2/ViewHelpers">
2

3
<f:layout name="Default" />
4
5

<f:section name="main">
6
7
8
9
10
11
12
13
14
15
	<f:if condition="{extension}">
		<f:then>
			<header class="mt-3">
				<terfe2:extensionIcon version="{extension.lastVersion}" alt="{extension.lastVersion.title}" class="ter-ext-icon" />
				<h1>
					{extension.lastVersion.title}
					<small class="text-muted">{extension.extKey} / <span class="ter-ext-state-{extension.lastVersion.state}">{extension.lastVersion.state}</span>
					</small>
				</h1>
			</header>
speedprogs_de's avatar
speedprogs_de committed
16

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
			<f:if condition="{extension.lastVersion.reviewState} == -2">
				<div class="alert alert-warning" role="alert">
					<h4 class="alert-header">
						Outdated extension
					</h4>
					<p>
						This extension supports none of the currently supported TYPO3 core versions or was
						uploaded before the release of the oldest TYPO3 core version.<br />
						It may no longer be maintained or supported by the extension owner.<br />
						Please be careful using this extension for your up-to-date TYPO3 instance.<br /><br />
					</p>
					<p>
						If you are sure this extension is flagged as outdated by mistake, please contact the
						<f:link.page pageUid="90">t3o team</f:link.page>
					</p>
				</div>
			</f:if>
34

35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
			<div class="row mb-3">
				<div class="col-md-8">
					<p>{extension.lastVersion.description}</p>
				</div>
				<div class="col-md-4">
					<f:if condition="{extension.lastVersion.reviewState} != -1">
						<div class="btn-group mb-3">
							<button type="button" class="btn btn-primary pull-right dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
								Install {extension.extKey} via
							</button>
							<div class="dropdown-menu">
								<a class="dropdown-item" data-parent="#collapse-container" data-toggle="collapse" data-target="#install-zip">ZIP file</a>
								<a class="dropdown-item" data-parent="#collapse-container" data-toggle="collapse" data-target="#install-composer">composer</a>
								<a class="dropdown-item" data-parent="#collapse-container" data-toggle="collapse" data-target="#install-t3x">T3X file</a>
							</div>
						</div>
					</f:if>
				</div>
			</div>
			<div class="row mb-3 justify-content-center">
				<div id="collapse-container">
					<div class="collapse" id="install-zip">
						<div class="card card-block bgWhite">
							<h4>Install {extension.extKey} via ZIP file</h4>
							<ol>
								<li>
									<f:link.action class="" controller="Extension" action="download"
										arguments="{extension : extension, versionString : extension.lastVersion.versionString, format : 'zip'}">
										Download ZIP file
									</f:link.action>
								</li>
								<li>
									Log into your TYPO3 backend
								</li>
								<li>
									Go to Extension Manager module
								</li>
								<li>
									Press the upload button on the top bar
								</li>
								<li>
									Select the ZIP file and upload it. If you want to overwrite an existing extension installation, activate the
									checkbox.
								</li>
							</ol>
						</div>
					</div>
					<div class="collapse" id="install-composer">
						<div class="card card-block bgWhite">
							<h4>Install {extension.extKey} via composer command</h4>
							<ol>
								<li>
									Go to your folder where the root composer.json file is located
								</li>
								<li>
									Type: <code>composer require {extension.composerPackageName}</code> to get the latest version that runs on
									your TYPO3 version.
								</li>
							</ol>
						</div>
					</div>
					<div class="collapse" id="install-t3x">
						<div class="card card-block bgWhite">
							<h4>Install {extension.extKey} via T3X file</h4>
							<ol>
								<li>
									<f:link.action class="" controller="Extension" action="download" arguments="{extension : extension, versionString : extension.lastVersion.versionString, format : 't3x'}">
										Download T3X file
									</f:link.action>
								</li>
								<li>
									Log into your TYPO3 backend
								</li>
								<li>
									Go to Extension Manager module
								</li>
								<li>
									Press the upload button on the top bar
								</li>
								<li>
									Select the T3X file and upload it. If you want to overwrite an existing extension installation, activate the checkbox.
								</li>
							</ol>
						</div>
					</div>
				</div>
			</div>
122

123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
			<div class="row">
				<div class="col-md-6">
					<h3>TYPO3 version support</h3>
					<div class="alert alert-info">
						This version works for <strong>TYPO3 {extension.lastVersion.typo3Dependency.versionString}</strong><br />
						If you look for other TYPO3 versions, go to the "Download" area to get a history of all extension versions.
					</div>
				</div>
				<f:if condition="{extension.tags}">
					<div class="col-md-6">
						<h3>Tags</h3>
						<p class="tags">
							<f:for each="{extension.tags}" as="tag">
								<f:link.page class="btn btn-info mb-1" additionalParams="{q: '{tag.title}'}">{tag.title}</f:link.page>
							</f:for>
						</p>
					</div>
				</f:if>
			</div>
142

143
144
145
146
147
148
149
150
151
152
153
			<div class="row mb-3">
				<div class="col-md-6">
					<h3>
						<f:translate key="last_upload_comment" />
					</h3>
					<p>
						<f:format.nl2br>{extension.lastVersion.uploadComment}</f:format.nl2br>
					</p>
					<h3>
						<f:translate key="downloads_by_version" />
					</h3>
154
155
156
					<f:format.raw>
						<terfe2:chart object="{extension}" method="downloadsByVersion" height="220" width="375" pointCount="{settings.defaultPointCount}" renderOnLoad="1" />
					</f:format.raw>
157
158
159
160
161
				</div>
				<div class="col-md-6">
					<f:render partial="ExtensionSingleInfo" arguments="{extension:extension, settings:settings, owner:owner, flattrUrl:flattrUrl, documentationLink:documentationLink, qualityLinkNotBroken:qualityLinkNotBroken, urlToQualityServer:urlToQualityServer}" />
				</div>
			</div>
162

163
164
165
166
167
168
169
170
			<f:if condition="{versionHistory->f:count()} >= 1">
				<h3>
					<f:translate key="version_history" />
				</h3>
				<div class="ter-ext-single-versionhistory ter-toggle-hide">
					<f:render partial="ExtensionUploadHistoryList" arguments="{versionHistory: extension.reverseVersionsByVersionNumber, extension: extension}" />
				</div>
			</f:if>
171

172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
			<f:if condition="{extensionsByUser}">
				<script type="text/javascript">
					$( '.carousel' ).carousel( {
						interval: 2000
					} )
				</script>
				<h3 class="mb-3">
					<f:translate key="other_extensions_by_user" />
				</h3>
				<div id="extensionsByUser" class="carousel slide mb-5" data-ride="carousel">
					<div class="carousel-inner" role="listbox">
						<f:for each="{extensionsByUser}" as="extByUser" iteration="iterator">
							<f:if condition="{iterator.isFirst}">
								<f:then>
									<div class="carousel-item active">
										<div class="card-group">
								</f:then>
								<f:else>
									<f:if condition="{iterator.index} % 3">
										<f:else>
					</div>
				</div>
				<div class="carousel-item">
					<div class="card-group">
						</f:else>
			</f:if>
			</f:else>
	</f:if>
	<div class="card ml-3">
		<div class="card-header">
			<h4 class="card-title">
				<f:link.action action="show" arguments="{extension : extByUser}">
					{extByUser.lastVersion.title}
				</f:link.action>
			</h4>
		</div>
		<div class="card-block">
			<p class="card-text">{extByUser.lastVersion.description}</p>
		</div>
	</div>
	<f:if condition="{iterator.isLast}">
		<f:then>
			</div>
			</div>
216

217
218
219
220
221
222
223
224
225
226
227
228
229
230
		</f:then>
	</f:if>
	</f:for>
	<a class="carousel-control-prev" href="#extensionsByUser" role="button" data-slide="prev">
		<span class="carousel-control-prev-icon" aria-hidden="true"></span>
		<span class="sr-only">Previous</span>
	</a>
	<a class="carousel-control-next" href="#extensionsByUser" role="button" data-slide="next">
		<span class="carousel-control-next-icon" aria-hidden="true"></span>
		<span class="sr-only">Next</span>
	</a>
	</div>
	</div>
	</f:if>
231

sventb's avatar
sventb committed
232

233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
	<f:if condition="{settings.show.reviewForm}">
		<f:security.ifHasRole role="{settings.reviewerGroupUid}">
			<div class="hide-tab tab-content lite-tab-panes-black">
				<div class="ter-ext-single" style="padding-top: 10px;">
					<f:render partial="ReviewForm" arguments="{extension: extension}" />
				</div>
			</div>
		</f:security.ifHasRole>
	</f:if>
	<div class="socialshareprivacy"></div>
	<f:link.page class="btn btn-success">
		<f:translate key="back_to_extension_list" />
	</f:link.page>
	</f:then>
	<f:else>
		<div class="alert alert-warning">
			<f:translate key="msg.extension_not_found" />
		</div>
	</f:else>
	</f:if>
253

254

255
</f:section>
256
257

</html>