forked from elementary/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
378 lines (371 loc) · 25.9 KB
/
index.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
<?php
require_once __DIR__.'/_backend/classify.current.php';
require_once __DIR__.'/_backend/preload.php';
require_once __DIR__.'/_backend/os-payment.php';
$page['title'] = 'A fast and open replacement for Windows and macOS ⋅ elementary OS';
$page['scripts'] = array(
'scripts/slingshot.js',
'scripts/download.js',
'scripts/showcase.run.js'
);
$page['styles'] = array(
'styles/home.css',
'styles/pantheon.css'
);
include $template['header'];
include $template['alert'];
?>
<section class="section--hero section--stretched">
<div class="section__detail grid">
<div class="whole">
<div id="logotype"><?php include __DIR__.'/images/logotype-os.svg'; ?></div>
<h4>A fast and open replacement for Windows and macOS</h4>
</div>
</div>
<div class="section__showcase"></div>
<div class="section__detail grid">
<div class="whole">
<div id="amounts">
<?php
$already_paid = (os_payment_getcookie($config['release_version']) > 0);
if ($already_paid) {
?>
<div id="choice-buttons">
<input type="hidden" id="amount-ten" value="0">
</div>
<?php } else { ?>
<h4 id="pay-what-you-want">Pay What You Want:</h4>
<div id="choice-buttons">
<button id="amount-five" value="5" class="small-button payment-button target-amount">5</button>
<button id="amount-ten" value="10" class="small-button payment-button target-amount checked">10</button>
<button id="amount-twenty-five" value="25" class="small-button payment-button target-amount">25</button>
<div>
<span class="pre-amount">$</span>
<input type="number" step="0.01" min="0" max="999999.99" id="amount-custom" class="button small-button target-amount" placeholder="Custom">
<p class="small-label focus-reveal text-center">Enter any dollar amount.</p>
</div>
</div>
<?php } ?>
<div class="column">
<button type="submit" id="download" class="suggested-action"><?php echo ($already_paid) ? "Download elementary OS" : "Purchase elementary OS"; ?></button>
<p class="small-label"><?php echo $config['release_version'] . ' ' . $config['release_title']; ?> | 1.37 GB (for PC or Mac)</p>
</div>
<div style="clear:both;"></div>
</div>
</div>
</div>
</section>
<section class="grid" id="the-press">
<h4>What the press is saying about elementary OS:</h4>
<div class="third">
<a href="http://www.wired.com/2013/11/elementaryos/" target="_blank" rel="noopener"><?php include __DIR__.'/images/thirdparty-logos/wired.svg'; ?></a>
<a class="inline-tweet" href="http://twitter.com/home/?status=“elementary OS is different… a beautiful and powerful operating system that will run well even on old PCs” — @WIRED http://elementary.io" data-tweet-suffix=" — @WIRED http://elementary.io" target="_blank" rel="noopener">“elementary OS is different… a beautiful and powerful operating system that will run well even on old PCs”</a>
</div>
<div class="third">
<a href="https://web.archive.org/web/20150312112222/http://www.maclife.com/article/columns/future_os_x_may_be_more_elementary_ios_7" target="_blank" rel="noopener"><?php include __DIR__.'/images/thirdparty-logos/maclife.svg'; ?></a>
<a class="inline-tweet" href="http://twitter.com/home/?status=“a fast, low-maintenance platform that can be installed virtually anywhere” —@MacLife http://elementary.io" data-tweet-suffix=" — @MacLife http://elementary.io" target="_blank" rel="noopener">“a fast, low-maintenance platform that can be installed virtually anywhere”</a>
</div>
<div class="third">
<a href="http://lifehacker.com/how-to-move-on-after-windows-xp-without-giving-up-your-1556573928" target="_blank" rel="noopener"><?php include __DIR__.'/images/thirdparty-logos/lifehacker.svg'; ?></a>
<a class="inline-tweet" href="http://twitter.com/home/?status=“Lightweight and fast… Completely community-based, and has a real flair for design and appearances.” —@lifehacker http://elementary.io" data-tweet-suffix=" — @lifehacker http://elementary.io" target="_blank" rel="noopener">“Lightweight and fast… Completely community-based, and has a real flair for design and appearances.”</a>
</div>
</section>
<section id="appcenter" class="grey">
<div class="app-display app-display--overflow">
<img class="app-display__image" src="images/screenshots/appcenter.jpg" srcset="images/screenshots/[email protected] 2x" alt="elementary OS AppCenter categories"/>
<div class="app-display__description">
<img src="images/icons/apps/128/system-software-install.svg" />
<h2>The Indie, Open Source App Store</h2>
<p>AppCenter delivers native, Open Source apps to elementary OS. Quickly discover new apps and easily update the ones you already have. Plus, support indie developers directly through pay-what-you-want purchases.</p>
<p><a href="https://medium.com/elementaryos/tagged/appcenter-spotlight" target="_blank" rel="noopener" class="read-more">Read AppCenter Spotlight</a>
<p><a href="developer" class="read-more">Become a Developer</a></p>
</div>
</div>
</section>
<section>
<div id="showcase" class="row">
<div class="pantheon" style="display:none;">
<div id="notification-container">
<div class="window" type="notification">
<div><span class="icon" icon="apps/48/utilities-terminal"><?php include('images/icons/apps/48/utilities-terminal.svg'); ?></span></div>
<div>
<h3>Task finished</h3>
<p data-l10n-off>git clone https://github.com/elementary/website</p>
</div>
</div>
</div>
</div>
<div id="showcase-index">
<div>
<h2>Apps You Need, Without Ones You Don't.</h2>
<p>elementary OS ships with a carefully curated selection of apps that cater to every day needs so you can spend more time using your computer and less time cleaning up bloatware.</p>
</div>
<ul id="showcase-grid">
<a href="#showcase-music"><li class="read-more"><img src="images/icons/apps/64/multimedia-audio-player.svg" />Music</li></a>
<a href="#showcase-epiphany"><li class="read-more"><img src="images/icons/apps/64/internet-web-browser.svg" />Epiphany</li></a>
<a href="#showcase-mail"><li class="read-more"><img src="images/icons/apps/64/internet-mail.svg" />Mail</li></a>
<a href="#showcase-photos"><li class="read-more"><img src="images/icons/apps/64/multimedia-photo-manager.svg" />Photos</li></a>
<a href="#showcase-videos"><li class="read-more"><img src="images/icons/apps/64/multimedia-video-player.svg" />Videos</li></a>
<a href="#showcase-calendar"><li class="read-more"><img src="images/icons/apps/64/office-calendar.svg" />Calendar</li></a>
<a href="#showcase-files"><li class="read-more"><img src="images/icons/apps/64/system-file-manager.svg" />Files</li></a>
<a href="#showcase-terminal"><li class="read-more"><img src="images/icons/apps/64/utilities-terminal.svg" />Terminal</li></a>
<a href="#showcase-scratch"><li class="read-more"><img src="images/icons/apps/64/accessories-text-editor.svg" />Scratch</li></a>
<a href="#showcase-camera"><li class="read-more"><img src="images/icons/apps/64/accessories-camera.svg" />Camera</li></a>
</ul>
</div>
<div class="showcase-tab" id="showcase-music">
<div class="app-display">
<img class="app-display__image" src="images/screenshots/music.jpg" alt="music screenshot" />
<div class="app-display__description">
<img src="images/icons/apps/64/multimedia-audio-player.svg" alt="music icon" />
<div>
<h2>Music</h2>
<p>Organize and listen to your music. Browse by album, use lightning-fast search, and build playlists of your favorites.</p>
</div>
</div>
</div>
</div>
<div class="showcase-tab" id="showcase-epiphany">
<div class="app-display">
<img class="app-display__image" src="images/screenshots/epiphany.jpg" srcset="images/screenshots/[email protected] 2x" alt="epiphany screenshot" />
<div class="app-display__description">
<img src="images/icons/apps/64/internet-web-browser.svg" alt="epiphany icon" />
<div>
<h2>Epiphany</h2>
<p>Surf the web with a fast & lightweight web browser. Epiphany lets you use HTML5 websites and web apps while being lighter on battery life.</p>
</div>
</div>
</div>
</div>
<div class="showcase-tab" id="showcase-mail">
<div class="app-display">
<img class="app-display__image" src="images/screenshots/mail.jpg" alt="mail screenshot" />
<div class="app-display__description">
<img src="images/icons/apps/64/internet-mail.svg" alt="mail icon" />
<div>
<h2>Mail</h2>
<p>Manage multiple accounts quickly and effortlessly with conversation-based e-mail, fast-as-you-type search, new e-mail notifications, and more.</p>
</div>
</div>
</div>
</div>
<div class="showcase-tab" id="showcase-photos">
<div class="app-display">
<img class="app-display__image" src="images/screenshots/photos.jpg" alt="photos screenshot" />
<div class="app-display__description">
<img src="images/icons/apps/64/multimedia-photo-manager.svg" alt="photos icon" />
<div>
<h2>Photos</h2>
<p>Import, organize, and edit photos. Make a slideshow. Share with Facebook or Flickr.</p>
</div>
</div>
</div>
</div>
<div class="showcase-tab" id="showcase-videos">
<div class="app-display">
<img class="app-display__image" src="images/screenshots/videos.jpg" srcset="images/screenshots/[email protected] 2x" alt="videos screenshot" />
<div class="app-display__description">
<img src="images/icons/apps/64/multimedia-video-player.svg" alt="videos icon" />
<div>
<h2>Videos</h2>
<p>Smart and simple video viewing with thumbnail previews on the seekbar, playlists, subtitle support, and even the ability to resume what was last playing.</p>
</div>
</div>
</div>
</div>
<div class="showcase-tab" id="showcase-calendar">
<div class="app-display">
<img class="app-display__image" src="images/screenshots/calendar.jpg" alt="calendar screenshot" />
<div class="app-display__description">
<img src="images/icons/apps/64/office-calendar.svg" alt="calendar icon" />
<div>
<h2>Calendar</h2>
<p>Easily view and create events. Sync with Online Accounts like Google.</p>
</div>
</div>
</div>
</div>
<div class="showcase-tab" id="showcase-files">
<div class="app-display">
<img class="app-display__image" src="images/screenshots/files.jpg" srcset="images/screenshots/[email protected] 2x" alt="files screenshot" />
<div class="app-display__description">
<img src="images/icons/apps/64/system-file-manager.svg" alt="files icon" />
<div>
<h2>Files</h2>
<p>The smart pathbar makes it easy to browse with breadcrumbs, search, or path completion. Quickly navigate with the column view and enjoy browser-class tabs with smart features like tab history.</p>
</div>
</div>
</div>
</div>
<div class="showcase-tab" id="showcase-terminal">
<div class="app-display">
<div class="app-display__image">
<img class="pantheon--fallback" src="images/screenshots/terminal.jpg" alt="terminal screenshot" />
<div class="pantheon" style="display:none;">
<div class="window dark active" type="terminal">
<div class="titlebar">
<span class="icon control" icon="actions/window-close"><?php include('images/pantheon/actions/window-close.svg'); ?></span>
<span class="title">Home</span>
<div>
<span class="icon search" icon="actions/system-search"><?php include('images/pantheon/actions/system-search.svg'); ?></span>
<span class="icon control" icon="actions/window-maximize"><?php include('images/pantheon/actions/window-maximize.svg'); ?></span>
</div>
</div>
<div class="tabbar">
<span class="icon" icon="actions/tab-new"><?php include('images/pantheon/actions/tab-new.svg'); ?></span>
<div class="tabs">
<div class="tab active">
<span class="icon" icon="actions/close"><?php include('images/pantheon/actions/close.svg'); ?></span>
<span class="title">Home</span>
</div>
<div class="tab">
<span class="title">Home</span>
</div>
</div>
<span class="icon" icon="actions/document-open-recent"><?php include('images/pantheon/actions/document-open-recent.svg'); ?></span>
</div>
<div class="input"></div>
</div>
</div>
</div>
<div class="app-display__description">
<img src="images/icons/apps/64/utilities-terminal.svg" alt="terminal icon" />
<div>
<h2>Terminal</h2>
<p>With a color scheme designed to prevent eye strain, browser-class tabs with history and smart naming, task-completion notifications, natural copy & paste, backlog search and more, who says you can't teach an old app new tricks?</p>
</div>
</div>
</div>
</div>
<div class="showcase-tab" id="showcase-scratch">
<div class="app-display">
<img class="app-display__image" src="images/screenshots/scratch.jpg" srcset="images/screenshots/[email protected] 2x" alt="scratch screenshot" />
<div class="app-display__description">
<img src="images/icons/apps/64/accessories-text-editor.svg" alt="scratch icon" />
<div>
<h2>Scratch</h2>
<p>With a folder sidebar, multiple panes, and extensions like Terminal, Web Preview, Indentation Detection, and Vim Emulation, Scratch will be the last text editor you'll ever need.</p>
</div>
</div>
</div>
</div>
<div class="showcase-tab" id="showcase-camera">
<div class="app-display">
<img class="app-display__image" src="images/screenshots/camera.jpg" srcset="images/screenshots/[email protected] 2x" alt="camera screenshot" />
<div class="app-display__description">
<img src="images/icons/apps/64/accessories-camera.svg" alt="camera icon" />
<div>
<h2>Camera</h2>
<p>Easily snap pictures or video from a built-in webcam.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="slingshot" class="grey">
<div class="app-display app-display--horizontal">
<div class="app-display__image">
<div id="slingshot-label" data-l10n-off>Applications</div>
<div id="slingshot-arrow"><img src='images/slingshot/arrow.svg'></div>
<div class="slingshot">
<div class="linked">
<div id="slingshot-grid-button" class="button active">
<?php include('images/icons/actions/symbolic/view-grid-symbolic.svg'); ?>
</div>
<div id="slingshot-categories-button" class="button">
<?php include('images/icons/actions/symbolic/view-filter-symbolic.svg'); ?>
</div>
</div>
<div class="entry">
<?php include('images/icons/actions/symbolic/edit-find-symbolic.svg'); ?>
<span class="search-term inactive" data-l10n-off>dat</span>
<span class="cursor" data-l10n-off>|</span>
<span class="clear-icon inactive"><?php include('images/icons/actions/symbolic/edit-clear-symbolic.svg'); ?></span>
</div>
<div id="slingshot-grid" class="active view">
<div class="slingshot-grid">
</div>
<div id="slingshot-pager">
<div class="button active" data-l10n-off>1</div>
<div class="button" data-l10n-off>2</div>
</div>
</div>
<div id="slingshot-categories" class="next view">
<div class="slingshot-categories-sidebar">
<span class="slingshot-category active" data-l10n-off>Accessories</span>
<span class="slingshot-category" data-l10n-off>Graphics</span>
<span class="slingshot-category" data-l10n-off>Internet</span>
<span class="slingshot-category" data-l10n-off>Office</span>
<span class="slingshot-category" data-l10n-off>Other</span>
<span class="slingshot-category" data-l10n-off>Sound & Video</span>
<span class="slingshot-category" data-l10n-off>System Tools</span>
</div>
<div class="slingshot-categories">
</div>
</div>
<div id="slingshot-search" class="next view">
<div class="searchone inactive"></div>
<div class="searchtwo inactive"></div>
<div class="searchthree inactive"></div>
</div>
</div>
</div>
<div class="app-display__description">
<h2>3 Ways to Explore</h2>
<?php include('images/icons/actions/symbolic/view-grid-symbolic.svg'); ?><h4>Grid</h4>
<p>Display all your apps in an alphabetized grid. Flick through and find the one you want.</p>
<?php include('images/icons/actions/symbolic/view-filter-symbolic.svg'); ?><h4>Categories</h4>
<p>View your apps automatically organized into categories. Perfect for large collections.</p>
<?php include('images/icons/actions/symbolic/edit-find-symbolic.svg'); ?><h4>Search</h4>
<p>Launch apps, open settings panes, run commands, and more from the lightning fast search view.</p>
</div>
</div>
</section>
<section class="grid">
<div class="third">
<h2>Open Source</h2>
<p>Our code is available for review, scrutiny, modification, and redistribution by anyone. <a class="read-more" href="/open-source">Learn More</a></p>
</div>
<div class="third">
<h2>No Ads. No Spying.</h2>
<p>We don't make advertising deals and we don't collect sensitive personal data. Our only income is directly from our users.</p>
</div>
<div class="third">
<h2>Safe & Secure</h2>
<p>We're built on Linux: the same software powering the U.S Department of Defense, the Bank of China, and more. <a class="read-more" href="http://www.ubuntu.com/usn/xenial/">Security Notices</a></p>
</div>
</section>
<section class="grid">
<div class="two-thirds">
<img class="inline" src="images/icons/places/128/distributor-logo.svg">
<div class="inline">
<h2 class="text-left">Download elementary OS</h2>
<h4 class="text-left">A fast and open replacement for Windows and macOS</h4>
</div>
</div>
<div class="third">
<a class="button suggested-action" href="#">Pay What You Want</a>
</div>
</section>
<span id="translate-download" style="display:none;" hidden>Download elementary OS</span>
<span id="translate-purchase" style="display:none;" hidden>Purchase elementary OS</span>
<div id="download-modal" class="dialog modal">
<img alt="Download elementary OS icon" src="images/icons/apps/48/ubiquity.svg">
<div class="content-area">
<p class="primary">Choose a Download</p>
<p>Download from a localized server or by magnet link. For help and more info, see the <a class="read-more" href="docs/installation" target="_blank" rel="noopener">installation guide</a></p>
</div>
<div class="action-area">
<a class="button clickable close-modal">Cancel</a>
<div class="linked">
<a class="button suggested-action close-modal download-link http" href="<?php echo $download_link.$config['release_filename']; ?>">Download</a>
<a class="button suggested-action close-modal download-link magnet" title="Torrent Magnet Link" href="<?php echo 'magnet:?xt=urn:btih:'.$config['release_magnet'].'&dn='.$config['release_filename']; ?>&tr=https%3A%2F%2Fashrise.com%3A443%2Fphoenix%2Fannounce&tr=udp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.ccc.de%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80%2Fannounce&ws=http:<?php echo $download_link.$config['release_filename']; ?>"><i class="fa fa-magnet"></i></a>
</div>
</div>
</div>
<a style="display:none;" class="open-modal" href="#download-modal"></a>
<!--[if lt IE 10]><script type="text/javascript" src="https://cdn.jsdelivr.net/gh/eligrey/[email protected]/classList.min.js"></script><![endif]-->
<?php
include $template['footer'];
?>