first commit
This commit is contained in:
1
Swoft_BackEndApi/resource/views/layouts/.pydio
Normal file
1
Swoft_BackEndApi/resource/views/layouts/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
a7457f58-fa6f-4b4d-9bf7-5355ba3305bb
|
||||
25
Swoft_BackEndApi/resource/views/layouts/default.php
Executable file
25
Swoft_BackEndApi/resource/views/layouts/default.php
Executable file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \Swoft\View\Renderer $this
|
||||
*/
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Demo for layout</title>
|
||||
<link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<?php $this->include('layouts/default/header') ?>
|
||||
|
||||
<div class="container">
|
||||
<!-- Content here -->
|
||||
<div id="page-content" style="padding: 15px 0;">{_CONTENT_}</div>
|
||||
<?php $this->include('layouts/default/footer') ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
1
Swoft_BackEndApi/resource/views/layouts/default/.pydio
Normal file
1
Swoft_BackEndApi/resource/views/layouts/default/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
082cb181-001a-4850-aad9-96e02ca77439
|
||||
20
Swoft_BackEndApi/resource/views/layouts/default/footer.php
Executable file
20
Swoft_BackEndApi/resource/views/layouts/default/footer.php
Executable file
@@ -0,0 +1,20 @@
|
||||
<footer>
|
||||
<ul class="nav justify-content-center">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" href="#">Active</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">Link</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">Link</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link disabled" href="#">Disabled</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h2>This is footer</h2>
|
||||
<pre>
|
||||
view file: <?= __FILE__ ?>
|
||||
</pre>
|
||||
</footer>
|
||||
29
Swoft_BackEndApi/resource/views/layouts/default/header.php
Executable file
29
Swoft_BackEndApi/resource/views/layouts/default/header.php
Executable file
@@ -0,0 +1,29 @@
|
||||
<header>
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<a class="navbar-brand" href="#">Swoft</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo02" aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarTogglerDemo02">
|
||||
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/demo2/view">No layout</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link disabled" href="#">Disabled</a>
|
||||
</li>
|
||||
</ul>
|
||||
<span class="navbar-text">
|
||||
This is header
|
||||
</span>
|
||||
<!-- <form class="form-inline my-2 my-lg-0">-->
|
||||
<!-- <input class="form-control mr-sm-2" type="search" placeholder="Search">-->
|
||||
<!-- <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>-->
|
||||
<!-- </form>-->
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
Reference in New Issue
Block a user