-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
voblak2
committed
Jul 26, 2020
1 parent
1b4acdd
commit 4a026e1
Showing
4 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,52 @@ | ||
<!-- Privacy Policy page not working right, data not pulling in. Comment left for Brad on udemy.com class. --> | ||
|
||
<?php | ||
|
||
get_header(); | ||
get_header(); | ||
|
||
while (have_posts()) { | ||
the_post(); ?> | ||
|
||
<div class="page-banner"> | ||
<div class="page-banner__bg-image" style="background-image: url(<?php echo get_theme_file_uri('/images/ocean.jpg') ?>);"></div> | ||
<div class="page-banner__content container container--narrow"> | ||
<h1 class="page-banner__title"><?php the_title(); ?></h1> | ||
<div class="page-banner__intro"> | ||
<p>DON'T FORGET TO REPLACE ME LATER</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="container container--narrow page-section"> | ||
|
||
<?php | ||
$theParent = wp_get_post_parent_id(get_the_ID()); | ||
|
||
if ($theParent) { ?> | ||
|
||
<div class="metabox metabox--position-up metabox--with-home-link"> | ||
<p><a class="metabox__blog-home-link" href="<?php echo get_the_permalink($theParent); ?>"><i class="fa fa-home" aria-hidden="true"></i>Back to <?php echo get_the_title($theParent); ?></a> <span class="metabox__main"><?php the_title(); ?></span></p> | ||
</div> | ||
|
||
<?php } | ||
?> | ||
|
||
<!-- <div class="page-links"> | ||
<h2 class="page-links__title"><a href="#">About Us</a></h2> | ||
<ul class="min-list"> | ||
<li class="current_page_item"><a href="#">Our History</a></li> | ||
<li><a href="#">Our Goals</a></li> | ||
</ul> | ||
</div> --> | ||
|
||
<div class="generic-content"> | ||
<?php the_content(); ?> | ||
</div> | ||
|
||
while (have_posts()) | ||
{ | ||
the_post(); ?> | ||
<h1>This is a page, not a post!</h1> | ||
<h2><?php the_title(); ?></h2> | ||
<?php the_content(); ?> | ||
</div> | ||
|
||
<?php } | ||
|
||
get_footer(); | ||
get_footer(); | ||
|
||
?> |