Translations. Fixing the language bar.
This commit is contained in:
parent
27373f0c61
commit
28fc75dd25
38 changed files with 1006 additions and 150 deletions
19
dj.php
19
dj.php
|
@ -1,15 +1,16 @@
|
|||
<?php
|
||||
|
||||
// read toml config file
|
||||
require_once 'vendor/autoload.php';
|
||||
require_once 'functions/i18n.php';
|
||||
require_once 'classes/Database.php';
|
||||
require_once 'classes/DJ.php';
|
||||
|
||||
use Yosymfony\Toml\Toml;
|
||||
|
||||
$config = Toml::ParseFile('includes/config.toml');
|
||||
require_once 'vendor/autoload.php';
|
||||
require_once 'functions/i18n.php';
|
||||
require_once 'includes/sessions.php';
|
||||
require_once 'includes/lang_loader.php';
|
||||
require_once 'classes/Database.php';
|
||||
require_once 'classes/DJ.php';
|
||||
|
||||
// if there's a query parameter named 'dj', load the DJ class
|
||||
$db = new Database($config);
|
||||
$djFound = false;
|
||||
|
@ -23,13 +24,13 @@ if (isset($_GET['dj']) && $_GET['dj'] != "") {
|
|||
|
||||
?>
|
||||
<!doctype html >
|
||||
<html lang="<?php echo $lang?>">
|
||||
<html lang="<?php echo $lang ?>">
|
||||
<head>
|
||||
<?php require_once 'header.php';
|
||||
<?php require_once 'includes/header.php';
|
||||
?>
|
||||
</head>
|
||||
<body style="background-color: #eee;">
|
||||
<?php require 'navbar.php'; ?>
|
||||
<?php require 'includes/navbar.php'; ?>
|
||||
<section style="background-color: #eee;">
|
||||
<div class="container py-5">
|
||||
<div class="row">
|
||||
|
@ -303,6 +304,6 @@ if (isset($_GET['dj']) && $_GET['dj'] != "") {
|
|||
|
||||
</div>
|
||||
</section>
|
||||
<?php require 'footer.php'; ?>
|
||||
<?php require 'includes/footer.php'; ?>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue