rework mobile download links - add in QR code too

This commit is contained in:
Jon Atkins
2013-04-30 18:52:54 +01:00
parent e4db5ce340
commit 2986e5408f
4 changed files with 74 additions and 52 deletions

View File

@ -38,22 +38,14 @@ IITC Mobile is still in the early stages of development. Many things do not yet
<?php
include_once ( "code/mobile-version.php" );
include_once ( "code/mobile-download.php" );
$apkfile = "mobile/IITC-Mobile-0.3.apk";
if ( file_exists($apkfile) )
{
$version = getMobileVersion ( $apkfile );
$apk_version = $version['apk_version'];
$iitc_version = preg_replace ( '/^(\d+\.\d+\.\d+)\.(\d{8}\.\d{6})/', '\1<small class="muted">.\2</small>', $version['iitc_version'] );
print "<p>IITC Mobile version $apk_version, with IITC version $iitc_version</p>\n";
print "<p><a onclick=\"if(track)({track{'mobile','download','release');}\" class=\"btn btn-large btn-primary\" href=\"$apkfile\">Download</a></p>\n";
iitcMobileDownload ( $apkfile );
}
else
{