site-web-le-plus-beau-des-v.../index.php

75 lines
No EOL
3.4 KiB
PHP

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicons/favicon-16x16.png">
<link rel="manifest" href="/assets/favicons/site.webmanifest">
<link rel="mask-icon" href="/assets/favicons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/assets/favicons/favicon.ico">
<meta name="msapplication-TileColor" content="#00aba9">
<meta name="msapplication-config" content="/assets/favicons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<!-- bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<!-- head data -->
<link rel="stylesheet" href="assets/style.css" />
<title>Le plus beau des voyages</title>
</head>
<body>
<?php
require_once "tools/podcast.php";
$podcast = new feed\Podcast;
?>
<div class="container">
<!-- Header -->
<h1 class="cursive_font_bold text-center pt-3 pb-2">
<?= $podcast->title ?>
</h1>
<div class="row">
<div class="col-sm"></div>
<div class="col-sm">
<p class="cursive_font fs-6 fw-lighter text-end">animé par Pauline</p>
</div>
<div class="col-sm"></div>
</div>
<p class="podcast_desc text-center">
<?= $podcast->desc ?>
</p>
<hr class="ms-2 me-2">
<!-- Episodes -->
<div>
<select class="form-select form-select-lg mb-3" name="" id="episode-selection" autocomplete="off">
<option value="0" selected><?= $podcast->episodes[0]->title; ?></option>
<?php foreach ($podcast->episodes as $key => $ep) {
if ($key != 0) {
echo "<option value={$key}>Episode {$key} - {$podcast->episodes[$key]->title}</option>";
};
} ?>
</select>
<div class="dPubDate"><?= $podcast->episodes[0]->pubDate; ?></div>
<div class="dDesc"><?= $podcast->episodes[0]->desc ?></div>
<audio controls class="dAudio">
<source <?= $podcast->episodes[0]->audioData; ?>>
</audio>
</div>
</div>
<script type="text/javascript" src="tools/script.js"></script>
<div class="epData" hidden>
<?php foreach ($podcast->episodes as $key => $ep) {
echo "<div class=\"ep{$key}\">
<div class=\"ep{$key}-title\">{$ep->title}</div>
<div class=\"ep{$key}-pubDate\">{$ep->pubDate}</div>
<div class=\"ep{$key}-desc\">{$ep->desc}</div>
<audio class=\"ep{$key}-audio\">
<source {$ep->audioData}>
</audio>
</div>";
} ?>
</div>
</body>
</html>