?> <li class="artist_main"> <?php echo display_artist($Artist); ?> </li> <? } if(!empty($ArtistForm[2]) && count($ArtistForm[2]) > 0) { ?> <li class="artists_with"><strong>With:</strong></li> <? foreach($ArtistForm[2] as $Artist) { ?> <li class="artist_guest"> <?php echo display_artist($Artist); ?> </li> <? } } ?> </ul> </div> <? } ?> <div class="box box_tags"> <div class="head"><strong>Tags</strong></div> <ul class="stats nobullet"> <? foreach($Request['Tags'] as $TagID => $TagName) { ?> <li> <a href="torrents.php?taglist=<?php
function display_artists($Artists, $makelink = true, $IncludeHyphen = true) { if(!empty($Artists)) { switch(count($Artists[1])) { case 0: return ''; case 1: $link = display_artist($Artists[1][0], $makelink); break; case 2: $link = display_artist($Artists[1][0], $makelink).' and '.display_artist($Artists[1][1], $makelink); break; default: $link = 'Various Artists'; } if(!empty($Artists[2])) { switch(count($Artists[2])) { case 1: $link .= ' with '.display_artist($Artists[2][0], $makelink); break; case 2: $link .= ' with '.display_artist($Artists[2][0], $makelink).' and '.display_artist($Artists[2][1], $makelink); break; } } return $link.($IncludeHyphen?' - ':''); } else { return ''; } }