diff options
Diffstat (limited to 'templates/show_user_stats.inc.php')
-rw-r--r-- | templates/show_user_stats.inc.php | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/templates/show_user_stats.inc.php b/templates/show_user_stats.inc.php index 5bfdadaf..bac817c5 100644 --- a/templates/show_user_stats.inc.php +++ b/templates/show_user_stats.inc.php @@ -1,5 +1,5 @@ <?php -/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */ +/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ /** * * LICENSE: GNU General Public License, version 2 (GPLv2) @@ -23,45 +23,45 @@ <?php UI::show_box_top(sprintf('%s Favorites'), $working_user->fullname); ?> <table class="tabledata"> <tr> - <td valign="top"> - <?php - if (count($favorite_artists)) { - $items = $working_user->format_favorites($favorite_artists); - $title = '<a href="' . Config::get('web_path') . '/stream.php?action=play_favorite&type=artist">' . - UI::get_icon('all', T_('Favorite Artists')) . '</a> ' . T_('Favorite Artists'); - show_info_box($title,'artist',$items); - } - else { - echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>"; - } - ?> - </td> - <td valign="top"> - <?php - if (count($favorite_albums)) { - $items = $working_user->format_favorites($favorite_albums); + <td valign="top"> + <?php + if (count($favorite_artists)) { + $items = $working_user->format_favorites($favorite_artists); + $title = '<a href="' . Config::get('web_path') . '/stream.php?action=play_favorite&type=artist">' . + UI::get_icon('all', T_('Favorite Artists')) . '</a> ' . T_('Favorite Artists'); + show_info_box($title,'artist',$items); + } + else { + echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>"; + } + ?> + </td> + <td valign="top"> + <?php + if (count($favorite_albums)) { + $items = $working_user->format_favorites($favorite_albums); $title = '<a href="' . Config::get('web_path') . '/stream.php?action=play_favorite&type=album">' . UI::get_icon('all', T_('Favorite Albums')) . '</a> ' . T_('Favorite Albums'); - show_info_box($title,'album',$items); - } - else { - echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>"; - } - ?> - </td> - <td valign="top"> - <?php - if (count($favorite_songs)) { - $items = $working_user->format_favorites($favorite_songs); + show_info_box($title,'album',$items); + } + else { + echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>"; + } + ?> + </td> + <td valign="top"> + <?php + if (count($favorite_songs)) { + $items = $working_user->format_favorites($favorite_songs); $title = '<a href="' . Config::get('web_path') . '/stream.php?action=play_favorite&type=song">' . UI::get_icon('all', T_('Favorite Songs')) . '</a> ' . T_('Favorite Songs'); - show_info_box($title,'your_song',$items); - } - else { - echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>"; - } - ?> - </td> + show_info_box($title,'your_song',$items); + } + else { + echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>"; + } + ?> + </td> </tr> </table> <?php UI::show_box_bottom(); ?> |