This repository has been archived by the owner on Jan 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
/
template-download.php
449 lines (405 loc) · 22.9 KB
/
template-download.php
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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
<?php /* Template Name: Download */
get_header();
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<article class="container">
<div class="row">
<div class="col-lg-8">
<h1><?php the_title(); ?></h1>
</div>
</div>
<div class="row">
<aside class="col-md-4 order-md-2">
<nav class="table-of-contents" id="table-of-contents">
<h4>Table of contents</h4>
<nav class="nav flex-column">
<a class="nav-link" href="#owncloud-server">ownCloud Server</a>
<nav class="nav flex-column">
<a class="nav-link" href="#owncloud-server-tar-ball">Tarball</a>
<a class="nav-link" href="#owncloud-server-docker">Docker</a>
<a class="nav-link" href="#owncloud-server-appliance">Appliance</a>
<a class="nav-link" href="#owncloud-server-linux-packages">Linux packages</a>
</nav>
<a class="nav-link" href="#owncloud-desktop-client">ownCloud desktop client</a>
<nav class="nav flex-column">
<a class="nav-link" href="#owncloud-desktop-client-macos">Mac OS</a>
<a class="nav-link" href="#owncloud-desktop-client-windows">Windows</a>
<a class="nav-link" href="#owncloud-desktop-client-linux">Linux</a>
</nav>
<a class="nav-link" href="#owncloud-mobile-apps">ownCloud mobile apps</a>
<nav class="nav flex-column">
<a class="nav-link" href="#owncloud-mobile-apps-ios">iOS</a>
<a class="nav-link" href="#owncloud-mobile-apps-android">Android</a>
</nav>
<a class="nav-link" href="#owncloud-marketplace">ownCloud marketplace</a>
</nav>
<!--
<li><a href="#owncloud-mobile-apps">ownCloud mobile Apps</a>
<ul>
<li><a href="#owncloud-mobile-apps-ios">iOS</a></li>
<li><a href="#owncloud-mobile-android">Android</a></li>
</ul>
</li>
</ul> -->
</nav>
</aside>
<div class="col-md-8 order-md-1">
<section>
<?php the_content(); ?>
</section>
<section id="owncloud-server">
<h1>ownCloud Server</h1>
<div class="row">
<div class="col-md-4">
<?php
$image = get_field('server_image');
?>
<img src="<?php echo $image['sizes']['medium']; ?>" class="img-fluid" alt="<?php echo $image['alt']; ?>" />
</div>
<div class="col-md-8">
<?php the_field('server_description'); ?>
</div>
</div>
<?php
if( have_rows('server_documentation') ): ?>
<h2>Documentation</h2>
<?php
while ( have_rows('server_documentation') ) : the_row(); ?>
<a target="_blank" rel="no-follow" class="documentation" href="<?php the_sub_field('server_docs_link'); ?>"><i class="fa fa-file-text-o"></i><?php the_sub_field('server_docs_title'); ?></a>
<?php
endwhile;
endif;
?>
<h2>Resources</h2>
<h3 id="owncloud-server-tar-ball">Tarball</h3>
<p><?php the_field('tarball_description'); ?></p>
<table class="table table-responsive">
<thead>
<tr>
<th scope="col">release channel</th>
<th scope="col">version</th>
<th scope="col">release date</th>
<th scope="col"> </th>
</tr>
</thead>
<tbody>
<?php if( have_rows('tarball_production_downloads') ): ?>
<?php while( have_rows('tarball_production_downloads') ): the_row(); ?>
<tr>
<td>Production</td>
<td><?php the_sub_field('tarball_production_version'); ?></td>
<td><?php the_sub_field('tarball_production_release_date'); ?></td>
<td>
<a href="<?php the_sub_field('tarball_production_resource_tar'); ?>" class="button-oc">Download Tar<i class="fa fa-download" aria-hidden="true"></i></a>
<div class="smallfont d-flex justify-content-around">
<a href="<?php the_sub_field('tarball_production_resource_tar'); ?>.md5" target="_blank">md5</a>
<a href="<?php the_sub_field('tarball_production_resource_tar'); ?>.sha256" target="_blank">sha256</a>
<a href="<?php the_sub_field('tarball_production_resource_tar'); ?>.asc" target="_blank">asc</a>
</div>
</td>
<td>
<a href="<?php the_sub_field('tarball_production_resource_zip'); ?>" class="button-oc">Download Zip<i class="fa fa-download" aria-hidden="true"></i></a>
<div class="smallfont d-flex justify-content-around">
<a href="<?php the_sub_field('tarball_production_resource_zip'); ?>.md5" target="_blank">md5</a>
<a href="<?php the_sub_field('tarball_production_resource_zip'); ?>.sha256" target="_blank">sha256</a>
<a href="<?php the_sub_field('tarball_production_resource_zip'); ?>.asc" target="_blank">asc</a>
</div>
</td>
</tr>
<?php
endwhile;
endif;
?>
<?php if (get_field('tarball_fresh_is_available') == 1) : ?>
<tr>
<td>fresh</td>
<td><?php the_field('tarball_fresh_version'); ?></td>
<td><?php the_field('tarball_fresh_release_date'); ?></td>
<td><a href="<?php the_field('tarball_fresh_link'); ?>" class="button-oc">Download<i class="fa fa-download" aria-hidden="true"></i>
</a></td>
</tr>
<?php endif; ?>
<?php if (get_field('tarball_techpreview_is_available') == 1) : ?>
<tr>
<td>Testing</td>
<td><?php the_field('tarball_techpreview_version'); ?></td>
<td><?php the_field('tarball_techpreview_release_date'); ?></td>
<td><a href="<?php the_field('tarball_techpreview_link'); ?>" class="button-oc">Download<i class="fa fa-download" aria-hidden="true"></i>
</a></td>
</tr>
<?php endif; ?>
</tbody>
</table>
<h3 id="owncloud-server-docker">Docker</h3>
<p><?php the_field('docker_description'); ?></p>
<table class="table table-responsive">
<thead>
<tr>
<th scope="col">release channel</th>
<th scope="col">version</th>
<th scope="col">release date</th>
<th scope="col" colspan="2"> </th>
</tr>
</thead>
<tbody>
<?php if( have_rows('docker_production_resources') ): ?>
<?php while( have_rows('docker_production_resources') ): the_row(); ?>
<tr>
<td>production</td>
<td><?php the_sub_field('docker_production_version'); ?></td>
<td><?php the_sub_field('docker_production_release_date'); ?></td>
<td><a href="<?php the_sub_field('docker_production_resource'); ?>" target="_blank" class="button-oc">Install instructions<i class="fa fa-external-link" aria-hidden="true"></i></a></td>
</tr>
<?php
endwhile;
endif;
?>
</tbody>
</table>
<h3 id="owncloud-server-appliance">Appliance</h3>
<p><?php the_field('appliance_description'); ?></p>
<table class="table table-responsive">
<thead>
<tr>
<th scope="col">release channel</th>
<th scope="col">version</th>
<th scope="col">release date</th>
<th scope="col"> </th>
<th scope="col"> </th>
</tr>
</thead>
<tbody>
<tr>
<td>production</td>
<td><?php the_field('appliance_production_version'); ?></td>
<td><?php the_field('appliance_production_release_date'); ?></td>
<td>
<a href="<?php the_field('appliance_production_esx'); ?>" class="button-oc stacked piwik_download">Download ESX image<i class="fa fa-download" aria-hidden="true"></i>
</a>
<a href="<?php the_field('appliance_production_virtualbox'); ?>" class="button-oc stacked piwik_download">Download VirtualBox image<i class="fa fa-download" aria-hidden="true"></i>
</a>
<a href="<?php the_field('appliance_production_qcow2'); ?>" class="button-oc stacked piwik_download">Download QCOW2 image<i class="fa fa-download" aria-hidden="true"></i>
</a>
<a href="<?php the_field('appliance_production_vmware'); ?>" class="button-oc stacked piwik_download">Download VMware image<i class="fa fa-download" aria-hidden="true"></i>
</a>
</td>
</tr>
</tbody>
</table>
<h3 id="owncloud-server-linux-packages">Linux Distribution Packages</h3>
<p><?php the_field('linux_packages_description'); ?></p>
<a href="<?php the_field('linux_packages_link'); ?>" target="_blank" class="button-oc">Go to packages<i class="fa fa-external-link" aria-hidden="true"></i></a>
<h4>Looking for a hosted ownCloud?</h4>
<p>Many hosting providers are offering an automated ownCloud installation in your own web hosting.</p>
<a href="<?php echo get_page_link(407); ?>" class="button-oc">See our hosting partners here<i class="fa fa-external-link" aria-hidden="true"></i></a>
</section>
<section>
<h1 id="owncloud-desktop-client">ownCloud Desktop Client</h1>
<div class="row">
<div class="col-md-4">
<?php
$image = get_field('desktop_image');
?>
<img src="<?php echo $image['sizes']['medium']; ?>" class="img-fluid" alt="<?php echo $image['alt']; ?>" />
</div>
<div class="col-md-8">
<?php the_field('desktop_description'); ?>
</div>
</div>
<?php
if( have_rows('desktop_documentation') ): ?>
<h2>Documentation</h2>
<?php
while ( have_rows('desktop_documentation') ) : the_row(); ?>
<a target="_blank" rel="no-follow" class="documentation" href="<?php the_sub_field('desktop_docs_link'); ?>"><i class="fa fa-file-text-o"></i><?php the_sub_field('desktop_docs_title'); ?></a>
<?php
endwhile;
endif;
?>
<h2>Resources</h2>
<h3 class="d-flex align-items-center" id="owncloud-desktop-client-macos"><i class="fa fa-apple fa-2x"></i>ownCloud desktop client for MacOS</h3>
<p>
System requirements: <?php echo get_field('desktop_mac_system_req'); ?>
</p>
<table class="table table-responsive">
<thead>
<tr>
<th scope="col">release channel</th>
<th scope="col">version</th>
<th scope="col">release date</th>
<th scope="col" colspan="2"> </th>
</tr>
</thead>
<tbody>
<tr>
<td>production</td>
<td><?php the_field('desktop_mac_production_version'); ?></td>
<td><?php the_field('desktop_mac_production_release_date'); ?></td>
<td><a href="<?php the_field('desktop_mac_production_link'); ?>" class="button-oc piwik_download">Download<i class="fa fa-download" aria-hidden="true"></i>
</a></td>
</tr>
<?php if (get_field('desktop_mac_techpreview_is_available') == 1) : ?>
<tr>
<td>technical preview</td>
<td><?php the_field('desktop_mac_techpreview_version'); ?></td>
<td><?php the_field('desktop_mac_techpreview_release_date'); ?></td>
<td><a href="<?php the_field('desktop_mac_techpreview_link'); ?>" class="button-oc piwik_download">Download<i class="fa fa-download" aria-hidden="true"></i>
</a></td>
</tr>
<?php endif; ?>
<?php if (get_field('desktop_mac_testpilot_is_available') == 1) : ?>
<tr>
<td>Testpilot cloud</td>
<td><?php the_field('desktop_mac_testpilot_version'); ?></td>
<td><?php the_field('desktop_mac_testpilot_release_date'); ?></td>
<td><a href="<?php the_field('desktop_mac_testpilot_link'); ?>" class="button-oc piwik_download">Download<i class="fa fa-download" aria-hidden="true"></i>
</a></td>
</tr>
<?php endif; ?>
</tbody>
</table>
<h3 class="d-flex align-items-center" id="owncloud-desktop-client-windows"><i class="fa fa-windows fa-2x"></i>ownCloud desktop client for Windows</h3>
<p>
System requirements: <?php echo get_field('desktop_windows_system_req'); ?>
</p>
<table class="table table-responsive">
<thead>
<tr>
<th scope="col">release channel</th>
<th scope="col">version</th>
<th scope="col">release date</th>
<th scope="col"> </th>
</tr>
</thead>
<tbody>
<tr>
<td>production</td>
<td><?php the_field('desktop_windows_production_version'); ?></td>
<td><?php the_field('desktop_windows_production_release_date'); ?></td>
<td><a href="<?php the_field('desktop_windows_production_link'); ?>" class="button-oc piwik_download">Download<i class="fa fa-download" aria-hidden="true"></i>
</a></td>
</tr>
<?php if (get_field('desktop_windows_techpreview_is_available') == 1) : ?>
<tr>
<td>technical preview</td>
<td><?php the_field('desktop_windows_techpreview_version'); ?></td>
<td><?php the_field('desktop_windows_techpreview_release_date'); ?></td>
<td><a href="<?php the_field('desktop_windows_techpreview_link'); ?>" class="button-oc piwik_download">Download<i class="fa fa-download" aria-hidden="true"></i>
</a></td>
</tr>
<?php endif; ?>
<?php if (get_field('desktop_windows_testpilot_is_available') == 1) : ?>
<tr>
<td>Testpilot cloud</td>
<td><?php the_field('desktop_windows_testpilot_version'); ?></td>
<td><?php the_field('desktop_windows_testpilot_release_date'); ?></td>
<td><a href="<?php the_field('desktop_windows_testpilot_link'); ?>" class="button-oc piwik_download">Download<i class="fa fa-download" aria-hidden="true"></i>
</a></td>
</tr>
<?php endif; ?>
</tbody>
</table>
<h3 class="d-flex align-items-center" id="owncloud-desktop-client-linux"><i class="fa fa-linux fa-2x"></i>ownCloud desktop client for Linux</h3>
<p>
For Linux distributions, we support, if technically feasible, the latest 2 versions per platform and the previous LTS.
</p>
<table class="table table-responsive">
<thead>
<tr>
<th scope="col">release channel</th>
<th scope="col">version</th>
<th scope="col">release date</th>
<th scope="col"> </th>
</tr>
</thead>
<tbody>
<tr>
<td>production</td>
<td><?php the_field('desktop_linux_production_version'); ?></td>
<td><?php the_field('desktop_linux_production_release_date'); ?></td>
<td><a href="<?php the_field('desktop_linux_production_link'); ?>" target="_blank" class="button-oc">Install instructions<i class="fa fa-external-link" aria-hidden="true"></i></a></td>
</tr>
<?php if (get_field('desktop_linux_techpreview_is_available') == 1) : ?>
<tr>
<td>technical preview</td>
<td><?php the_field('desktop_linux_techpreview_version'); ?></td>
<td><?php the_field('desktop_linux_techpreview_release_date'); ?></td>
<td><a href="<?php the_field('desktop_linux_techpreview_link'); ?>" target="_blank" class="button-oc">Install instructions<i class="fa fa-external-link" aria-hidden="true"></i></a></td>
</tr>
<?php endif; ?>
<?php if (get_field('desktop_linux_testpilot_is_available') == 1) : ?>
<tr>
<td>Testpilot cloud</td>
<td><?php the_field('desktop_linux_testpilot_version'); ?></td>
<td><?php the_field('desktop_linux_testpilot_release_date'); ?></td>
<td><a href="<?php the_field('desktop_linux_testpilot_link'); ?>" target="_blank" class="button-oc">Install instructions<i class="fa fa-external-link" aria-hidden="true"></i></a></td>
</tr>
<?php endif; ?>
</tbody>
</table>
</section>
<section>
<h1 id="owncloud-mobile-apps">ownCloud Mobile Apps</h1>
<div class="row">
<div class="col-md-4">
<?php
$image = get_field('mobile_image');
?>
<img src="<?php echo $image['sizes']['medium']; ?>" class="img-fluid" alt="<?php echo $image['alt']; ?>" />
</div>
<div class="col-md-8">
<?php the_field('mobile_description'); ?>
</div>
</div>
<?php
if( have_rows('mobile_documentation') ): ?>
<h2>Documentation</h2>
<?php
while ( have_rows('mobile_documentation') ) : the_row(); ?>
<a target="_blank" rel="no-follow" class="documentation" href="<?php the_sub_field('mobile_docs_link'); ?>"><i class="fa fa-file-text-o"></i><?php the_sub_field('mobile_docs_title'); ?></a>
<?php
endwhile;
endif;
?>
<div class="row">
<div class="col-md-6 d-flex flex-column">
<h3 class="d-flex align-items-center" id="owncloud-mobile-apps-ios"><i class="fa fa-apple fa-2x"></i>iOS</h3>
<p>Download the ownCloud mobile app on iTunes (iOS)</p>
<a class="appstore-link mx-auto text-center" href="<?php the_field('mobile_ios_link'); ?>" target="_blank">
<img class="img-fluid d-none d-sm-block" src="<?php echo get_template_directory_uri(); ?>/img/owncloud-qr-code-ios-app-store-itunes.svg" alt="ownCloud mobile app on apple itunes" />
<img src="<?php echo get_template_directory_uri(); ?>/img/owncloud-ios-app-store-itunes.png" alt="ownCloud mobile app on Apple iTunes" /></a>
</div>
<div class="col-md-6 d-flex flex-column">
<h3 class="d-flex align-items-center" id="owncloud-mobile-apps-android"><i class="fa fa-android fa-2x"></i>Android</h3>
<p>Download the ownCloud mobile app on Google Play store (Android)</p>
<a class="appstore-link mx-auto text-center" href="<?php the_field('mobile_android_link'); ?>" target="_blank">
<img class="img-fluid d-none d-sm-block" src="<?php echo get_template_directory_uri(); ?>/img/owncloud-qr-code-google-play.svg" alt="ownCloud mobile app on google play store" />
<img src="<?php echo get_template_directory_uri(); ?>/img/owncloud-google-play-store.png" alt="ownCloud mobile app on Google Play store" />
</a>
</div>
</div>
</section>
<section>
<h1 id="owncloud-marketplace">ownCloud Marketplace</h1>
<div class="row">
<div class="col-md-4">
<?php
$image = get_field('marketplace_image');
?>
<img src="<?php echo $image['sizes']['medium']; ?>" class="img-fluid" alt="<?php echo $image['alt']; ?>" />
</div>
<div class="col-md-8">
<p><?php the_field('marketplace_description'); ?></p>
</div>
</div>
</section>
</div>
</div>
</article>
<?php
endwhile;
endif;
get_footer();
?>