website: update to bootstrap 3
also, some initial work on making the 'faq' page data driven
This commit is contained in:
@ -6,7 +6,7 @@ include_once ( "userscript.php" );
|
||||
function iitcDesktopDownload ( $build )
|
||||
{
|
||||
$iitc_details = loadUserScriptHeader ( "$build/total-conversion-build.user.js" );
|
||||
$iitc_version = preg_replace ( '/^(\d+\.\d+\.\d+)\.(\d{8}\.\d{1,6})/', '\1<small class="muted">.\2</small>', $iitc_details['@version'] );
|
||||
$iitc_version = preg_replace ( '/^(\d+\.\d+\.\d+)\.(\d{8}\.\d{1,6})/', '\1<small class="text-muted">.\2</small>', $iitc_details['@version'] );
|
||||
|
||||
print "<p>IITC version $iitc_version</p>\n";
|
||||
|
||||
@ -123,7 +123,7 @@ function iitcDesktopPluginDownloadTable ( $build )
|
||||
$name = preg_replace ( '/^IITC plugin: /i', '', $details['@name'] );
|
||||
|
||||
# format extended version info in less prominent font
|
||||
$version = preg_replace ( '/^(\d+\.\d+\.\d+)\.(\d{8}\.\d{1,6})/', '\1<br><small class="muted">.\2</small>', $details['@version'] );
|
||||
$version = preg_replace ( '/^(\d+\.\d+\.\d+)\.(\d{8}\.\d{1,6})/', '\1<br><small class="text-muted">.\2</small>', $details['@version'] );
|
||||
|
||||
# remove unneeded prefix from description
|
||||
$description = preg_replace ( '/^\[[^]]*\] */', '', $details['@description'] );
|
||||
@ -142,7 +142,7 @@ function iitcDesktopPluginDownloadTable ( $build )
|
||||
|
||||
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 "<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\"><span class=\"glyphicon glyphicon-download\"></span></a></td>";
|
||||
}
|
||||
|
||||
print "</tr>\n";
|
||||
|
Reference in New Issue
Block a user