summaryrefslogtreecommitdiff
path: root/templates/layout.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-05-22 12:28:28 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-05-22 12:28:28 -0400
commit2230dd4e6b148346c0ec596b9e3e12996a762ed8 (patch)
treeef99ccde4f8b18592a3fb06a6ec45162c501fe38 /templates/layout.php
parenta750b8ab2a0cb715da6fd9025a7ec8375db68a4d (diff)
Code refactoring (add autoloader and change files organization)
Diffstat (limited to 'templates/layout.php')
-rw-r--r--templates/layout.php61
1 files changed, 0 insertions, 61 deletions
diff --git a/templates/layout.php b/templates/layout.php
deleted file mode 100644
index 0bb8446d..00000000
--- a/templates/layout.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8">
-
- <meta name="viewport" content="width=device-width">
- <meta name="mobile-web-app-capable" content="yes">
-
- <script src="assets/js/jquery-1.11.1.min.js"></script>
- <script src="assets/js/jquery-ui-1.10.4.custom.min.js"></script>
- <script src="assets/js/jquery.ui.touch-punch.min.js"></script>
-
- <link rel="stylesheet" href="assets/css/app.css" media="screen">
- <link rel="stylesheet" href="assets/css/font-awesome.min.css" media="screen">
-
- <link rel="icon" type="image/png" href="assets/img/favicon.png">
- <link rel="apple-touch-icon" href="assets/img/touch-icon-iphone.png">
- <link rel="apple-touch-icon" sizes="72x72" href="assets/img/touch-icon-ipad.png">
- <link rel="apple-touch-icon" sizes="114x114" href="assets/img/touch-icon-iphone-retina.png">
- <link rel="apple-touch-icon" sizes="144x144" href="assets/img/touch-icon-ipad-retina.png">
-
- <title><?= isset($title) ? Helper\escape($title).' - Kanboard' : 'Kanboard' ?></title>
- <?php if (isset($auto_refresh)): ?>
- <meta http-equiv="refresh" content="<?= BOARD_PUBLIC_CHECK_INTERVAL ?>" >
- <?php endif ?>
- </head>
- <body>
- <?php if (isset($no_layout)): ?>
- <?= $content_for_layout ?>
- <?php else: ?>
- <header>
- <nav>
- <a class="logo" href="?">kan<span>board</span></a>
- <ul>
- <li <?= isset($menu) && $menu === 'boards' ? 'class="active"' : '' ?>>
- <a href="?controller=board"><?= t('Boards') ?></a>
- </li>
- <li <?= isset($menu) && $menu === 'projects' ? 'class="active"' : '' ?>>
- <a href="?controller=project"><?= t('Projects') ?></a>
- </li>
- <li <?= isset($menu) && $menu === 'users' ? 'class="active"' : '' ?>>
- <a href="?controller=user"><?= t('Users') ?></a>
- </li>
- <li <?= isset($menu) && $menu === 'config' ? 'class="active"' : '' ?>>
- <a href="?controller=config"><?= t('Settings') ?></a>
- </li>
- <li>
- <a href="?controller=user&amp;action=logout"><?= t('Logout') ?></a>
- (<?= Helper\escape(Helper\get_username()) ?>)
- </li>
- </ul>
- </nav>
- </header>
- <section class="page">
- <?= Helper\flash('<div class="alert alert-success alert-fade-out">%s</div>') ?>
- <?= Helper\flash_error('<div class="alert alert-error">%s</div>') ?>
- <?= $content_for_layout ?>
- </section>
- <?php endif ?>
- </body>
-</html> \ No newline at end of file