Files
T_Kawa af171ef107
Some checks failed
Mark stale issues and pull requests / stale (push) Has been cancelled
Initial commit: CakePHP project
2025-12-01 19:40:46 +01:00

60 lines
1.9 KiB
PHP

<?php
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @link https://cakephp.org CakePHP(tm) Project
* @since 0.10.0
* @license https://opensource.org/licenses/mit-license.php MIT License
* @var \App\View\AppView $this
*/
$cakeDescription = 'NarzędziaWMT';
?>
<!DOCTYPE html>
<html>
<head>
<?= $this->Html->charset() ?>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
<?= $cakeDescription ?>:
<?= $this->fetch('title') ?>
</title>
<?= $this->Html->meta('icon') ?>
<?= $this->Html->css(['normalize.min', 'milligram.min', 'fonts', 'cake']) ?>
<?= $this->fetch('meta') ?>
<?= $this->fetch('css') ?>
<?= $this->fetch('script') ?>
</head>
<body>
<nav class="top-nav">
<div class="top-nav-title">
<a href="<?= $this->Url->build('/') ?>"><span>Narzędzia</span>WMT</a>
</div>
<div class="top-nav-links">
<a href="<?= $this->Url->build('/users') ?>">Użytkownicy</a>
<?php if ($this->request->getAttributes('identity')): ?>
<a href="<?= $this->Url->build('/users/logout') ?>">Wyloguj</a>
<?php else: ?>
<a href="<?= $this->Url->build('/users/login') ?>">Zaloguj</a>
<?php endif; ?>
</div>
</nav>
<main class="main">
<div class="container">
<?= $this->Flash->render() ?>
<?= $this->fetch('content') ?>
</div>
</main>
<footer>
</footer>
</body>
</html>