getName() != "") { $mixFound = true; $title = $mix->getName(); } else { $title = $locale['notfound']; } } else { $title = $locale['notfound']; } // if this is a playcount PUT request, update the playcount if ($_SERVER['REQUEST_METHOD'] === 'PUT') { $data = json_decode(file_get_contents('php://input'), true); if (isset($data['mix']) && $data['mix'] != "") { $playcount = new Playcount($data['mix'], $db); $playcount->updatePlaycount(); echo json_encode(['success' => true]); } else { echo json_encode(['error' => 'No mix provided']); } exit; // Stop further output } require_once 'includes/header.php'; ?>
getCover() != "") { echo "avatar"; } ?>

getName(); ?>

getDescription() != "") { echo "

" . $mix->getDescription() . "

"; } ?>
isDownloadOnly()) { echo "" . $locale['download'] . ""; } else { ?>
0:00 / 0:00

getName(); ?>


getDJs(); $djCount = count($djs); $i = 0; foreach ($djs as $dj) { echo "" . $dj->getName() . ""; if ($i < $djCount - 1) { echo ", "; } $i++; } ?>

getGenres(); $genreCount = count($genres); if ($genreCount > 0) { ?>

get_slug(); echo "'>" . $genre->get_name() . ""; if ($i < $genreCount - 1) { echo ", "; } $i++; } ?>

getMixshow(); $mixshowsCount = count($mixshows); if ($mixshowsCount > 0) { ?>

get_slug(); echo "'>" . $mixshow->get_name() . ""; if ($i < $mixshowsCount - 1) { echo ", "; } $i++; } ?>


getDuration(); // Decide the correct singular or plural term $hour_text = $time['h'] == 1 ? $locale['hour'] : $locale['hours']; $minute_text = $time['m'] == 1 ? $locale['minute'] : $locale['minutes']; $second_text = $time['s'] == 1 ? $locale['second'] : $locale['seconds']; // Output the time, skipping hours if it is less than one hour if ($time['h'] > 0) { // If there are hours, always show hours. echo $time['h'] . " " . $hour_text; if ($time['m'] > 0) { // Show minutes only if they are greater than 0. echo ", " . $time['m'] . " " . $minute_text; } // Always show seconds, regardless of minutes. echo ", " . $time['s'] . " " . $second_text; } else { // No hours, check minutes. if ($time['m'] != 0) { echo $time['m'] . " " . $minute_text . ", " . $time['s'] . " " . $second_text; } else { // Only seconds to show. echo $time['s'] . " " . $second_text; } } echo " (" . $time['t'] . ")"; ?>

getRecorded() != ""): ?>

getRecorded(); ?>

getCreated() != ""): ?>

getCreated(); ?>


getDownloads(); ?>


getPlaycount(); ?>

getUpdated() != "") { ?>

getUpdated(); ?>

getTracklist() != []) { ?>

    getTracklist(); foreach ($tracklist as $track) { echo "
  • "; echo $track; echo "
  • "; } ?>