'Switzerland', 'CN' => 'China', 'CZ' => 'Czechia', 'DE' => 'Deutschland (Germany)', 'FR' => 'France', 'GR' => 'Greece', 'NC' => 'New Caledonia', 'NL' => 'Nederlands', 'UK' => 'the UK', 'US' => 'the USA', ); $tmpl = << %s %s %s %s %s T; //%s $s = ''; $glob = array_shift($prods); $i = 0; foreach ($prods as $k => $p) { $iso = sprintf('%s-%s', $glob['prefix'], $k); $dl_link = sprintf('/%s/downloads/dl.php?product=%s', $locale, $iso); $bt_link = isset($p['torrent']) ? sprintf('/%s/downloads/dl.php?product=%s&torrent=1', $locale, $iso) : null; $pop = rand(0,5); $s .= sprintf($tmpl, '', //($i == 0) ? ' class="reco"' : '', $p['name'], $_t[$p['lang']], $p['size'], //$pop, $pop, $dl_link, $_t['download'], $bt_link, !is_null($bt_link) ? $_t['download'] : ''); $i++; } $dl_table = << {$_t['flavour']} {$_t['language']} {$_t['size']} {$_t['link']} BitTorrent {$s}

Live CDs will be released as soon as ready.

{$_t['all_languages']}

{$_t['limited_languages']}

T;