Skip to content

Commit

Permalink
Page changes
Browse files Browse the repository at this point in the history
  • Loading branch information
voblak2 committed Jul 26, 2020
1 parent 1b4acdd commit 4a026e1
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 14 deletions.
6 changes: 3 additions & 3 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="group">
<div class="site-footer__col-one">
<h1 class="school-logo-text school-logo-text--alt-color">
<a href="#"><strong>Fictional</strong> University</a>
<a href="<?php echo site_url('/') ?>"><strong>Fictional</strong> University</a>
</h1>
<p><a class="site-footer__link" href="#">555.555.5555</a></p>
</div>
Expand All @@ -13,7 +13,7 @@
<h3 class="headline headline--small">Explore</h3>
<nav class="nav-list">
<ul>
<li><a href="#">About Us</a></li>
<li><a href="<?php echo site_url('/about-us') ?>">About Us</a></li>
<li><a href="#">Programs</a></li>
<li><a href="#">Events</a></li>
<li><a href="#">Campuses</a></li>
Expand All @@ -26,7 +26,7 @@
<nav class="nav-list">
<ul>
<li><a href="#">Legal</a></li>
<li><a href="#">Privacy</a></li>
<li><a href="<?php echo site_url('/privacy-policy')?>">Privacy</a></li>
<li><a href="#">Careers</a></li>
</ul>
</nav>
Expand Down
8 changes: 7 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ function ignite_files()
wp_enqueue_style('font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
wp_enqueue_style('ignite_main_styles', get_stylesheet_uri());
}
add_action('wp_enqueue_scripts', 'ignite_files');
add_action('wp_enqueue_scripts', 'ignite_files');

function university_features() {
add_theme_support('title-tag');
}

add_action('after_setup_theme', 'university_features');

?>
4 changes: 2 additions & 2 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
<header class="site-header">
<div class="container">
<h1 class="school-logo-text float-left">
<a href="#"><strong>Fictional</strong> University</a>
<a href="<?php echo site_url('/') ?>"><strong>Fictional</strong> University</a>
</h1>
<span class="js-search-trigger site-header__search-trigger"><i class="fa fa-search" aria-hidden="true"></i></span>
<i class="site-header__menu-trigger fa fa-bars" aria-hidden="true"></i>
<div class="site-header__menu group">
<nav class="main-navigation">
<ul>
<li><a href="#">About Us</a></li>
<li><a href="<?php echo site_url('/about-us') ?>">About Us</a></li>
<li><a href="#">Programs</a></li>
<li><a href="#">Events</a></li>
<li><a href="#">Campuses</a></li>
Expand Down
53 changes: 45 additions & 8 deletions page.php
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();

?>

0 comments on commit 4a026e1

Please sign in to comment.