/[web]/www/trunk/en/5/download_index.php
ViewVC logotype

Contents of /www/trunk/en/5/download_index.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3285 - (show annotations) (download)
Thu Jun 12 20:50:48 2014 UTC (9 years, 10 months ago) by filip
File size: 28063 byte(s)
duplicate string cleanup for cauldron + _nav pot file sync
1 <?php
2
3 $name = 'Mageia';
4 $version = '5';
5 $release = 'alpha1';
6 $torrentavailable=false;
7 $classicaldvd=false;
8 $live=false;
9 $dual=true;
10
11
12 define('HLANG', true);
13
14 require '../../langs.php';
15 $dictionary = read_translation_file($locale, "cauldron");
16
17 function get_mageia($name, $version, $release)
18 {
19 $re = empty($release) ? $version : $version . '-' . $release;
20 return implode('-', array($name, $re));
21 }
22
23 function get_mageia_image_file_name($name, $version, $release, $variant = null, $arch, $medium, $ext)
24 {
25 $va = empty($variant) ? $arch : $variant . '-' . $arch;
26 $re = empty($release) ? $va : $release . '-' . $va;
27
28 return implode('-', array($name, $version, $re, $medium)) . $ext;
29 }
30
31 function dl_link($name, $version, $release, $variant = null, $arch = 'i586', $medium, $torrent = false, $torrentavailable = true)
32 {
33 switch ($arch) {
34 case "i586":
35 $bit = _r('32 bit');
36 break;
37 case "x86_64":
38 $bit = _r('64 bit');
39 break;
40 case "dual":
41 $bit = _r('Dualarch');
42 break;
43 default:
44 $bit = '';
45 break;
46 }
47
48 echo $torrent && !$torrentavailable ? sprintf(_t('forthcoming')) : sprintf('<a rel="nofollow" href="../downloads/get/?q=%s%s" title="%s">%s</a>',
49 get_mageia_image_file_name($name, $version, $release, $variant, $arch, $medium, '.iso'),
50 $torrent ? '&amp;torrent=1' : '',
51 implode(' ', array($name, $version, $release, $variant, $arch, $medium)),
52 $bit
53 );
54 }
55
56 ?>
57 <!DOCTYPE html>
58 <html dir="ltr" lang="<?php echo $locale; ?>">
59 <head>
60 <meta charset="utf-8">
61 <title><?php echo sprintf(_g('Download').' '. '%s %s %s', $name, $version, $release)?></title>
62 <meta name="description" content="<?php _g('Download %s DVD, CD, LiveCD, network install ISO images.', array("$name $version"))?>">
63 <meta name="keywords" content="<?php _g('mageia, %s, linux, free, download, iso, torrent, vm, http, ftp, rsync, bittorrent', array("$name $version"))?>">
64 <meta name="robots" content="index,nofollow,nosnippet">
65 <link rel="canonical" href="/<?php echo $locale.'/'.$verion;?>/">
66 <link rel="stylesheet" href="/g/style/all.css">
67 <script src="/g/js/jquery-1.10.1.min.js"></script>
68 <script src="/g/js/tooltipsy.min.js"></script>
69 <?php include '../../analytics.php'; ?>
70 <style>
71 .ui-button,.ui-button:link {
72 border: 1px solid #AED0EA;
73 -moz-box-sizing: content-box;
74 display: inline-block;
75 outline: 0 none !important;
76 background: repeat-x scroll 50% 50% #D7EBF9;
77 font-size: 1.4em;
78 cursor: pointer;
79 text-align: center;
80 border-radius: 6px;
81 padding: .5em .4em;
82 min-width: 200px;
83 text-decoration: none;
84 color: black;
85 text-shadow: 1px 2px 3px rgba(0,0,0, 0.5);
86 -moz-box-shadow: 0 0 5px rgba(0, 0, 0, .5);
87 -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .5);
88 box-shadow: 2px 2px 5px rgba(0, 0, 0, .5);
89 }
90 .iso2usb {cursor:pointer}
91
92 input[type="radio"]:checked + label,.ui-button:active {
93 background: #2383C2;
94 background: -webkit-linear-gradient(top, #3494D3 0%, #2383C2 50%);
95 background: -moz-linear-gradient(top, #3494D3 0%, #2383C2 50%);
96 background: -o-linear-gradient(top, #3494D3 0%, #2383C2 50%);
97 background: linear-gradient(top, #3494D3 0%, #2383C2 50%);
98 }
99 input[type="radio"], input[type="submit"] {
100 display: none;
101 }
102 .ui-button:hover{
103 background: #23AEC2;
104 }
105
106 .radiobutton{
107 text-align: center;
108 }
109 .tooltipsy{
110 padding: 0.5em;
111 width:auto;
112 max-width: 500px;
113 color: #303030;
114 background-color: #F0F9FF;
115 border: 1px solid #deca7e;
116 text-align: left;
117 -moz-box-shadow: 0 0 10px rgba(0, 0, 0, .5);
118 -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .5);
119 box-shadow: 0 0 10px rgba(0, 0, 0, .5);
120 text-shadow: none;
121 border-radius: 6px;
122 }
123 </style>
124 </head>
125 <body class="release downloads">
126 <?php echo $hsnav; ?>
127 <header id="mgnavt">
128 <h1><?php echo sprintf(_g('Download') . ' <strong>%s %s %s</strong>',$name, $version, $release)?></h1>
129 <?php include '../'.$version.'/nav.php'; ?>
130 </header>
131 <p class="unstable-release-warning"><?php
132 _g('Be careful! This is an alpha, unstable release.');
133 // _g('Be careful! This is a beta, unstable release.');
134 // _g('It is only intended for developer use. <strong>DO NOT USE THIS IN PRODUCTION OR FOR OFFICIAL REVIEW.</strong>');
135 // _g('This is a Release Candidate. Release Candidate software is software that has graduated Beta testing, and should be a release-ready product suitable for advanced users and reviewers. However, beginning users and critical-applications users may wish to wait for the final release planned for December 2014.'); _g('Release Candidate is intended to identify any remaining bugs or missing packages.'); ?></p>
136 <div id="doc4" class="yui-t7">
137 <div id="bd" role="main">
138 <div class="yui-ge bb1">
139 <div class="yui-u first rb1">
140
141 <noscript>
142 <div class="para warn"><?php _g('It looks like you have JavaScript disable. Please <a href="%s">enable</a> it to have better render. At the <a href="%s">end</a> of this page there will be download link for you. But what is written between is important.',array('http://www.enable-javascript.com/','#Fclassical'),'p'); ?></div>
143 <style>.ui-button,.ui-button:link{display: none;}</style>
144 </noscript>
145
146 <div class="para">
147 <p>
148 <?php _g('Mageia is provided as ISO image files that have to be written to blank <a href="%s">CD or DVD discs</a>.', array('https://wiki.mageia.org/en/Writing_CD_and_DVD_images'));?>
149 <br>
150 <?php _g('All ISOs can also be launched from a <a %s>USB drive</a>.', array('class="iso2usb"'));?>
151 <span class="warn"><?php _g('Unetbootin is not supported.'); ?></span>
152 </p>
153 <div id="iso2usbEx">
154 <?php _g('Dump Mageia ISO on a USB flash drive',null,'h2');
155
156 _g('"Dumping" an image onto a flash device destroys any prior file-system in the partition; access to any data not destroyed will be lost, and partition capacity will be reduced to the image size. In other words, all prior data on the device is at risk.',null,'p');
157 _g('Unetbootin should not be used to copy the iso image to a USB drive (see below).',null,'p class="warn"');
158 _g('To dump a Mageia installation ISO on a USB stick, you may try one of several tools:',null,'p');
159 echo '<ul>';
160 _g('IsoDumper, available since Mageia 4 inside repo, for Mageia 3, it\'s <a href="%s">here</a>.',array('http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/3/x86_64/media/core/updates_testing/isodumper-0.21-1.mga3.noarch.rpm'),'li');
161 echo '<li>';
162 _g('For windows use <a href="%s">usbdumper.</a>',array('http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/people/marcom/usbdumper.exe'));
163 _g('If it show "writing error or access denied" try the fallowing method: run the console (cmd), then type "diskpart", then "list disk", then select your disk with "select disk", and type "clean" (it will erase the key).',null,'span class="dlinfo"');?>
164 </li>
165 </ul>
166 </div>
167 </div>
168
169 <div class="para" id="format">
170
171 <?php if($classicaldvd == true){?>
172 <div id="classicalEx">
173 <?php _g('Classical Installation Flavours',null,'h2')?>
174
175 <?php _g('The Classical ISO is the traditional way to install Mageia directly. Take a look at the complete <a href="%s">documentation</a> for this installer.', array('../doc/'), 'p'); ?>
176 <p>
177 <?php _g('Up to 167 locales are supported:'); ?>
178 Deutsch, English, Español, Français, Italiano, Português, Svenska, Nederlands, Polski, Dansk, Pусский
179 <?php _g('and so much more!'); ?>
180 <a href="https://wiki.mageia.org/en/Available_locales" hreflang="en"><?php _g('See the comprehensive list')?></a>.
181 </p>
182 <p> <?php
183 _g('These ISOs contains Free Software and some proprietary drivers.');
184 _g('You will be asked of which kind of Software you want to install.');
185 _g('The installer includes the capability of adding the online Mageia repositories during the installation, which means you can install even more packages than those available on the ISO.');?>
186 </p>
187
188 <?php _g('For 32 and 64bit, size of the ISOs is about 4GB. For the dualarch it\'s about 1GB.',null,'p class="dlinfo"');?>
189
190 </div>
191 <?php } ?>
192
193
194 <?php if($live == true){?>
195 <div id="liveEx">
196 <?php _g('LiveCDs and LiveDVDs',null,'h3');?>
197
198 <?php _g('Live ISO\'s let you try %s without installation. You can run Mageia directly from a CD, DVD or USB device, and try it using one of the graphical user interfaces such as GNOME or KDE.', array("$name $version"), 'p');
199 _g('If you are happy with the Mageia experience, you can then install it onto your hard drive from the Live media.', null, 'p');?>
200
201 <p><?php _g('Use LiveCDs and LiveDVDs for fresh new installs ONLY.');?>
202 <span class="warn"><?php _g('DO NOT use these LiveCDs or LiveDVDs to upgrade from from the prior Mageia release!'); ?></span>
203 <?php _g('Use a classical installation and see <a href="%s" hreflang="en">upgrade guide</a>.', array($upgradeguide));?>
204 </p>
205
206 <?php _g('For LiveDVDs, size of the ISOs is about 1.4GB. For the LiveCDs it\'s about 700MB.',null,'p class="dlinfo"');?>
207 </div>
208 <?php } ?>
209
210 <div id="lanEx">
211 <?php _g('Wired Network-based Installation CD',null,'h3');
212 _g('Download quickly and immediately boot into install mode from <em>wired</em> network or a local disk.',null,'p');
213 _g('Have a look in the <a href="%s">wiki</a> to get a list of possibilities.',array('https://wiki.mageia.org/en/Boot.iso_install'),'p');
214 _g('These ISOs change frequently, and as it give real state of Cauldron, they may not work. If it is the case, use above one.',null,'p');
215 _g('Size of the ISOs is about 50MB.',null,'p class="dlinfo"');?>
216 </div>
217
218 <div class="radiobutton">
219 <?php if( $classicaldvd ){?><input type="radio" value="DVD" name="format" id="classical"/>
220 <label for="classical" class="ui-button classical" ><?php _g('Classic Installation')?></label><?php }?>
221 <?php if($live){ ?><input type="radio" id="live" value="Live" name="format" />
222 <label for="live" class="ui-button live"><?php _g('Live Media');?></label><?php }?>
223 <input type="radio" id="lan" value="Boot" name="format" />
224 <label for="lan" class="ui-button lan"><?php _g('Network Installation')?></label>
225 </div>
226 <?php if( !$dual || !$live || !$classicaldvd ){?>
227 <p style="margin-top:1.5em;" class="warn">
228 <?php if(!$dual){ _g('The dualarch is not yet available.');}?>
229 <?php if(!$live) {_g('LiveCDs and LiveDVDs are not yet available.');}?>
230 <?php if(!$classicaldvd){ _g('Classical Installation flavours is not yet available.');}?>
231 </p>
232 <?php }?>
233 </div>
234
235 <?php if($live){ ?>
236 <div class="para" id="livespin">
237 <?php _g('LiveCDs and LiveDVDs',null,'h2');?>
238
239 <div id="livecdEx">
240 <?php _g('LiveCDs',null,'h3');
241 _g('LiveCDs contain only English and is available only in 32bit.',null,'p');?>
242 </div>
243
244 <div id="livedvdEx">
245 <?php _g('LiveDVDs',null,'h3');
246 _g('LiveDVDs contain all languages and is available in both 32 and 64bit.',null,'p');?>
247 </div>
248
249 <div class="radiobutton">
250 <input type="radio" id="livecd" value="CD" name="livespin" />
251 <label for="livecd" class="ui-button livecd"><?php _g('English only (CD)')?></label>
252 <input type="radio" id="livedvd" value="DVD" name="livespin" />
253 <label for="livedvd" class="ui-button livedvd"><?php _g('LiveDVDs')?></label>
254 </div>
255
256 </div>
257
258 <div class="para" id="desktop">
259 <?php _g('Desktop',null,'h2');?>
260
261 <div id="gnomeEx">
262 <?php _g('GNOME Desktop',null,'h3');?>
263 <a href="/g/4/gnome.png"><img style="width: 100%;" src="/g/4/gnome.png" title="GNOME" alt="GNOME"></a>
264 </div>
265 <div id="kdeEx">
266 <?php _g('KDE Desktop',null,'h3');?>
267 <a href="/g/4/kde.png"><img style="width: 100%;" src="/g/4/kde.png" title="KDE" alt="KDE"></a>
268 </div>
269
270 <div class="radiobutton">
271 <input type="radio" id="kde" value="KDE4" name="desktop" />
272 <label for="kde" class="ui-button kde"><?php _g('KDE Desktop')?></label>
273 <input type="radio" id="gnome" value="GNOME" name="desktop" />
274 <label for="gnome" class="ui-button gnome"><?php _g('GNOME Desktop')?></label>
275 </div>
276 </div><?php }/*live*/?>
277
278 <div class="para" id="nat">
279 <?php _g('Network installer',null,'h2');?>
280
281 <div id="freeEx">
282 <?php _g('Network installer, Free Software CD', null,'h3');
283 _g('Contain only free software',null,'p')?>
284 </div>
285 <div id="nonfreeEx">
286 <?php _g('Network installer + nonfree firmware CD', null,'h3');
287 _g('Contain nonfree drivers needed for some disc controllers, some network cards, etc.',null,'p')?>
288 </div>
289 <div class="radiobutton">
290 <input type="radio" id="free" value="-" name="nat" />
291 <label for="free" class="ui-button free"><?php _g('Free Software CD')?></label>
292 <input type="radio" id="nonfree" value="nonfree" name="nat" />
293 <label for="nonfree" class="ui-button nonfree"><?php _g('Nonfree Firmware CD')?></label>
294 </div>
295 </div>
296
297 <div class="para" id="arch">
298 <?php _g('Supported Architecture',null,'h2');?>
299 <div id='64bEx'>
300 <?php _g('64 bit',null,'h3');
301 _g('Most new computers support x86-64 (also known as AMD64 and Intel64), but some laptop processors and netbook processors do not support it.',null,'p')?>
302 </div>
303 <div id='32bEx'>
304 <?php _g('32 bit',null,'h3');
305 _g('This version runs on all PCs including those that support 64 Bit. If you have more than 3 GB of RAM you should prefer the 64 Bit version though.',null,'p')?>
306 </div>
307
308 <?php if($dual){?>
309 <div id='dualEx'>
310 <?php _g('Dualarch',null,'h3');?>
311 <?php _g('The dualarch DVD contains only a minimal list of packages and a lite desktop, %s, to fit on 1GB.',array('RazorQT'),'p');
312 _g('It can be used to install either a 32bit system or a 64bit system, the installer defaults to x86_64 when it detects a 64bit capable CPU.',null, 'p');
313 _g('This ISO is generally for advanced users and system administrator for fast deployment of Mageia.',null, 'p');?>
314 </div>
315 <?php } ?>
316 <div class="radiobutton">
317 <input type="radio" id="32b" value="i586" name="arch" />
318 <label for="32b" class="ui-button 32b"><?php _g('32 bit')?></label>
319 <input type="radio" id="64b" value="x86_64" name="arch" />
320 <label for="64b" class="ui-button 64b"><?php _g('64 bit')?></label>
321 <?php if($dual == true){ ?><input type="radio" id="dual" value="dual" name="arch" />
322 <label for="dual" class="ui-button dual"><?php _g('Dualarch')?></label><?php } ?>
323 </div>
324 </div>
325
326 <div class="dllink para" id="dllink" >
327 <?php _g('Download Method',null,'h2');?>
328 <div id="directEx">
329 <?php _g('Direct Link',null,'h3');
330 _g('You will be redirected to a HTTP or FTP mirror.',null,'p') ?>
331 </div>
332
333
334 <div id="torrentEx">
335 <?php if($torrentavailable){ ?>
336 <?php _g('BitTorrent',null,'h3');
337 _g('We recommend you to use <a href=%s>BitTorrent</a> for downloading as it usually give a higher speeds and more reliable download of large files.',array('http://en.wikipedia.org/wiki/BitTorrent'),'p');?>
338 <?php } else { echo _g('BitTorrent link are not yet available.',null, 'p style="margin-top:1.5em;" class="warn"'); } ?>
339 </div>
340
341 <div class="radiobutton">
342 <?php if($torrentavailable){ ?>
343 <a href="#" id="torrentlink" class="ui-button torrentlink"><?php _g('BitTorrent')?></a><?php }?>
344 <a href="#" id="directlink" class="ui-button directlink"><?php _g('Direct Link')?></a>
345 </div>
346 </div>
347
348 <noscript>
349 <?php if ($classicaldvd){ ?>
350 <div class="para" id="Fclassical">
351 <h2><?php _g('Classical Installation Flavours')?></h2>
352 <table class="fr-table dlt2">
353 <thead>
354 <tr>
355 <th><?php _g('Format');?></th>
356 <th><?php _g('link');?></th>
357 <th><?php _g('BitTorrent');?></th>
358 </tr>
359 </thead>
360 <tbody>
361 <tr>
362 <th class="name" >DVD 32bit<br>DVD 64bit</th>
363 <td>
364 <?php dl_link($name,$version,$release,null,'i586','DVD',false);
365 echo '<br>';
366 dl_link($name,$version,$release,null,'x86_64','DVD',false);
367 echo '</td><td>';
368 dl_link($name,$version,$release,null,'i586','DVD',true,$torrentavailable);
369 echo '<br>';
370 dl_link($name,$version,$release,null,'x86_64','DVD',true,$torrentavailable);?>
371 </td>
372 </tr>
373 <?php if($dual){ ?> <tr>
374 <th class="name">DVD dualarch</th>
375 <td>
376 <?php dl_link($name,$version,$release,null,'dual','DVD',false);?>
377 </td><td>
378 <?php dl_link($name,$version,$release,null,'dual','DVD',true,$torrentavailable);?>
379 </td>
380 </tr><?php } ?>
381 </tbody>
382 </table>
383 </div>
384 <?php } ?>
385
386 <?php if($live){ ?>
387 <div class="para" id="Flive">
388 <h2><?php _g('LiveCDs and LiveDVDs');?></h2>
389 <table class="fr-table dlt2">
390 <thead>
391 <tr>
392 <th><?php _g('Desktop');?></th>
393 <th><?php _g('link');?></th>
394 <th><?php _g('BitTorrent');?></th>
395 </tr>
396 </thead>
397 <tbody>
398 <tr>
399 <th class="name" style="width:60%">LiveDVD KDE</th>
400 <td>
401 <?php dl_link($name,$version,$release,'LiveDVD-KDE4','i586','DVD',false);
402 echo '<br>';
403 dl_link($name,$version,$release,'LiveDVD-KDE4','x86_64','DVD',false);
404 echo '</td><td>';
405 dl_link($name,$version,$release,'LiveDVD-KDE4','i586','DVD',true,$torrentavailable);
406 echo '<br>';
407 dl_link($name,$version,$release,'LiveDVD-KDE4','x86_64','DVD',true,$torrentavailable);?>
408 </td>
409 </tr>
410 <tr>
411 <th class="name">LiveDVD GNOME</th>
412 <td>
413 <?php dl_link($name,$version,$release,'LiveDVD-GNOME','i586','DVD',false);
414 echo '<br>';
415 dl_link($name,$version,$release,'LiveDVD-GNOME','x86_64','DVD',false);
416 echo '</td><td>';
417 dl_link($name,$version,$release,'LiveDVD-GNOME','i586','DVD',true,$torrentavailable);
418 echo '<br>';
419 dl_link($name,$version,$release,'LiveDVD-GNOME','x86_64','DVD',true,$torrentavailable);?>
420 </td>
421 <tr>
422 <th class="name">LiveCD KDE</th>
423 <td>
424 <?php dl_link($name,$version,$release,'LiveCD-KDE4-en','i586','CD',false);
425 echo '</td><td>';
426 dl_link($name,$version,$release,'LiveCD-KDE4-en','i586','CD',true,$torrentavailable);?>
427 </td>
428 </tr>
429 <tr>
430 <th class="name">LiveCD GNOME</th>
431 <td>
432 <?php dl_link($name,$version,$release,'LiveCD-GNOME-en','i586','CD',false);
433 echo '</td><td>';
434 dl_link($name,$version,$release,'LiveCD-GNOME-en','i586','CD',true,$torrentavailable);?>
435 </tr>
436
437 </tbody>
438 </table>
439
440 </div>
441 <?php }?>
442
443 <div class="para" id="Flan">
444 <h2><?php _g('Wired Network-based Installation CD')?></h2>
445
446 <table class="fr-table dlt2">
447 <thead>
448 <tr>
449 <th><?php _g('Format');?></th>
450 <th><?php _g('link');?></th>
451 </tr>
452 </thead>
453 <tbody>
454 <tr>
455 <th><?php _g('Network installer, Free Software CD')?></th>
456 <td><?php dl_link($name,$version,$release,'Boot','i586','CD',false);
457 echo '<br>';
458 dl_link($name,$version,$release,'Boot','x86_64','CD',false);?>
459 </td>
460 </tr>
461 <tr>
462 <th><?php _g('Network installer + nonfree firmware CD')?><br>
463 <td><?php dl_link($name,$version,$release,'Boot-nonfree','i586','CD',false);
464 echo '<br>';
465 dl_link($name,$version,$release,'Boot-nonfree','x86_64','CD',false);?>
466 </td>
467 </tr>
468 </tbody>
469 </table>
470 </div>
471 </noscript>
472 </div>
473
474 <div class="yui-u">
475 <div class="para" style="padding-left: 1em;">
476 <ul class="hl">
477 <li><a href=<?php echo sprintf('"%s">',$releasenotes); _g('Release notes')?></a></li>
478 <li><a href=<?php echo sprintf('"%s">',$errata); _g('Errata')?></a></li>
479 <?php /* _g('<a href="%s">Which to choose</a>', array('https://wiki.mageia.org/en/Installation_Media'),'li')?></li>
480 <?php _g('<a href="%s">Get ISO on USB flash drive</a>', array('https://wiki.mageia.org/en/Installation_Media#Dump_Mageia_ISO_on_a_USB_flash_drive.3F'),'li') */?>
481 <li><?php _g('Newcomer? <a href="%s">Here\'s a wiki page for you.</a>', array('https://wiki.mageia.org/en/Newcomers_start_here'))?></li>
482 <li><?php _g('Help us on %s', array("<a href=\"../contribute\">$name $version</a>"))?></li>
483 </ul>
484 <?php
485 echo '<br>';
486 _g('Looking for a stable release?', null, 'h3');
487 echo '<p>';
488 _g('It is <a href="%s">here</a>.', array('../downloads/'));
489 echo '</p>';
490
491 /* _g('Upgrading<br>from %s ?', array('Mageia 4'), 'h3')?>
492 <ul class="hl"><?php
493 _g('<strong>do not</strong> use LiveCDs;', null, 'li');
494 _g('see the <a href="%s" hreflang="en">upgrade guide</a>', array($upgradeguide), 'li');
495 echo '</ul><br>';
496
497 _g('Looking for %s ?', array('Mageia 4'), 'h3');
498 echo '<p>';
499 _g('It is <a href="%s">here</a>.', array('../4/'),' ');
500 echo '<span class="warn">', _g('But please remember that it already <a href="%s">reached EOL</a>.',array('https://blog.mageia.org/en/2013/11/21/farewell-mageia-2/')) . '</span>';
501 echo '</p>';
502
503 _g('Need more challenge?', null, 'h3');
504 _g('You can <a href="%s">help</a> us <a href="%s">on %s</a>.', array('../contribute/','../contribute/','Mageia 6'));
505 */ ?>
506 </div>
507 <hr>
508 </div>
509 </div>
510 </div>
511 </div>
512 <script>
513
514 $(function () {
515
516 function scrolltoid(id){ $('html, body').animate({ scrollTop: $(id).offset().top }, 800); }
517
518 function gettooltip($cl, $id, $x, $y){
519 $($cl).tooltipsy({
520 alignTo: 'cursor',
521 offset: [($x), ($y)],
522 delay:500,
523 content: function ($el, $tip) {
524 $tip.html($($id).remove().html())
525 },
526 hide: function (e, $el) {
527 setTimeout(function(){
528 $el.hide();
529 }, 400);
530 }
531 });
532 }
533
534 $('#iso2usb,#arch,#nat,#desktop,#livespin,#dllink').hide();
535 $('input[name=format]').click(function () {
536 $('#arch,label[for="dual"]')[this.id == 'classical' ? 'slideDown' : 'slideUp']();
537 $('label[for="64b"],#64bex').show();
538 $('#livespin')[this.id == 'live' ? 'slideDown' : 'slideUp']();
539 $('#nat')[this.id == 'lan' ? 'slideDown' : 'slideUp']();
540 if ($('#classical').is(':checked')) {
541 $('input[name="arch"],input[name="dllink"]').prop('checked', false);
542 }
543
544 if ($('#live').is(':checked')) {
545 $('input[name="livespin"],input[name="arch"],input[name="dllink"]').prop('checked', false);
546 }
547
548 if ($('#lan').is(':checked')) {
549 $('input[name="nat"],input[name="arch"],input[name="dllink"]').prop('checked', false);
550 }
551
552 $('#desktop')[$('#lan,#live,#classical').is(':checked') ? 'slideUp' : 'slideDown']();
553 $('#dllink')[$('#lan,#live,#classical').is(':checked') ? 'slideUp' : 'slideDown']();
554 });
555
556 $('input[name=nat]').click(function () {
557 $('#arch')[ $('#free,#nonfree').is(':checked') ? 'slideDown' : 'slideUp']();
558 });
559
560 $('input[name=livespin]').click(function () {
561 $('#desktop')[ $('#livecd,#livedvd').is(':checked') ? 'slideDown' : 'slideUp']();
562 if ($('#livecd').is(':checked') && $('#64b').is(':checked')) {
563 $('input[id="32b"]').prop('checked', true);
564 }
565 $('label[for="64b"],#64bex')[$('#livecd').is(':checked') ? 'slideUp' : 'slideDown']();
566 });
567
568 $('input[name=desktop]').click(function () {
569 $('#arch')[ $('#gnome,#kde').is(':checked') ? 'slideDown' : 'slideUp']();
570 if (checked) {
571 scrolltoid('#arch')
572 }
573 });
574
575 $('input[name=arch]').click(function () {
576 $('#dllink')[$('#32b,#64b,#dual').is(':checked') ? 'slideDown' : 'slideUp']();
577 $('input[name="dllink"]').prop('checked', false);
578 $('#torrentEx,#torrentlink')[$('#lan').is(':checked') ? 'hide' : 'show']();
579 scrolltoid('#dllink')
580 });
581
582 $('#directlink,#torrentlink').hover(function () {
583 format = $('input[name=format]:checked').val();
584 livespin = $('input[name=livespin]:checked').val();
585 desktop = $('input[name=desktop]:checked').val();
586 desktop = (livespin == 'CD') ? desktop + '-en' : desktop;
587 nat = (nat = $('input[name=nat]:checked').val()) == '-' ? '-' : '-' + nat + '-';
588 arch = $('input[name=arch]:checked').val();
589 getname ='<?php echo get_mageia($name, $version, $release)?>' + '-';
590 file = $('#live').is(':checked') ? format + livespin + '-' + desktop + '-' + arch + '-' + livespin + '.iso' : $('#classical').is(':checked') ? arch + '-' + format + '.iso' : format + nat + arch + '-CD.iso';
591 file = (this.id == 'torrentlink') ? getname + file + '&torrent=1' : getname + file ;
592 $("a.ui-button").attr('href','../downloads/get/?q=' + file);
593 });
594
595 gettooltip('.iso2usb', '#iso2usbEx',0,1)
596 gettooltip('.classical', '#classicalEx',20,-70)
597 gettooltip('.live', '#liveEx',20,-70)
598 gettooltip('.lan','#lanEx',20,-70)
599 gettooltip('.livecd', '#livecdEx',20,-70)
600 gettooltip('.livedvd', '#livedvdEx',20,-70)
601 gettooltip('.gnome', '#gnomeEx',20,-300)
602 gettooltip('.kde', '#kdeEx',20,-300)
603 gettooltip('.free', '#freeEx',20,-70)
604 gettooltip('.nonfree','#nonfreeEx',20,-70)
605 gettooltip('.32b', '#32bEx',20,-70)
606 gettooltip('.64b', '#64bEx',20,-70)
607 gettooltip('.dual', '#dualEx',20,-70)
608 gettooltip('.directlink', '#directEx',20,-40)
609 gettooltip('.torrentlink','#torrentEx',20,-40)
610
611 });
612 </script>
613 </body>
614 </html>

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.30