-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simply use a featured image and the Homepage - Any Chapter page template (uses template-homepage2022.php)
- Loading branch information
1 parent
d6a0c2f
commit e650cfd
Showing
2 changed files
with
45 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
/* | ||
Template Name: Hompage 2017 | ||
Template Name: Homepage - Seattle DSA | ||
*/ | ||
?> | ||
|
||
|
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,27 +1,55 @@ | ||
<?php | ||
/* | ||
Template Name: Hompage 2022 | ||
Template Name: Hompage - Any Chapter | ||
*/ | ||
?> | ||
|
||
<?php get_header(); ?> | ||
|
||
<div id="content"> | ||
<?php get_sidebar('alertmessage'); ?> | ||
<div class="grid-container grid-x featuredDioramaContainer"> | ||
<?php if( !empty(get_the_post_thumbnail()) ) { ?> | ||
<?php the_post_thumbnail('large');?> | ||
<?php } else { ?> | ||
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/ui-foregrounds/mobile-mural.png" class="featuredDiorama" /> | ||
<?php } ?> | ||
<div id="content" class="grid-x grid-margin-x"> | ||
<div class="cell small-12"> | ||
<?php get_sidebar('alertmessage'); ?> | ||
</div> | ||
<div class="grid-container grid-x"> | ||
<div class="cell large-12 medium-12 small-12"><!-- Begin Main Content--> | ||
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | ||
<?php get_template_part( 'parts/loop', 'pagealt' ); ?> | ||
<?php endwhile; endif; ?> | ||
<div class="grid-x grid-margin-x cell medium-10 medium-offset-1 align-middle"> | ||
<div class="cell large-6 medium-4 small-10"> | ||
<?php if( !empty(get_the_post_thumbnail()) ) { ?> | ||
<?php the_post_thumbnail('large');?> | ||
<?php } else { ?> | ||
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/ui-foregrounds/mobile-mural.png" /> | ||
<?php } ?> | ||
</div> | ||
</div> | ||
<div class="cell large-6 medium-8 small-12"><!-- Begin Main Content--> | ||
<div class="card"> | ||
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | ||
<?php get_template_part( 'parts/loop', 'pagealt' ); ?> <!-- Editable Main Page Area --> | ||
<?php endwhile; endif; ?> | ||
</div> | ||
</div> | ||
</div> | ||
</div><!-- end diorama --> | ||
<div class="grid-x grid-margin-x align-middle" id="dsa-newsletter"> | ||
<div class="card cell large-6 large-offset-3 medium-8 medium-offset-2 small-12 newsletter-signup"> | ||
<div class="grid-x grid-margin-x"> | ||
<div class="form cell large-12 medium-12 small-12"> | ||
<div class="fields"> | ||
<?php echo apply_filters('the_content', get_post_meta($post->ID, '_email_signup', true)); ?> | ||
<!-- Editable Metabox Area: "Email Signup Box (use Mailchimp embed code)" --> | ||
</div> | ||
</div> | ||
</div> | ||
</div><!-- newsletter signup area --> | ||
</div><!-- end top half --> | ||
|
||
|
||
<div class="grid-x grid-margin-x grid-margin-y align-top bg-light"> | ||
<div id="dsa-events" class="cell large-6 small-12"> | ||
<?php get_template_part( 'parts/content', 'events' ); ?> <!-- see /parts/content-events.php --> | ||
</div> | ||
|
||
<div id="dsa-posts" class="cell large-6 small-12"> | ||
<?php get_template_part( 'parts/content', 'dispatches' ); ?> <!-- see /parts/content-dispatches.php --> | ||
</div> | ||
</div> | ||
</div> <!-- end #content --> | ||
|
||
<?php get_footer(); ?> | ||
<?php get_footer(); ?> |