site-web-le-plus-beau-des-v.../index.php
2024-05-06 18:27:06 +02:00

64 lines
No EOL
2.8 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>
<h3><?= $podcast->episodes[0]->title; ?></h3>
<div><?= $podcast->episodes[0]->pubDate; ?></div>
<div><?= $podcast->episodes[0]->desc ?></div>
<audio controls=true <?= $podcast->episodes[0]->audioData; ?>></audio>
</div>
</div>
<script type="text/javascript" src="tools/script.js"></script>
<div>
<?php foreach ($podcast->episodes as $key => $ep) {
echo "<div class=\"ep{$key}\" hidden>
<h3>{$ep->title}</h3>
<div>{$ep->pubDate}</div>
<div>{$ep->desc}</div>
<audio controls=true {$ep->audioData}></audio>
</div>";
} ?>
</div>
</body>
</html>