From: Hendrik B. <nh...@us...> - 2011-12-04 19:16:16
|
Update of /cvsroot/arianne/website/content In directory vz-cvs-4.sog:/tmp/cvs-serv26360/content Modified Files: details.php Log Message: use a comma seperated list instead of an item list for authors to use less space Index: details.php =================================================================== RCS file: /cvsroot/arianne/website/content/details.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** details.php 4 Dec 2011 18:43:38 -0000 1.7 --- details.php 4 Dec 2011 19:16:14 -0000 1.8 *************** *** 155,161 **** // authors echo '<div class="game_authors"><a name="authors"></a><h2>Authors</h2><p>'.$game['page']['0 attr']['name'].' has been developed by:</p><ul>'; foreach ($game['page'][0]['authors'][0]['entry'] as $author) { if (is_array($author)) { ! echo '<li><a href="'.$author['url'].'">'.$author['name'].'</a></li>'; } } --- 155,167 ---- // authors echo '<div class="game_authors"><a name="authors"></a><h2>Authors</h2><p>'.$game['page']['0 attr']['name'].' has been developed by:</p><ul>'; + $first = true; foreach ($game['page'][0]['authors'][0]['entry'] as $author) { if (is_array($author)) { ! if ($first) { ! $first = false; ! } else { ! echo ', '; ! } ! echo '<a href="'.$author['url'].'">'.$author['name'].'</a>'; } } |