From: Steve Sutton Date: Fri, 15 Jan 2016 21:40:05 +0000 (-0500) Subject: Update for the employment form X-Git-Tag: v1.0.0^2~37 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=fadc7d65ac431bc0a049f09b3521325299dc03bf;p=WP-Themes%2Fotsego.git Update for the employment form should show sidebar unless your in the employment section also do not show for events pages --- diff --git a/functions.php b/functions.php index eff366a..98d1924 100644 --- a/functions.php +++ b/functions.php @@ -148,10 +148,10 @@ add_action('thematic_searchloop', 'mytheme_search_loop'); // End of the Contextual/Highlight Search functions function is_tree( $pid ) { - global $post; + global $post; if ( is_page($pid) ) - return true; + return true; $anc = get_post_ancestors( $post->ID ); foreach ( $anc as $ancestor ) { @@ -161,4 +161,10 @@ function is_tree( $pid ) { } return false; } +function glm_has_shortcode($shortcode) +{ + global $post; + $page = get_post( $post->ID ); + return has_shortcode( $page->post_content, $shortcode ); +} ?> diff --git a/index.php b/index.php index 8699a02..83b399f 100644 --- a/index.php +++ b/index.php @@ -15,10 +15,18 @@ - +
@@ -41,7 +49,7 @@
- +