2020-07-10 14:20:25 +02:00
|
|
|
<!DOCTYPE html>
|
2021-09-08 17:51:33 +02:00
|
|
|
<html lang="<?= service('request')
|
|
|
|
->getLocale() ?>">
|
2020-07-10 14:20:25 +02:00
|
|
|
|
|
|
|
<head>
|
2020-08-04 13:25:22 +02:00
|
|
|
<meta charset="UTF-8"/>
|
2020-10-02 17:38:16 +02:00
|
|
|
<title><?= $this->renderSection('title') ?> | Castopod Admin</title>
|
2020-08-04 13:25:22 +02:00
|
|
|
<meta name="description" content="Castopod is an open-source hosting platform made for podcasters who want engage and interact with their audience."/>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
|
|
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
|
2021-08-09 12:28:16 +02:00
|
|
|
|
2021-09-08 17:51:33 +02:00
|
|
|
<?= service('vite')
|
|
|
|
->asset('styles/index.css', 'css') ?>
|
|
|
|
<?= service('vite')
|
|
|
|
->asset('js/admin.ts', 'js') ?>
|
|
|
|
<?= service('vite')
|
2021-09-28 17:47:59 +02:00
|
|
|
->asset('js/admin-audio-player.ts', 'js') ?>
|
2020-07-10 14:20:25 +02:00
|
|
|
</head>
|
|
|
|
|
2021-09-03 18:34:06 +02:00
|
|
|
<body class="relative bg-pine-50 holy-grail-grid">
|
2020-10-02 17:38:16 +02:00
|
|
|
<div id="sidebar-backdrop" role="button" tabIndex="0" aria-label="Close" class="fixed z-50 hidden w-full h-full bg-gray-900 bg-opacity-50 md:hidden"></div>
|
2021-10-13 17:43:40 +02:00
|
|
|
<?= $this->include('_partials/_nav_header') ?>
|
2021-09-03 18:34:06 +02:00
|
|
|
<aside id="admin-sidebar" class="sticky z-50 flex flex-col text-white transition duration-200 ease-in-out transform -translate-x-full border-r top-10 border-pine-900 bg-pine-800 holy-grail__sidebar md:translate-x-0">
|
2021-09-07 17:43:09 +02:00
|
|
|
<?php if (isset($podcast) && isset($episode)): ?>
|
|
|
|
<?= $this->include('episode/_sidebar') ?>
|
|
|
|
<?php elseif (isset($podcast)): ?>
|
2021-09-02 18:34:25 +02:00
|
|
|
<?= $this->include('podcast/_sidebar') ?>
|
2020-10-02 17:38:16 +02:00
|
|
|
<?php else: ?>
|
2021-09-02 18:34:25 +02:00
|
|
|
<?= $this->include('_sidebar') ?>
|
2020-10-02 17:38:16 +02:00
|
|
|
<?php endif; ?>
|
2021-09-03 18:34:06 +02:00
|
|
|
<footer class="px-2 py-2 mx-auto text-xs text-right">
|
|
|
|
<?= lang('Common.powered_by', [
|
|
|
|
'castopod' =>
|
2021-10-13 17:43:40 +02:00
|
|
|
'<a class="inline-flex font-semibold hover:underline" href="https://castopod.org/" target="_blank" rel="noreferrer noopener">Castopod' . icon('social/castopod', 'ml-1 text-lg') . '</a> ' .
|
2021-09-03 18:34:06 +02:00
|
|
|
CP_VERSION,
|
|
|
|
]) ?>
|
|
|
|
</footer>
|
2020-10-02 17:38:16 +02:00
|
|
|
</aside>
|
2021-09-10 18:02:25 +02:00
|
|
|
<main class="relative holy-grail__main">
|
2021-09-28 17:47:59 +02:00
|
|
|
<header class="z-40 flex items-center px-4 bg-white border-b md:px-12 sticky-header-outer border-pine-100">
|
2021-09-23 16:59:30 +02:00
|
|
|
<div class="container flex flex-col justify-end mx-auto -mt-4 sticky-header-inner">
|
|
|
|
<?= render_breadcrumb('text-gray-800 text-xs items-center flex') ?>
|
|
|
|
<div class="flex justify-between py-1">
|
2021-04-02 19:20:02 +02:00
|
|
|
<div class="flex flex-wrap items-center">
|
2021-09-10 18:02:25 +02:00
|
|
|
<Heading tagName="h1" size="large"><?= $this->renderSection('pageTitle') ?></Heading>
|
2021-04-02 19:20:02 +02:00
|
|
|
<?= $this->renderSection('headerLeft') ?>
|
|
|
|
</div>
|
2021-09-10 18:02:25 +02:00
|
|
|
<div class="flex gap-1"><?= $this->renderSection('headerRight') ?></div>
|
2020-10-02 17:38:16 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<div class="container px-2 py-8 mx-auto md:px-12">
|
2021-09-15 17:58:21 +02:00
|
|
|
<?= view('_message_block') ?>
|
2020-10-02 17:38:16 +02:00
|
|
|
<?= $this->renderSection('content') ?>
|
|
|
|
</div>
|
2020-08-04 13:25:22 +02:00
|
|
|
</main>
|
2020-10-02 17:38:16 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
id="sidebar-toggler"
|
2021-04-02 19:20:02 +02:00
|
|
|
class="fixed bottom-0 left-0 z-50 p-3 mb-3 ml-3 text-xl transition duration-300 ease-in-out bg-white border-2 rounded-full shadow-lg focus:outline-none md:hidden hover:bg-gray-100 focus:ring"
|
2020-10-02 17:38:16 +02:00
|
|
|
style="transform: translateX(0px);"><?= icon('menu') ?></button>
|
2021-09-21 17:51:04 +02:00
|
|
|
</body>
|