Member search functionality added
authorLaury GvR <laury@gaslightmedia.com>
Mon, 25 Jul 2016 21:13:19 +0000 (17:13 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 25 Jul 2016 21:13:19 +0000 (17:13 -0400)
header.php
index.php
parts/search.php
search.php

index 288b67c..dcd0043 100644 (file)
@@ -53,4 +53,4 @@
                
                     <?php get_template_part('parts/top-bar');?>
                
-                    <?php get_template_part('parts/off-canvas-menu');?>
+                    <?php get_template_part('parts/off-canvas-menu');?>
\ No newline at end of file
index 75a4153..1f62095 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,6 +1,5 @@
 <?php get_header(); ?>
 <main class="page-inside">
-    <div class="feature-img">
         <?php 
 //            echo glm_get_header(); 
         get_template_part('parts/slide-show');    
index 080bfd3..b94fa21 100644 (file)
@@ -1,5 +1,5 @@
-<form role="search" method="get" class="searchform" action="<?php echo home_url('/'); ?>">
-    <input class="search-input" type="text" placeholder="" value="" name="s">
+<form method="get" class="searchform" action="<?php echo home_url('/').'site-search/'; ?>">
+    <input class="search-input" type="text" placeholder="" value="" name="query">
     <input type="submit" class="button text-center" name="submit" value="Search">
     <a class="magnifying-glass" href="#"></a>
 </form>
\ No newline at end of file
index b7e5d7e..1f3e487 100644 (file)
@@ -6,8 +6,20 @@
         <?php } else { ?>
         <br><h2 class="search-result-header small-12 columns">Search Results for "<?php echo get_search_query(); ?>"</h2>
     </div>
-    
-    <div class="row">
+
+    <div class="row">    
+        
+    <?php echo "TEST START<pre>"; ?>
+    <?php echo print_r($_REQUEST, true); ?>
+    <?php echo "TEST END</pre>"; ?>
+    <div id="member_db_search_results">
+        
+        <?php 
+//            $glmSearch = apply_filters('glm_associate_search', get_search_query());
+//            echo "GLM SEARCH: ".$glmSearch."GLM SEARCH END";
+        ?>
+        <?php echo "GLM SEARCH". do_shortcode('[glm-members-search]') . "GLM SEARCH END";?>
+    </div>
         <div id="blog-posts-over" class="small-12 columns">
             <?php if(have_posts()) : while(have_posts()): the_post();?>
                 <?php if (is_search() && (isset($_GET['searchType']) && $_GET['searchType'] == 'blog') && ($post->post_type=='page')) continue; ?>