Skip to content

Commit

Permalink
segmentando footer nas páginas
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo-erades committed Jan 23, 2024
1 parent 38025ad commit fd02b41
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 22 deletions.
1 change: 1 addition & 0 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
$_SESSION["pathAcessos"]=$path.'app/helpers/funcoesPHP/gerenciarAcessos.php';
$_SESSION["pathPaginacao"]=$path.'app/helpers/paginacao.php';
$_SESSION["pathMenu"]=$path.'public/paginas/componentes/menu.php';
$_SESSION["pathFooter"]=$path.'public/paginas/componentes/footer.php';

include_once($_SESSION["pathPaginacao"]);
include($conteudo);
22 changes: 22 additions & 0 deletions public/paginas/componentes/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<ul class="nav justify-content-center mb-3">
<li class="nav-item">
<a class="nav-link px-2 text-muted" href="https://github.com/Gustavo-erades" target="_blank"><i class="fa-brands fa-github fa-bounce" style="font-size:2.5em"></i></a>
</li>
<li class="nav-item">
<a class="nav-link px-2 text-muted">&copy; 2023 por Gustavo Êrades </a>
</li>
</ul>
<div class="grid">
<div class="row">
<span id="span-footer-redes" class="col-xl-6">
fale comigo:
<a href="https://www.linkedin.com/in/gustavo-%C3%AA-22a357231/" target="_blank" class="footer-redes"><i class="fa-brands fa-linkedin"></i></a>
<a href="mailto:eradesvilarinho@gmail.com" target="_blank" class="footer-redes"><i class="fa-solid fa-envelope"></i></a>
</span>
<span id="span-footer-acessos" class="col-xl-6">
<span>
<?=$quantidade?> acessos.
</span>
</span>
</div>
</div>
25 changes: 3 additions & 22 deletions public/paginas/creditos.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,28 +179,9 @@
</div>
<div class="container">
<footer class="py-3 my-4">
<ul class="nav justify-content-center mb-3">
<li class="nav-item">
<a class="nav-link px-2 text-muted" href="https://github.com/Gustavo-erades" target="_blank"><i class="fa-brands fa-github fa-bounce" style="font-size:2.5em"></i></a>
</li>
<li class="nav-item">
<a class="nav-link px-2 text-muted">&copy; 2023 por Gustavo Êrades </a>
</li>
</ul>
<div class="grid">
<div class="row">
<span id="span-footer-redes" class="col-xl-6">
fale comigo:
<a href="https://www.linkedin.com/in/gustavo-%C3%AA-22a357231/" target="_blank" class="footer-redes"><i class="fa-brands fa-linkedin"></i></a>
<a href="mailto:eradesvilarinho@gmail.com" target="_blank" class="footer-redes"><i class="fa-solid fa-envelope"></i></a>
</span>
<span id="span-footer-acessos" class="col-xl-6">
<span>
<?=$quantidade?> acessos.
</span>
</span>
</div>
</div>
<?php
require_once($_SESSION["pathFooter"]);
?>
</footer>
</div>
<a href="#start" id="de_volta_ao_topo">&#9650;</a>
Expand Down

0 comments on commit fd02b41

Please # to comment.