projects
/
WP-Plugins
/
michsci-products.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27b27f7
)
added "all products" string to non-category page
author
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 2 Feb 2016 17:53:34 +0000
(12:53 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 2 Feb 2016 17:53:34 +0000
(12:53 -0500)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
1015982
..
0a0e320
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-444,6
+444,10
@@
function michsci_shortcode($atts)
}
$term = get_term_by("id", $_REQUEST[MICHSCI_CATEGORY_NAME],"michsci_category");
$name = $term->name;
+
+ if(!$name){
+ $name = "ALL PRODUCTS";
+ }
echo $name;
global $wp;
echo '<form id="catSubmit" action=""><div class="row catSearch"><div id="viewBtns" class="12-small medium-3 columns"> <button id="grid" type="button">Grid</button> <button id="list"type="button">list</button>