update desktop download page

- scripts are opened in a new window - works better with the latest tampermonkey update on chrome
- new categories for obsolete and deleted plugins added, in preperatin for the next release
This commit is contained in:
Jon Atkins 2013-08-28 23:56:07 +01:00
parent 6525189932
commit 8d08e5bc29

View File

@ -10,7 +10,7 @@ function iitcDesktopDownload ( $build )
print "<p>IITC version $iitc_version</p>\n";
print "<a class=\"btn btn-large btn-primary\" onclick=\"if(track){track('desktop','iitc','$build');}\" href=\"$build/total-conversion-build.user.js\">Download</a>\n";
print "<a class=\"btn btn-large btn-primary\" onclick=\"if(track){track('desktop','iitc','$build');}\" href=\"$build/total-conversion-build.user.js\" target=\"_blank\">Download</a>\n";
}
function loadPopularity()
@ -52,6 +52,8 @@ function iitcDesktopPluginDownloadTable ( $build )
'Map Tiles' => "Alternative map layers",
'Tweaks' => "Adjust IITC settings",
'Misc' => "Unclassified plugins",
'Obsolete' => "Plugins that are no longer recommended, due to being superceeded by others or similar",
'Deleted' => "Deleted plugins - listed here for reference only. No download available"
);
$popularity = loadPopularity();
@ -137,7 +139,12 @@ function iitcDesktopPluginDownloadTable ( $build )
print "<td class=\"popularity\">$plugin_users</td>";
print "<td class=\"id\">$basename</td>";
print "<td class=\"version\" rowspan=\"2\">$version</td>";
print "<td class=\"download\" rowspan=\"2\"><a onclick=\"if(track){track('desktop','iitc-plugin-$basename','$build');}\" href=\"$path\" class=\"btn btn-small btn-primary\" title=\"Download\"><i class=\"icon-download icon-white\"></i></a></td>";
if ( $category != "Deleted" )
{
print "<td class=\"download\" rowspan=\"2\"><a onclick=\"if(track){track('desktop','iitc-plugin-$basename','$build');}\" href=\"$path\" target=\"_blank\" class=\"btn btn-small btn-primary\" title=\"Download\"><i class=\"icon-download icon-white\"></i></a></td>";
}
print "</tr>\n";
print "<tr><td class=\"description\" colspan=\"3\" style=\"border-top: none; padding-top: 0; padding-bottom: 0.5em\">$description</td></tr>\n";