first commit
This commit is contained in:
commit
db313f5eef
47 changed files with 2006 additions and 0 deletions
23
templates/template.php
Normal file
23
templates/template.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh-Hant-TW">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title><?= $this->e($title ?? '無標題網頁') ?></title>
|
||||
<link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css"/>
|
||||
<link rel="stylesheet" href="/font-awesome/css/all.min.css"/>
|
||||
<link rel="stylesheet" href="/style.css"/>
|
||||
<?= $this->section('styles') ?>
|
||||
</head>
|
||||
<body class="text-center">
|
||||
<h1 class="h3 mb-3 font-weight-normal"><?= $this->e($title ?? '無標題網頁') ?></h1>
|
||||
<?php if (isset($isLogin) && $isLogin && (!isset($noStatus) || !$noStatus)): ?>
|
||||
<?php $this->insert('partials/menu', ['nav' => $nav ?? '']) ?>
|
||||
<?php endif ?>
|
||||
<main><?= $this->section('content') ?></main>
|
||||
<footer class="my-2 text-muted">Copyright © 2022 Ming Tsay. All rights reserved.</footer>
|
||||
<script src="/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<?= $this->section('scripts') ?>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue