Files
Plenario/templates/layout/default.php
T
gnilebeinandClaude Sonnet 5.5 bd57f23be6
CI / Deploy / PHP 8.5 (push) Successful in 1m51s
CI / Deploy / PHP 8.4 (push) Successful in 1m51s
CI / Deploy / test (push) Successful in 2s
CI / Deploy / deploy (push) Skipped
Add admin menu drawer and poll cloning, drop participant screen tools
- Remove fullscreen and wake lock buttons from the participant view.
- Turn the admin sidebar into a drawer below 900px, opened from a header
  menu button next to the theme switch (progressive enhancement).
- Add "Umfrage kopieren": clone a poll with all slides, options and images
  but without responses, with its own join code and admin link.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 10:57:33 +01:00

53 lines
2.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Default layout for public, participant and admin pages.
*
* @var \App\View\AppView $this
*/
$title = $this->fetch('title');
?>
<!DOCTYPE html>
<html lang="de">
<head>
<?= $this->Html->charset() ?>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="<?= h((string)$this->request->getAttribute('csrfToken')) ?>">
<?php if ($this->fetch('noindex')) : ?>
<meta name="robots" content="noindex, nofollow">
<?php endif; ?>
<title><?= $title ? h($title) . ' · ' : '' ?>PlenarIO</title>
<?= $this->element('theme_init') ?>
<?= $this->element('favicon') ?>
<?= $this->Html->css(['normalize.min', 'plenario']) ?>
<?= $this->fetch('meta') ?>
<?= $this->fetch('css') ?>
</head>
<body class="<?= h($this->fetch('bodyClass')) ?>">
<header class="site-header">
<div class="container site-header__inner">
<a class="brand" href="<?= $this->Url->build(['_name' => 'home']) ?>">
<span class="brand__mark" aria-hidden="true"></span><span>Plenar<span class="brand__io">IO</span></span>
</a>
<nav class="site-nav">
<a href="<?= $this->Url->build(['_name' => 'join']) ?>"><?= __('Teilnehmen') ?></a>
<a href="<?= $this->Url->build(['_name' => 'recover']) ?>"><?= __('Admin-Link verloren?') ?></a>
</nav>
<div class="header-tools">
<?= $this->element('theme_switch') ?>
<?= $this->fetch('headerMenu') ?>
</div>
</div>
</header>
<main class="container main">
<div data-refresh="flash"><?= $this->Flash->render() ?></div>
<?= $this->fetch('content') ?>
</main>
<footer class="site-footer container">
<span>PlenarIO – <?= __('Live-Umfragen ohne Login') ?></span>
<a href="https://gitea.gnilebein.de/gnilebein/Plenario" target="_blank" rel="noopener"><?= __('Quellcode auf Gitea') ?></a>
</footer>
<?= $this->Html->script('plenario') ?>
<?= $this->fetch('script') ?>
</body>
</html>