forked from Git/bludit-theme-aerial
Add foreach loop
This commit is contained in:
parent
9463557e82
commit
4431ec9597
@ -2,8 +2,10 @@
|
||||
<?php include(THEME_DIR_PHP.'header.php'); ?>
|
||||
|
||||
<header id="header">
|
||||
<?php foreach($content as $page): ?>
|
||||
<h1><?php echo $page->title(); ?></h1>
|
||||
<p><?php echo $page->content(); ?></p>
|
||||
<?php endforeach() ?>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a target="_blank" href="<?php echo $site->twitter() ?>" class="icon brands fa-twitter"><span class="label">Twitter</span></a></li>
|
||||
@ -14,4 +16,4 @@
|
||||
</header>
|
||||
|
||||
<!-- Footer -->
|
||||
<?php include(THEME_DIR_PHP.'footer.php'); ?>
|
||||
<?php include(THEME_DIR_PHP.'footer.php'); ?>
|
||||
|
Loading…
Reference in New Issue
Block a user