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>
</div> </div>
<?php } ?> <?php } ?>
<div class="pb-5"></div>
</div> </div>

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

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

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

@ -61,8 +61,6 @@
<input type="hidden" name="_token" value="<?= $this->csrfToken; ?>" /> <input type="hidden" name="_token" value="<?= $this->csrfToken; ?>" />
</form> </form>
<div class="pb-5"></div>
</div> </div>
</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> <a class="btn btn-dark" href="<?= $this->url ?>/create">New <?= $this->title; ?></a>
</div> </div>
</div> </div>
<div class="pb-5"></div>
</div> </div>
</div> </div>
</div> </div>

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

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

2
app/views/admin/index.php

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

1
app/views/admin/media.php

@ -84,7 +84,6 @@
<?= $this->partial('../app/views/partials/pagination.php'); ?> <?= $this->partial('../app/views/partials/pagination.php'); ?>
<div class="pb-5"></div>
</div> </div>
</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> <div id="syntax-parse"><pre class="line-numbers mb-4"><code class=""></code></pre></div>
<textarea id="syntax-parse-copy" class="admin-hidden"></textarea> <textarea id="syntax-parse-copy" class="admin-hidden"></textarea>
<div class="pb-5"></div>
</div> </div>

4
app/views/content.php

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

2
app/views/errors/404.php

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

2
app/views/login.php

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

6
app/views/partials/footer.php

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

2
app/views/reset-password.php

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

9
public/css/style.css

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

Loading…
Cancel
Save