Add project
This commit is contained in:
41
templates/layout/default.php
Normal file
41
templates/layout/default.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
$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->getAttribute('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>
|
||||
Reference in New Issue
Block a user