working on posts pages
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 26 Mar 2015 20:58:55 +0000 (16:58 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 26 Mar 2015 20:58:55 +0000 (16:58 -0400)
home.php
single.php

index ed53af7..b30c048 100644 (file)
--- a/home.php
+++ b/home.php
                     <?php if(have_posts()): $i = 1; while (have_posts() && $i < 6) : the_post(); ?>
                     <div class="row" id="blog-posts-container">
                         <div class="small-11 small-centered columns">
-                            <div class="row">
-                                <div class="small-12 columns">
-                                    <ul class="breadcrumbs">
-
-                                    </ul>
-                                </div>
-                            </div>
                             <div class="row">
                                 <div class="small-12 columns">
                                     <article id="<?php the_ID()?>" <?php post_class()?>>
index 3c259c2..812f45d 100644 (file)
 <?php get_header(); ?>
-                <div class="main">
-                    <div id="testimonials" class="row">
-                        <div class="small-12 columns overlay">
-                            <?php echo do_shortcode('[testimonial_rotator id=520 hide_title="true"]'); ?>
-                        </div>
-                    </div>
-                    <div id="content-wrapper">
-
-    <div id="searchform_container" class="small-12 medium-3 columns alignright">
-        <form id="searchform" action="<?php bloginfo('url'); ?>" method="get">
-            <div><input id="s" class="text" type="text" name="s" value="" />
-            <input class="submit button blogbutton" type="submit" name="submit" value="Search" />
-            <input type="hidden" name="searchType" value="blog" /> </div>
-        </form>
+<div class="main">
+    <div id="testimonials" class="row">
+        <div class="small-12 columns overlay">
+            <?php echo do_shortcode('[testimonial_rotator id=520 hide_title="true"]'); ?>
+        </div>
     </div>
-    <div id="blog-posts-over" class="small-12 medium-9 columns">
-        <?php if(have_posts()) : while(have_posts()): the_post();?>
-        <div class="row content" id="blog-posts-container">
-            <div class="small-11 small-centered columns">
-                <div class="row">
-                    <div class="small-12 columns">
-                        <article id="<?php the_ID()?>" <?php post_class()?>>
-                            <header class="entry-header">
-                                <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
-                                <span class="meta"> Posted on <strong><?php the_time('F jS, Y'); ?></strong> </span>
-                            </header>
-                            <?php echo the_content(); ?>
-                            <footer class="entry-meta small-12 medium-6 medium-push-3 center">
-                                
-                                <?php $post_categories = wp_get_post_categories( get_the_ID() );
-                                $cats = array();
-
-                                echo 'This entry was posted ';
-                                if (has_category()) {
-                                    echo 'in ';
-                                    foreach($post_categories as $c){
-
-                                        $cat = get_category( $c );
-                                        $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
-                                        echo '<a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>, ';
+    <div id="content-wrapper" class="row">
+        <div id="blog-posts-over" class="small-12 medium-9 columns">
+            <?php if(have_posts()) : while(have_posts()): the_post();?>
+            <div class="row content" id="blog-posts-container">
+                <div class="small-11 small-centered columns">
+                    <div class="row">
+                        <div class="small-12 columns">
+                            <article id="<?php the_ID()?>" <?php post_class()?>>
+                                <header class="entry-header">
+                                    <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+                                    <span class="meta"> Posted on <strong><?php the_time('F jS, Y'); ?></strong> </span>
+                                </header>
+                                <?php echo the_content(); ?>
+                                <footer class="entry-meta small-12 medium-6 medium-push-3 center">
+                                    <?php $post_categories = wp_get_post_categories( get_the_ID() );
+                                    $cats = array();
+                                    echo 'This entry was posted ';
+                                    if (has_category()) {
+                                        echo 'in ';
+                                        foreach($post_categories as $c){
+                                            $cat = get_category( $c );
+                                            $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
+                                            echo '<a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>, ';
+                                        }
                                     }
-                                }
-                                $post_tags = wp_get_post_tags( get_the_ID() );
-                                $tags = array();
-                                if (has_tag( )) {
-                                    echo ' and tagged ';
-                                    foreach($post_tags as $t){
-                                        $tag = get_tag( $t );
-                                        $tags[] = array( 'name' => $tag->name, 'slug' => $tag->slug );
-                                        echo '<a rel="category" title="View all posts in '. $tag->name . ' " href="'. $tag->slug .'">'. $tag->name .'</a>, ';
+                                    $post_tags = wp_get_post_tags( get_the_ID() );
+                                    $tags = array();
+                                    if (has_tag( )) {
+                                        echo ' and tagged ';
+                                        foreach($post_tags as $t){
+                                            $tag = get_tag( $t );
+                                            $tags[] = array( 'name' => $tag->name, 'slug' => $tag->slug );
+                                            echo '<a rel="category" title="View all posts in '. $tag->name . ' " href="'. $tag->slug .'">'. $tag->name .'</a>, ';
+                                        }
                                     }
-                                }
-                                
-                                echo ' on ';
-                                echo ' <span class="meta date"> ' . the_time('F jS, Y') . '. </span>';
-                                ?>
-
-                            </footer>
-                            <hr>
-                        </article>
+                                    echo ' on ';
+                                    echo ' <span class="meta date"> ' . the_time('F jS, Y') . '. </span>';
+                                    ?>
+                                </footer>
+                                <hr>
+                            </article>
+                        </div>
                     </div>
                 </div>
             </div>
+            <?php endwhile; ?>
+            <?php else: ?>
+            <div id="post-404" class="noposts">
+                    <p><?php _e('Sorry, no results were found.');?></p>
+            </div><!-- /#post-404 -->
+            <?php endif;?>
+        </div>
+        <div class="small-12 medium-3 columns">
+            <div id="blog-side-info">
+                <form id="searchform" action="<?php bloginfo('url'); ?>" method="get">
+                    <div><input id="s" class="text" type="text" name="s" value="" />
+                    <input class="submit button blogbutton" type="submit" name="submit" value="Search" />
+                    <input type="hidden" name="searchType" value="blog" /> </div>
+                </form>
+                <p>Recent Posts</p>
+                <ul>
+                <?php
+                        $args = array( 'numberposts' => '5' );
+                        $recent_posts = wp_get_recent_posts( $args );
+                        foreach( $recent_posts as $recent ){
+                                echo '<li><a href="' . get_permalink($recent["ID"]) . '">' .   $recent["post_title"].'</a> </li> ';
+                        }
+                ?>
+                </ul>
+                <p>Archive</p>
+                <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?></ul>
+                <p>Categories</p>
+                <ul>
+                    <?php
+                    $args = array(
+                    'orderby' => 'name',
+                    'order' => 'ASC'
+                    );
+                  $categories = get_categories($args);
+                    foreach($categories as $category) {
+                      echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </li> ';  }
+                    ?>
+                </ul>
+            </div>
+        </div>
+        <div class="row">
+            <div class="logos">
+                <ul class="small-block-grid-2 medium-block-grid-4">
+                    <li><img src="<?php echo get_template_directory_uri(); ?>/assets/NAHB.png"></li>
+                    <li><img src="<?php echo get_template_directory_uri(); ?>/assets/HBA.png"></li>
+                    <li><img src="<?php echo get_template_directory_uri(); ?>/assets/best-of.png"></li>
+                    <li><img src="<?php echo get_template_directory_uri(); ?>/assets/builder-of-year.png"></li>
+                </ul>
+            </div>
         </div>
-        <?php endwhile; ?>
-        <?php else: ?>
-        <div id="post-404" class="noposts">
-                <p><?php _e('Sorry, no results were found.');?></p>
-        </div><!-- /#post-404 -->
-        <?php endif;?>
-    </div>
-    <div class="row small-12 medium-3">
-    <div id="blog-side-info" class="alignright small-12 medium-3">
-        
-        <p>Recent Posts</p>
-        <ul>
-        <?php
-                $args = array( 'numberposts' => '5' );
-                $recent_posts = wp_get_recent_posts( $args );
-                foreach( $recent_posts as $recent ){
-                        echo '<li><a href="' . get_permalink($recent["ID"]) . '">' .   $recent["post_title"].'</a> </li> ';
-                }
-        ?>
-        </ul>
-        <p>Archive</p>
-        <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?></ul>
-        <p>Categories</p>
-        <ul>
-            <?php
-            $args = array(
-            'orderby' => 'name',
-            'order' => 'ASC'
-            );
-          $categories = get_categories($args);
-            foreach($categories as $category) { 
-              echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </li> ';  } 
-            ?>
-        </ul>
     </div>
-</div>
-                            <div class="row">
-                                <div class="logos">
-                                    <ul class="small-block-grid-2 medium-block-grid-4">
-                                        <li><img src="<?php echo get_template_directory_uri(); ?>/assets/NAHB.png"></li>
-                                        <li><img src="<?php echo get_template_directory_uri(); ?>/assets/HBA.png"></li>
-                                        <li><img src="<?php echo get_template_directory_uri(); ?>/assets/best-of.png"></li>
-                                        <li><img src="<?php echo get_template_directory_uri(); ?>/assets/builder-of-year.png"></li>
-                                    </ul>
-                                </div>
-                            </div>
-                        </div>
-        <?php get_footer(); ?>
+<?php get_footer(); ?>