<?php get_header(); ?>
-<article <?php post_class() ?> id="interior">
- <?php GLM_get_header(); ?>
-</article>
-
-<div>
- <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>
- <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>
- </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>, ';
- }
- }
-
- echo ' on ';
- echo ' <span class="meta date"> ' . the_time('F jS, Y') . '. </span>';
- ?>
-
- </footer>
- <hr>
- </article>
+<main>
+ <div class="shadow-wrapper">
+ <div 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" 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>
+ </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>, ';
+ }
+ }
+ echo ' on ';
+ echo ' <span class="meta date"> ' . the_time('F jS, Y') . '. </span>';
+ ?>
+ </footer>
+ </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-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 button" 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>
- <?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>
- <?php get_footer(); ?>
+ <?php get_footer(); ?>