Ejemplo n.º 1
0
        $view->getView("../views/footer.php");
    }
    # =-=-=-=-=-=-= Route for a mixtape page =-=-=-=-=-=-=-=
    if ($_GET["action"] == "mixtape") {
        $view->getView("../views/head.php");
        $view->getView("../views/nav.php");
        $mixId = $_GET['songId'];
        $theMixtape = $crud->getMixtape($mixId);
        $view->getView("../views/mixtape.php", $theMixtape);
        $view->getView("../views/footer.php");
    }
    # =-=-=-=-=-=-= Route for media page =-=-=-=-=-=-=-=
    if ($_GET["action"] == "media") {
        $view->getView("../views/head.php");
        $view->getView("../views/nav.php");
        $lastUploads = $queries->latestUploads();
        $view->getView("../views/media.php", $lastUploads);
        $view->getView("../views/footer.php");
    }
    # =-=-=-=-=-=-= Route for about page =-=-=-=-=-=-=-=-=-=
    if ($_GET["action"] == "about") {
        $view->getView("../views/head.php");
        $view->getView("../views/nav.php");
        $view->getView("../views/about.php");
        $view->getView("../views/footer.php");
    }
} else {
    $view->getView("../views/head.php");
    $view->getView("../views/nav.php");
    $topMixes = $queries->mostDownloads();
    $view->getView("../views/slider.php", $topMixes);