';
} else {
print '
';
}
// Track Number
if ($data['trackno'] && $data['trackno'] != "" && $data['trackno'] > 0) {
print '
99 || $data['trackno'] > 99) {
print ' style="width:3em"';
}
print '>'.$data['trackno'].'
';
}
print domainIcon($d, 'collectionicon');
// Track Title, Artist, and Rating
if ((string) $data['title'] == "") $data['title'] = urldecode($data['uri']);
print '
';
print '
'.$data['title'].'
';
if ($data['artist'] && $data['trackartistindex'] != $data['albumartistindex']) {
print '
'.$data['artist'].'
';
}
if ($data['rating']) {
print '
';
print ' ';
print '
';
}
if ($data['tags']) {
print '
';
print ' '.$data['tags'];
print '
';
}
print '
';
// Track Duration
print '
';
if ($data['time'] > 0) {
print format_time($data['time']);
}
print '
';
// Delete Button
if ($data['lm'] === null) {
print '
';
}
print '
';
if ($data['progress'] > 0) {
print '
';
print '
';
}
return 0;
}
function artistHeader($id, $name) {
global $divtype;
$h = '';
return $h;
}
function noAlbumsHeader() {
print '
'.
get_int_text("label_noalbums").'
';
}
function albumHeader($obj) {
global $prefs;
$h = '';
if ($obj['id'] == 'nodrop') {
// Hacky at the moment, we only use nodrop for streams but here there is no checking
// because I'm lazy.
$h .= '';
return $h;
}
function albumControlHeader($fragment, $why, $what, $who, $artist) {
if ($fragment || $who == 'root') {
return '';
}
$html = '';
$html .= '
'.$artist.'
';
$html .= '
'.get_int_text('label_play_all').'
';
return $html;
}
function trackControlHeader($why, $what, $who, $dets) {
$html = '';
foreach ($dets as $det) {
$albumimage = new baseAlbumImage(array('baseimage' => $det['Image']));
$images = $albumimage->get_images();
$html .= '';
if ($why != '') {
$html .= '
'.get_int_text('label_play_options').'
';
$html .= '
';
if ($det['AlbumUri']) {
$albumuri = rawurlencode($det['AlbumUri']);
if (strtolower(pathinfo($albumuri, PATHINFO_EXTENSION)) == "cue") {
$html .= '
';
} else {
$html .= '
';
$html .= '
';
}
} else {
$html .= '
';
}
$html .= '
';
$html .= '
';
$html .= '
';
$html .= '
';
$html .= '
';
$html .= '
'.ucfirst(get_int_text('label_tracks')).'
';
}
}
print $html;
}
function printDirectoryItem($fullpath, $displayname, $prefix, $dircount, $printcontainer = false) {
$c = ($printcontainer) ? "searchdir" : "directory";
print '
';
print '';
if ($printcontainer) {
print '