Browse Source

move common code to the header template

main
ghost 3 years ago
parent
commit
1a3a832c0c
  1. 17
      src/application/view/common/header.phtml
  2. 15
      src/application/view/error/404.phtml
  3. 15
      src/application/view/login.phtml
  4. 15
      src/application/view/register.phtml

17
src/application/view/common/header.phtml

@ -10,4 +10,19 @@ @@ -10,4 +10,19 @@
<link rel="stylesheet" type="text/css" href="css/mobile.css" />
<script src="js/jquery.js"></script>
</head>
<body class="bg-c-1 bg-img-1 c-0">
<body class="bg-c-1 bg-img-1 c-0">
<div class="bg-c-2 bg-img-2 c-1 of-hidden">
<div class="mw-1024 mx-auto">
<div class="nav float-left h-48 lh-48">
<div class="px-16">
<a class="c-1 f-size-18" href="<?php echo PROJECT_HOST ?>">Twisterarmy <i><?php echo _('Cloud') ?></i></a>
</div>
</div>
<div class="nav bg-c-2 bg-img-2 float-right t-right h-48 lh-48">
<div class="px-16">
<a class="c-1 ml-16" href="https://github.com/twisterarmy/cloud-server" target="_blank"><i class="bi bi-github"></i></a>
<a class="c-1 ml-16" href="https://github.com/twisterarmy/cloud-server/issues" target="_blank"><i class="bi bi-question-circle"></i></a>
</div>
</div>
</div>
</div>

15
src/application/view/error/404.phtml

@ -1,19 +1,4 @@ @@ -1,19 +1,4 @@
<?php include(PROJECT_DIR . '/application/controller/common/header.php') ?>
<div class="bg-c-2 bg-img-2 c-1 of-hidden">
<div class="mw-1024 mx-auto">
<div class="nav float-left h-48 lh-48">
<div class="px-16">
<a class="c-1 f-size-18" href="<?php echo PROJECT_HOST ?>">Twisterarmy <i><?php echo _('Cloud') ?></i></a>
</div>
</div>
<div class="nav bg-c-2 bg-img-2 float-right t-right h-48 lh-48">
<div class="px-16">
<a class="c-1 ml-16" href="https://github.com/twisterarmy/cloud-server" target="_blank"><i class="bi bi-github"></i></a>
<a class="c-1 ml-16" href="https://github.com/twisterarmy/cloud-server/issues" target="_blank"><i class="bi bi-question-circle"></i></a>
</div>
</div>
</div>
</div>
<div class="mw-1024 mx-auto of-hidden">
<div class="mw-360 mx-auto my-100 bg-c-4 b-r-3 py-28 px-24">
<h1 class="f-size-65 f-normal mb-20 t-center"><?php echo _('404') ?></h1>

15
src/application/view/login.phtml

@ -1,19 +1,4 @@ @@ -1,19 +1,4 @@
<?php include(PROJECT_DIR . '/application/controller/common/header.php') ?>
<div class="bg-c-2 bg-img-2 c-1 of-hidden">
<div class="mw-1024 mx-auto">
<div class="nav float-left h-48 lh-48">
<div class="px-16">
<a class="c-1 f-size-18" href="<?php echo PROJECT_HOST ?>">Twisterarmy <i><?php echo _('Cloud') ?></i></a>
</div>
</div>
<div class="nav bg-c-2 bg-img-2 float-right t-right h-48 lh-48">
<div class="px-16">
<a class="c-1 ml-16" href="https://github.com/twisterarmy/cloud-server" target="_blank"><i class="bi bi-github"></i></a>
<a class="c-1 ml-16" href="https://github.com/twisterarmy/cloud-server/issues" target="_blank"><i class="bi bi-question-circle"></i></a>
</div>
</div>
</div>
</div>
<div class="mw-1024 mx-auto of-hidden">
<div class="mw-360 mx-auto my-100 bg-c-4 b-r-3 py-28 px-24">
<h1 class="f-size-20 f-normal mb-20"><?php echo _('Login') ?></h1>

15
src/application/view/register.phtml

@ -1,19 +1,4 @@ @@ -1,19 +1,4 @@
<?php include(PROJECT_DIR . '/application/controller/common/header.php') ?>
<div class="bg-c-2 bg-img-2 c-1 of-hidden">
<div class="mw-1024 mx-auto">
<div class="nav float-left h-48 lh-48">
<div class="px-16">
<a class="c-1 f-size-18" href="<?php echo PROJECT_HOST ?>">Twisterarmy <i><?php echo _('Cloud') ?></i></a>
</div>
</div>
<div class="nav bg-c-2 bg-img-2 float-right t-right h-48 lh-48">
<div class="px-16">
<a class="c-1 ml-16" href="https://github.com/twisterarmy/cloud-server" target="_blank"><i class="bi bi-github"></i></a>
<a class="c-1 ml-16" href="https://github.com/twisterarmy/cloud-server/issues" target="_blank"><i class="bi bi-question-circle"></i></a>
</div>
</div>
</div>
</div>
<div class="mw-1024 mx-auto of-hidden">
<div class="mw-360 mx-auto my-100 bg-c-4 b-r-3 py-28 px-24">
<h1 class="f-size-20 f-normal mb-20"><?php echo _('Register') ?></h1>

Loading…
Cancel
Save