";
//
// Screenshots
//
if ($row[25])
{
echo "
ScreenshotsAvailable Versions";
$currentBranch = "";
$count = 0;
$limit = 7;
foreach ( $data as $row2 )
{
$row2 = explode("|",rtrim($row2));
if ( $row[1] === $row2[1] )
{
$latestVersionInBranch = false;
if ( $currentBranch !== $row2[3] )
{
$currentBranch = $row2[3];
$latestVersionInBranch = true;
}
if ( $count === $limit )
{
echo " ";
//
// Related apps
//
echo "
1-".$limit." of ".$count." view all Related Apps";
$alreadyDisplayed = array();
foreach ( $data as $row2 )
{
$row2 = explode("|",rtrim($row2));
if ( $row2[5] !== $row[5]
|| $row2[1] === $row[1]
|| isset($alreadyDisplayed[$row2[1]]) )
{
continue;
}
echo getAppButtonHtml($row2);
$alreadyDisplayed[$row2[1]] = true;
}
echo "
|