Skip to content

Commit

Permalink
Patch Logo and responsive it (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Axtazer authored Oct 2, 2024
2 parents 138a98b + d49daf9 commit f75e196
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function searchEnterprises($search) {
<?php endif; ?>
</div>

<?php renderFooter($siteName, $navLinks); ?>
<?php renderFooter($siteName, $navLinks, $logoURL); ?>

<div class="background-animation">
<?php for ($i = 0; $i < 15; $i++): ?>
Expand Down
2 changes: 1 addition & 1 deletion pages/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function nullSafe($value, $default = "Non Renseigné") {
<?php endif; ?>
</div>

<?php renderFooter($siteName, $navLinks); ?>
<?php renderFooter($siteName, $navLinks, $logoURL); ?>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
10 changes: 6 additions & 4 deletions widgets/footer.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?php
require_once __DIR__ . '/../config.php';
$siteName = $_ENV['WEBSITE'];
$LogoURL = $_ENV['LASALLE_LOGO_URL'];
$logoURL = $_ENV['LASALLE_LOGO_URL'];

require_once 'navbar.php';
function renderFooter($siteName, $navLinks) {
global $navLinks;
function renderFooter($siteName, $navLinks, $logoURL) {

echo '
<style>
Expand All @@ -27,6 +26,9 @@ function renderFooter($siteName, $navLinks) {
.la-salle-logo {
max-height: 50px;
margin-right: 15px;
width: 100%;
max-height: 100px;
object-fit: contain;
}
</style>
Expand All @@ -38,7 +40,7 @@ function renderFooter($siteName, $navLinks) {
<div class="footer-tagline">Par Florian, Samuel et Benjamin avec le ❤️</div>
</div>
<div class="col-md-4 text-center">
<img src="' . htmlspecialchars($LogoURL) . '" alt="Logo La Salle Avignon" class="la-salle-logo">
<img src="' . htmlspecialchars($logoURL) . '" alt="Logo La Salle Avignon" class="la-salle-logo">
</div>
<div class="col-md-4 text-end">
<ul class="list-unstyled">
Expand Down
2 changes: 1 addition & 1 deletion widgets/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<?php endif; ?>
</div>

<?php renderFooter($siteName, $navLinks); ?>
<?php renderFooter($siteName, $navLinks, $logoURL); ?>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>

0 comments on commit f75e196

Please sign in to comment.