get_name() != "") { $mixFound = true; $title = $mix->get_name(); } 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(); } } require_once 'includes/header.php'; ?>
get_img() != "") { echo "avatar"; } ?>

get_name(); ?>

get_description() != "") { echo "

" . $mix->get_description() . "

"; } ?>

is_download_only()) { echo "" . $locale['download'] . ""; } else { echo ""; } ?>

get_name(); ?>


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

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

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

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

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


get_duration(); // 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'] . ")"; ?>

get_recorded() != ""): ?>

get_recorded(); ?>

get_created() != ""): ?>

get_created(); ?>


get_downloads(); ?>


get_plays(); ?>

get_updated() != ""): ?>

get_updated(); ?>

get_tracklist() != []) { echo "
"; echo "
"; echo "

" . $locale['tracklist'] . "

"; echo "
    "; $tracklist = $mix->get_tracklist(); foreach ($tracklist as $track) { echo "
  • "; echo $track; echo "
  • "; } echo "
"; echo "
"; echo "
"; } ?>