Skip to content

Commit

Permalink
Menu changes
Browse files Browse the repository at this point in the history
  • Loading branch information
voblak2 committed Jul 31, 2020
1 parent dd62b9e commit 77ac6d1
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 127 deletions.
8 changes: 0 additions & 8 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
<div class="site-footer__col-two">
<h3 class="headline headline--small">Explore</h3>
<nav class="nav-list">
<!-- <?php wp_nav_menu(array(
'theme_location' => 'footerLocationOne'
)); ?> -->
<!--Commented out the dynamic nav menus above in favor of the hard coded ones below-->
<ul>
<li><a href="<?php echo site_url('/about-us') ?>">About Us</a></li>
<li><a href="#">Programs</a></li>
Expand All @@ -28,10 +24,6 @@
<div class="site-footer__col-three">
<h3 class="headline headline--small">Learn</h3>
<nav class="nav-list">
<!-- <?php wp_nav_menu(array(
'theme_location' => 'footerLocationTwo'
)); ?> -->
<!--Commented out the dynamic nav menus above in favor of the hard coded ones below-->
<ul>
<li><a href="#">Legal</a></li>
<li><a href="<?php echo site_url('/privacy-policy')?>">Privacy</a></li>
Expand Down
106 changes: 106 additions & 0 deletions front-page.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<?php get_header(); ?>

<div class="page-banner">
<div class="page-banner__bg-image" style="background-image: url(<?php echo get_theme_file_uri('images/library-hero.jpg') ?>);"></div>
<div class="page-banner__content container t-center c-white">
<h1 class="headline headline--large">Welcome!</h1>
<h2 class="headline headline--medium">We think you&rsquo;ll like it here.</h2>
<h3 class="headline headline--small">Why don&rsquo;t you check out the <strong>major</strong> you&rsquo;re interested in?</h3>
<a href="#" class="btn btn--large btn--blue">Find Your Major</a>
</div>
</div>

<div class="full-width-split group">
<div class="full-width-split__one">
<div class="full-width-split__inner">
<h2 class="headline headline--small-plus t-center">Upcoming Events</h2>

<div class="event-summary">
<a class="event-summary__date t-center" href="#">
<span class="event-summary__month">Mar</span>
<span class="event-summary__day">25</span>
</a>
<div class="event-summary__content">
<h5 class="event-summary__title headline headline--tiny"><a href="#">Poetry in the 100</a></h5>
<p>Bring poems you&rsquo;ve wrote to the 100 building this Tuesday for an open mic and snacks. <a href="#" class="nu gray">Learn more</a></p>
</div>
</div>
<div class="event-summary">
<a class="event-summary__date t-center" href="#">
<span class="event-summary__month">Apr</span>
<span class="event-summary__day">02</span>
</a>
<div class="event-summary__content">
<h5 class="event-summary__title headline headline--tiny"><a href="#">Quad Picnic Party</a></h5>
<p>Live music, a taco truck and more can found in our third annual quad picnic day. <a href="#" class="nu gray">Learn more</a></p>
</div>
</div>

<p class="t-center no-margin"><a href="#" class="btn btn--blue">View All Events</a></p>
</div>
</div>
<div class="full-width-split__two">
<div class="full-width-split__inner">
<h2 class="headline headline--small-plus t-center">From Our Blogs</h2>

<div class="event-summary">
<a class="event-summary__date event-summary__date--beige t-center" href="#">
<span class="event-summary__month">Jan</span>
<span class="event-summary__day">20</span>
</a>
<div class="event-summary__content">
<h5 class="event-summary__title headline headline--tiny"><a href="#">We Were Voted Best School</a></h5>
<p>For the 100th year in a row we are voted #1. <a href="#" class="nu gray">Read more</a></p>
</div>
</div>
<div class="event-summary">
<a class="event-summary__date event-summary__date--beige t-center" href="#">
<span class="event-summary__month">Feb</span>
<span class="event-summary__day">04</span>
</a>
<div class="event-summary__content">
<h5 class="event-summary__title headline headline--tiny"><a href="#">Professors in the National Spotlight</a></h5>
<p>Two of our professors have been in national news lately. <a href="#" class="nu gray">Read more</a></p>
</div>
</div>

<p class="t-center no-margin"><a href="#" class="btn btn--yellow">View All Blog Posts</a></p>
</div>
</div>
</div>

<div class="hero-slider">
<div data-glide-el="track" class="glide__track">
<div class="glide__slides">
<div class="hero-slider__slide" style="background-image: url(<?php echo get_theme_file_uri('images/bus.jpg') ?>);">
<div class="hero-slider__interior container">
<div class="hero-slider__overlay">
<h2 class="headline headline--medium t-center">Free Transportation</h2>
<p class="t-center">All students have free unlimited bus fare.</p>
<p class="t-center no-margin"><a href="#" class="btn btn--blue">Learn more</a></p>
</div>
</div>
</div>
<div class="hero-slider__slide" style="background-image: url(<?php echo get_theme_file_uri('images/apples.jpg') ?>);">
<div class="hero-slider__interior container">
<div class="hero-slider__overlay">
<h2 class="headline headline--medium t-center">An Apple a Day</h2>
<p class="t-center">Our dentistry program recommends eating apples.</p>
<p class="t-center no-margin"><a href="#" class="btn btn--blue">Learn more</a></p>
</div>
</div>
</div>
<div class="hero-slider__slide" style="background-image: url(<?php echo get_theme_file_uri('images/bread.jpg') ?>);">
<div class="hero-slider__interior container">
<div class="hero-slider__overlay">
<h2 class="headline headline--medium t-center">Free Food</h2>
<p class="t-center">Fictional University offers lunch plans for those in need.</p>
<p class="t-center no-margin"><a href="#" class="btn btn--blue">Learn more</a></p>
</div>
</div>
</div>
</div>
<div class="slider__bullets glide__bullets" data-glide-el="controls[nav]"></div>
</div>
</div>
<?php get_footer(); ?>
6 changes: 1 addition & 5 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ function ignite_files()
}
add_action('wp_enqueue_scripts', 'ignite_files');

/*function university_features below contains the dynamic nav menu items used in the footer and header files. They are the commented out ones*/

function university_features() {
/*register_nav_menu('headerMenuLocation', 'Header Menu Location');
register_nav_menu('footerLocationOne', 'Footer Location One');
register_nav_menu('footerLocationTwo', 'Footer Location Two');*/

add_theme_support('title-tag');
}

Expand Down
6 changes: 1 addition & 5 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@
<i class="site-header__menu-trigger fa fa-bars" aria-hidden="true"></i>
<div class="site-header__menu group">
<nav class="main-navigation">
<!-- <?php wp_nav_menu(array(
'theme_location' => 'headerMenuLocation'
)); ?> -->
<!--Commented out the dynamic nav menus above in favor of the hard coded ones below-->
<ul>
<li <?php if (is_page('about-us')) echo 'class="current_menu_item"' ?>><a href="<?php echo site_url('/about-us') ?>">About Us</a></li>
<li <?php if (is_page('about-us') or wp_get_post_parent_id(0) == 13) echo 'class="current_menu_item"' ?>><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
137 changes: 28 additions & 109 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,117 +1,36 @@
<?php get_header(); ?>
<?php

<div class="page-banner">
<div class="page-banner__bg-image" style="background-image: url(<?php echo get_theme_file_uri('images/library-hero.jpg') ?>);"></div>
<div class="page-banner__content container t-center c-white">
<h1 class="headline headline--large">Welcome!</h1>
<h2 class="headline headline--medium">We think you&rsquo;ll like it here.</h2>
<h3 class="headline headline--small">Why don&rsquo;t you check out the <strong>major</strong> you&rsquo;re interested in?</h3>
<a href="#" class="btn btn--large btn--blue">Find Your Major</a>
</div>
</div>

<div class="full-width-split group">
<div class="full-width-split__one">
<div class="full-width-split__inner">
<h2 class="headline headline--small-plus t-center">Upcoming Events</h2>
get_header(); ?>

<div class="event-summary">
<a class="event-summary__date t-center" href="#">
<span class="event-summary__month">Mar</span>
<span class="event-summary__day">25</span>
</a>
<div class="event-summary__content">
<h5 class="event-summary__title headline headline--tiny"><a href="#">Poetry in the 100</a></h5>
<p>Bring poems you&rsquo;ve wrote to the 100 building this Tuesday for an open mic and snacks. <a href="#" class="nu gray">Learn more</a></p>
</div>
</div>
<div class="event-summary">
<a class="event-summary__date t-center" href="#">
<span class="event-summary__month">Apr</span>
<span class="event-summary__day">02</span>
</a>
<div class="event-summary__content">
<h5 class="event-summary__title headline headline--tiny"><a href="#">Quad Picnic Party</a></h5>
<p>Live music, a taco truck and more can found in our third annual quad picnic day. <a href="#" class="nu gray">Learn more</a></p>
</div>
</div>

<p class="t-center no-margin"><a href="#" class="btn btn--blue">View All Events</a></p>
</div>
<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">Welcome to our blog!</h1>
<div class="page-banner__intro">
<p>Keep up with our latest news.</p>
</div>
<div class="full-width-split__two">
<div class="full-width-split__inner">
<h2 class="headline headline--small-plus t-center">From Our Blogs</h2>

<div class="event-summary">
<a class="event-summary__date event-summary__date--beige t-center" href="#">
<span class="event-summary__month">Jan</span>
<span class="event-summary__day">20</span>
</a>
<div class="event-summary__content">
<h5 class="event-summary__title headline headline--tiny"><a href="#">We Were Voted Best School</a></h5>
<p>For the 100th year in a row we are voted #1. <a href="#" class="nu gray">Read more</a></p>
</div>
</div>
<div class="event-summary">
<a class="event-summary__date event-summary__date--beige t-center" href="#">
<span class="event-summary__month">Feb</span>
<span class="event-summary__day">04</span>
</a>
<div class="event-summary__content">
<h5 class="event-summary__title headline headline--tiny"><a href="#">Professors in the National Spotlight</a></h5>
<p>Two of our professors have been in national news lately. <a href="#" class="nu gray">Read more</a></p>
</div>
</div>

<p class="t-center no-margin"><a href="#" class="btn btn--yellow">View All Blog Posts</a></p>
</div>
</div>
</div>

<div class="container container--narrow page-section">
<?php

while (have_posts()) {
the_post(); ?>
<div class="post-item">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="metabox">
<p>Posted by Vince on 7.31.20 in Newa</p>
</div>
</div>

<div class="hero-slider">
<div data-glide-el="track" class="glide__track">
<div class="glide__slides">
<div class="hero-slider__slide" style="background-image: url(<?php echo get_theme_file_uri('images/bus.jpg') ?>);">
<div class="hero-slider__interior container">
<div class="hero-slider__overlay">
<h2 class="headline headline--medium t-center">Free Transportation</h2>
<p class="t-center">All students have free unlimited bus fare.</p>
<p class="t-center no-margin"><a href="#" class="btn btn--blue">Learn more</a></p>
</div>
</div>
</div>
<div class="hero-slider__slide" style="background-image: url(<?php echo get_theme_file_uri('images/apples.jpg') ?>);">
<div class="hero-slider__interior container">
<div class="hero-slider__overlay">
<h2 class="headline headline--medium t-center">An Apple a Day</h2>
<p class="t-center">Our dentistry program recommends eating apples.</p>
<p class="t-center no-margin"><a href="#" class="btn btn--blue">Learn more</a></p>
</div>
</div>
</div>
<div class="hero-slider__slide" style="background-image: url(<?php echo get_theme_file_uri('images/bread.jpg') ?>);">
<div class="hero-slider__interior container">
<div class="hero-slider__overlay">
<h2 class="headline headline--medium t-center">Free Food</h2>
<p class="t-center">Fictional University offers lunch plans for those in need.</p>
<p class="t-center no-margin"><a href="#" class="btn btn--blue">Learn more</a></p>
</div>
</div>
</div>
</div>
<div class="slider__bullets glide__bullets" data-glide-el="controls[nav]"></div>
<div class="generic-content">
<?php the_excerpt(); ?>
</div>
</div>
<?php }

?>
</div>

<!-- <footer class="site-footer">
<div class="site-footer__inner container container--narrow">
<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>
</h1>
<p><a class="site-footer__link" href="#">555.555.5555</a></p>
</div> -->
<?php get_footer();

<?php get_footer(); ?>
?>

0 comments on commit 77ac6d1

Please sign in to comment.