<?php
/*
 * pages/download.php
 * PHP logic: INTACT - $jsondataDownload setat de include/functions/pages/download.php
 * HTML: design Nostalgia2
 */

include 'include/functions/pages/download.php';
?>

<!-- Header -->
<nav class="navbar navbar-dark bg-news-header mb-4">
    <div class="container-fluid">
        <h4 class="h4 small m-0 text-uppercase"><?php echo strtoupper($lang['download']); ?></h4>
        <div class="d-flex d-none d-md-block">
            <ul class="navbar-nav list-group-horizontal small">
                <li class="nav-item px-2">
                    <a class="nav-link small text-bluevioletmutted py-0" href="#">
                        In case any link is not working, please contact an administrator.
                    </a>
                </li>
            </ul>
        </div>
    </div>
</nav>

<div class="main_board_darker_background text-center p-4">
    <?php if(count($jsondataDownload)) { ?>
        <?php $i = 1; foreach($jsondataDownload as $key => $download) { ?>
        <a target="_blank" href="<?php echo $download['link']; ?>">
            <button class="my-2 mx-auto text-center sign-in-button btn bg-button small fw-bold"
                type="button" style="width:278px;">
                <?php echo $i++; ?>. <?php echo htmlspecialchars($download['name']); ?>
            </button>
        </a>
        <?php } ?>
    <?php } else { ?>
    <div class="alert alert-info m-3" role="alert">
        <strong>Info!</strong> <?php echo $lang['no-download-links']; ?>
    </div>
    <?php } ?>
</div>
