changing the archive template to use the blog sidebar part to keep the styles
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 26 Jan 2017 18:52:58 +0000 (13:52 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 26 Jan 2017 18:52:58 +0000 (13:52 -0500)
uniform

archive.php
parts/blog-sidebar-r.php

index 8b2cafe..e04c4d2 100644 (file)
             </div><!-- /#post-404 -->
             <?php endif;?>
         </div>
-        <div id="blog-side-info-wrapper" class="small-11 small-only-text-center 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 blogbutton" type="submit" name="submit" value="Search the Blog" />
-                    <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>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>
-                <p>Archive</p>
-                <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?></ul>
-            </div>
-        </div>
+       <?php get_template_part('parts/blog-sidebar-r'); ?>
     </div>
     <?php get_footer(); ?>
index 385b860..095b808 100644 (file)
@@ -6,7 +6,7 @@
                 <input class="submit blogbutton" type="submit" name="submit" value="Search" />
                 <input type="hidden" name="searchType" value="blog" /> </div>
             </form>
-            <h5>Recent Posts</h5>
+            <p>Recent Posts</p>
             <ul>
             <?php
                     $args = array( 'numberposts' => '5' );
@@ -16,7 +16,7 @@
                     }
             ?>
             </ul>
-            <h5>Categories</h5>
+            <p>Categories</p>
             <ul>
                 <?php
                 $args = array(
@@ -28,7 +28,7 @@
                   echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </li> ';  }
                 ?>
             </ul>
-            <h5>Archive</h5>
+            <p>Archive</p>
             <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?></ul>
         </div>
     </div>