From 6e44a9eb31786818eb868f63c649283244cc3646 Mon Sep 17 00:00:00 2001 From: Manuel Hiebel Date: Tue, 20 Feb 2018 10:25:09 +0100 Subject: draft for a download page for all isos --- en/downloads/alt.php | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 en/downloads/alt.php diff --git a/en/downloads/alt.php b/en/downloads/alt.php new file mode 100644 index 000000000..b90c87b84 --- /dev/null +++ b/en/downloads/alt.php @@ -0,0 +1,102 @@ + + + + + + <?php echo sprintf(_g('Download').' '. ' Mageia')?> + + + + + + + +

+ + +
+ +
+

+ CD or DVD discs.', array(_r('https://wiki.mageia.org/en/Writing_CD_and_DVD_images')), ' '); ?> +
+ USB drive.', array('href="' . _r('https://wiki.mageia.org/en/Installation_Media#Dump_Mageia_ISO_on_a_USB_flash_drive') . '"')); + echo '

'; + _g('To dump a Mageia installation ISO on a USB stick, you may try one of several tools:', array(''),'p'); + echo '
  • '; + _g('For Linux, IsoDumper, available inside repo. Or any tools based on %sdd%s.', array('', ''), ' '); + _g('Unetbootin is not supported.', null, 'span class="warn"'); ?> +
  • + wiki for your options.', array(_r('https://wiki.mageia.org/en/Dump_Mageia_ISO_on_a_USB_flash_drive_-_Alternative_tools')), 'li'); ?> +
+

+ +

+

+ UEFI, a procedure is available in the wiki.', array(_r('http://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface'),_r('https://wiki.mageia.org/en/Installing_on_systems_with_UEFI_firmware' /*this will be changed to tooltip, so no more url*/))) ;?> +

+
+ +%s',$url, $name); + $table .= sprintf('%s',$url , $torrent ? 'torrent': ''); + $table .= sprintf('%s',$magnet , $magnet ? 'magnet': ''); + $table .= sprintf('%s'. PHP_EOL, $size); + return $table; +}; + +foreach ($ini as $section => $values) { +$version = $values['name'][7]; +$name = $values['name']; +$torrent = $values['torrent']; +$magnet = $values['magnet']; +$size = $values['size']; + +if ($version == $stableVersion){ + $tables .= doTheTable($section, $name, $torrent, $magnet, $size); +}elseif ($version == $cauldron){ + $tablec .= doTheTable($section, $name, $torrent, $magnet, $size); +}else{ + $tablea .= doTheTable($section, $name, $torrent, $magnet, $size); +} +}; + +function allDiv($version, $table, $show){ + + $div = sprintf('
', $version); + $div .= sprintf('
'. PHP_EOL,$version, $version, $version); + $div .= sprintf('
' . PHP_EOL, $version, $show, $version); + $div .= ''; + $div .= sprintf('' . PHP_EOL); + $div .= sprintf('%s
isotorrentmagnetsize
' . PHP_EOL, $table); + echo $div . '
'. PHP_EOL; +} + + +echo '
'; + +allDiv('Stable', $tables, 'show'); +allDiv('Unstable', $tablec); +allDiv('Archives', $tablea); + +?> +
+
+ + + -- cgit v1.2.1