All checks were successful
SonarQube Scan / SonarQube Trigger (push) Successful in 30s
46 lines
1.5 KiB
PHP
46 lines
1.5 KiB
PHP
<?php
|
|
|
|
require_once 'vendor/autoload.php';
|
|
require_once 'includes/globals.php';
|
|
|
|
use DJMixHosting\Database;
|
|
use DJMixHosting\Mixshows;
|
|
|
|
$db = new Database($config);
|
|
$mixshows = new Mixshows($db);
|
|
$title = $locale['mixshows'];
|
|
require_once 'includes/header.php';
|
|
?>
|
|
<section>
|
|
<div class="container py-5">
|
|
<div class="row">
|
|
<div class="col">
|
|
<nav aria-label="breadcrumb" class="bg-body-tertiary rounded-3 p-3 mb-4">
|
|
<ol class="breadcrumb mb-0">
|
|
<li class="breadcrumb-item"><a href="/"><?php echo $locale['home']; ?></a></li>
|
|
<li class="breadcrumb-item active"><a href="/mixshows"><?php echo $locale['mixshows']; ?></a></li>
|
|
</ol>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
|
|
<?php
|
|
|
|
$mixshows = $mixshows->get_nonzero_mixshows();
|
|
$count = 0;
|
|
foreach ($mixshows as $mixshow) {
|
|
card_output($count, $mixshow, $locale);
|
|
echo '<a href="/mixshow/' . $mixshow['slug'] . '" class="btn btn-primary">' . $locale['view'] . '</a>';
|
|
echo '</div>';
|
|
echo '</div>';
|
|
echo '</div>';
|
|
if ($count % 4 == 3) {
|
|
echo '</div>';
|
|
}
|
|
$count++;
|
|
}
|
|
?>
|
|
|
|
</div>
|
|
</section>
|
|
<?php require_once 'includes/footer.php'; ?>
|