Placed blog sidebar in its own parts file. Gave most MAIN elements an identifiable...
authorLaury GvR <laury@gaslightmedia.com>
Fri, 8 May 2015 15:48:58 +0000 (11:48 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 8 May 2015 15:50:29 +0000 (11:50 -0400)
root/archive.php
root/front-page.php
root/home.php
root/page.php
root/parts/blog-sidebar-r.php [new file with mode: 0644]
root/single.php

index f9490a3..47d91e5 100644 (file)
@@ -1,5 +1,5 @@
 <?php get_header(); ?>
-<main class="blog-home">
+<main class="blog-archive">
     <article <?php post_class() ?> id="interior">
         <?php GLM_get_header(); ?>
     </article>
             </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" />
-                    <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>
+        <?php get_template_part('parts/blog-sidebar-r'); ?>
     </div>
     <?php get_footer(); ?>
index e5d5bb7..079b641 100644 (file)
@@ -1,5 +1,5 @@
 <?php get_header(); ?>
-<main>
+<main class="page-front">
     <div class="row">
         <?php get_template_part('parts/slide-show');?>
     </div>
index cfc46d3..488e5f8 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>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>
+        <?php get_template_part('parts/blog-sidebar-r'); ?>
     </div>
     <?php get_footer(); ?>
 
index e13eb37..a7817a8 100644 (file)
@@ -1,5 +1,5 @@
 <?php get_header(); ?>
-<main>
+<main class="page-inside">
         <?php if (is_page("kitchensink")) {
             get_template_part('parts/glm-kitchen-sink');
         } else { ?>
diff --git a/root/parts/blog-sidebar-r.php b/root/parts/blog-sidebar-r.php
new file mode 100644 (file)
index 0000000..1cb0327
--- /dev/null
@@ -0,0 +1,33 @@
+        <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" />
+                    <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>
\ No newline at end of file
index 95e681c..84e3970 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" />
-                        <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>
+            <?php get_template_part('parts/blog-sidebar-r'); ?>
         </div>
         <?php get_footer(); ?>