fixed my problem
authorIan Weller <ian@gaslightmedia.com>
Mon, 17 Oct 2016 15:32:15 +0000 (11:32 -0400)
committerIan Weller <ian@gaslightmedia.com>
Mon, 17 Oct 2016 15:32:15 +0000 (11:32 -0400)
I fixed my missing end div problem.  Now it looks right and the box shadow
isn't containing the copy right.  I also relocated the emmet county links
to the same area as the copyright in the code layout.

front-page.php

index 97bdba3..901a8dc 100644 (file)
             <div class="small-12 columns">
                 <h1>Recent Emmet County EMS News</h1><br>
                 <div id="blog-feed" class="row">
-                    <?php get_template_part("parts/blog-feed");?>
+                    <?php
+                    $args = array('numberposts' => 3, 'order_by' => 'date');
+                    $lastposts = get_posts( $args );
+                    if ($lastposts) { ?>
+                    <div class="wordpress-content">
+                    <?php foreach($lastposts as $post) : setup_postdata($post); ?>
+                        <div class="small-12 columns blog-feed-post home-feed-post small-centered">
+                            <div class="row">
+                                <?php $thumbnail = get_the_post_thumbnail($post->ID, array(269, 190)); ?>
+                                <?php if ($thumbnail) { ?>
+                                    <div class="small-12 medium-3 columns blog-feed-image">
+                                        <?php echo $thumbnail; ?>
+                                    </div>
+                                    <div class="small-12 medium-9 columns blog-feed-text">
+                                <?php } else { ?>
+                                    <div class="small-12 columns blog-feed-text">
+                                <?php } ?>
+                                        <h2><a class="read" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
+                                        <p class="date italic"><?php echo get_the_date('D, F j, Y g:iA', $post->ID); ?></p>
+                                        <p><?php echo the_advanced_excerpt('length=200&length_type=characters&no_custom=1&ellipsis=%26hellip;'); ?></p>
+                                    </div>
+                            </div>
+                        </div>
+                    <?php endforeach; ?>
+                    </div>
+                    <?php } ?>
                 </div>
             </div>
         </div>