-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
9e5dec7
commit e479ef8
Showing
9 changed files
with
229 additions
and
149 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,99 +1,148 @@ | ||
<?php | ||
/** | ||
* The template for displaying archive pages. | ||
* | ||
* @package Big_Sisters_Theme | ||
/** | ||
* The template for displaying archive pages. | ||
* | ||
* @package Big_Sisters_Theme | ||
*/ | ||
get_header(); ?> | ||
|
||
<div id="primary" class="content-area"> | ||
<main id="main" class="site-main" role="main"> | ||
|
||
<div class="events"> | ||
<section class="premier-events container"> | ||
<?php if ( have_posts() ) : ?> | ||
|
||
<header class="page-header-style"> | ||
<h1>Premier Events</h1> | ||
</header><!-- .page-header --> | ||
<?php /* Start the Loop */ ?> | ||
<?php query_posts( array( 'events_tax' => 'premier', 'showposts' => 3 ) ); ?> | ||
<ul> | ||
<?php while ( have_posts() ) : the_post(); ?> | ||
|
||
<li> | ||
<?php if (has_post_thumbnail() ) : ?> | ||
<div class="event-thumbnail"> | ||
<div class="thumb-img-div"> | ||
<?php the_post_thumbnail('large'); ?> | ||
</div> | ||
</div> <!-- .event-thumbnail --> | ||
<?php endif; ?> | ||
<div class="event-content"> | ||
<h3> <?php the_title(); ?></h3> | ||
<?php the_excerpt(); ?> | ||
<a class="learn-more button-white" href="<?php the_permalink(); ?>">Learn More</a> | ||
</div> <!-- .event-content --> | ||
</li> | ||
<?php endwhile; ?> | ||
</ul> | ||
|
||
<?php else : ?> | ||
|
||
<?php get_template_part( 'template-parts/content', 'none' ); ?> | ||
|
||
<?php endif; ?> | ||
</section> <!-- .premier-events --> | ||
|
||
<section class="partner-events container"> | ||
<?php if ( have_posts() ) : ?> | ||
|
||
<h2>Partner Events</h2> | ||
|
||
<?php /* Start the Loop */ ?> | ||
<?php query_posts( array( 'events_tax' => 'partner', 'showposts' => 2 ) ); ?> | ||
<ul> | ||
<?php while ( have_posts() ) : the_post(); ?> | ||
<li> | ||
<?php if (has_post_thumbnail() ) : ?> | ||
<div class="event-thumbnail"> | ||
<div class="thumb-img-div"> | ||
<?php the_post_thumbnail('large'); ?> | ||
</div> | ||
</div> <!-- .event-thumbnail --> | ||
<?php endif; ?> | ||
<div class="event-content"> | ||
<h3> <?php the_title(); ?></h3> | ||
<?php the_excerpt(); ?> | ||
<a class="learn-more button-white" href="<?php the_permalink(); ?>">Learn More</a> | ||
</div> <!-- .event-content --> | ||
</li> | ||
|
||
<?php endwhile; ?> | ||
</ul> | ||
|
||
<?php else : ?> | ||
|
||
<?php get_template_part( 'template-parts/content', 'none' ); ?> | ||
|
||
<?php endif; ?> | ||
</section> <!-- .partner-events --> | ||
|
||
<section class="host-fundraiser-event"> | ||
<div class="container"> | ||
<h2>Want to host a fundraiser or event?</h2> | ||
<a class="learn-more button-white"href="/bigsisters/host-a-fundraising-event/">Learn More</a> | ||
</div> | ||
</section> | ||
<?php | ||
$id = 608; | ||
$post = get_post( $id ); | ||
?> | ||
<?php get_template_part('template-pages/events-contact'); ?> | ||
<hr> | ||
|
||
</div> <!-- .events --> | ||
|
||
</main><!-- #main --> | ||
</div><!-- #primary --> | ||
get_header(); ?> | ||
|
||
<div id="primary" class="content-area"> | ||
<main id="main" class="site-main" role="main"> | ||
|
||
<div class="events"> | ||
<section class="premier-events container"> | ||
<?php if ( have_posts() ) : ?> | ||
<header class="page-header-style"> | ||
<h1>Signature Events</h1> | ||
</header><!-- .page-header --> | ||
<?php /* Start the Loop */ ?> | ||
<?php query_posts( array( 'events_tax' => 'signature', 'showposts' => 3 ) ); ?> | ||
<ul> | ||
<?php while ( have_posts() ) : the_post(); ?> | ||
<li> | ||
<?php if (has_post_thumbnail() ) : ?> | ||
<div class="event-thumbnail"> | ||
<div class="thumb-img-div"> | ||
<?php the_post_thumbnail('large'); ?> | ||
</div> | ||
</div> <!-- .event-thumbnail --> | ||
<?php endif; ?> | ||
<div class="event-content"> | ||
<h3> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> | ||
<?php the_excerpt(); ?> | ||
<a class="learn-more button-white" href="<?php the_permalink(); ?>">Learn More</a> | ||
</div> <!-- .event-content --> | ||
</li> | ||
<?php endwhile; wp_reset_query(); ?> | ||
</ul> | ||
<?php else : ?> | ||
<?php get_template_part( 'template-parts/content', 'none' ); ?> | ||
<?php endif; ?> | ||
</section> <!-- .premier-events --> | ||
|
||
<section class="premier-events container"> | ||
<header class="page-header-style"> | ||
<h1>Partnership Events</h1> | ||
</header> | ||
<?php if ( have_posts() ) : ?> | ||
<?php /* Start the Loop */ ?> | ||
<?php query_posts( array( 'events_tax' => 'partnership', 'showposts' => 3 ) ); ?> | ||
<ul> | ||
<?php while ( have_posts() ) : the_post(); ?> | ||
<li> | ||
<?php if (has_post_thumbnail() ) : ?> | ||
<div class="event-thumbnail"> | ||
<div class="thumb-img-div"> | ||
<?php the_post_thumbnail('large'); ?> | ||
</div> | ||
</div> <!-- .event-thumbnail --> | ||
<?php endif; ?> | ||
<div class="event-content"> | ||
<h3> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> | ||
<?php the_excerpt(); ?> | ||
<a class="learn-more button-white" href="<?php the_permalink(); ?>">Learn More</a> | ||
</div> <!-- .event-content --> | ||
</li> | ||
<?php endwhile; wp_reset_query(); ?> | ||
</ul> | ||
<?php else : ?> | ||
<?php get_template_part( 'template-parts/content', 'none' ); ?> | ||
<?php endif; ?> | ||
</section> <!-- .partner-events --> | ||
|
||
<section class="premier-events container"> | ||
<header class="page-header-style"> | ||
<h1>Third Party Events</h1> | ||
</header><!-- .page-header --> | ||
<?php if ( have_posts() ) : ?> | ||
<?php /* Start the Loop */ ?> | ||
<ul> | ||
<?php query_posts( array( 'events_tax' => 'third-party', 'showposts' => 3 ) ); ?> | ||
<?php while ( have_posts() ) : the_post(); ?> | ||
<li> | ||
<?php if (has_post_thumbnail() ) : ?> | ||
<div class="event-thumbnail"> | ||
<div class="thumb-img-div"> | ||
<?php the_post_thumbnail('large'); ?> | ||
</div> | ||
</div> <!-- .event-thumbnail --> | ||
<?php endif; ?> | ||
<div class="event-content"> | ||
<h3> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> | ||
<?php the_excerpt(); ?> | ||
<a class="learn-more button-white" href="<?php the_permalink(); ?>">Learn More</a> | ||
</div> <!-- .event-content --> | ||
</li> | ||
<?php endwhile; wp_reset_query(); ?> | ||
</ul> | ||
<?php else : ?> | ||
<?php get_template_part( 'template-parts/content', 'none' ); ?> | ||
<?php endif; ?> | ||
</section> <!-- .premier-events --> | ||
|
||
|
||
<section class="premier-events container"> | ||
<header class="page-header-style"> | ||
<h1>Past Events</h1> | ||
</header><!-- .page-header --> | ||
<?php /* Start the Loop */ ?> | ||
<?php if ( have_posts() ) : ?> | ||
<ul> | ||
<?php $i = 1; while (have_posts() && $i < 7) : the_post(); ?> | ||
<li> | ||
<?php if (has_post_thumbnail() ) : ?> | ||
<div class="event-thumbnail"> | ||
<div class="thumb-img-div"> | ||
<?php the_post_thumbnail('large'); ?> | ||
</div> | ||
</div> <!-- .event-thumbnail --> | ||
<?php endif; ?> | ||
<div class="event-content"> | ||
<h3> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> | ||
<?php the_excerpt(); ?> | ||
<a class="learn-more button-white" href="<?php the_permalink(); ?>">Learn More</a> | ||
</div> <!-- .event-content --> | ||
</li> | ||
<?php $i++; endwhile; wp_reset_query(); ?> | ||
</ul> | ||
<?php endif; ?> | ||
</section> <!-- .partner-events --> | ||
|
||
<section class="host-fundraiser-event"> | ||
<div class="container"> | ||
<h2>Want to host a fundraiser or event?</h2> | ||
<a class="learn-more button-white"href="/bigsisters/host-a-fundraising-event/">Learn More</a> | ||
</div> | ||
</section> | ||
<?php | ||
$id = 608; | ||
$post = get_post( $id ); | ||
?> | ||
<?php get_template_part('template-pages/events-contact'); ?> | ||
<hr> | ||
|
||
</div> <!-- .events --> | ||
|
||
</main><!-- #main --> | ||
</div><!-- #primary --> | ||
<?php get_footer(); ?> |
Binary file modified
BIN
-14.6 KB
(23%)
wp-content/themes/bigsisters/assets/images/bigsisters-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.