Address changes.

This commit is contained in:
Cody Cook 2025-02-22 17:20:19 -08:00
commit 635b3ddcbc
59 changed files with 7249 additions and 2745 deletions

View file

@ -97,7 +97,7 @@ require_once 'includes/header.php';
foreach ($mixes as $mix) {
$output = new Mix($mix['mix_id'], $db);
$genres = $output->get_genres();
$genres = $output->getGenres();
$genrelist = [];
foreach ($genres as $genre) {
@ -110,8 +110,8 @@ require_once 'includes/header.php';
// Column for mix name and link
echo '<div class="col-md">';
echo '<p class="mb-0 " >';
echo '<a href="/mix/' . $output->get_slug() . '">';
echo $output->get_name();
echo '<a href="/mix/' . $output->getSlug() . '">';
echo $output->getName();
echo '</a>';
echo '</p>';
echo '</div>'; // End column
@ -131,7 +131,7 @@ require_once 'includes/header.php';
// Column for duration
echo '<div class="col-md">';
echo '<p class="mb-0">';
$duration = $output->get_duration();
$duration = $output->getDuration();
echo $duration['t'];
echo '</p>';
echo '</div>'; // End column
@ -140,9 +140,9 @@ require_once 'includes/header.php';
echo '<div class="col-md">';
echo '<p class="mb-0">';
// date format should just be year
$date = $output->get_recorded();
$date = $output->getRecorded();
if ($date == "") {
$date = $output->get_created();
$date = $output->getCreated();
}
echo date('Y', strtotime($date));
@ -191,10 +191,10 @@ require_once 'includes/header.php';
<script>
document.addEventListener('DOMContentLoaded', function () {
var shareBtn = document.getElementById('shareBtn');
var shareModal = new bootstrap.Modal(document.getElementById('shareModal'));
var copyLinkBtn = document.getElementById("copyLinkBtn");
var urlToCopy = window.location.href + '?utm_source=website&utm_medium=share_modal&utm_campaign=sharing';
const shareBtn = document.getElementById('shareBtn');
const shareModal = new bootstrap.Modal(document.getElementById('shareModal'));
const copyLinkBtn = document.getElementById("copyLinkBtn");
const urlToCopy = window.location.href + '?utm_source=website&utm_medium=share_modal&utm_campaign=sharing';
shareBtn.addEventListener('click', function () {
shareModal.show();