Merge branch 'master' into new-map-data
This commit is contained in:
commit
58810f3419
@ -10,7 +10,7 @@ function iitcDesktopDownload ( $build )
|
|||||||
|
|
||||||
print "<p>IITC version $iitc_version</p>\n";
|
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()
|
function loadPopularity()
|
||||||
@ -52,6 +52,8 @@ function iitcDesktopPluginDownloadTable ( $build )
|
|||||||
'Map Tiles' => "Alternative map layers",
|
'Map Tiles' => "Alternative map layers",
|
||||||
'Tweaks' => "Adjust IITC settings",
|
'Tweaks' => "Adjust IITC settings",
|
||||||
'Misc' => "Unclassified plugins",
|
'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();
|
$popularity = loadPopularity();
|
||||||
@ -137,7 +139,12 @@ function iitcDesktopPluginDownloadTable ( $build )
|
|||||||
print "<td class=\"popularity\">$plugin_users</td>";
|
print "<td class=\"popularity\">$plugin_users</td>";
|
||||||
print "<td class=\"id\">$basename</td>";
|
print "<td class=\"id\">$basename</td>";
|
||||||
print "<td class=\"version\" rowspan=\"2\">$version</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>\n";
|
||||||
print "<tr><td class=\"description\" colspan=\"3\" style=\"border-top: none; padding-top: 0; padding-bottom: 0.5em\">$description</td></tr>\n";
|
print "<tr><td class=\"description\" colspan=\"3\" style=\"border-top: none; padding-top: 0; padding-bottom: 0.5em\">$description</td></tr>\n";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user