summaryrefslogtreecommitdiffstats
path: root/lib/class/album.class.php
diff options
context:
space:
mode:
authorspocky <spocky@ampache>2007-11-13 20:57:07 +0000
committerspocky <spocky@ampache>2007-11-13 20:57:07 +0000
commit1379769b18e6146e5a7c97c6a879fac4e41ff6b6 (patch)
tree1e9dc112e69d460c9e73da8daae19c16a864e3c7 /lib/class/album.class.php
parentab6ecea9dbc4b53a7442db6f3695d68f9ba36f99 (diff)
downloadampache-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 'lib/class/album.class.php')
-rw-r--r--lib/class/album.class.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/class/album.class.php b/lib/class/album.class.php
index c351b085..cd54eccd 100644
--- a/lib/class/album.class.php
+++ b/lib/class/album.class.php
@@ -209,9 +209,17 @@ class Album {
foreach ($data as $key=>$value) { $this->$key = $value; }
/* Truncate the string if it's to long */
- $this->f_name = truncate_with_ellipsis($this->name,Config::get('ellipsis_threshold_album'));
- $this->f_name_link = "<a href=\"$web_path/albums.php?action=show&amp;album=" . scrub_out($this->id) . "\" title=\"" . scrub_out($this->name) . "\">" . $this->f_name . "</a>";
- $this->f_link = $this->f_name_link;
+ $this->f_name = truncate_with_ellipsis($this->name,Config::get('ellipsis_threshold_album'));
+
+ //
+ $this->f_name_link = "<a href=\"$web_path/albums.php?action=show&amp;album=" . scrub_out($this->id) . "\" title=\"" . scrub_out($this->name) . "\">" . $this->f_name;
+ // If we've got a disk append it
+ if ($this->disk) {
+ $this->f_name_link .= " <span class=\"discnb disc" .$this->disk. "\">[" . _('Disk') . " " . $this->disk . "]</span>";
+ }
+ $this->f_name_link .="</a>";
+
+ $this->f_link = $this->f_name_link;
$this->f_title = $name;
if ($this->artist_count == '1') {
$artist = scrub_out(truncate_with_ellipsis(trim($this->artist_prefix . ' ' . $this->artist_name),Config::get('ellipsis_threshold_album')));
@@ -227,11 +235,6 @@ class Album {
$this->year = "N/A";
}
- // If we've got a disk append it
- if ($this->disk) {
- $this->f_name_link .= ' [' . _('Disk') . ' ' . $this->disk . ']';
- }
-
} // format
/**