예제 #1
0
}
/**
* Displays the track details for the currently playing track in WMP
*
* @author Ross Carlson
* @since 8.3.06
* @version 8.3.06
**/
global $this_site, $root_dir, $jzSERVICES, $web_root;
// Let's setup our display object
$display = new jzDisplay();
// Let's create the track object
$track = new jzMediaTrack($_GET['jz_path']);
$meta = $track->getMeta();
// Now let's get the album and artist
$album = $track->getNaturalParent("album");
$artist = $album->getNaturalParent("artist");
$desc = $album->getDescription();
while (substr($desc, 0, 4) == "<br>" or substr($desc, 0, 6) == "<br />") {
    if (substr($desc, 0, 4) == "<br>") {
        $desc = substr($desc, 5);
    }
    if (substr($desc, 0, 6) == "<br />") {
        $desc = substr($desc, 7);
    }
}
// Now let's get the art
$art = $album->getMainArt("200x200");
if ($art != "") {
    $albumArt = $display->returnImage($art, $album->getName(), 150, 150, "limit", false, false, "left", "3", "3");
} else {