diff options
author | spocky <spocky@ampache> | 2007-11-13 20:57:07 +0000 |
---|---|---|
committer | spocky <spocky@ampache> | 2007-11-13 20:57:07 +0000 |
commit | 1379769b18e6146e5a7c97c6a879fac4e41ff6b6 (patch) | |
tree | 1e9dc112e69d460c9e73da8daae19c16a864e3c7 /templates/list_header.inc.php | |
parent | ab6ecea9dbc4b53a7442db6f3695d68f9ba36f99 (diff) | |
download | ampache-1379769b18e6146e5a7c97c6a879fac4e41ff6b6.tar.gz ampache-1379769b18e6146e5a7c97c6a879fac4e41ff6b6.tar.bz2 ampache-1379769b18e6146e5a7c97c6a879fac4e41ff6b6.zip |
- Updated Now Playing html/css
- Fixed Star-rating css
- Updated Pager (5 elements around selected page# should be enough)
- Updated Album class so that disk# is part of the link
- Some more cleanup/updates to html/themes (hopefully it should be almost done in a week, so that themers can start theming on 3.4)
Diffstat (limited to 'templates/list_header.inc.php')
-rw-r--r-- | templates/list_header.inc.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/list_header.inc.php b/templates/list_header.inc.php index 9469cd85..c465a6b0 100644 --- a/templates/list_header.inc.php +++ b/templates/list_header.inc.php @@ -30,7 +30,8 @@ $limit = $GLOBALS['user']->prefs['offset_limit'] ? $GLOBALS['user']->prefs['offset_limit'] : '25'; $start = Browse::$start; $total = Browse::$total_objects; -$uid = Config::get('list_header_uid'); +$uid = Config::get('list_header_uid'); +$sides = 5; // ++ the uid Config::set('list_header_uid',$uid+1); @@ -63,7 +64,7 @@ $page = $current_page; $i = 0; /* While we have pages left */ while ($page > 0) { - if ($i == '10') { $page_data['down'][1] = '...'; $page_data['down'][0] = '0'; break; } + if ($i == $sides) { $page_data['down'][1] = '...'; $page_data['down'][0] = '0'; break; } $i++; $page = $page - 1; $page_data['down'][$page] = $page * $limit; @@ -75,7 +76,7 @@ $i = 0; /* While we have pages left */ while ($page <= $pages) { if ($page * $limit > $total) { break; } - if ($i == '10') { + if ($i == $sides) { $key = $pages - 1; if (!$page_data['up'][$key]) { $page_data['up'][$key] = '...'; } $page_data['up'][$pages] = ($pages-1) * $limit; |