diff options
author | xgizzmo <xgizzmo@ampache> | 2006-01-11 02:59:17 +0000 |
---|---|---|
committer | xgizzmo <xgizzmo@ampache> | 2006-01-11 02:59:17 +0000 |
commit | 603f145952f39164b961ac94a46b8a459e7adac0 (patch) | |
tree | 90fb10a0f1a1ea8396af8a41e629b1e63bac30d2 /templates/show_genres.inc.php | |
parent | 67d76f09c28d0c6abae6d966f4cc00a5428bdc74 (diff) | |
download | ampache-603f145952f39164b961ac94a46b8a459e7adac0.tar.gz ampache-603f145952f39164b961ac94a46b8a459e7adac0.tar.bz2 ampache-603f145952f39164b961ac94a46b8a459e7adac0.zip |
More code clean up this should about cover /templates
Diffstat (limited to 'templates/show_genres.inc.php')
-rw-r--r-- | templates/show_genres.inc.php | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/templates/show_genres.inc.php b/templates/show_genres.inc.php index dffcd01b..3f857776 100644 --- a/templates/show_genres.inc.php +++ b/templates/show_genres.inc.php @@ -28,9 +28,9 @@ $total_items = $view->total_items; ?> <table class="border" cellspacing="0" cellpadding="0" border="0"> <tr class="even" align="center"> - <td colspan="5"> - <?php if ($view->offset_limit) { require (conf('prefix') . "/templates/list_header.inc"); } ?> - </td> + <td colspan="5"> + <?php if ($view->offset_limit) { require (conf('prefix') . "/templates/list_header.inc"); } ?> + </td> </tr> <tr class="table-header"> <td><?php echo _("Genre"); ?></td> @@ -38,25 +38,24 @@ $total_items = $view->total_items; <td><?php echo _("Action"); ?></td> </tr> <?php - foreach ($genres as $genre) { - $genre->format_genre(); -?> -<tr class="<?php echo flip_class(); ?>"> - <td><?php echo $genre->link; ?></td> - <td><?php echo $genre->get_song_count(); ?></td> - <td> - <?php echo _("Play"); ?>: - <a href="<?php echo $genre->play_link; ?>">All</a> - | - <a href="<?php echo $genre->random_link; ?>">Random</a> - | - Download - </td> -</tr> +foreach ($genres as $genre) { + $genre->format_genre();?> + <tr class="<?php echo flip_class(); ?>"> + <td><?php echo $genre->link; ?></td> + <td><?php echo $genre->get_song_count(); ?></td> + <td> + <?php echo _("Play"); ?>: + <a href="<?php echo $genre->play_link; ?>">All</a> + | + <a href="<?php echo $genre->random_link; ?>">Random</a> + | + Download + </td> + </tr> <?php } // end foreach genres ?> <tr class="even" align="center"> - <td colspan="5"> - <?php if ($view->offset_limit) { require (conf('prefix') . "/templates/list_header.inc"); } ?> - </td> + <td colspan="5"> + <?php if ($view->offset_limit) { require (conf('prefix') . "/templates/list_header.inc"); } ?> + </td> </tr> </table> |