From: Anthony Talarico Date: Fri, 6 Nov 2015 16:33:02 +0000 (-0500) Subject: Added custom function similar to mtpleasant wow's. X-Git-Tag: v1.0.0^2~25 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=2b43a25d179c4418111eb1f8ce6c47862e8e0e29;p=WP-Themes%2Fbpla.git Added custom function similar to mtpleasant wow's. --- diff --git a/functions.php b/functions.php index 891c1f5..6c31ae8 100644 --- a/functions.php +++ b/functions.php @@ -145,6 +145,12 @@ register_nav_menus(array( // 'footer' => 'Footer' )); +function is_post_type($type){ + global $wp_query; + if($type == get_post_type($wp_query->post->ID)) return true; + return false; +} + if ( ! function_exists( 'feature_top_bar' ) ) { function feature_top_bar() { wp_nav_menu(array( diff --git a/single.php b/single.php index e42435d..3c824b8 100644 --- a/single.php +++ b/single.php @@ -1,7 +1,13 @@
-
+ '; + } else { + echo '
'; + } + ?>
@@ -48,7 +54,9 @@