1
0

Update 'index.php'

This commit is contained in:
Olivier 2022-11-28 16:01:11 +01:00
parent 11546458ea
commit 4434f0cf66

View File

@ -1,30 +1,27 @@
<!-- Header --> <!-- Header -->
<?php include(THEME_DIR_PHP.'header.php'); ?> <?php include(THEME_DIR_PHP.'header.php'); ?>
<header id="header"> <header id="header">
<?php foreach($content as $page): ?> <?php foreach($content as $page): ?>
<h1><?php echo $page->title(); ?></h1> <h1><?php echo $page->title(); ?></h1>
<p><?php echo $page->content(); ?></p> <p><?php echo $page->content(); ?></p>
<?php endforeach ?> <?php endforeach ?>
<nav> <nav>
<ul> <ul>
<?php <?php
if ($site->twitter()){ if ($site->twitter()){
echo '<li><a target="_blank" href="'.$site->twitter().'" class="icon brands fa-twitter"></a></li>'; echo '<li><a target="_blank" href="'.$site->linkedin().'" class="icon brands fa-linkedin"></a></li>';
} }
if ($site->instagram()){ if ($site->instagram()){
echo '<li><a target="_blank" href="'.$site->instagram().'" class="icon brands fa-instagram"></a></li>'; echo '<li><a target="_blank" href="'.$site->instagram().'" class="icon brands fa-instagram"></a></li>';
} }
if ($site->facebook()){ if ($site->github()){
echo '<li><a target="_blank" href="'.$site->facebook().'" class="icon brands fa-facebook-f"></a></li>'; echo '<li><a target="_blank" href="'.$site->mastodon().'" class="icon brands fa-mastodon"></a></li>';
} }
if ($site->github()){ ?>
echo '<li><a target="_blank" href="'.$site->github().'" class="icon brands fa-github"></a></li>'; </ul>
} </nav>
?> </header>
</ul>
</nav> <!-- Footer -->
</header> <?php include(THEME_DIR_PHP.'footer.php'); ?>
<!-- Footer -->
<?php include(THEME_DIR_PHP.'footer.php'); ?>