mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-23 01:01:20 +00:00
61 lines
2.4 KiB
PHP
61 lines
2.4 KiB
PHP
<?= helper('page') ?>
|
|
<!DOCTYPE html>
|
|
<html lang="<?= service('request')
|
|
->getLocale() ?>">
|
|
|
|
<head>
|
|
<meta charset="UTF-8"/>
|
|
<title><?= $this->renderSection('title') ?></title>
|
|
<meta name="description" content="<?= service('settings')
|
|
->get('App.siteDescription') ?>"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<link rel="icon" type="image/x-icon" href="<?= service('settings')
|
|
->get('App.siteIcon')['ico'] ?>" />
|
|
<link rel="apple-touch-icon" href="<?= service('settings')->get('App.siteIcon')['180'] ?>">
|
|
<link rel="manifest" href="<?= route_to('webmanifest') ?>">
|
|
|
|
<meta property="og:title" content="<?= service('settings')
|
|
->get('App.siteName') ?>" />
|
|
<meta property="og:description" content="<?= service('settings')
|
|
->get('App.siteDescription') ?>" />
|
|
<meta property="og:site_name" content="<?= service('settings')
|
|
->get('App.siteName') ?>" />
|
|
|
|
<?= service('vite')
|
|
->asset('styles/index.css', 'css') ?>
|
|
<?= service('vite')
|
|
->asset('js/app.ts', 'js') ?>
|
|
<?= service('vite')
|
|
->asset('js/audio-player.ts', 'js') ?>
|
|
</head>
|
|
|
|
<body class="flex flex-col min-h-screen mx-auto bg-base theme-<?= service('settings')
|
|
->get('App.theme') ?>">
|
|
<?php if (service('authentication')->check()): ?>
|
|
<?= $this->include('_admin_navbar') ?>
|
|
<?php endif; ?>
|
|
|
|
<header class="py-8 border-b bg-elevated border-subtle">
|
|
<div class="container flex flex-col items-start px-2 py-4 mx-auto">
|
|
<a href="<?= route_to('home') ?>"
|
|
class="inline-flex items-center mb-2 text-sm focus:ring-accent"><?= icon(
|
|
'arrow-left',
|
|
'mr-2',
|
|
) . lang('Page.back_to_home') ?></a>
|
|
<Heading tagName="h1" size="large"><?= isset($page)
|
|
? $page->title
|
|
: 'Castopod' ?></Heading>
|
|
</div>
|
|
</header>
|
|
<main class="container flex-1 px-4 py-6 mx-auto">
|
|
<?= $this->renderSection('content') ?>
|
|
</main>
|
|
<footer class="container flex justify-between px-2 py-4 mx-auto text-sm text-right border-t border-subtle">
|
|
<?= render_page_links() ?>
|
|
<small><?= lang('Common.powered_by', [
|
|
'castopod' =>
|
|
'<a class="underline hover:no-underline focus:ring-accent" href="https://castopod.org/" target="_blank" rel="noreferrer noopener">Castopod</a>',
|
|
]) ?></small>
|
|
</footer>
|
|
</body>
|