making layout changes for the front page
authorIan Weller <ian@gaslightmedia.com>
Thu, 7 Jul 2016 19:21:54 +0000 (15:21 -0400)
committerIan Weller <ian@gaslightmedia.com>
Thu, 7 Jul 2016 19:21:54 +0000 (15:21 -0400)
front-page.php
parts/blog-feed-front.php

index 42d33fe..e1a4354 100644 (file)
             <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/large-camera-image-fpo.jpg">
         </div>
         <div class="row">
-            <div id="main-content" class="small-12 columns">
-                <?php if(have_posts()) : while(have_posts()): the_post();?>
-                <?php the_content();?>
-                <?php endwhile; else:?>
-                <p><?php _e('Sorry, no posts yet');?></p>
-                <?php endif;?>
+            <div class="small-12 medium-8 columns">
+                <h2>Downtown Petoskey</h2>
+                <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/small-camera-image-fpo.jpg">
+            </div>
+            <div class="small-12 medium-4 columns">
+                <h3>Featured Video</h3>
+                <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/sample-video-preview.jpg">
+            </div>
+        </div>
+        <div class="row">
+            <div class="small-12 medium-4 columns">
+                
+            </div>
+            <div class="small-12 medium-8 columns">
+                <?php get_template_part('parts/blog-feed-front');?>
             </div>
         </div>
     </div>
index ba35dbb..a797fc5 100644 (file)
@@ -1,4 +1,4 @@
-<?php $args = array( 'numberposts' => 4);?>
+<?php $args = array( 'numberposts' => 3);?>
 <div id="home-feed-posts">
 <?php
 $lastposts = get_posts( $args );
@@ -7,17 +7,19 @@ foreach($lastposts as $post) : setup_postdata($post); ?>
     <div class="home-feed-post">
         <div class="row">
             <?php if (has_post_thumbnail( $post->ID )) { ?>
-            <div class="small-11 small-centered columns text-center home-feed-post-image">
+            <div class="small-11 small-centered medium-uncentered medium-4 columns text-center home-feed-post-image">
                 <?php echo get_the_post_thumbnail($post->ID, array(190, 190), array('class' => 'blog-excerpt-img-wrap')); ?>
                 </div>
-                <div class="small-12 medium-12 columns home-feed-post-content">
+                <div class="small-12 medium-8 columns home-feed-post-content">
                  <?php } else { ?>
                 <div class="small-12 columns home-feed-post-content">
                 <?php } ?>
                 <span class="meta date"><?php the_time('F j, Y') ?></span>
-                <h2 class="title-posts" href="<?php the_permalink(); ?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
+                <h4 class="title-posts" href="<?php the_permalink(); ?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
                 
-                <div class="excerpt<?php echo $count ?>"><?php echo the_advanced_excerpt('length=265&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,strong,h1,h2,h3,hr,div'); ?></div>
+                <div class="excerpt<?php echo $count ?>">
+                    <?php // echo the_advanced_excerpt('length=265&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,strong,h1,h2,h3,hr,div'); ?>
+                </div>
             </div>
         </div>
     </div>