Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=homepage-ng.git;a=commitdiff;h=e7d53fc58d13d9ed732b67072c055a18abcdf93b
commit e7d53fc58d13d9ed732b67072c055a18abcdf93b Author: DeX77 <[email protected]> Date: Tue Sep 6 11:03:50 2016 +0200 * also generate download Links for different flavors diff --git a/frugalware/lib/functions.inc.php b/frugalware/lib/functions.inc.php index b898601..634d78f 100644 --- a/frugalware/lib/functions.inc.php +++ b/frugalware/lib/functions.inc.php @@ -198,7 +198,7 @@ function showListNews ($post) function showGetWidget ($mode, $version, $number, $date, $id, $mirror) { $archs = array("64"); - $devices = array("CD"); + $flavors = array("basic", "gnome", "kde5"); if ($mode == "stable") $title = gettext("Stable version"); @@ -238,20 +238,16 @@ function showGetWidget ($mode, $version, $number, $date, $id, $mirror) <h6>" . $arch . "bits</h6> <ul>"; - // Device - foreach ($devices as $device) + // Flavors + foreach ($flavors as $flavor) { - if ($device == "CD") - $dldevice = "-basic"; - else if ($device == "DVD") - $dldevice = "-full"; $text .= " - <li>" . $device . " "; + <li>" . $flavor . " "; // FTP if ($ftp) - $text .= "<a href=\"ftp://ftp".$dlpath."/frugalware-".$mode."-iso/fvbe-".$number.$dldevice.$dlarch.".iso\">ftp</a>"; + $text .= "<a href=\"ftp://ftp".$dlpath."/frugalware-".$mode."-iso/fvbe-".$number.$flavor.$dlarch.".iso\">ftp</a>"; // If we have both dl system, add a separator if ($http) @@ -259,7 +255,7 @@ function showGetWidget ($mode, $version, $number, $date, $id, $mirror) // HTTP if ($http) - $text .= "<a href=\"http://www".$dlpath."/frugalware-".$mode."-iso/fvbe-".$number.$dldevice.$dlarch.".iso\">http</a>"; + $text .= "<a href=\"http://www".$dlpath."/frugalware-".$mode."-iso/fvbe-".$number.$flavor.$dlarch.".iso\">http</a>"; $text .= " </li>"; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
