From: Anthony Talarico Date: Tue, 12 Jan 2016 15:46:28 +0000 (-0500) Subject: added search bar to index file X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=494cb0bc5687c58c908d6960735157ae05403de5;p=WP-Plugins%2Fmichsci-products.git added search bar to index file --- diff --git a/index.php b/index.php index b724d98..908eba6 100644 --- a/index.php +++ b/index.php @@ -445,10 +445,15 @@ function michsci_shortcode($atts) } echo '
- Search Products
'; + Search Products
'; echo michsci_get_terms_dropdown(); - echo '
'; - echo '
'; + echo '
'; + if ( $product_id = filter_var( $_REQUEST['product'], FILTER_VALIDATE_INT ) ) { michsci_show_product($product_id);