From: Laury GvR Date: Tue, 1 May 2018 21:07:45 +0000 (-0400) Subject: Default header also changed for blog home/archive X-Git-Tag: v1.1.31^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=687702ea2f98c786170f94737f94befc04582ad0;p=WP-Themes%2Fsaultstemarie.git Default header also changed for blog home/archive --- diff --git a/functions.php b/functions.php index b74a9c8..f0b296c 100644 --- a/functions.php +++ b/functions.php @@ -135,26 +135,6 @@ class GLM_Members_Only_Walker extends Walker_Nav_Menu { endif; /* Header for posts*/ -//function glm_get_header() { -// global $post; -// $post_id = $post->ID; -// echo ''; -// echo ''; -//} function glm_get_featured() { global $post; $post_id = $post->ID; @@ -166,13 +146,10 @@ function glm_get_featured() { if (has_post_thumbnail($post_id) && (!(is_home()) ) && (!(is_single())) && (!(is_archive())) && (!(is_search()))) { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), "full"); $imageUrl = ''; - } elseif(is_single() && is_post_type('ai1ec_event')){ + } elseif(is_single() && is_post_type('ai1ec_event')) { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(123), "full"); $imageUrl = ''; - } elseif(is_post_type('post')) { - $imageUrl = ''; - } - else { + } else { $imageUrl = ''; } return $imageUrl;