'; } else if ($data['uri'] == null) { print '
'; } 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 '
'; } } function directoryControlHeader($prefix, $name = null) { print ''; if ($name !== null) { print '
'.$name.'
'; } } function printRadioDirectory($att) { $name = md5($att['URL']); print ''; print ''; print ''; print '
'; } function playlistPlayHeader($name, $text) { logger::log("UI", "Getting image for playlist",$name); $albumimage = new albumImage(array('artist' => "PLAYLIST", 'album' => $text)); $image = $albumimage->get_image_if_exists(); if ($image) { $images = $albumimage->get_images(); print '
'; } print '
'.get_int_text('label_play_all'); print ''; print '
'; } function addPodcastCounts($html, $extra) { $out = phpQuery::newDocument($html); $out->find('.menuitem')->append($extra); return $out; } function addUserRadioButtons($html, $index, $uri, $name, $image) { $out = phpQuery::newDocument($html); $extra = '
'; $out->find('.menuitem')->append($extra); return $out; } function addPlaylistControls($html, $delete, $is_user, $name) { global $prefs; $out = phpQuery::newDocument($html); if ($delete && ($is_user || $prefs['player_backend'] == "mpd")) { $add = ($is_user) ? "user" : ""; $h = ''; $h .= ''; $h .= ''; $h .= ''; $out->find('.menuitem')->append($h); } return $out; } ?>