Mixshows.
This commit is contained in:
parent
8b4dfe0c0c
commit
ef4eedcd6e
12 changed files with 493 additions and 23 deletions
40
dj.php
40
dj.php
|
@ -72,7 +72,7 @@ require_once 'includes/header.php';
|
|||
if ($dj->get_socials() != []) {
|
||||
?>
|
||||
<div class="card mb-4 mb-lg-0">
|
||||
<div class="card-body p-0 " >
|
||||
<div class="card-body p-0 ">
|
||||
<ul class="list-group list-group-flush rounded-3">
|
||||
<?php
|
||||
$socials = $dj->get_socials();
|
||||
|
@ -123,22 +123,23 @@ require_once 'includes/header.php';
|
|||
$genrelist[$genr->get_slug()] = $genr->get_name();
|
||||
}
|
||||
|
||||
echo '<div class="row">'; // Start row for each mix
|
||||
echo '<div class="row ">'; // Start row for each mix
|
||||
|
||||
// Column for mix name and link
|
||||
echo '<div class="col-md-4">';
|
||||
echo '<p class="mb-0">';
|
||||
echo '<a href="/mix.php?mix=' . $output->get_slug() . '">';
|
||||
echo '<div class="col-md text-truncate" >';
|
||||
echo '<p class="mb-0 " >';
|
||||
echo '<a title="' . $output->get_name() . '" href="/mix.php?mix=' . $output->get_slug() . '">';
|
||||
echo $output->get_name();
|
||||
echo '</a>';
|
||||
echo '</p>';
|
||||
echo '</div>'; // End column
|
||||
|
||||
// Column for genres
|
||||
echo '<div class="col-md-4">';
|
||||
echo '<div class="col-md ">';
|
||||
echo '<p class="mb-0">';
|
||||
foreach ($genrelist as $slug => $name) {
|
||||
echo ' <a href="/genre.php?genre=' . $slug . '">';
|
||||
// ellipse the genre name if it's too long
|
||||
echo '<span class="">' . $name . '</span>';
|
||||
echo '</a>';
|
||||
}
|
||||
|
@ -146,12 +147,27 @@ require_once 'includes/header.php';
|
|||
echo '</div>'; // End column
|
||||
|
||||
// Column for duration
|
||||
echo '<div class="col-md-4">';
|
||||
echo '<div class="col-md">';
|
||||
echo '<p class="mb-0">';
|
||||
$duration = $output->get_duration();
|
||||
echo $duration['t'];
|
||||
echo '</p>';
|
||||
echo '</div>'; // End column
|
||||
|
||||
// Column for date
|
||||
echo '<div class="col-md">';
|
||||
echo '<p class="mb-0">';
|
||||
// date format should just be year
|
||||
$date = $output->get_recorded();
|
||||
if ($date == "") {
|
||||
$date = $output->get_created();
|
||||
}
|
||||
echo date('Y', strtotime($date));
|
||||
|
||||
echo '</p>';
|
||||
echo '</div>'; // End column
|
||||
|
||||
|
||||
echo '</div>'; // End row
|
||||
|
||||
$count++;
|
||||
|
@ -168,12 +184,12 @@ require_once 'includes/header.php';
|
|||
</div>
|
||||
<?php else: ?>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $locale['djNotFound']; ?>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $locale['djNotFound']; ?>
|
||||
</div>
|
||||
</div><?php endif;?>
|
||||
</div>
|
||||
</div><?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue