1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 17:59:21 +02:00

Add artist prefix on album art title

This commit is contained in:
Afterster 2016-02-27 07:48:27 +01:00
parent 4dd4917ff9
commit be38dca973
3 changed files with 9 additions and 3 deletions

View file

@ -824,7 +824,8 @@ class Album extends database_object implements library_item
} }
if ($id !== null && $type !== null) { if ($id !== null && $type !== null) {
Art::display($type, $id, $this->get_fullname(), $thumb, $this->link); $title = '[' . ($this->f_album_artist_name ?: $this->f_artist) . '] ' . $this->f_name;
Art::display($type, $id, $title, $thumb, $this->link);
} }
} }

View file

@ -65,7 +65,12 @@
?> ?>
<div class="np_group" id="np_group_3"> <div class="np_group" id="np_group_3">
<div class="np_cell cel_albumart"> <div class="np_cell cel_albumart">
<?php Art::display('album', $media->album, $media->get_fullname(), 1, AmpConfig::get('web_path') . '/albums.php?action=show&album=' . $media->album); <?php
$album = new Album($media->album);
if ($album->id) {
$album->format();
$album->display_art(1);
}
?> ?>
</div> </div>
</div> </div>

View file

@ -40,7 +40,7 @@ if ($albums) {
$thumb = 11; $thumb = 11;
$show_play = false; $show_play = false;
} }
Art::display_item($album, $thumb, $album->link); $album->display_art($thumb);
} else { } else {
?> ?>
<a href="<?php $album->link; <a href="<?php $album->link;