Skip to content

Commit

Permalink
Generic, Any Chapter Homepage
Browse files Browse the repository at this point in the history
Simply use a featured image and the Homepage - Any Chapter page template (uses template-homepage2022.php)
  • Loading branch information
davidagnome committed Jan 15, 2023
1 parent d6a0c2f commit e650cfd
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 17 deletions.
2 changes: 1 addition & 1 deletion template-homepage2017.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Template Name: Hompage 2017
Template Name: Homepage - Seattle DSA
*/
?>

Expand Down
60 changes: 44 additions & 16 deletions template-homepage2022.php
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(); ?>

0 comments on commit e650cfd

Please sign in to comment.