From fadc7d65ac431bc0a049f09b3521325299dc03bf Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 15 Jan 2016 16:40:05 -0500 Subject: [PATCH] Update for the employment form should show sidebar unless your in the employment section also do not show for events pages --- functions.php | 10 ++++++++-- index.php | 20 ++++++++++++++------ 2 files changed, 22 insertions(+), 8 deletions(-) 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 @@
- + -- 2.17.1