1
0

Add foreach loop

This commit is contained in:
Simon 2020-03-16 19:38:39 +01:00 committed by GitHub
parent 9463557e82
commit 4431ec9597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,8 +2,10 @@
<?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): ?>
<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() ?>
<nav> <nav>
<ul> <ul>
<li><a target="_blank" href="<?php echo $site->twitter() ?>" class="icon brands fa-twitter"><span class="label">Twitter</span></a></li> <li><a target="_blank" href="<?php echo $site->twitter() ?>" class="icon brands fa-twitter"><span class="label">Twitter</span></a></li>