adjusted blog search functionality
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 4 Dec 2015 17:29:50 +0000 (12:29 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 4 Dec 2015 17:29:50 +0000 (12:29 -0500)
css/app.css
scss/_blog.scss
search.php
single.php

index 7e8b14d..eb5a584 100644 (file)
@@ -7912,6 +7912,7 @@ input[type="submit"].blogbutton {
   display: inline-block;
   width: 100%; }
   #blog-posts-over article .entry-header {
+    margin-bottom: 10px;
     background: transparent; }
   #blog-posts-over article p {
     padding-bottom: 15px; }
@@ -7926,8 +7927,9 @@ input[type="submit"].blogbutton {
   #blog-posts-over article .entry-header {
     margin-bottom: 10px; }
     #blog-posts-over article .entry-header .entry-title {
-      margin-bottom: -9px; }
+      margin-bottom: 10px; }
     #blog-posts-over article .entry-header .meta.date {
+      font-family: Georgia;
       font-size: 13px;
       font-weight: bold; }
 
index 61a9fcb..f9a7244 100644 (file)
@@ -138,6 +138,7 @@ input[type="submit"].blogbutton {
     display: inline-block;
     width: 100%;
     .entry-header {
+        margin-bottom: 10px;
         background: transparent;
     }
     p {
@@ -156,9 +157,10 @@ input[type="submit"].blogbutton {
      .entry-header {
         margin-bottom: 10px;
         .entry-title {
-            margin-bottom: -9px;
+            margin-bottom: 10px;
         }
         .meta.date {
+            font-family: Georgia;
             font-size: 13px;
             font-weight: bold;
         }
index d1553ef..333a7ba 100644 (file)
@@ -14,7 +14,7 @@
            <?php } else { ?>
            <h2 class="search-result-header small-12 columns">Search Results for "<?php echo get_search_query(); ?>"</h2>
             <?php if(have_posts()) : while(have_posts()): the_post();?>
-                <?php if (is_search() && (isset($_GET['searchType']) && $_GET['searchType'] == 'post') && ($post->post_type=='page')) continue; ?>
+                <?php if (is_search() && (isset($_GET['searchType']) && $_GET['searchType'] == 'blog') && ($post->post_type=='page')) continue; ?>
             <div class="row content search-result-container">
                 <div class="small-11 small-centered columns">
                     <article id="<?php the_ID()?>" <?php post_class()?>>
index 91aac42..414f898 100644 (file)
                         <div class="row">
                             <div class="small-12 columns">
                                 <article id="<?php the_ID()?>" <?php post_class()?>>
-                                    <h1><?php the_title();?></h1>
-                                    <?php if ( has_post_thumbnail() ):?>
-                                    <div class="featured-image-wrap"><?php the_post_thumbnail("large"); ?></div>
-                                    <?php endif; ?>
+                                    <header class="entry-header">
+                                        <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+                                        <?php if ( has_post_thumbnail() ):?>
+                                        <div class="featured-image-wrap"><?php the_post_thumbnail("large"); ?></div>
+                                        <?php endif; ?>
+                                        <span class="meta date">Posted on <?php the_time('F jS, Y') ?></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() );