Browse Source

Views: Put footer below the last content block

master
Riyyi 2 years ago
parent
commit
8d576a497b
  1. 2
      app/views/admin/cache.php
  2. 2
      app/views/admin/crud/create.php
  3. 2
      app/views/admin/crud/edit.php
  4. 2
      app/views/admin/crud/index.php
  5. 2
      app/views/admin/crud/show.php
  6. 2
      app/views/admin/index.php
  7. 1
      app/views/admin/media.php
  8. 2
      app/views/admin/syntax-highlighting.php
  9. 4
      app/views/content.php
  10. 2
      app/views/errors/404.php
  11. 2
      app/views/login.php
  12. 6
      app/views/partials/footer.php
  13. 2
      app/views/reset-password.php
  14. 9
      public/css/style.css

2
app/views/admin/cache.php

@ -81,6 +81,4 @@ use \App\Classes\Config;
</div>
</div>
<?php } ?>
<div class="pb-5"></div>
</div>

2
app/views/admin/crud/create.php

@ -56,8 +56,6 @@
<input type="hidden" name="_token" value="<?= $this->csrfToken; ?>" />
</form>
<div class="pb-5"></div>
</div>
</div>
</div>

2
app/views/admin/crud/edit.php

@ -61,8 +61,6 @@
<input type="hidden" name="_token" value="<?= $this->csrfToken; ?>" />
</form>
<div class="pb-5"></div>
</div>
</div>
</div>

2
app/views/admin/crud/index.php

@ -64,8 +64,6 @@
<a class="btn btn-dark" href="<?= $this->url ?>/create">New <?= $this->title; ?></a>
</div>
</div>
<div class="pb-5"></div>
</div>
</div>
</div>

2
app/views/admin/crud/show.php

@ -33,8 +33,6 @@
<?php } ?>
</tbody>
</table>
<div class="pb-5"></div>
</div>
</div>
</div>

2
app/views/admin/index.php

@ -8,6 +8,4 @@
<?= !empty($this->user->last_name) ? ' ' . $this->user->last_name : ''; ?>
</h3>
</div>
<div class="pb-5"></div>
</div>

1
app/views/admin/media.php

@ -84,7 +84,6 @@
<?= $this->partial('../app/views/partials/pagination.php'); ?>
<div class="pb-5"></div>
</div>
</div>
</div>

2
app/views/admin/syntax-highlighting.php

@ -28,6 +28,4 @@
<div id="syntax-parse"><pre class="line-numbers mb-4"><code class=""></code></pre></div>
<textarea id="syntax-parse-copy" class="admin-hidden"></textarea>
<div class="pb-5"></div>
</div>

4
app/views/content.php

@ -17,10 +17,6 @@
<?php if ($this->injectView != '') { ?>
<?= $this->partial($this->injectView); ?>
<?php } ?>
<?php if ($key === array_key_last($this->contents)) { ?>
<div class="pb-5"></div>
<?php } ?>
</div>
<?php } ?>

2
app/views/errors/404.php

@ -3,6 +3,4 @@
<p>Error <strong>404</strong>.</p>
<p>requested URL <?= $_SERVER["REQUEST_URI"] ?> was not found on this server.</p>
</div>
<div class="pb-5"></div>
</div>

2
app/views/login.php

@ -22,6 +22,4 @@
<br>
<a href="<?= Config::c('APP_URL'); ?>/reset-password">Forgot password</a>?
<?php } ?>
<div class="pb-5"></div>
</div>

6
app/views/partials/footer.php

@ -2,10 +2,8 @@
use App\Classes\Config;
?>
<footer class="mb-4">
<div class="row">
<div class="col-12 col-lg-12">
<footer class="row mb-2">
<div class="col-12">
&copy; <?= date('Y'); ?> Rick van Vonderen
</div>
</div>
</footer>

2
app/views/reset-password.php

@ -9,6 +9,4 @@
<?php } ?>
<?= $this->partial($this->injectView); ?>
<div class="pb-5"></div>
</div>

9
public/css/style.css

@ -30,8 +30,7 @@ nav.shadow {
.content {
position: relative;
/* height: calc(100% - 56px); */
min-height: calc(100vh - 80px);
min-height: calc(100vh - 104px - .5rem);
padding: 20px 20px 50px 20px;
background-color: #fff;
@ -124,12 +123,6 @@ h3 span {
/*----------------------------------------*/
footer {
position: absolute;
bottom: 0;
width: calc(100% - 30px);
height: 50px;
padding-top: 10px;
text-align: center;
color: #909090;
}

Loading…
Cancel
Save