Initial Laury Commit (blog, search, slides, etc,.)
authorLaury GvR <laury@gaslightmedia.com>
Tue, 5 May 2015 19:52:57 +0000 (15:52 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 5 May 2015 19:52:57 +0000 (15:52 -0400)
Blog works (home/single/archive).
Search works (blog-only, global)
Slideshow works.
Pulls in posts for frontpage blocks (need styling)
Inside page left sub-nav works.
Whole bunch of HTML fixes/edits.
General CSS styling work across the site.

17 files changed:
root/archive.php [new file with mode: 0644]
root/assets/search_button.jpg [new file with mode: 0644]
root/functions.php
root/header.php
root/home.php
root/parts/glm-kitchen-sink.php
root/scss/_blog.scss
root/scss/_mixins.scss
root/scss/_plugins.scss [new file with mode: 0644]
root/scss/_search.scss [new file with mode: 0644]
root/scss/_sidebar.scss
root/scss/_structure.scss
root/scss/app.scss
root/scss/plugins/_nextgen.scss [new file with mode: 0644]
root/search.php
root/sidebar.php
root/single.php

diff --git a/root/archive.php b/root/archive.php
new file mode 100644 (file)
index 0000000..6b5c82a
--- /dev/null
@@ -0,0 +1,79 @@
+<?php get_header(); ?>
+<main class="blog-home">
+    <article <?php post_class() ?> id="interior">
+        <?php GLM_get_header(); ?>
+    </article> 
+    <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 content blog-post-container">
+                <div class="small-11 small-centered columns">
+                    <article id="<?php the_ID()?>" <?php post_class()?>>
+                        <header class="entry-header">
+                            <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
+                            <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
+                        </header>
+                        <?php echo the_advanced_excerpt(); ?>
+                        <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>';
+                                }
+                                echo '.';
+                            }
+                            ?>
+                        </footer>
+                    </article>
+                </div>
+            </div>
+            <?php endwhile; ?>
+            <div class="navigation">
+                <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
+            </div><!-- /.navigation -->
+            <?php else: ?>
+            <div id="post-404" class="noposts">
+                <p><?php _e('Sorry, no results were found.');?></p>
+            </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>
+    </div>
+    <?php get_footer(); ?>
diff --git a/root/assets/search_button.jpg b/root/assets/search_button.jpg
new file mode 100644 (file)
index 0000000..b788c5e
Binary files /dev/null and b/root/assets/search_button.jpg differ
index a0cab5a..262a49a 100644 (file)
@@ -162,6 +162,22 @@ function glm_get_header() {
 //    echo '</div>';
 
 
+function glm_side_menu() {
+    global $post;
+    $parents = get_post_ancestors($post->ID);
+    $id = ($parents) ? $parents[count($parents)-1]: $post->ID;
+    $parent = get_page( $id );
+    if ($id == 0) {
+        $ID = $post->ID;
+    } else {
+        $ID = $parent->ID;
+    }
+    echo '<h1>'.get_the_title($ID).'</h1>';    
+    echo '<ul class="sidebar"><!-- begin -->'."\n";
+    echo wp_list_pages( 'child_of='.$ID.'&title_li=&depth=1&echo=0');
+    echo '</ul><!-- end -->'."\n";
+}
+
 
 add_action('wp_enqueue_scripts', 'glm_site_scripts');
 ?>
index ffb229b..c0bb978 100644 (file)
@@ -23,6 +23,9 @@
                                 <a href="<?php bloginfo('url');?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/logo.png"></a>
                             </div>
                         </div>
+                        <div class="search-top show-for-large-up">
+                            <?php get_template_part('parts/search');?>
+                        </div>
                         <div class="row">
                             <?php get_template_part('parts/top-bar');?>
                         </div>
index 7d6f1f9..6a3bd51 100644 (file)
@@ -1,59 +1,85 @@
 <?php get_header(); ?>
-                    <div class="main">
-                        <div id="content-wrapper">    
-                            <div class="row">
-                                <div class="small-12 columns text-center">
-                                    <h1 id="Emer">If this is an emergency, please call 9-1-1</h1>
-                                </div>
-                            </div>
-                             <div class="row">
-                                <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()): $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">
+<main class="blog-home">
+<!--    <article <?php // post_class() ?> id="interior-featured">
+        <?php // GLM_get_header(); ?>
+    </article> -->
+    <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 content blog-post-container">
+                <div class="small-11 small-centered columns">
+                    <article id="<?php the_ID()?>" <?php post_class()?>>
+                        <header class="entry-header">
+                            <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
+                            <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
+                        </header>
+                        <?php echo the_advanced_excerpt(); ?>
+                        <!--the_advanced_excerpt('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;');-->
+                        <!-- This could be wrapped in php tags and be functional, 
+                                but it is easier to change this in admin side-->
+                        <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>';
+                                }
+                                echo '.';
+                            }
+                            ?>
+                        </footer>
+                    </article>
+                </div>
+            </div>
+            <?php endwhile; ?>
+            <div class="navigation">
+                <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
+            </div><!-- /.navigation -->
+            <?php else: ?>
+            <div id="post-404" class="noposts">
+                <p><?php _e('Sorry, no results were found.');?></p>
+            </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>
+    </div>
+    <?php get_footer(); ?>
 
-                                                    </ul>
-                                                </div>
-                                            </div>
-                                            <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_advanced_excerpt('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;'); ?>
-                                                        <hr>
-                                                    </article>
-                                                </div>
-                                            </div>
-                                        </div>
-                                    </div>
-                                    <?php endwhile; ?>
-                                    <div class="navigation">
-                                        <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
-                                    </div><!-- /.navigation -->
-                                    <?php else: ?>
-                                    <div id="post-404" class="noposts">
-                                            <p><?php _e('Sorry, no posts yet');?></p>
-                                    </div><!-- /#post-404 -->
-                                    <?php endif;?>
-                                </div>
-                            </div>
-                        </div>
-<?php get_footer(); ?>
\ No newline at end of file
+                        
+                        
index 37fb81a..25aec41 100644 (file)
     </style>
 </div>
 
-        <br><a name="header">header</a> 
+<br><a name="header">header</a> 
 <div id="header" class="row"></div>
 
-        <br><a name="search">search</a> 
+<br><a name="search">search</a> 
 <div id="search" class="row">
     <?php 
     get_template_part('parts/search');
index cd4b829..66a3443 100644 (file)
@@ -1,25 +1,25 @@
 #front {
-    padding: 10px;
+    padding: 20px;
     .row.collapse {
         h1 {
             border-bottom: 1px solid #d1d2d4;
         }
         .row {
             margin-bottom: 20px;
+            img {
+                margin-top: 5px;
+                border: 3px solid $white;
+                -webkit-box-shadow: 0px 0px 5px 0px #ababab;
+                -moz-box-shadow: 0px 0px 5px 0px #ababab;
+                -ms-box-shadow: 0px 0px 5px 0px #ababab;
+                box-shadow: 0px 0px 5px 0px #ababab;
+            }
             .detail {
-                padding-left: 25px;
+                padding-left: 40px;
                 margin: 0 auto;
                 h2 {
                     margin: 0;
                 }
-                img {
-                    margin-top: 5px;
-                    border: 3px solid $white;
-                    -webkit-box-shadow: 0px 0px 5px 0px #ababab;
-                    -moz-box-shadow: 0px 0px 5px 0px #ababab;
-                    -ms-box-shadow: 0px 0px 5px 0px #ababab;
-                    box-shadow: 0px 0px 5px 0px #ababab;
-                }
                 p {
                     font-size: rem-calc(12);
                     margin: 0;
             margin: 10px 0;
             li {
                 font-size: rem-calc(10);
-                color: $aluminum;
+                color: $grey;
                 padding: 0 0 5px;
                 a {
                     font-size: rem-calc(11);
                     &.more {
-                        color: $d-blue;
+                        color: $dark-blue;
                         font-weight: bold;
                         text-transform: uppercase;
                     }
@@ -68,7 +68,7 @@
                 margin-top: 20px;
                 font-size: rem-calc(18);
                 @media #{$medium-only} {
-                    margin-top: 15px
+                    margin-top: 15px;
                 }
                 @media #{$small-only} {
                     margin: 0;
                 }
             }
         }
-        footer {
-            img {
-                margin: 35px 0 0;
-            }
-            #address {
-                margin: 25px 0;
-                p {
-                    font-size: 12px;
-                    margin-top: 5px;
-                }
-                img {
-                    margin: 0;
-                    padding-right: 5px;
-                }
-                a {
-                    font-size: 12px;
-                }
-            }
-            img {
-                box-shadow: none;
-            }
+    }
+}
+.home-feed-post {
+    padding-bottom: 25px;
+    @media #{$small-only} {
+        > * {
+            text-align: center;
         }
     }
 }
-
-.blogbutton {
-    background: $green;
+input[type="submit"].blogbutton {
+    border-radius: 3px;
+    color: $white;
     border: 2px solid $white;
     font-weight: bold;
     font-size: 13px;
-    padding: 0 3px;
+    padding: 2px 5px;
     margin-top: -10px;
     text-transform: uppercase;
     &:hover {
+        cursor: pointer;
         background: $white;
-        border: 2px solid $green;
-        color: $green;
+        border: 2px solid #035C84;
+        color:  white;
     }
 }
-article {
-    padding: 0 15px 10px;
+#blog-posts-over article {
+    padding-top: 10px;
     margin-bottom: 15px;
     display: inline-block;
     width: 100%;
@@ -135,7 +122,6 @@ article {
         padding-bottom: 15px;
     }
     a.read-more {
-        background: $green;
         border: 2px solid $white;
         font-weight: bold;
         font-size: 13px;
@@ -143,17 +129,64 @@ article {
         text-transform: uppercase;
         &:hover {
             background: $white;
-            border: 2px solid $green;
-            color: $green;
+            border: 2px solid #035C84;
+            color: #035C84;
         }
     }
+     .entry-header {
+        margin-bottom: 10px;
+        .entry-title {
+            margin-bottom: 0;
+        }
+        .meta.date {
+            font-size: 13px;
+            font-weight: bold;
+        }
+    }
+}
+/*#searchform div input &[type="text"] {
+    width: 95%;
+}*/
+#blog-posts-over .entry-meta {
+    text-align: center;
+    color: #757575;
+    font-size: 12px;
+}
+#blog-posts-over > div {
+    margin: 25px 0;
 }
-#searchform {
-    div {
-        input {
-            &[type="text"] {
-                width: 95%;
+#blog-side-info {
+    #searchform {
+        margin-bottom: 30px;
+    }
+    p {
+        margin-bottom: 0;
+    }
+}
+@media #{$small-only} {
+    #blog-side-info-wrapper {
+        float: none;
+        margin: 0 auto;
+        clear: both;
+    }
+    #blog-side-info {
+        padding-left: 0;
+        border-left: 0;
+        ul {
+            margin-left: 0;
+            margin-top:10px;
+        }
+        #searchform {
+            padding: 35px 0;
+            #s {
+                width: 100%;
             }
         }
     }
 }
+#blog-side-info {
+    padding-right: 10px;
+    ul {
+        list-style-type: none;
+    }
+}
\ No newline at end of file
index 4b68036..cf454d0 100644 (file)
@@ -1,7 +1,2 @@
-/* 
-    Created on : Mar 5, 2015, 2:57:46 PM
-    Author     : laury
-*/
-
   @import "mixins/gradient";
   @import "mixins/off-canvas-arrow";
\ No newline at end of file
diff --git a/root/scss/_plugins.scss b/root/scss/_plugins.scss
new file mode 100644 (file)
index 0000000..3b99231
--- /dev/null
@@ -0,0 +1 @@
+  @import "plugins/nextgen";
\ No newline at end of file
diff --git a/root/scss/_search.scss b/root/scss/_search.scss
new file mode 100644 (file)
index 0000000..e046cb2
--- /dev/null
@@ -0,0 +1,51 @@
+.search-top {
+        #searchform {
+            text-align: left;
+            display: inline-block;
+            position: relative;
+            #search-button {
+                width: 22px;
+                right: 0px;
+                position: absolute;
+                padding: 0;
+                border: 1px solid lightgray;
+            }
+        }
+        input {
+            height: 20px;
+            width: 167px;
+            padding: 0 8px;
+            margin: 13px 0px 0px 18px;
+            border-radius: 3px;
+            font-size: 10px;
+            color: $black;
+            display: inline-block;
+        }
+        a {
+            &.magnifying-glass {
+                font-size: 10em; /* This controls the size. */ 
+                width: rem-calc(12); 
+                height: rem-calc(12);
+                border: rem-calc(2) solid $dark-blue; 
+                position: absolute;
+                top: 15px;
+                border-radius: 0.35em;
+                margin: 0 0 0 -20px;
+                &:before {
+                    content: ""; 
+                    display: inline-block; 
+                    position: absolute; 
+                    right: rem-calc(-7); 
+                    bottom: rem-calc(-4); 
+                    border-width: 0; 
+                    background: $dark-blue; 
+                    width: rem-calc(8); 
+                    height: rem-calc(2); 
+                    -webkit-transform: rotate(45deg); 
+                    -moz-transform: rotate(45deg);
+                    -ms-transform: rotate(45deg);
+                    transform: rotate(45deg);
+                }
+            }
+        }
+}
\ No newline at end of file
index daa4767..476372a 100644 (file)
@@ -4,6 +4,14 @@
     .row.collapse {
         margin-left: 14px;
     }
+    li {
+        list-style: none;
+        #calendar_wrap {
+            table#wp-calendar {
+                margin: 0 auto;
+            }
+        }
+    }
     a {
         font-size: 12px;
     }
@@ -13,6 +21,7 @@
             padding: 0 rem-calc(8);
             border-radius: 5px;
             height: 25px;
+            margin: 0;
             option {
                 font-size: 10px;
             }
         li {
             padding: 0 rem-calc(10) rem-calc(10);
             img {
-                border: 2px solid $l-blue;
+                border: 2px solid $light-blue;
             }
         }
         & > li:nth-of-type(2), & > li:nth-of-type(4) {
             padding-left: 0;
         }
+        & > li:nth-of-type(3), & > li:nth-of-type(4) {
+            padding-bottom: 20px;
+        }
     }
     h3 {
         margin: 20px 0 0;
     background: #f2f9fc;
     h1 {
         font-size: rem-calc(22);
-        margin: 5px 0 25px;
+/*        margin: 5px 0 25px;*/
     }
     h4 {
         font-weight: bold;
         margin-left: 10px;
     }
+    li {
+        list-style: none;
+    }
     ul {
         list-style: none;
         margin: 0 0 20px;
@@ -69,7 +84,7 @@
                 background: #81adc1;
             }
             a {
-                color: $d-blue;
+                color: $dark-blue;
                 &:hover {
                     color: $white;
                 }
         }
         &#message {
             text-transform: uppercase;
-            color: $l-blue;
+            color: $light-blue;
             font-size: rem-calc(15);
             margin: 40px 0;
         }
 .county-news {
     font-weight: bold;
 }
+.current_page_item a {
+    font-weight: bold;
+}
\ No newline at end of file
index 3df1d63..e054dfb 100644 (file)
@@ -11,3 +11,6 @@
 //11. Footer
 //12. Copyright
 
+#example.element {
+    background-color: transparent;
+}
\ No newline at end of file
index 622bad6..7ade1e7 100644 (file)
@@ -8,8 +8,10 @@
 @import "topbar";
 @import "main";
 @import "slideshow";
+@import "plugins";
 @import "blog";
 @import "sidebar";
+@import "search";
 @import "page.footer";
 @import "copyright";
 @import "structure";
diff --git a/root/scss/plugins/_nextgen.scss b/root/scss/plugins/_nextgen.scss
new file mode 100644 (file)
index 0000000..c9f6434
--- /dev/null
@@ -0,0 +1,6 @@
+/* NextGen Gallery */
+.ngg-gallery-thumbnail, 
+.ngg-gallery-thumbnail-box {
+    float: none !important;
+}
+/* End NextGen Gallery */
\ No newline at end of file
index a5be70c..42d9347 100644 (file)
@@ -1,38 +1,82 @@
 <?php get_header(); ?>
-    <div id="search_results_over">
-        <h2 class="search-result-header">Search Results for "<?php echo get_search_query(); ?>"</h2><br>
-        <?php if(have_posts()): $i = 1; while (have_posts() && $i < 6) : the_post(); ?>
-        <div class="" id="search_results_container" style="max-width:1000px;">
-            <div class="row">
-                <div class="small-12 columns">
-
+<main class="search-results">
+    <?php if (get_search_query() == "") { ?>
+    <br><h2 class="search-result-header">Please enter a query in the search box. </h2>
+    <?php } else { ?>
+    <br><h2 class="search-result-header">Search Results for "<?php echo get_search_query(); ?>"</h2>
+    <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 content search-result-container">
+                <div class="small-11 small-centered columns">
                     <article id="<?php the_ID()?>" <?php post_class()?>>
-                        <h5 class="">Page: <a href="<?php the_permalink(); ?>"><?php the_title();?></a></h5>
-                        <?php //echo the_advanced_excerpt('length=30&length_type=words&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,strong,b,hr,br,div;'); ?>
-                        <?php the_excerpt(); ?>
+                        <header class="entry-header">
+                            <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
+                            <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
+                        </header>
+                        <?php echo the_advanced_excerpt(); ?>
                         <footer class="entry-meta small-12 medium-6 medium-push-3 center">
-
-                            <?php $post_categories = wp_get_post_categories( get_the_ID() );
-                            $cats = array();
-
+                            <?php
+                            if (has_category()) {
+                                $post_categories = wp_get_post_categories( get_the_ID() );
+                                $cats = array();
+                                echo 'This entry was posted ';
+                                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>';
+                                }
+                                echo '.';
+                            }
                             ?>
-
                         </footer>
                     </article>
                 </div>
             </div>
-        </div>
-        <?php endwhile; ?>
-        <?php if ( function_exists('FoundationPress_pagination') ) { FoundationPress_pagination(); } else if ( is_paged() ) { ?>
-               <nav id="post-nav">
-                       <div class="post-previous"><?php next_posts_link( __( '&larr; Older results', 'FoundationPress' ) ); ?></div>
-                       <div class="post-next"><?php previous_posts_link( __( 'Newer results &rarr;', 'FoundationPress' ) ); ?></div>
-               </nav>
-       <?php } ?>
-        <?php else: ?>
-        <div id="post-404" class="noposts">
+            <?php endwhile; ?>
+            <div class="navigation">
+                <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
+            </div><!-- /.navigation -->
+            <?php else: ?>
+            <div id="post-404" class="noposts">
                 <p><?php _e('Sorry, no results were found.');?></p>
-        </div><!-- /#post-404 -->
-        <?php endif;?>
+            </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>
+            <?php } ?> <!-- end empty query check -->
+        </div>
     </div>
-<?php get_footer(); ?>
+    <?php get_footer(); ?>
\ No newline at end of file
index 424e569..83d2421 100644 (file)
@@ -1,3 +1,5 @@
-<?php if (is_active_sidebar('sidebar-r')) :?>
-    <?php dynamic_sidebar('sidebar-r');?>
-<?php endif;?>
+                        <div id="side-nav" class="large-3 columns show-for-large-up" data-equalizer-watch>
+                            <div class="row collapse">
+                                <?php glm_side_menu(); ?>
+                            </div>
+                        </div>
\ No newline at end of file
index 42821a6..95e681c 100644 (file)
@@ -1,17 +1,13 @@
 <?php get_header(); ?>
-<main>
-    <div class="shadow-wrapper">
+    <main class="blog-single">    
         <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="row blog-post-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() );
@@ -36,7 +32,7 @@
                                             }
                                         }
                                         echo ' on ';
-                                        echo ' <span class="meta date"> ' . the_time('F jS, Y') . '</span>';
+                                        echo ' <span class="meta date"> ' . the_time('F jS, Y') . '</span>';
                                         ?>
                                     </footer>
                                 </article>
                 </div><!-- /#post-404 -->
                 <?php endif;?>
             </div>
-            <div class="small-11 small-only-text-center medium-3 columns">
+            <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 button" type="submit" name="submit" value="Search" />
+                        <input class="submit blogbutton" type="submit" name="submit" value="Search" />
                         <input type="hidden" name="searchType" value="blog" /> </div>
                     </form>
                     <p>Recent Posts</p>
@@ -85,5 +81,4 @@
                 </div>
             </div>
         </div>
-    </div>
-    <?php get_footer(); ?>
+        <?php get_footer(); ?>